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 operationParameters
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.
await pipeline.publishSopDraft({
"skillName": "example",
"expectedDraftCreatedAt": "2026-01-01T00:00:00.000Z"
})Full 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"
]
}