|
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": { |
|
8593 | 8600 | "StoredChatDeploymentOutputConfig": { |
8594 | 8601 | "type": "object", |
8595 | 8602 | "properties": { |
8596 | | - "workflowId": { |
8597 | | - "description": "Child workflow containing the selected block. Omitted for the deployed workflow.", |
8598 | | - "type": "string" |
8599 | | - }, |
8600 | 8603 | "blockId": { |
8601 | 8604 | "type": "string", |
8602 | 8605 | "description": "Block whose output the chat streams." |
|
8906 | 8909 | "ChatDeploymentOutputConfig": { |
8907 | 8910 | "type": "object", |
8908 | 8911 | "properties": { |
8909 | | - "workflowId": { |
8910 | | - "description": "Child workflow containing the selected block. Omit for the deployed workflow.", |
8911 | | - "type": "string", |
8912 | | - "minLength": 1 |
8913 | | - }, |
8914 | 8912 | "blockId": { |
8915 | 8913 | "type": "string", |
8916 | 8914 | "minLength": 1, |
|
9103 | 9101 | "output": { |
9104 | 9102 | "description": "Workflow output, including partial output on failure." |
9105 | 9103 | }, |
| 9104 | + "blockOutputs": { |
| 9105 | + "anyOf": [ |
| 9106 | + { |
| 9107 | + "type": "object", |
| 9108 | + "propertyNames": { |
| 9109 | + "type": "string" |
| 9110 | + }, |
| 9111 | + "additionalProperties": { |
| 9112 | + "description": "Output value produced by one workflow block." |
| 9113 | + } |
| 9114 | + }, |
| 9115 | + { |
| 9116 | + "type": "null" |
| 9117 | + } |
| 9118 | + ], |
| 9119 | + "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." |
| 9120 | + }, |
9106 | 9121 | "error": { |
9107 | 9122 | "anyOf": [ |
9108 | 9123 | { |
|
9130 | 9145 | "minimum": 0 |
9131 | 9146 | } |
9132 | 9147 | }, |
9133 | | - "required": ["runId", "workflowId", "status", "output", "error"], |
| 9148 | + "required": ["runId", "workflowId", "status", "output", "blockOutputs", "error"], |
9134 | 9149 | "additionalProperties": false, |
9135 | 9150 | "title": "Workflow run result", |
9136 | 9151 | "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`." |
|
9156 | 9171 | "output": { |
9157 | 9172 | "result": "Ticket routed to Support" |
9158 | 9173 | }, |
| 9174 | + "blockOutputs": null, |
9159 | 9175 | "error": null, |
9160 | 9176 | "startedAt": "2026-08-09T18:04:10.000Z", |
9161 | 9177 | "endedAt": "2026-08-09T18:04:11.000Z", |
|
9314 | 9330 | "type": "boolean" |
9315 | 9331 | }, |
9316 | 9332 | "selectedOutputs": { |
9317 | | - "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.", |
| 9333 | + "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.", |
9318 | 9334 | "maxItems": 100, |
9319 | 9335 | "type": "array", |
9320 | 9336 | "items": { |
|
9892 | 9908 | "output": { |
9893 | 9909 | "result": "Ticket routed to Support" |
9894 | 9910 | }, |
| 9911 | + "blockOutputs": null, |
9895 | 9912 | "error": null, |
9896 | 9913 | "startedAt": "2026-08-09T18:04:10.000Z", |
9897 | 9914 | "endedAt": "2026-08-09T18:04:11.000Z", |
|
10006 | 10023 | "description": "Whether a paused execution was cancelled." |
10007 | 10024 | }, |
10008 | 10025 | "reason": { |
10009 | | - "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.", |
| 10026 | + "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.", |
10010 | 10027 | "type": "string", |
10011 | 10028 | "enum": [ |
10012 | 10029 | "recorded", |
|
10016 | 10033 | "redis_unavailable", |
10017 | 10034 | "redis_write_failed", |
10018 | 10035 | "paused_event_publish_failed", |
10019 | | - "paused_database_cancel_failed", |
10020 | | - "queue_cancelled", |
10021 | | - "active_resume_signal_failed", |
10022 | | - "cancellation_not_finalized" |
| 10036 | + "paused_database_cancel_failed" |
10023 | 10037 | ] |
10024 | 10038 | } |
10025 | 10039 | }, |
|
0 commit comments