Agents / TypeScript SDK
Publish knowledge draft
Publish the exact reviewed knowledge draft only after explicit user approval, using the returned draft timestamp. Does not send messages or change agent autonomy.
pipeline.publishKnowledgeDraftDeterministic operationParameters
workspaceIdOptional · string- See the input schema for this field.
expectedDraftCreatedAtRequired · string- See the input schema for this field.
await pipeline.publishKnowledgeDraft({
"expectedDraftCreatedAt": "2026-01-01T00:00:00.000Z"
})Full input schema
{
"type": "object",
"properties": {
"workspaceId": {
"type": "string"
},
"expectedDraftCreatedAt": {
"type": "string"
}
},
"required": [
"expectedDraftCreatedAt"
]
}