sdkDeterministic
Publish sop draft
pipeline.publishSopDraft
Publish the exact reviewed SOP draft after explicit user approval. Does not enable Autopilot, change runtime cadence or send messages. Preserve workspace HITL.
Parameters
workspaceId
string
No description.
skillNamerequired
string
No description.
expectedDraftCreatedAtrequired
string
Exact pending draft createdAt, null only when no draft exists.
Example
TypeScripttypescript
await pipeline.publishSopDraft({"skillName": "example","expectedDraftCreatedAt": "2026-01-01T00:00:00.000Z"})
Response
Success response schemajson schema
{"type": "object","properties": {"overlay": {"type": "object"},"version": {"type": "object"}},"required": ["overlay","version"]}
Exceptions
- PipelineError
- Thrown for validation, authentication, JSON-RPC, HTTP, and network failures. Inspect code and data when present.