Skip to content

Commit 7ec661d

Browse files
committed
docs(spec): regenerate reference page
Claude-Session: https://claude.ai/code/session_01QSeKYnrQ7UMtHofKQVjcH2 Co-authored-by: Claude <noreply@anthropic.com>
1 parent c04debc commit 7ec661d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎packages/spec/docs/references/api/automation-api.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1223,7 +1223,7 @@ const result = AutomationApiErrorCode.parse(data);
12231223
| **error** | `string` | optional | Error message if execution failed |
12241224
| **durationMs** | `number` | optional | Execution duration in milliseconds |
12251225
| **code** | `Enum<'PERMISSION_DENIED' \| 'INVALID_SIGNAL' \| 'RUN_NOT_FOUND' \| 'STORE_UNAVAILABLE' \| …>` | optional | Machine-readable failure classification, set alongside `error` when the caller must distinguish WHY it failed. A closed union - the members and their transport mappings are documented on the contract (`AutomationResult.code`, contracts/automation-service.ts). |
1226-
| **fields** | `{ field: string; code: Enum<'required' \| 'invalid_type' \| 'invalid_shape' \| 'unknown_field' \| …>; message: string; label?: string; … }[]` | optional | The field-addressed findings behind an `INVALID_SCREEN_INPUT` refusal, one entry per finding: the screen field's `name`, the field-level code it broke and the engine's English line. One field can carry two entries (a `required` `record_link` field sent `null`; a value above a field's `max` but below its larger `min`). For `unknown_field`, `field` is the key the caller sent, not a declared screen field name. Set with that code only. A transport serves it as `error.details.fields` |
1226+
| **fields** | `{ field: string; code: Enum<'required' \| 'invalid_type' \| 'invalid_shape' \| 'unknown_field' \| …>; message: string; label?: string; … }[]` | optional | The field-addressed findings behind an `INVALID_SCREEN_INPUT` refusal, one entry per finding: the screen field's `name`, the field-level code it broke and the engine's English line. One field can carry more than one entry (for instance, a value above a field's `max` but below its larger `min` breaks both bounds). For `unknown_field`, `field` is the key the caller sent, not a declared screen field name. Set with that code only. A transport serves it as `error.details.fields` |
12271227
| **status** | `Enum<'completed' \| 'paused' \| 'failed' \| 'stranded' \| 'refused'>` | optional | Lifecycle status. `paused` means the run suspended at a node and can be continued with the resume route. Absent or `completed`/`failed`/`stranded`/`refused` means the run reached a terminal state. `refused` is a first-class refusal: the flow reached an `end` node declaring `outcome: 'refused'` — a successful evaluation that said no, so `success` is true, `successMessage` is absent and the per-record reason is on `refusalMessage`; a runner shows it with Close only. `stranded` is the terminally-failed-but-repairable run: a resume consumed the suspension and a downstream node threw, so the run is recorded as failed and can be re-armed only by an explicit operator verb - never by the resume route, which answers RUN_NOT_FOUND for it. |
12281228
| **runId** | `string` | optional | Run id - set when `status` is `paused`, so callers can resume it |
12291229
| **screen** | `{ nodeId: string; title?: string; description?: string; fields: object[]; … }` | optional | The screen to render - set when the run paused at a `screen` node awaiting user input. The client collects values for `screen.fields` and resumes the run with them. |

0 commit comments

Comments
 (0)