Skip to content

Commit 5107a88

Browse files
committed
docs(spec): regenerate the error-code ledger references
Claude-Session: https://claude.ai/code/session_01D6F9axfoPzR7t8G1J7Ytzz Co-authored-by: Claude <noreply@anthropic.com>
1 parent e68fe44 commit 5107a88

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

‎content/docs/references/api/contract.mdx‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const result = ApiErrorSchema.parse(data);
2828

2929
| Property | Type | Required | Description |
3030
| :--- | :--- | :--- | :--- |
31-
| **code** | `Enum<'VALIDATION_ERROR' \| 'INVALID_FIELD' \| 'MISSING_REQUIRED_FIELD' \| 'INVALID_FORMAT' \| 'VALUE_TOO_LONG' \| 'VALUE_TOO_SHORT' \| 'VALUE_OUT_OF_RANGE' \| … +340 more>` | ✅ | Error code (e.g. VALIDATION_ERROR; StandardErrorCode ∪ the ledger the serving side registers — ERROR_CODE_LEDGER for framework packages) |
31+
| **code** | `Enum<'VALIDATION_ERROR' \| 'INVALID_FIELD' \| 'MISSING_REQUIRED_FIELD' \| 'INVALID_FORMAT' \| 'VALUE_TOO_LONG' \| 'VALUE_TOO_SHORT' \| 'VALUE_OUT_OF_RANGE' \| … +341 more>` | ✅ | Error code (e.g. VALIDATION_ERROR; StandardErrorCode ∪ the ledger the serving side registers — ERROR_CODE_LEDGER for framework packages) |
3232
| **declaredCode** | `string` | optional | The producer-declared code, verbatim, when it is not a member of the closed `code` vocabulary — the open, author-authored channel (app-specific spellings; ADR-0112) |
3333
| **message** | `string` | ✅ | Readable error message |
3434
| **userMessage** | `string` | optional | Producer-marked user-facing refusal text, verbatim. Present exactly when the producer opted in at throw time; consumers render it to end users and keep their generic substitution for anything unmarked. Status-agnostic; never replaces `message`. |
@@ -356,6 +356,7 @@ const result = ApiErrorSchema.parse(data);
356356
* `STACK_SINGLE_APP_VIOLATION`
357357
* `STACK_TRIGGER_CAPABILITY_REQUIRED`
358358
* `STACK_UNMANAGED_INSTALL_UNCOPYABLE`
359+
* `STACK_WEBHOOK_CAPABILITY_REQUIRED`
359360
* `STORED_TYPE_NOT_CANONICAL`
360361
* `STORE_UNAVAILABLE`
361362
* `SUGGESTION_CONFIRM_FAILED`

‎content/docs/references/api/error-code-ledger.mdx‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -523,6 +523,7 @@ const result = ErrorCode.parse(data);
523523
* `STACK_SINGLE_APP_VIOLATION`
524524
* `STACK_TRIGGER_CAPABILITY_REQUIRED`
525525
* `STACK_UNMANAGED_INSTALL_UNCOPYABLE`
526+
* `STACK_WEBHOOK_CAPABILITY_REQUIRED`
526527
* `STORED_TYPE_NOT_CANONICAL`
527528
* `STORE_UNAVAILABLE`
528529
* `SUGGESTION_CONFIRM_FAILED`

0 commit comments

Comments
 (0)