|
5169 | 5169 | }, |
5170 | 5170 | "kind": { |
5171 | 5171 | "type": "string", |
5172 | | - "enum": ["credential", "resource", "custom-tool", "mcp-tool", "skill"], |
| 5172 | + "enum": [ |
| 5173 | + "credential", |
| 5174 | + "resource", |
| 5175 | + "custom-tool", |
| 5176 | + "mcp-tool", |
| 5177 | + "skill", |
| 5178 | + "block-output" |
| 5179 | + ], |
5173 | 5180 | "description": "What kind of entity the reference was expected to name." |
5174 | 5181 | }, |
5175 | 5182 | "reason": { |
|
8640 | 8647 | "StoredChatDeploymentOutputConfig": { |
8641 | 8648 | "type": "object", |
8642 | 8649 | "properties": { |
8643 | | - "workflowId": { |
8644 | | - "description": "Child workflow containing the selected block. Omitted for the deployed workflow.", |
8645 | | - "type": "string" |
8646 | | - }, |
8647 | 8650 | "blockId": { |
8648 | 8651 | "type": "string", |
8649 | 8652 | "description": "Block whose output the chat streams." |
|
8953 | 8956 | "ChatDeploymentOutputConfig": { |
8954 | 8957 | "type": "object", |
8955 | 8958 | "properties": { |
8956 | | - "workflowId": { |
8957 | | - "description": "Child workflow containing the selected block. Omit for the deployed workflow.", |
8958 | | - "type": "string", |
8959 | | - "minLength": 1 |
8960 | | - }, |
8961 | 8959 | "blockId": { |
8962 | 8960 | "type": "string", |
8963 | 8961 | "minLength": 1, |
|
9150 | 9148 | "output": { |
9151 | 9149 | "description": "Workflow output, including partial output on failure." |
9152 | 9150 | }, |
| 9151 | + "blockOutputs": { |
| 9152 | + "anyOf": [ |
| 9153 | + { |
| 9154 | + "type": "object", |
| 9155 | + "propertyNames": { |
| 9156 | + "type": "string" |
| 9157 | + }, |
| 9158 | + "additionalProperties": { |
| 9159 | + "description": "Output value produced by one workflow block." |
| 9160 | + } |
| 9161 | + }, |
| 9162 | + { |
| 9163 | + "type": "null" |
| 9164 | + } |
| 9165 | + ], |
| 9166 | + "description": "Outputs of the blocks named by `selectedOutputs`, keyed by those selector strings, or null when none were requested. Selectors whose block did not run or whose path is absent are omitted; failed runs include the outputs of the blocks that did run." |
| 9167 | + }, |
9153 | 9168 | "error": { |
9154 | 9169 | "anyOf": [ |
9155 | 9170 | { |
|
9177 | 9192 | "minimum": 0 |
9178 | 9193 | } |
9179 | 9194 | }, |
9180 | | - "required": ["runId", "workflowId", "status", "output", "error"], |
| 9195 | + "required": ["runId", "workflowId", "status", "output", "blockOutputs", "error"], |
9181 | 9196 | "additionalProperties": false, |
9182 | 9197 | "title": "Workflow run result", |
9183 | 9198 | "description": "Synchronous workflow run output and in-band execution status. Run failures are reported in band, not as HTTP errors — a run that exceeds its execution timeout returns HTTP 200 with `status: \"failed\"` and `error.code: \"TIMEOUT\"`, so branch on `status`." |
|
9203 | 9218 | "output": { |
9204 | 9219 | "result": "Ticket routed to Support" |
9205 | 9220 | }, |
| 9221 | + "blockOutputs": null, |
9206 | 9222 | "error": null, |
9207 | 9223 | "startedAt": "2026-08-09T18:04:10.000Z", |
9208 | 9224 | "endedAt": "2026-08-09T18:04:11.000Z", |
|
9361 | 9377 | "type": "boolean" |
9362 | 9378 | }, |
9363 | 9379 | "selectedOutputs": { |
9364 | | - "description": "Block output references to include in a streamed response. Use `<blockName>.<outputPath>` for the executed workflow or `<childWorkflowId>.<blockName>.<outputPath>` for a child workflow; block names are normalized workflow reference names. Selecting a child workflow applies to every invocation of it. Requires `stream: true` — it shapes the streamed envelope only, so it is rejected on a sync request and when `async` is true. To narrow a finished run, pass `selectedOutputs` to the run resource instead.", |
| 9380 | + "description": "Block output references to include in the response, as `blockId`, `blockId.path`, or `BlockName.path` (resolved against the workflow state being run). On a sync request the named outputs come back in `blockOutputs`, keyed by these selector strings; on a stream they shape the streamed envelope. Selectors that resolve to no block or no value are omitted. Rejected when `async` is true — a queued run has produced nothing to select; narrow the finished run via the run resource instead.", |
9365 | 9381 | "maxItems": 100, |
9366 | 9382 | "type": "array", |
9367 | 9383 | "items": { |
|
9939 | 9955 | "output": { |
9940 | 9956 | "result": "Ticket routed to Support" |
9941 | 9957 | }, |
| 9958 | + "blockOutputs": null, |
9942 | 9959 | "error": null, |
9943 | 9960 | "startedAt": "2026-08-09T18:04:10.000Z", |
9944 | 9961 | "endedAt": "2026-08-09T18:04:11.000Z", |
|
10053 | 10070 | "description": "Whether a paused execution was cancelled." |
10054 | 10071 | }, |
10055 | 10072 | "reason": { |
10056 | | - "description": "Machine-readable cancellation outcome, present on every cancellation including full successes. `recorded` and `queue_cancelled` are successful cancellation values. `already_cancelled`, `already_completed`, and `already_failed` mean the run had already reached that terminal state, so nothing was cancelled and `durablyRecorded` is false. The remaining values identify a degraded or incomplete cancellation step.", |
| 10073 | + "description": "Machine-readable cancellation outcome, present on every cancellation including full successes. `recorded` is the success value. `already_cancelled`, `already_completed`, and `already_failed` mean the run had already reached that terminal state, so nothing was cancelled and `durablyRecorded` is false. `redis_unavailable` and `redis_write_failed` mean the distributed cancellation signal was not written, so an already-running execution may not observe the cancellation. `paused_event_publish_failed` and `paused_database_cancel_failed` name the failing step for a paused run.", |
10057 | 10074 | "type": "string", |
10058 | 10075 | "enum": [ |
10059 | 10076 | "recorded", |
|
10063 | 10080 | "redis_unavailable", |
10064 | 10081 | "redis_write_failed", |
10065 | 10082 | "paused_event_publish_failed", |
10066 | | - "paused_database_cancel_failed", |
10067 | | - "queue_cancelled", |
10068 | | - "active_resume_signal_failed", |
10069 | | - "cancellation_not_finalized" |
| 10083 | + "paused_database_cancel_failed" |
10070 | 10084 | ] |
10071 | 10085 | } |
10072 | 10086 | }, |
|
0 commit comments