Agents / TypeScript SDK

Publish sop draft

Publish the exact reviewed SOP draft after explicit user approval. Does not enable Autopilot, change runtime cadence or send messages. Preserve workspace HITL.

pipeline.publishSopDraftDeterministic operation

Parameters

workspaceIdOptional · string
See the input schema for this field.
skillNameRequired · string
See the input schema for this field.
expectedDraftCreatedAtRequired · string
Exact pending draft createdAt, null only when no draft exists.
Request example
await pipeline.publishSopDraft({
  "skillName": "example",
  "expectedDraftCreatedAt": "2026-01-01T00:00:00.000Z"
})
Full input schema
Input schema
{
  "type": "object",
  "properties": {
    "workspaceId": {
      "type": "string"
    },
    "skillName": {
      "type": "string"
    },
    "expectedDraftCreatedAt": {
      "type": "string",
      "description": "Exact pending draft createdAt, null only when no draft exists."
    }
  },
  "required": [
    "skillName",
    "expectedDraftCreatedAt"
  ]
}
See this operation inCLI MCP REST API
TypeScript SDK | Pipeline v2 preview