@constructive-io/errors 0.20.0 → 0.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * GENERATED FILE — DO NOT EDIT BY HAND.
3
3
  *
4
- * Source of truth: the constructive-db error audit (824 distinct codes
4
+ * Source of truth: the constructive-db error audit (816 distinct codes
5
5
  * raised via EXCEPTION/THROW across deploy sources + generated output).
6
6
  * Regenerate with `python3 scripts/generate-registry.py` (see README.md).
7
7
  *
@@ -9,7 +9,7 @@
9
9
  * codes carry their raw message (with %-args rendered as {{argN}}). Curated
10
10
  * entries in `registry.ts` override anything here (typed context + refined copy).
11
11
  *
12
- * Counts: 824 total, 604 public, 220 internal.
12
+ * Counts: 816 total, 600 public, 216 internal.
13
13
  */
14
14
  import { type DefinedError } from '../define';
15
15
  import type { ErrorContext } from '../types';
@@ -24,4 +24,4 @@ export declare const generatedRegistry: Record<string, DefinedError<ErrorContext
24
24
  /** Audit metadata for each generated code. */
25
25
  export declare const GENERATED_CODE_META: Record<string, GeneratedCodeMeta>;
26
26
  /** Total number of codes collected from constructive-db. */
27
- export declare const GENERATED_CODE_COUNT = 824;
27
+ export declare const GENERATED_CODE_COUNT = 816;
@@ -2,7 +2,7 @@
2
2
  /**
3
3
  * GENERATED FILE — DO NOT EDIT BY HAND.
4
4
  *
5
- * Source of truth: the constructive-db error audit (824 distinct codes
5
+ * Source of truth: the constructive-db error audit (816 distinct codes
6
6
  * raised via EXCEPTION/THROW across deploy sources + generated output).
7
7
  * Regenerate with `python3 scripts/generate-registry.py` (see README.md).
8
8
  *
@@ -10,7 +10,7 @@
10
10
  * codes carry their raw message (with %-args rendered as {{argN}}). Curated
11
11
  * entries in `registry.ts` override anything here (typed context + refined copy).
12
12
  *
13
- * Counts: 824 total, 604 public, 220 internal.
13
+ * Counts: 816 total, 600 public, 216 internal.
14
14
  */
15
15
  import { defineError } from '../define';
16
16
  /** Every constructive-db error code, keyed by code. */
@@ -19,9 +19,7 @@ export const generatedRegistry = {
19
19
  'ACCOUNT_EXISTS': defineError({ code: 'ACCOUNT_EXISTS', class: 'public', http: 409, message: 'Account exists.' }),
20
20
  'ACCOUNT_LOCKED_EXCEED_ATTEMPTS': defineError({ code: 'ACCOUNT_LOCKED_EXCEED_ATTEMPTS', class: 'public', http: 423, message: 'Account locked exceed attempts.' }),
21
21
  'ACCOUNT_NOT_FOUND': defineError({ code: 'ACCOUNT_NOT_FOUND', class: 'public', http: 404, message: 'Account not found.' }),
22
- 'ACTOR_CLAIM_REQUIRED': defineError({ code: 'ACTOR_CLAIM_REQUIRED', class: 'internal', http: 500, message: 'Actor claim required.' }),
23
22
  'ALREADY_AUTHENTICATED_USE_LINK': defineError({ code: 'ALREADY_AUTHENTICATED_USE_LINK', class: 'public', http: 409, message: 'Already authenticated use link.' }),
24
- 'ALREADY_SCHEDULED': defineError({ code: 'ALREADY_SCHEDULED', class: 'public', http: 409, message: 'Already scheduled.' }),
25
23
  'ALTER_TABLE_ADD_COLUMN': defineError({ code: 'ALTER_TABLE_ADD_COLUMN', class: 'internal', http: 500, message: 'ALTER_TABLE_ADD_COLUMN: a column cannot be both generated and an identity column' }),
26
24
  'API_KEYS_DISABLED': defineError({ code: 'API_KEYS_DISABLED', class: 'public', http: 403, message: 'Api keys disabled.' }),
27
25
  'API_KEY_LIMIT_REACHED': defineError({ code: 'API_KEY_LIMIT_REACHED', class: 'public', http: 429, message: 'Api key limit reached.' }),
@@ -38,7 +36,6 @@ export const generatedRegistry = {
38
36
  'AST_OPTIONS_NOT_OBJECT': defineError({ code: 'AST_OPTIONS_NOT_OBJECT', class: 'internal', http: 500, message: 'Ast options not object.' }),
39
37
  'AST_OPTION_REQUIRED': defineError({ code: 'AST_OPTION_REQUIRED', class: 'internal', http: 500, message: 'Ast option required.' }),
40
38
  'AST_OPTION_UNKNOWN': defineError({ code: 'AST_OPTION_UNKNOWN', class: 'internal', http: 500, message: 'Ast option unknown.' }),
41
- 'ATTRIBUTION_REQUIRED': defineError({ code: 'ATTRIBUTION_REQUIRED', class: 'internal', http: 500, message: 'Attribution required.' }),
42
39
  'AUTHZ_COLUMN_SECURITY_AUTHZ_NODE_REQUIRED': defineError({ code: 'AUTHZ_COLUMN_SECURITY_AUTHZ_NODE_REQUIRED', class: 'public', http: 400, message: 'Authz column security authz node required.' }),
43
40
  'AUTHZ_COLUMN_SECURITY_COLUMNS_REQUIRED': defineError({ code: 'AUTHZ_COLUMN_SECURITY_COLUMNS_REQUIRED', class: 'public', http: 400, message: 'Authz column security columns required.' }),
44
41
  'AUTHZ_COLUMN_SECURITY_COLUMN_NOT_FOUND': defineError({ code: 'AUTHZ_COLUMN_SECURITY_COLUMN_NOT_FOUND', class: 'public', http: 404, message: 'Authz column security column not found.' }),
@@ -74,6 +71,7 @@ export const generatedRegistry = {
74
71
  'BAD_RLS_EXPRESSION': defineError({ code: 'BAD_RLS_EXPRESSION', class: 'public', http: 400, message: 'Bad rls expression.' }),
75
72
  'BAD_VIEW_EXPRESSION': defineError({ code: 'BAD_VIEW_EXPRESSION', class: 'public', http: 400, message: 'Bad view expression.' }),
76
73
  'BEHAVIOR_FRAGMENT_EMPTY': defineError({ code: 'BEHAVIOR_FRAGMENT_EMPTY', class: 'internal', http: 500, message: 'Behavior fragment empty.' }),
74
+ 'BILLING_CHECKOUT_BINDING_INVALID': defineError({ code: 'BILLING_CHECKOUT_BINDING_INVALID', class: 'internal', http: 500, message: 'Billing checkout binding invalid.' }),
77
75
  'BILLING_DISPUTE_BALANCE_NOT_FOUND': defineError({ code: 'BILLING_DISPUTE_BALANCE_NOT_FOUND', class: 'internal', http: 500, message: 'Billing dispute balance not found.' }),
78
76
  'BILLING_ENTITY_BUSY': defineError({ code: 'BILLING_ENTITY_BUSY', class: 'public', http: 400, message: 'Billing entity busy.' }),
79
77
  'BILLING_HEALTH_INVALID': defineError({ code: 'BILLING_HEALTH_INVALID', class: 'internal', http: 500, message: 'Billing health invalid.' }),
@@ -84,14 +82,17 @@ export const generatedRegistry = {
84
82
  'BILLING_OPERATION_NOT_FOUND': defineError({ code: 'BILLING_OPERATION_NOT_FOUND', class: 'internal', http: 500, message: 'Billing operation not found.' }),
85
83
  'BILLING_OPERATION_SETTLED': defineError({ code: 'BILLING_OPERATION_SETTLED', class: 'internal', http: 500, message: 'Billing operation settled.' }),
86
84
  'BILLING_OPERATION_STATE_INVALID': defineError({ code: 'BILLING_OPERATION_STATE_INVALID', class: 'internal', http: 500, message: 'Billing operation state invalid.' }),
85
+ 'BILLING_QUOTA_EXCEEDED': defineError({ code: 'BILLING_QUOTA_EXCEEDED', class: 'public', http: 400, message: 'Billing quota exceeded.' }),
87
86
  'BILLING_RECONCILE_BOUNDS_REQUIRED': defineError({ code: 'BILLING_RECONCILE_BOUNDS_REQUIRED', class: 'internal', http: 500, message: 'Billing reconcile bounds required.' }),
88
87
  'BILLING_SCHEDULED_CHANGE_INVALID': defineError({ code: 'BILLING_SCHEDULED_CHANGE_INVALID', class: 'internal', http: 500, message: 'Billing scheduled change invalid.' }),
88
+ 'BILLING_SUBSCRIPTION_ACTIVE': defineError({ code: 'BILLING_SUBSCRIPTION_ACTIVE', class: 'public', http: 400, message: 'Billing subscription active.' }),
89
89
  'BLUEPRINT_MODULE_NOT_INSTALLED': defineError({ code: 'BLUEPRINT_MODULE_NOT_INSTALLED', class: 'public', http: 400, message: 'Blueprint module not installed.' }),
90
90
  'BLUEPRINT_MODULE_REF_AMBIGUOUS': defineError({ code: 'BLUEPRINT_MODULE_REF_AMBIGUOUS', class: 'public', http: 400, message: 'Blueprint module ref ambiguous.' }),
91
91
  'BLUEPRINT_MODULE_REF_INVALID': defineError({ code: 'BLUEPRINT_MODULE_REF_INVALID', class: 'public', http: 400, message: 'Blueprint module ref invalid.' }),
92
92
  'BLUEPRINT_MODULE_TABLE_UNKNOWN': defineError({ code: 'BLUEPRINT_MODULE_TABLE_UNKNOWN', class: 'public', http: 400, message: 'Blueprint module table unknown.' }),
93
93
  'BM25': defineError({ code: 'BM25', class: 'public', http: 400, message: 'Bm25.' }),
94
94
  'BOOTSTRAP_DATABASE_MISSING': defineError({ code: 'BOOTSTRAP_DATABASE_MISSING', class: 'internal', http: 500, message: 'Bootstrap database missing.' }),
95
+ 'BOOTSTRAP_OWNER_NOT_ACTIVE': defineError({ code: 'BOOTSTRAP_OWNER_NOT_ACTIVE', class: 'internal', http: 500, message: 'Bootstrap owner not active.' }),
95
96
  'BOOTSTRAP_SOURCE_MISSING': defineError({ code: 'BOOTSTRAP_SOURCE_MISSING', class: 'internal', http: 500, message: 'Bootstrap source missing.' }),
96
97
  'BOOTSTRAP_TARGET_NOT_EMPTY': defineError({ code: 'BOOTSTRAP_TARGET_NOT_EMPTY', class: 'internal', http: 500, message: 'Bootstrap target not empty.' }),
97
98
  'BUILD_CONDITION_EXPR': defineError({ code: 'BUILD_CONDITION_EXPR', class: 'internal', http: 500, message: 'Build condition expr.' }),
@@ -137,6 +138,7 @@ export const generatedRegistry = {
137
138
  'CONSTRUCT_BLUEPRINT_PROVISIONS_WITHOUT_MODULE': defineError({ code: 'CONSTRUCT_BLUEPRINT_PROVISIONS_WITHOUT_MODULE', class: 'public', http: 400, message: 'Construct blueprint provisions without module.' }),
138
139
  'CONSTRUCT_BLUEPRINT_SCHEMA_NOT_FOUND': defineError({ code: 'CONSTRUCT_BLUEPRINT_SCHEMA_NOT_FOUND', class: 'internal', http: 500, message: 'Construct blueprint schema not found.' }),
139
140
  'CONSTRUCT_BLUEPRINT_STORAGE_ORG_MEMBERSHIP_NOT_FOUND': defineError({ code: 'CONSTRUCT_BLUEPRINT_STORAGE_ORG_MEMBERSHIP_NOT_FOUND', class: 'internal', http: 500, message: 'Construct blueprint storage org membership not found.' }),
141
+ 'CONSTRUCT_BLUEPRINT_TABLES_ORG_MEMBERSHIP_NOT_FOUND': defineError({ code: 'CONSTRUCT_BLUEPRINT_TABLES_ORG_MEMBERSHIP_NOT_FOUND', class: 'internal', http: 500, message: 'Construct blueprint tables org membership not found.' }),
140
142
  'CONST_TYPE_FIELDS_IMMUTABLE': defineError({ code: 'CONST_TYPE_FIELDS_IMMUTABLE', class: 'public', http: 403, message: 'Const type fields immutable.' }),
141
143
  'CONTENT_PRESET_CATALOG_MISSING': defineError({ code: 'CONTENT_PRESET_CATALOG_MISSING', class: 'internal', http: 500, message: 'Content preset catalog missing.' }),
142
144
  'CONTENT_PRESET_EMPTY': defineError({ code: 'CONTENT_PRESET_EMPTY', class: 'public', http: 400, message: 'Content preset empty.' }),
@@ -156,7 +158,6 @@ export const generatedRegistry = {
156
158
  'CROSS_DATABASE_CHECK': defineError({ code: 'CROSS_DATABASE_CHECK', class: 'public', http: 400, message: 'Cross database check.' }),
157
159
  'CROSS_DATABASE_REF': defineError({ code: 'CROSS_DATABASE_REF', class: 'public', http: 400, message: 'Cross database ref.' }),
158
160
  'CSRF_TOKEN_REQUIRED': defineError({ code: 'CSRF_TOKEN_REQUIRED', class: 'public', http: 401, message: 'Csrf token required.' }),
159
- 'DATABASE_CLAIM_REQUIRED': defineError({ code: 'DATABASE_CLAIM_REQUIRED', class: 'internal', http: 500, message: 'Database claim required.' }),
160
161
  'DATABASE_FIELD_RESERVED_WORD': defineError({ code: 'DATABASE_FIELD_RESERVED_WORD', class: 'public', http: 400, message: 'Database field reserved word.' }),
161
162
  'DATABASE_FUNCTION_RESERVED_WORD': defineError({ code: 'DATABASE_FUNCTION_RESERVED_WORD', class: 'public', http: 400, message: 'Database function reserved word.' }),
162
163
  'DATABASE_HOSTNAME_IDENTITY_AMBIGUOUS': defineError({ code: 'DATABASE_HOSTNAME_IDENTITY_AMBIGUOUS', class: 'public', http: 400, message: 'Database hostname identity ambiguous.' }),
@@ -169,7 +170,7 @@ export const generatedRegistry = {
169
170
  'DATABASE_TRANSFER_NOT_PENDING': defineError({ code: 'DATABASE_TRANSFER_NOT_PENDING', class: 'public', http: 400, message: 'Database transfer not pending.' }),
170
171
  'DATABASE_TRANSFER_NOT_SOURCE_OWNER': defineError({ code: 'DATABASE_TRANSFER_NOT_SOURCE_OWNER', class: 'public', http: 400, message: 'Database transfer not source owner.' }),
171
172
  'DATABASE_TRANSFER_NOT_TARGET_OWNER': defineError({ code: 'DATABASE_TRANSFER_NOT_TARGET_OWNER', class: 'public', http: 400, message: 'Database transfer not target owner.' }),
172
- 'DATA_BILLING_METER': defineError({ code: 'DATA_BILLING_METER', class: 'internal', http: 500, message: 'DATA_BILLING_METER: unknown event {{arg0}}, expected INSERT, DELETE, or UPDATE', positional: ['arg0'] }),
173
+ 'DATA_BILLING_METER': defineError({ code: 'DATA_BILLING_METER', class: 'internal', http: 500, message: 'DATA_BILLING_METER: unknown event {{arg0}}, expected INSERT, DELETE, UPDATE, GATE or GATE_UPDATE', positional: ['arg0'] }),
173
174
  'DATA_COMPOSITE_FIELD_PRIVATE_SCHEMA_NOT_FOUND': defineError({ code: 'DATA_COMPOSITE_FIELD_PRIVATE_SCHEMA_NOT_FOUND', class: 'public', http: 404, message: 'Data composite field private schema not found.' }),
174
175
  'DATA_COMPOSITE_FIELD_SOURCE_FIELDS_EMPTY': defineError({ code: 'DATA_COMPOSITE_FIELD_SOURCE_FIELDS_EMPTY', class: 'public', http: 400, message: 'Data composite field source fields empty.' }),
175
176
  'DATA_COMPOSITE_FIELD_SOURCE_FIELDS_REQUIRED': defineError({ code: 'DATA_COMPOSITE_FIELD_SOURCE_FIELDS_REQUIRED', class: 'public', http: 400, message: 'Data composite field source fields required.' }),
@@ -306,11 +307,9 @@ export const generatedRegistry = {
306
307
  'DOMAIN_VERIFY_BAD_METHOD': defineError({ code: 'DOMAIN_VERIFY_BAD_METHOD', class: 'internal', http: 500, message: 'DOMAIN_VERIFY_BAD_METHOD: unsupported verification method {{arg0}}', positional: ['arg0'] }),
307
308
  'DOMAIN_VERIFY_NO_CHALLENGE': defineError({ code: 'DOMAIN_VERIFY_NO_CHALLENGE', class: 'internal', http: 500, message: 'DOMAIN_VERIFY_NO_CHALLENGE: no outstanding {{arg0}} challenge for managed_domain {{arg1}}', positional: ['arg0', 'arg1'] }),
308
309
  'EMAIL_NOT_VERIFIED': defineError({ code: 'EMAIL_NOT_VERIFIED', class: 'public', http: 400, message: 'Email not verified.' }),
309
- 'ENTITY_CLAIM_REQUIRED': defineError({ code: 'ENTITY_CLAIM_REQUIRED', class: 'internal', http: 500, message: 'Entity claim required.' }),
310
310
  'ENTITY_ID_REQUIRED': defineError({ code: 'ENTITY_ID_REQUIRED', class: 'public', http: 400, message: 'Entity id required.' }),
311
311
  'ENTITY_NOT_FOUND': defineError({ code: 'ENTITY_NOT_FOUND', class: 'public', http: 404, message: 'Entity not found.' }),
312
312
  'ENTITY_REQUIRED': defineError({ code: 'ENTITY_REQUIRED', class: 'internal', http: 500, message: 'Entity required.' }),
313
- 'ENTITY_TYPE_CLAIM_REQUIRED': defineError({ code: 'ENTITY_TYPE_CLAIM_REQUIRED', class: 'internal', http: 500, message: 'Entity type claim required.' }),
314
313
  'ENTITY_TYPE_MISMATCH': defineError({ code: 'ENTITY_TYPE_MISMATCH', class: 'public', http: 400, message: 'Entity type mismatch.' }),
315
314
  'ENTITY_TYPE_NOT_FOUND': defineError({ code: 'ENTITY_TYPE_NOT_FOUND', class: 'public', http: 404, message: 'Entity type not found.' }),
316
315
  'ENTITY_TYPE_PROVISION': defineError({ code: 'ENTITY_TYPE_PROVISION', class: 'internal', http: 500, message: 'Entity type provision.' }),
@@ -353,7 +352,6 @@ export const generatedRegistry = {
353
352
  'FILE_REF_FIELD': defineError({ code: 'FILE_REF_FIELD', class: 'internal', http: 500, message: 'File ref field.' }),
354
353
  'FORBIDDEN': defineError({ code: 'FORBIDDEN', class: 'public', http: 403, message: 'Forbidden.' }),
355
354
  'FOREIGN_KEY_CONSTRAINT_NOT_FOUND': defineError({ code: 'FOREIGN_KEY_CONSTRAINT_NOT_FOUND', class: 'internal', http: 500, message: 'Foreign key constraint not found.' }),
356
- 'FREE_PLAN_REQUIRED': defineError({ code: 'FREE_PLAN_REQUIRED', class: 'internal', http: 500, message: 'Free plan required.' }),
357
355
  'FUNCTION_BODY_DEPARSE_EMPTY': defineError({ code: 'FUNCTION_BODY_DEPARSE_EMPTY', class: 'internal', http: 500, message: 'Function body deparse empty.' }),
358
356
  'FUNCTION_ENVELOPE_VIOLATION': defineError({ code: 'FUNCTION_ENVELOPE_VIOLATION', class: 'internal', http: 500, message: 'Function envelope violation.' }),
359
357
  'FUNCTION_GRAPH_NOT_FOUND': defineError({ code: 'FUNCTION_GRAPH_NOT_FOUND', class: 'internal', http: 500, message: 'Function graph not found.' }),
@@ -465,7 +463,6 @@ export const generatedRegistry = {
465
463
  'INVALID_PAYLOAD_REF': defineError({ code: 'INVALID_PAYLOAD_REF', class: 'public', http: 400, message: 'Invalid payload ref.' }),
466
464
  'INVALID_TOKEN': defineError({ code: 'INVALID_TOKEN', class: 'public', http: 401, message: 'Invalid token.' }),
467
465
  'INVALID_USER': defineError({ code: 'INVALID_USER', class: 'public', http: 400, message: 'Invalid user.' }),
468
- 'INVALID_WORKER_ID': defineError({ code: 'INVALID_WORKER_ID', class: 'internal', http: 500, message: 'Invalid worker id.' }),
469
466
  'INVITE_ACCOUNT_EXISTS_UNVERIFIED': defineError({ code: 'INVITE_ACCOUNT_EXISTS_UNVERIFIED', class: 'public', http: 400, message: 'Invite account exists unverified.' }),
470
467
  'INVITE_ADDRESS_REQUIRED': defineError({ code: 'INVITE_ADDRESS_REQUIRED', class: 'public', http: 400, message: 'Invite address required.' }),
471
468
  'INVITE_EMAIL_NOT_FOUND': defineError({ code: 'INVITE_EMAIL_NOT_FOUND', class: 'public', http: 404, message: 'Invite email not found.' }),
@@ -584,6 +581,7 @@ export const generatedRegistry = {
584
581
  'OWNER_FIELD_NOT_FOUND': defineError({ code: 'OWNER_FIELD_NOT_FOUND', class: 'public', http: 404, message: 'Owner field not found.' }),
585
582
  'OWNER_FIELD_NOT_IN_OWNER_TABLE': defineError({ code: 'OWNER_FIELD_NOT_IN_OWNER_TABLE', class: 'public', http: 400, message: 'Owner field not in owner table.' }),
586
583
  'PAGES_MODULE': defineError({ code: 'PAGES_MODULE', class: 'internal', http: 500, message: 'Pages module.' }),
584
+ 'PARENT_CURSOR_NOT_ADVANCED': defineError({ code: 'PARENT_CURSOR_NOT_ADVANCED', class: 'public', http: 400, message: 'Parent cursor not advanced.' }),
587
585
  'PARENT_ENTITY_TYPE_NOT_FOUND': defineError({ code: 'PARENT_ENTITY_TYPE_NOT_FOUND', class: 'public', http: 404, message: 'Parent entity type not found.' }),
588
586
  'PARENT_EXECUTION_NOT_FOUND': defineError({ code: 'PARENT_EXECUTION_NOT_FOUND', class: 'internal', http: 500, message: 'Parent execution not found.' }),
589
587
  'PASSWORD_INSECURE': defineError({ code: 'PASSWORD_INSECURE', class: 'public', http: 400, message: 'Password insecure.' }),
@@ -669,6 +667,9 @@ export const generatedRegistry = {
669
667
  'ROUTING_API_TABLES_SCOPE_REQUIRED': defineError({ code: 'ROUTING_API_TABLES_SCOPE_REQUIRED', class: 'public', http: 400, message: 'Routing api tables scope required.' }),
670
668
  'ROUTING_SURFACE_NOT_PROVISIONED': defineError({ code: 'ROUTING_SURFACE_NOT_PROVISIONED', class: 'public', http: 400, message: 'Routing surface not provisioned.' }),
671
669
  'ROW_LOCKED': defineError({ code: 'ROW_LOCKED', class: 'public', http: 423, message: 'Row locked.' }),
670
+ 'SCHEDULE_FANOUT_LANE_INVALID': defineError({ code: 'SCHEDULE_FANOUT_LANE_INVALID', class: 'internal', http: 500, message: 'Schedule fanout lane invalid.' }),
671
+ 'SCHEDULE_FANOUT_TASK_NOT_ALLOWED': defineError({ code: 'SCHEDULE_FANOUT_TASK_NOT_ALLOWED', class: 'internal', http: 500, message: 'Schedule fanout task not allowed.' }),
672
+ 'SCHEDULE_FANOUT_TENANTS_PER_LANE_INVALID': defineError({ code: 'SCHEDULE_FANOUT_TENANTS_PER_LANE_INVALID', class: 'internal', http: 500, message: 'Schedule fanout tenants per lane invalid.' }),
672
673
  'SCOPE_TYPE_BACKFILL': defineError({ code: 'SCOPE_TYPE_BACKFILL', class: 'internal', http: 500, message: 'SCOPE_TYPE_BACKFILL: the membership types table must be resolved before generating a statement' }),
673
674
  'SCOPE_TYPE_SYNC': defineError({ code: 'SCOPE_TYPE_SYNC', class: 'internal', http: 500, message: 'SCOPE_TYPE_SYNC: the scope type projection must be resolved before generating a body' }),
674
675
  'SEARCH_BM25': defineError({ code: 'SEARCH_BM25', class: 'public', http: 400, message: 'Search bm25.' }),
@@ -750,16 +751,14 @@ export const generatedRegistry = {
750
751
  'SSO_STATE_TTL_INVALID': defineError({ code: 'SSO_STATE_TTL_INVALID', class: 'internal', http: 500, message: 'Sso state ttl invalid.' }),
751
752
  'STATIC_SITES_LIMIT': defineError({ code: 'STATIC_SITES_LIMIT', class: 'public', http: 429, message: 'Static sites limit.' }),
752
753
  'STEP_UP_INVALID_TYPE': defineError({ code: 'STEP_UP_INVALID_TYPE', class: 'public', http: 403, message: 'This action requires verification that is not configured correctly. Please contact support.' }),
753
- 'STEP_UP_REQUIRED': defineError({ code: 'STEP_UP_REQUIRED', class: 'public', http: 403, message: 'Step up required.' }),
754
754
  'STEP_UP_REQUIRED_FRESH_AUTH': defineError({ code: 'STEP_UP_REQUIRED_FRESH_AUTH', class: 'public', http: 403, message: 'Please verify your identity to continue.' }),
755
755
  'STEP_UP_REQUIRED_MFA': defineError({ code: 'STEP_UP_REQUIRED_MFA', class: 'public', http: 403, message: 'Please enter a code from your authenticator app to continue.' }),
756
756
  'STEP_UP_REQUIRED_PASSWORD': defineError({ code: 'STEP_UP_REQUIRED_PASSWORD', class: 'public', http: 403, message: 'Please re-enter your password to continue.' }),
757
- 'STORAGE_ACCESS_CLAIM_MISMATCH': defineError({ code: 'STORAGE_ACCESS_CLAIM_MISMATCH', class: 'public', http: 400, message: 'Storage access claim mismatch.' }),
757
+ 'STEP_UP_REQUIRED_PASSWORD_OR_MFA': defineError({ code: 'STEP_UP_REQUIRED_PASSWORD_OR_MFA', class: 'public', http: 403, message: 'Please re-enter your password or enter a code from your authenticator app to continue.' }),
758
758
  'STORAGE_API_NOT_PROVISIONED': defineError({ code: 'STORAGE_API_NOT_PROVISIONED', class: 'public', http: 400, message: 'Storage api not provisioned.' }),
759
759
  'STORAGE_DESTINATION_REQUIRES_TEMP': defineError({ code: 'STORAGE_DESTINATION_REQUIRES_TEMP', class: 'internal', http: 500, message: 'Storage destination requires temp.' }),
760
760
  'STORAGE_FILE_BUCKET_IMMUTABLE': defineError({ code: 'STORAGE_FILE_BUCKET_IMMUTABLE', class: 'internal', http: 500, message: 'Storage file bucket immutable.' }),
761
761
  'STORAGE_FILE_KEY_IMMUTABLE': defineError({ code: 'STORAGE_FILE_KEY_IMMUTABLE', class: 'internal', http: 500, message: 'Storage file key immutable.' }),
762
- 'STORAGE_FILE_NOT_FOUND': defineError({ code: 'STORAGE_FILE_NOT_FOUND', class: 'public', http: 404, message: 'Storage file not found.' }),
763
762
  'STORAGE_GC_CONTENT_HASH_UNSUPPORTED': defineError({ code: 'STORAGE_GC_CONTENT_HASH_UNSUPPORTED', class: 'internal', http: 500, message: 'Storage gc content hash unsupported.' }),
764
763
  'STORAGE_GC_FILES_TABLE_MISSING': defineError({ code: 'STORAGE_GC_FILES_TABLE_MISSING', class: 'internal', http: 500, message: 'Storage gc files table missing.' }),
765
764
  'STORAGE_GC_MODULE_AMBIGUOUS': defineError({ code: 'STORAGE_GC_MODULE_AMBIGUOUS', class: 'internal', http: 500, message: 'Storage gc module ambiguous.' }),
@@ -769,15 +768,8 @@ export const generatedRegistry = {
769
768
  'STORAGE_GC_REF_CROSS_DATABASE': defineError({ code: 'STORAGE_GC_REF_CROSS_DATABASE', class: 'internal', http: 500, message: 'Storage gc ref cross database.' }),
770
769
  'STORAGE_GC_REF_FIELD_MISSING': defineError({ code: 'STORAGE_GC_REF_FIELD_MISSING', class: 'internal', http: 500, message: 'Storage gc ref field missing.' }),
771
770
  'STORAGE_GC_REF_TABLE_MISSING': defineError({ code: 'STORAGE_GC_REF_TABLE_MISSING', class: 'internal', http: 500, message: 'Storage gc ref table missing.' }),
772
- 'STORAGE_INVALID_COMPLETION_RESULT': defineError({ code: 'STORAGE_INVALID_COMPLETION_RESULT', class: 'public', http: 400, message: 'Storage invalid completion result.' }),
773
- 'STORAGE_INVALID_UPLOAD_DOCUMENT': defineError({ code: 'STORAGE_INVALID_UPLOAD_DOCUMENT', class: 'internal', http: 500, message: 'Storage invalid upload document.' }),
774
- 'STORAGE_MODULE_ENTITY_FIELD_INVALID': defineError({ code: 'STORAGE_MODULE_ENTITY_FIELD_INVALID', class: 'internal', http: 500, message: 'Storage module entity field invalid.' }),
775
- 'STORAGE_MODULE_NOT_FOUND': defineError({ code: 'STORAGE_MODULE_NOT_FOUND', class: 'internal', http: 500, message: 'Storage module not found.' }),
776
- 'STORAGE_PROCESSING_CONFLICT': defineError({ code: 'STORAGE_PROCESSING_CONFLICT', class: 'public', http: 400, message: 'Storage processing conflict.' }),
777
771
  'STORAGE_PROMOTION_DESTINATION_MISMATCH': defineError({ code: 'STORAGE_PROMOTION_DESTINATION_MISMATCH', class: 'internal', http: 500, message: 'Storage promotion destination mismatch.' }),
778
772
  'STORAGE_PROMOTION_VISIBILITY_MISMATCH': defineError({ code: 'STORAGE_PROMOTION_VISIBILITY_MISMATCH', class: 'internal', http: 500, message: 'Storage promotion visibility mismatch.' }),
779
- 'STORAGE_SOURCE_HASH_MISMATCH': defineError({ code: 'STORAGE_SOURCE_HASH_MISMATCH', class: 'public', http: 400, message: 'Storage source hash mismatch.' }),
780
- 'STORAGE_SOURCE_HASH_REQUIRED': defineError({ code: 'STORAGE_SOURCE_HASH_REQUIRED', class: 'public', http: 400, message: 'Storage source hash required.' }),
781
773
  'STORAGE_STAGING_BUCKET_NO_DESTINATION': defineError({ code: 'STORAGE_STAGING_BUCKET_NO_DESTINATION', class: 'internal', http: 500, message: 'Storage staging bucket no destination.' }),
782
774
  'STORAGE_STAGING_BUCKET_NO_TTL': defineError({ code: 'STORAGE_STAGING_BUCKET_NO_TTL', class: 'internal', http: 500, message: 'Storage staging bucket no ttl.' }),
783
775
  'STORAGE_STAGING_DESTINATION_INVALID': defineError({ code: 'STORAGE_STAGING_DESTINATION_INVALID', class: 'internal', http: 500, message: 'Storage staging destination invalid.' }),
@@ -846,9 +838,7 @@ export const GENERATED_CODE_META = {
846
838
  'ACCOUNT_EXISTS': { class: 'public', dynamic: false, generatedOnly: false },
847
839
  'ACCOUNT_LOCKED_EXCEED_ATTEMPTS': { class: 'public', dynamic: false, generatedOnly: false },
848
840
  'ACCOUNT_NOT_FOUND': { class: 'public', dynamic: false, generatedOnly: false },
849
- 'ACTOR_CLAIM_REQUIRED': { class: 'internal', dynamic: false, generatedOnly: true },
850
841
  'ALREADY_AUTHENTICATED_USE_LINK': { class: 'public', dynamic: false, generatedOnly: false },
851
- 'ALREADY_SCHEDULED': { class: 'public', dynamic: false, generatedOnly: true },
852
842
  'ALTER_TABLE_ADD_COLUMN': { class: 'internal', dynamic: true, generatedOnly: false },
853
843
  'API_KEYS_DISABLED': { class: 'public', dynamic: false, generatedOnly: true },
854
844
  'API_KEY_LIMIT_REACHED': { class: 'public', dynamic: false, generatedOnly: false },
@@ -865,7 +855,6 @@ export const GENERATED_CODE_META = {
865
855
  'AST_OPTIONS_NOT_OBJECT': { class: 'internal', dynamic: false, generatedOnly: false },
866
856
  'AST_OPTION_REQUIRED': { class: 'internal', dynamic: false, generatedOnly: false },
867
857
  'AST_OPTION_UNKNOWN': { class: 'internal', dynamic: false, generatedOnly: false },
868
- 'ATTRIBUTION_REQUIRED': { class: 'internal', dynamic: false, generatedOnly: true },
869
858
  'AUTHZ_COLUMN_SECURITY_AUTHZ_NODE_REQUIRED': { class: 'public', dynamic: false, generatedOnly: false },
870
859
  'AUTHZ_COLUMN_SECURITY_COLUMNS_REQUIRED': { class: 'public', dynamic: false, generatedOnly: false },
871
860
  'AUTHZ_COLUMN_SECURITY_COLUMN_NOT_FOUND': { class: 'public', dynamic: false, generatedOnly: false },
@@ -901,6 +890,7 @@ export const GENERATED_CODE_META = {
901
890
  'BAD_RLS_EXPRESSION': { class: 'public', dynamic: false, generatedOnly: false },
902
891
  'BAD_VIEW_EXPRESSION': { class: 'public', dynamic: false, generatedOnly: false },
903
892
  'BEHAVIOR_FRAGMENT_EMPTY': { class: 'internal', dynamic: false, generatedOnly: false },
893
+ 'BILLING_CHECKOUT_BINDING_INVALID': { class: 'internal', dynamic: false, generatedOnly: true },
904
894
  'BILLING_DISPUTE_BALANCE_NOT_FOUND': { class: 'internal', dynamic: false, generatedOnly: false },
905
895
  'BILLING_ENTITY_BUSY': { class: 'public', dynamic: false, generatedOnly: true },
906
896
  'BILLING_HEALTH_INVALID': { class: 'internal', dynamic: false, generatedOnly: true },
@@ -911,14 +901,17 @@ export const GENERATED_CODE_META = {
911
901
  'BILLING_OPERATION_NOT_FOUND': { class: 'internal', dynamic: false, generatedOnly: true },
912
902
  'BILLING_OPERATION_SETTLED': { class: 'internal', dynamic: false, generatedOnly: true },
913
903
  'BILLING_OPERATION_STATE_INVALID': { class: 'internal', dynamic: false, generatedOnly: true },
904
+ 'BILLING_QUOTA_EXCEEDED': { class: 'public', dynamic: false, generatedOnly: false },
914
905
  'BILLING_RECONCILE_BOUNDS_REQUIRED': { class: 'internal', dynamic: false, generatedOnly: true },
915
906
  'BILLING_SCHEDULED_CHANGE_INVALID': { class: 'internal', dynamic: false, generatedOnly: true },
907
+ 'BILLING_SUBSCRIPTION_ACTIVE': { class: 'public', dynamic: false, generatedOnly: false },
916
908
  'BLUEPRINT_MODULE_NOT_INSTALLED': { class: 'public', dynamic: false, generatedOnly: false },
917
909
  'BLUEPRINT_MODULE_REF_AMBIGUOUS': { class: 'public', dynamic: false, generatedOnly: false },
918
910
  'BLUEPRINT_MODULE_REF_INVALID': { class: 'public', dynamic: false, generatedOnly: false },
919
911
  'BLUEPRINT_MODULE_TABLE_UNKNOWN': { class: 'public', dynamic: false, generatedOnly: false },
920
912
  'BM25': { class: 'public', dynamic: false, generatedOnly: false },
921
913
  'BOOTSTRAP_DATABASE_MISSING': { class: 'internal', dynamic: false, generatedOnly: false },
914
+ 'BOOTSTRAP_OWNER_NOT_ACTIVE': { class: 'internal', dynamic: false, generatedOnly: false },
922
915
  'BOOTSTRAP_SOURCE_MISSING': { class: 'internal', dynamic: false, generatedOnly: false },
923
916
  'BOOTSTRAP_TARGET_NOT_EMPTY': { class: 'internal', dynamic: false, generatedOnly: false },
924
917
  'BUILD_CONDITION_EXPR': { class: 'internal', dynamic: false, generatedOnly: false },
@@ -964,6 +957,7 @@ export const GENERATED_CODE_META = {
964
957
  'CONSTRUCT_BLUEPRINT_PROVISIONS_WITHOUT_MODULE': { class: 'public', dynamic: false, generatedOnly: false },
965
958
  'CONSTRUCT_BLUEPRINT_SCHEMA_NOT_FOUND': { class: 'internal', dynamic: false, generatedOnly: false },
966
959
  'CONSTRUCT_BLUEPRINT_STORAGE_ORG_MEMBERSHIP_NOT_FOUND': { class: 'internal', dynamic: false, generatedOnly: false },
960
+ 'CONSTRUCT_BLUEPRINT_TABLES_ORG_MEMBERSHIP_NOT_FOUND': { class: 'internal', dynamic: false, generatedOnly: false },
967
961
  'CONST_TYPE_FIELDS_IMMUTABLE': { class: 'public', dynamic: false, generatedOnly: false },
968
962
  'CONTENT_PRESET_CATALOG_MISSING': { class: 'internal', dynamic: false, generatedOnly: false },
969
963
  'CONTENT_PRESET_EMPTY': { class: 'public', dynamic: false, generatedOnly: false },
@@ -983,7 +977,6 @@ export const GENERATED_CODE_META = {
983
977
  'CROSS_DATABASE_CHECK': { class: 'public', dynamic: false, generatedOnly: false },
984
978
  'CROSS_DATABASE_REF': { class: 'public', dynamic: false, generatedOnly: false },
985
979
  'CSRF_TOKEN_REQUIRED': { class: 'public', dynamic: false, generatedOnly: false },
986
- 'DATABASE_CLAIM_REQUIRED': { class: 'internal', dynamic: false, generatedOnly: true },
987
980
  'DATABASE_FIELD_RESERVED_WORD': { class: 'public', dynamic: false, generatedOnly: false },
988
981
  'DATABASE_FUNCTION_RESERVED_WORD': { class: 'public', dynamic: false, generatedOnly: false },
989
982
  'DATABASE_HOSTNAME_IDENTITY_AMBIGUOUS': { class: 'public', dynamic: false, generatedOnly: false },
@@ -1133,11 +1126,9 @@ export const GENERATED_CODE_META = {
1133
1126
  'DOMAIN_VERIFY_BAD_METHOD': { class: 'internal', dynamic: true, generatedOnly: true },
1134
1127
  'DOMAIN_VERIFY_NO_CHALLENGE': { class: 'internal', dynamic: true, generatedOnly: true },
1135
1128
  'EMAIL_NOT_VERIFIED': { class: 'public', dynamic: false, generatedOnly: false },
1136
- 'ENTITY_CLAIM_REQUIRED': { class: 'internal', dynamic: false, generatedOnly: true },
1137
1129
  'ENTITY_ID_REQUIRED': { class: 'public', dynamic: false, generatedOnly: false },
1138
1130
  'ENTITY_NOT_FOUND': { class: 'public', dynamic: false, generatedOnly: false },
1139
1131
  'ENTITY_REQUIRED': { class: 'internal', dynamic: false, generatedOnly: false },
1140
- 'ENTITY_TYPE_CLAIM_REQUIRED': { class: 'internal', dynamic: false, generatedOnly: true },
1141
1132
  'ENTITY_TYPE_MISMATCH': { class: 'public', dynamic: false, generatedOnly: false },
1142
1133
  'ENTITY_TYPE_NOT_FOUND': { class: 'public', dynamic: false, generatedOnly: false },
1143
1134
  'ENTITY_TYPE_PROVISION': { class: 'internal', dynamic: false, generatedOnly: false },
@@ -1180,7 +1171,6 @@ export const GENERATED_CODE_META = {
1180
1171
  'FILE_REF_FIELD': { class: 'internal', dynamic: false, generatedOnly: false },
1181
1172
  'FORBIDDEN': { class: 'public', dynamic: false, generatedOnly: false },
1182
1173
  'FOREIGN_KEY_CONSTRAINT_NOT_FOUND': { class: 'internal', dynamic: false, generatedOnly: false },
1183
- 'FREE_PLAN_REQUIRED': { class: 'internal', dynamic: false, generatedOnly: false },
1184
1174
  'FUNCTION_BODY_DEPARSE_EMPTY': { class: 'internal', dynamic: false, generatedOnly: false },
1185
1175
  'FUNCTION_ENVELOPE_VIOLATION': { class: 'internal', dynamic: false, generatedOnly: false },
1186
1176
  'FUNCTION_GRAPH_NOT_FOUND': { class: 'internal', dynamic: false, generatedOnly: false },
@@ -1292,7 +1282,6 @@ export const GENERATED_CODE_META = {
1292
1282
  'INVALID_PAYLOAD_REF': { class: 'public', dynamic: false, generatedOnly: false },
1293
1283
  'INVALID_TOKEN': { class: 'public', dynamic: false, generatedOnly: false },
1294
1284
  'INVALID_USER': { class: 'public', dynamic: false, generatedOnly: false },
1295
- 'INVALID_WORKER_ID': { class: 'internal', dynamic: false, generatedOnly: true },
1296
1285
  'INVITE_ACCOUNT_EXISTS_UNVERIFIED': { class: 'public', dynamic: false, generatedOnly: false },
1297
1286
  'INVITE_ADDRESS_REQUIRED': { class: 'public', dynamic: false, generatedOnly: false },
1298
1287
  'INVITE_EMAIL_NOT_FOUND': { class: 'public', dynamic: false, generatedOnly: false },
@@ -1411,6 +1400,7 @@ export const GENERATED_CODE_META = {
1411
1400
  'OWNER_FIELD_NOT_FOUND': { class: 'public', dynamic: false, generatedOnly: false },
1412
1401
  'OWNER_FIELD_NOT_IN_OWNER_TABLE': { class: 'public', dynamic: false, generatedOnly: false },
1413
1402
  'PAGES_MODULE': { class: 'internal', dynamic: false, generatedOnly: false },
1403
+ 'PARENT_CURSOR_NOT_ADVANCED': { class: 'public', dynamic: false, generatedOnly: false },
1414
1404
  'PARENT_ENTITY_TYPE_NOT_FOUND': { class: 'public', dynamic: false, generatedOnly: false },
1415
1405
  'PARENT_EXECUTION_NOT_FOUND': { class: 'internal', dynamic: false, generatedOnly: false },
1416
1406
  'PASSWORD_INSECURE': { class: 'public', dynamic: false, generatedOnly: false },
@@ -1496,6 +1486,9 @@ export const GENERATED_CODE_META = {
1496
1486
  'ROUTING_API_TABLES_SCOPE_REQUIRED': { class: 'public', dynamic: false, generatedOnly: false },
1497
1487
  'ROUTING_SURFACE_NOT_PROVISIONED': { class: 'public', dynamic: false, generatedOnly: false },
1498
1488
  'ROW_LOCKED': { class: 'public', dynamic: false, generatedOnly: false },
1489
+ 'SCHEDULE_FANOUT_LANE_INVALID': { class: 'internal', dynamic: false, generatedOnly: false },
1490
+ 'SCHEDULE_FANOUT_TASK_NOT_ALLOWED': { class: 'internal', dynamic: false, generatedOnly: false },
1491
+ 'SCHEDULE_FANOUT_TENANTS_PER_LANE_INVALID': { class: 'internal', dynamic: false, generatedOnly: false },
1499
1492
  'SCOPE_TYPE_BACKFILL': { class: 'internal', dynamic: false, generatedOnly: false },
1500
1493
  'SCOPE_TYPE_SYNC': { class: 'internal', dynamic: true, generatedOnly: false },
1501
1494
  'SEARCH_BM25': { class: 'public', dynamic: false, generatedOnly: false },
@@ -1577,16 +1570,14 @@ export const GENERATED_CODE_META = {
1577
1570
  'SSO_STATE_TTL_INVALID': { class: 'internal', dynamic: false, generatedOnly: false },
1578
1571
  'STATIC_SITES_LIMIT': { class: 'public', dynamic: false, generatedOnly: false },
1579
1572
  'STEP_UP_INVALID_TYPE': { class: 'public', dynamic: false, generatedOnly: false },
1580
- 'STEP_UP_REQUIRED': { class: 'public', dynamic: false, generatedOnly: false },
1581
1573
  'STEP_UP_REQUIRED_FRESH_AUTH': { class: 'public', dynamic: false, generatedOnly: false },
1582
1574
  'STEP_UP_REQUIRED_MFA': { class: 'public', dynamic: false, generatedOnly: false },
1583
1575
  'STEP_UP_REQUIRED_PASSWORD': { class: 'public', dynamic: false, generatedOnly: false },
1584
- 'STORAGE_ACCESS_CLAIM_MISMATCH': { class: 'public', dynamic: false, generatedOnly: false },
1576
+ 'STEP_UP_REQUIRED_PASSWORD_OR_MFA': { class: 'public', dynamic: false, generatedOnly: false },
1585
1577
  'STORAGE_API_NOT_PROVISIONED': { class: 'public', dynamic: false, generatedOnly: false },
1586
1578
  'STORAGE_DESTINATION_REQUIRES_TEMP': { class: 'internal', dynamic: false, generatedOnly: false },
1587
1579
  'STORAGE_FILE_BUCKET_IMMUTABLE': { class: 'internal', dynamic: false, generatedOnly: false },
1588
1580
  'STORAGE_FILE_KEY_IMMUTABLE': { class: 'internal', dynamic: false, generatedOnly: false },
1589
- 'STORAGE_FILE_NOT_FOUND': { class: 'public', dynamic: false, generatedOnly: false },
1590
1581
  'STORAGE_GC_CONTENT_HASH_UNSUPPORTED': { class: 'internal', dynamic: false, generatedOnly: false },
1591
1582
  'STORAGE_GC_FILES_TABLE_MISSING': { class: 'internal', dynamic: false, generatedOnly: false },
1592
1583
  'STORAGE_GC_MODULE_AMBIGUOUS': { class: 'internal', dynamic: false, generatedOnly: false },
@@ -1596,15 +1587,8 @@ export const GENERATED_CODE_META = {
1596
1587
  'STORAGE_GC_REF_CROSS_DATABASE': { class: 'internal', dynamic: false, generatedOnly: false },
1597
1588
  'STORAGE_GC_REF_FIELD_MISSING': { class: 'internal', dynamic: false, generatedOnly: false },
1598
1589
  'STORAGE_GC_REF_TABLE_MISSING': { class: 'internal', dynamic: false, generatedOnly: false },
1599
- 'STORAGE_INVALID_COMPLETION_RESULT': { class: 'public', dynamic: false, generatedOnly: false },
1600
- 'STORAGE_INVALID_UPLOAD_DOCUMENT': { class: 'internal', dynamic: false, generatedOnly: false },
1601
- 'STORAGE_MODULE_ENTITY_FIELD_INVALID': { class: 'internal', dynamic: false, generatedOnly: false },
1602
- 'STORAGE_MODULE_NOT_FOUND': { class: 'internal', dynamic: false, generatedOnly: false },
1603
- 'STORAGE_PROCESSING_CONFLICT': { class: 'public', dynamic: false, generatedOnly: false },
1604
1590
  'STORAGE_PROMOTION_DESTINATION_MISMATCH': { class: 'internal', dynamic: false, generatedOnly: false },
1605
1591
  'STORAGE_PROMOTION_VISIBILITY_MISMATCH': { class: 'internal', dynamic: false, generatedOnly: false },
1606
- 'STORAGE_SOURCE_HASH_MISMATCH': { class: 'public', dynamic: false, generatedOnly: false },
1607
- 'STORAGE_SOURCE_HASH_REQUIRED': { class: 'public', dynamic: false, generatedOnly: false },
1608
1592
  'STORAGE_STAGING_BUCKET_NO_DESTINATION': { class: 'internal', dynamic: false, generatedOnly: false },
1609
1593
  'STORAGE_STAGING_BUCKET_NO_TTL': { class: 'internal', dynamic: false, generatedOnly: false },
1610
1594
  'STORAGE_STAGING_DESTINATION_INVALID': { class: 'internal', dynamic: false, generatedOnly: false },
@@ -1668,4 +1652,4 @@ export const GENERATED_CODE_META = {
1668
1652
  'WITH_CHECK_NOT_ALLOWED': { class: 'public', dynamic: false, generatedOnly: false },
1669
1653
  };
1670
1654
  /** Total number of codes collected from constructive-db. */
1671
- export const GENERATED_CODE_COUNT = 824;
1655
+ export const GENERATED_CODE_COUNT = 816;
package/esm/registry.d.ts CHANGED
@@ -1,10 +1,5 @@
1
1
  import type { ErrorContext, ErrorDefinition } from './types';
2
2
  export { type DefinedError, defineError } from './define';
3
- type StorageFileContext = {
4
- database_id?: string | null;
5
- file_id?: string | null;
6
- bucket_id?: string | null;
7
- };
8
3
  /**
9
4
  * The curated Constructive error registry.
10
5
  *
@@ -16,36 +11,6 @@ type StorageFileContext = {
16
11
  */
17
12
  export declare const registry: {
18
13
  readonly STORAGE_BUCKET_NOT_RECONCILED: import("./define").DefinedError<import("./types").EmptyContext>;
19
- readonly STORAGE_ACCESS_CLAIM_MISMATCH: import("./define").DefinedError<StorageFileContext>;
20
- readonly STORAGE_FILE_NOT_FOUND: import("./define").DefinedError<StorageFileContext & {
21
- bucket?: string;
22
- fileId?: string;
23
- reason?: string;
24
- }>;
25
- readonly STORAGE_SOURCE_HASH_REQUIRED: import("./define").DefinedError<StorageFileContext & {
26
- field?: string;
27
- }>;
28
- readonly STORAGE_SOURCE_HASH_MISMATCH: import("./define").DefinedError<StorageFileContext>;
29
- readonly STORAGE_INVALID_COMPLETION_RESULT: import("./define").DefinedError<StorageFileContext & {
30
- field?: string;
31
- reason?: string;
32
- cause?: string;
33
- maxBytes?: number;
34
- }>;
35
- readonly STORAGE_PROCESSING_CONFLICT: import("./define").DefinedError<StorageFileContext>;
36
- readonly STORAGE_INVALID_UPLOAD_DOCUMENT: import("./define").DefinedError<StorageFileContext>;
37
- readonly STORAGE_BUCKET_DATABASE_MISMATCH: import("./define").DefinedError<{
38
- bucket: string;
39
- capabilitiesDatabaseId?: string;
40
- bucketDatabaseId?: string;
41
- invocationDatabaseId?: string | null;
42
- reason?: string;
43
- }>;
44
- readonly STORAGE_FILE_TARGET_UNAVAILABLE: import("./define").DefinedError<{
45
- bucket: string;
46
- bucketId?: string;
47
- reason?: string;
48
- }>;
49
14
  readonly ACCOUNT_EXISTS: import("./define").DefinedError<import("./types").EmptyContext>;
50
15
  readonly ALREADY_AUTHENTICATED_USE_LINK: import("./define").DefinedError<import("./types").EmptyContext>;
51
16
  readonly IDENTIFIER_CONFLICT: import("./define").DefinedError<import("./types").EmptyContext>;
@@ -113,6 +78,7 @@ export declare const registry: {
113
78
  resource?: string;
114
79
  limit?: number;
115
80
  }>;
81
+ readonly BILLING_QUOTA_EXCEEDED: import("./define").DefinedError<import("./types").EmptyContext>;
116
82
  readonly RATE_LIMITED: import("./define").DefinedError<import("./types").EmptyContext>;
117
83
  readonly BILLING_NOT_READY: import("./define").DefinedError<{
118
84
  database_id?: string;
@@ -126,6 +92,10 @@ export declare const registry: {
126
92
  operation_id?: string;
127
93
  }>;
128
94
  readonly BILLING_OPERATION_INVALID: import("./define").DefinedError<import("./types").EmptyContext>;
95
+ readonly BILLING_SUBSCRIPTION_ACTIVE: import("./define").DefinedError<{
96
+ entity_id?: string;
97
+ external_subscription_id?: string;
98
+ }>;
129
99
  readonly UNKNOWN_METER: import("./define").DefinedError<{
130
100
  meter_slug?: string;
131
101
  }>;
package/esm/registry.js CHANGED
@@ -17,63 +17,6 @@ export const registry = {
17
17
  http: 409,
18
18
  message: 'The storage bucket has not yet been reconciled.'
19
19
  }),
20
- // File processing lifecycle — curated HTTP hints override the generated
21
- // name-based heuristic, particularly for access and processing conflicts.
22
- STORAGE_ACCESS_CLAIM_MISMATCH: defineError({
23
- code: 'STORAGE_ACCESS_CLAIM_MISMATCH',
24
- class: 'public',
25
- http: 403,
26
- message: 'You do not have permission to process this file.'
27
- }),
28
- STORAGE_FILE_NOT_FOUND: defineError({
29
- code: 'STORAGE_FILE_NOT_FOUND',
30
- class: 'public',
31
- http: 404,
32
- message: 'The file could not be found.'
33
- }),
34
- STORAGE_SOURCE_HASH_REQUIRED: defineError({
35
- code: 'STORAGE_SOURCE_HASH_REQUIRED',
36
- class: 'public',
37
- http: 400,
38
- message: 'A valid source file hash is required.'
39
- }),
40
- STORAGE_SOURCE_HASH_MISMATCH: defineError({
41
- code: 'STORAGE_SOURCE_HASH_MISMATCH',
42
- class: 'public',
43
- http: 409,
44
- message: 'The source file has changed. Please process it again.'
45
- }),
46
- STORAGE_INVALID_COMPLETION_RESULT: defineError({
47
- code: 'STORAGE_INVALID_COMPLETION_RESULT',
48
- class: 'public',
49
- http: 400,
50
- message: 'The file processing result is invalid.'
51
- }),
52
- STORAGE_PROCESSING_CONFLICT: defineError({
53
- code: 'STORAGE_PROCESSING_CONFLICT',
54
- class: 'public',
55
- http: 409,
56
- message: 'The file is not in a state that allows this processing result.'
57
- }),
58
- STORAGE_INVALID_UPLOAD_DOCUMENT: defineError({
59
- code: 'STORAGE_INVALID_UPLOAD_DOCUMENT',
60
- class: 'internal',
61
- http: 500,
62
- message: 'The stored upload document is invalid.'
63
- }),
64
- // Runtime-only dispatch errors; these have no database audit records.
65
- STORAGE_BUCKET_DATABASE_MISMATCH: defineError({
66
- code: 'STORAGE_BUCKET_DATABASE_MISMATCH',
67
- class: 'internal',
68
- http: 500,
69
- message: 'The storage bucket does not belong to the invocation database.'
70
- }),
71
- STORAGE_FILE_TARGET_UNAVAILABLE: defineError({
72
- code: 'STORAGE_FILE_TARGET_UNAVAILABLE',
73
- class: 'internal',
74
- http: 500,
75
- message: 'The storage file target is unavailable.'
76
- }),
77
20
  // ===========================================================================
78
21
  // Auth / account (public) — copy sourced from dashboard auth-errors.ts
79
22
  // ===========================================================================
@@ -424,6 +367,12 @@ export const registry = {
424
367
  message: 'You have reached a plan limit for this resource.',
425
368
  positional: ['resource', 'limit']
426
369
  }),
370
+ BILLING_QUOTA_EXCEEDED: defineError({
371
+ code: 'BILLING_QUOTA_EXCEEDED',
372
+ class: 'public',
373
+ http: 429,
374
+ message: 'You have used up your usage allowance for this resource.'
375
+ }),
427
376
  RATE_LIMITED: defineError({
428
377
  code: 'RATE_LIMITED',
429
378
  class: 'public',
@@ -457,6 +406,12 @@ export const registry = {
457
406
  http: 400,
458
407
  message: 'The billing operation request is invalid.'
459
408
  }),
409
+ BILLING_SUBSCRIPTION_ACTIVE: defineError({
410
+ code: 'BILLING_SUBSCRIPTION_ACTIVE',
411
+ class: 'public',
412
+ http: 409,
413
+ message: 'This account still has an active subscription. Cancel the subscription before deleting the account.'
414
+ }),
460
415
  UNKNOWN_METER: defineError({
461
416
  code: 'UNKNOWN_METER',
462
417
  class: 'public',
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * GENERATED FILE — DO NOT EDIT BY HAND.
3
3
  *
4
- * Source of truth: the constructive-db error audit (824 distinct codes
4
+ * Source of truth: the constructive-db error audit (816 distinct codes
5
5
  * raised via EXCEPTION/THROW across deploy sources + generated output).
6
6
  * Regenerate with `python3 scripts/generate-registry.py` (see README.md).
7
7
  *
@@ -9,7 +9,7 @@
9
9
  * codes carry their raw message (with %-args rendered as {{argN}}). Curated
10
10
  * entries in `registry.ts` override anything here (typed context + refined copy).
11
11
  *
12
- * Counts: 824 total, 604 public, 220 internal.
12
+ * Counts: 816 total, 600 public, 216 internal.
13
13
  */
14
14
  import { type DefinedError } from '../define';
15
15
  import type { ErrorContext } from '../types';
@@ -24,4 +24,4 @@ export declare const generatedRegistry: Record<string, DefinedError<ErrorContext
24
24
  /** Audit metadata for each generated code. */
25
25
  export declare const GENERATED_CODE_META: Record<string, GeneratedCodeMeta>;
26
26
  /** Total number of codes collected from constructive-db. */
27
- export declare const GENERATED_CODE_COUNT = 824;
27
+ export declare const GENERATED_CODE_COUNT = 816;
@@ -5,7 +5,7 @@ exports.GENERATED_CODE_COUNT = exports.GENERATED_CODE_META = exports.generatedRe
5
5
  /**
6
6
  * GENERATED FILE — DO NOT EDIT BY HAND.
7
7
  *
8
- * Source of truth: the constructive-db error audit (824 distinct codes
8
+ * Source of truth: the constructive-db error audit (816 distinct codes
9
9
  * raised via EXCEPTION/THROW across deploy sources + generated output).
10
10
  * Regenerate with `python3 scripts/generate-registry.py` (see README.md).
11
11
  *
@@ -13,7 +13,7 @@ exports.GENERATED_CODE_COUNT = exports.GENERATED_CODE_META = exports.generatedRe
13
13
  * codes carry their raw message (with %-args rendered as {{argN}}). Curated
14
14
  * entries in `registry.ts` override anything here (typed context + refined copy).
15
15
  *
16
- * Counts: 824 total, 604 public, 220 internal.
16
+ * Counts: 816 total, 600 public, 216 internal.
17
17
  */
18
18
  const define_1 = require("../define");
19
19
  /** Every constructive-db error code, keyed by code. */
@@ -22,9 +22,7 @@ exports.generatedRegistry = {
22
22
  'ACCOUNT_EXISTS': (0, define_1.defineError)({ code: 'ACCOUNT_EXISTS', class: 'public', http: 409, message: 'Account exists.' }),
23
23
  'ACCOUNT_LOCKED_EXCEED_ATTEMPTS': (0, define_1.defineError)({ code: 'ACCOUNT_LOCKED_EXCEED_ATTEMPTS', class: 'public', http: 423, message: 'Account locked exceed attempts.' }),
24
24
  'ACCOUNT_NOT_FOUND': (0, define_1.defineError)({ code: 'ACCOUNT_NOT_FOUND', class: 'public', http: 404, message: 'Account not found.' }),
25
- 'ACTOR_CLAIM_REQUIRED': (0, define_1.defineError)({ code: 'ACTOR_CLAIM_REQUIRED', class: 'internal', http: 500, message: 'Actor claim required.' }),
26
25
  'ALREADY_AUTHENTICATED_USE_LINK': (0, define_1.defineError)({ code: 'ALREADY_AUTHENTICATED_USE_LINK', class: 'public', http: 409, message: 'Already authenticated use link.' }),
27
- 'ALREADY_SCHEDULED': (0, define_1.defineError)({ code: 'ALREADY_SCHEDULED', class: 'public', http: 409, message: 'Already scheduled.' }),
28
26
  'ALTER_TABLE_ADD_COLUMN': (0, define_1.defineError)({ code: 'ALTER_TABLE_ADD_COLUMN', class: 'internal', http: 500, message: 'ALTER_TABLE_ADD_COLUMN: a column cannot be both generated and an identity column' }),
29
27
  'API_KEYS_DISABLED': (0, define_1.defineError)({ code: 'API_KEYS_DISABLED', class: 'public', http: 403, message: 'Api keys disabled.' }),
30
28
  'API_KEY_LIMIT_REACHED': (0, define_1.defineError)({ code: 'API_KEY_LIMIT_REACHED', class: 'public', http: 429, message: 'Api key limit reached.' }),
@@ -41,7 +39,6 @@ exports.generatedRegistry = {
41
39
  'AST_OPTIONS_NOT_OBJECT': (0, define_1.defineError)({ code: 'AST_OPTIONS_NOT_OBJECT', class: 'internal', http: 500, message: 'Ast options not object.' }),
42
40
  'AST_OPTION_REQUIRED': (0, define_1.defineError)({ code: 'AST_OPTION_REQUIRED', class: 'internal', http: 500, message: 'Ast option required.' }),
43
41
  'AST_OPTION_UNKNOWN': (0, define_1.defineError)({ code: 'AST_OPTION_UNKNOWN', class: 'internal', http: 500, message: 'Ast option unknown.' }),
44
- 'ATTRIBUTION_REQUIRED': (0, define_1.defineError)({ code: 'ATTRIBUTION_REQUIRED', class: 'internal', http: 500, message: 'Attribution required.' }),
45
42
  'AUTHZ_COLUMN_SECURITY_AUTHZ_NODE_REQUIRED': (0, define_1.defineError)({ code: 'AUTHZ_COLUMN_SECURITY_AUTHZ_NODE_REQUIRED', class: 'public', http: 400, message: 'Authz column security authz node required.' }),
46
43
  'AUTHZ_COLUMN_SECURITY_COLUMNS_REQUIRED': (0, define_1.defineError)({ code: 'AUTHZ_COLUMN_SECURITY_COLUMNS_REQUIRED', class: 'public', http: 400, message: 'Authz column security columns required.' }),
47
44
  'AUTHZ_COLUMN_SECURITY_COLUMN_NOT_FOUND': (0, define_1.defineError)({ code: 'AUTHZ_COLUMN_SECURITY_COLUMN_NOT_FOUND', class: 'public', http: 404, message: 'Authz column security column not found.' }),
@@ -77,6 +74,7 @@ exports.generatedRegistry = {
77
74
  'BAD_RLS_EXPRESSION': (0, define_1.defineError)({ code: 'BAD_RLS_EXPRESSION', class: 'public', http: 400, message: 'Bad rls expression.' }),
78
75
  'BAD_VIEW_EXPRESSION': (0, define_1.defineError)({ code: 'BAD_VIEW_EXPRESSION', class: 'public', http: 400, message: 'Bad view expression.' }),
79
76
  'BEHAVIOR_FRAGMENT_EMPTY': (0, define_1.defineError)({ code: 'BEHAVIOR_FRAGMENT_EMPTY', class: 'internal', http: 500, message: 'Behavior fragment empty.' }),
77
+ 'BILLING_CHECKOUT_BINDING_INVALID': (0, define_1.defineError)({ code: 'BILLING_CHECKOUT_BINDING_INVALID', class: 'internal', http: 500, message: 'Billing checkout binding invalid.' }),
80
78
  'BILLING_DISPUTE_BALANCE_NOT_FOUND': (0, define_1.defineError)({ code: 'BILLING_DISPUTE_BALANCE_NOT_FOUND', class: 'internal', http: 500, message: 'Billing dispute balance not found.' }),
81
79
  'BILLING_ENTITY_BUSY': (0, define_1.defineError)({ code: 'BILLING_ENTITY_BUSY', class: 'public', http: 400, message: 'Billing entity busy.' }),
82
80
  'BILLING_HEALTH_INVALID': (0, define_1.defineError)({ code: 'BILLING_HEALTH_INVALID', class: 'internal', http: 500, message: 'Billing health invalid.' }),
@@ -87,14 +85,17 @@ exports.generatedRegistry = {
87
85
  'BILLING_OPERATION_NOT_FOUND': (0, define_1.defineError)({ code: 'BILLING_OPERATION_NOT_FOUND', class: 'internal', http: 500, message: 'Billing operation not found.' }),
88
86
  'BILLING_OPERATION_SETTLED': (0, define_1.defineError)({ code: 'BILLING_OPERATION_SETTLED', class: 'internal', http: 500, message: 'Billing operation settled.' }),
89
87
  'BILLING_OPERATION_STATE_INVALID': (0, define_1.defineError)({ code: 'BILLING_OPERATION_STATE_INVALID', class: 'internal', http: 500, message: 'Billing operation state invalid.' }),
88
+ 'BILLING_QUOTA_EXCEEDED': (0, define_1.defineError)({ code: 'BILLING_QUOTA_EXCEEDED', class: 'public', http: 400, message: 'Billing quota exceeded.' }),
90
89
  'BILLING_RECONCILE_BOUNDS_REQUIRED': (0, define_1.defineError)({ code: 'BILLING_RECONCILE_BOUNDS_REQUIRED', class: 'internal', http: 500, message: 'Billing reconcile bounds required.' }),
91
90
  'BILLING_SCHEDULED_CHANGE_INVALID': (0, define_1.defineError)({ code: 'BILLING_SCHEDULED_CHANGE_INVALID', class: 'internal', http: 500, message: 'Billing scheduled change invalid.' }),
91
+ 'BILLING_SUBSCRIPTION_ACTIVE': (0, define_1.defineError)({ code: 'BILLING_SUBSCRIPTION_ACTIVE', class: 'public', http: 400, message: 'Billing subscription active.' }),
92
92
  'BLUEPRINT_MODULE_NOT_INSTALLED': (0, define_1.defineError)({ code: 'BLUEPRINT_MODULE_NOT_INSTALLED', class: 'public', http: 400, message: 'Blueprint module not installed.' }),
93
93
  'BLUEPRINT_MODULE_REF_AMBIGUOUS': (0, define_1.defineError)({ code: 'BLUEPRINT_MODULE_REF_AMBIGUOUS', class: 'public', http: 400, message: 'Blueprint module ref ambiguous.' }),
94
94
  'BLUEPRINT_MODULE_REF_INVALID': (0, define_1.defineError)({ code: 'BLUEPRINT_MODULE_REF_INVALID', class: 'public', http: 400, message: 'Blueprint module ref invalid.' }),
95
95
  'BLUEPRINT_MODULE_TABLE_UNKNOWN': (0, define_1.defineError)({ code: 'BLUEPRINT_MODULE_TABLE_UNKNOWN', class: 'public', http: 400, message: 'Blueprint module table unknown.' }),
96
96
  'BM25': (0, define_1.defineError)({ code: 'BM25', class: 'public', http: 400, message: 'Bm25.' }),
97
97
  'BOOTSTRAP_DATABASE_MISSING': (0, define_1.defineError)({ code: 'BOOTSTRAP_DATABASE_MISSING', class: 'internal', http: 500, message: 'Bootstrap database missing.' }),
98
+ 'BOOTSTRAP_OWNER_NOT_ACTIVE': (0, define_1.defineError)({ code: 'BOOTSTRAP_OWNER_NOT_ACTIVE', class: 'internal', http: 500, message: 'Bootstrap owner not active.' }),
98
99
  'BOOTSTRAP_SOURCE_MISSING': (0, define_1.defineError)({ code: 'BOOTSTRAP_SOURCE_MISSING', class: 'internal', http: 500, message: 'Bootstrap source missing.' }),
99
100
  'BOOTSTRAP_TARGET_NOT_EMPTY': (0, define_1.defineError)({ code: 'BOOTSTRAP_TARGET_NOT_EMPTY', class: 'internal', http: 500, message: 'Bootstrap target not empty.' }),
100
101
  'BUILD_CONDITION_EXPR': (0, define_1.defineError)({ code: 'BUILD_CONDITION_EXPR', class: 'internal', http: 500, message: 'Build condition expr.' }),
@@ -140,6 +141,7 @@ exports.generatedRegistry = {
140
141
  'CONSTRUCT_BLUEPRINT_PROVISIONS_WITHOUT_MODULE': (0, define_1.defineError)({ code: 'CONSTRUCT_BLUEPRINT_PROVISIONS_WITHOUT_MODULE', class: 'public', http: 400, message: 'Construct blueprint provisions without module.' }),
141
142
  'CONSTRUCT_BLUEPRINT_SCHEMA_NOT_FOUND': (0, define_1.defineError)({ code: 'CONSTRUCT_BLUEPRINT_SCHEMA_NOT_FOUND', class: 'internal', http: 500, message: 'Construct blueprint schema not found.' }),
142
143
  'CONSTRUCT_BLUEPRINT_STORAGE_ORG_MEMBERSHIP_NOT_FOUND': (0, define_1.defineError)({ code: 'CONSTRUCT_BLUEPRINT_STORAGE_ORG_MEMBERSHIP_NOT_FOUND', class: 'internal', http: 500, message: 'Construct blueprint storage org membership not found.' }),
144
+ 'CONSTRUCT_BLUEPRINT_TABLES_ORG_MEMBERSHIP_NOT_FOUND': (0, define_1.defineError)({ code: 'CONSTRUCT_BLUEPRINT_TABLES_ORG_MEMBERSHIP_NOT_FOUND', class: 'internal', http: 500, message: 'Construct blueprint tables org membership not found.' }),
143
145
  'CONST_TYPE_FIELDS_IMMUTABLE': (0, define_1.defineError)({ code: 'CONST_TYPE_FIELDS_IMMUTABLE', class: 'public', http: 403, message: 'Const type fields immutable.' }),
144
146
  'CONTENT_PRESET_CATALOG_MISSING': (0, define_1.defineError)({ code: 'CONTENT_PRESET_CATALOG_MISSING', class: 'internal', http: 500, message: 'Content preset catalog missing.' }),
145
147
  'CONTENT_PRESET_EMPTY': (0, define_1.defineError)({ code: 'CONTENT_PRESET_EMPTY', class: 'public', http: 400, message: 'Content preset empty.' }),
@@ -159,7 +161,6 @@ exports.generatedRegistry = {
159
161
  'CROSS_DATABASE_CHECK': (0, define_1.defineError)({ code: 'CROSS_DATABASE_CHECK', class: 'public', http: 400, message: 'Cross database check.' }),
160
162
  'CROSS_DATABASE_REF': (0, define_1.defineError)({ code: 'CROSS_DATABASE_REF', class: 'public', http: 400, message: 'Cross database ref.' }),
161
163
  'CSRF_TOKEN_REQUIRED': (0, define_1.defineError)({ code: 'CSRF_TOKEN_REQUIRED', class: 'public', http: 401, message: 'Csrf token required.' }),
162
- 'DATABASE_CLAIM_REQUIRED': (0, define_1.defineError)({ code: 'DATABASE_CLAIM_REQUIRED', class: 'internal', http: 500, message: 'Database claim required.' }),
163
164
  'DATABASE_FIELD_RESERVED_WORD': (0, define_1.defineError)({ code: 'DATABASE_FIELD_RESERVED_WORD', class: 'public', http: 400, message: 'Database field reserved word.' }),
164
165
  'DATABASE_FUNCTION_RESERVED_WORD': (0, define_1.defineError)({ code: 'DATABASE_FUNCTION_RESERVED_WORD', class: 'public', http: 400, message: 'Database function reserved word.' }),
165
166
  'DATABASE_HOSTNAME_IDENTITY_AMBIGUOUS': (0, define_1.defineError)({ code: 'DATABASE_HOSTNAME_IDENTITY_AMBIGUOUS', class: 'public', http: 400, message: 'Database hostname identity ambiguous.' }),
@@ -172,7 +173,7 @@ exports.generatedRegistry = {
172
173
  'DATABASE_TRANSFER_NOT_PENDING': (0, define_1.defineError)({ code: 'DATABASE_TRANSFER_NOT_PENDING', class: 'public', http: 400, message: 'Database transfer not pending.' }),
173
174
  'DATABASE_TRANSFER_NOT_SOURCE_OWNER': (0, define_1.defineError)({ code: 'DATABASE_TRANSFER_NOT_SOURCE_OWNER', class: 'public', http: 400, message: 'Database transfer not source owner.' }),
174
175
  'DATABASE_TRANSFER_NOT_TARGET_OWNER': (0, define_1.defineError)({ code: 'DATABASE_TRANSFER_NOT_TARGET_OWNER', class: 'public', http: 400, message: 'Database transfer not target owner.' }),
175
- 'DATA_BILLING_METER': (0, define_1.defineError)({ code: 'DATA_BILLING_METER', class: 'internal', http: 500, message: 'DATA_BILLING_METER: unknown event {{arg0}}, expected INSERT, DELETE, or UPDATE', positional: ['arg0'] }),
176
+ 'DATA_BILLING_METER': (0, define_1.defineError)({ code: 'DATA_BILLING_METER', class: 'internal', http: 500, message: 'DATA_BILLING_METER: unknown event {{arg0}}, expected INSERT, DELETE, UPDATE, GATE or GATE_UPDATE', positional: ['arg0'] }),
176
177
  'DATA_COMPOSITE_FIELD_PRIVATE_SCHEMA_NOT_FOUND': (0, define_1.defineError)({ code: 'DATA_COMPOSITE_FIELD_PRIVATE_SCHEMA_NOT_FOUND', class: 'public', http: 404, message: 'Data composite field private schema not found.' }),
177
178
  'DATA_COMPOSITE_FIELD_SOURCE_FIELDS_EMPTY': (0, define_1.defineError)({ code: 'DATA_COMPOSITE_FIELD_SOURCE_FIELDS_EMPTY', class: 'public', http: 400, message: 'Data composite field source fields empty.' }),
178
179
  'DATA_COMPOSITE_FIELD_SOURCE_FIELDS_REQUIRED': (0, define_1.defineError)({ code: 'DATA_COMPOSITE_FIELD_SOURCE_FIELDS_REQUIRED', class: 'public', http: 400, message: 'Data composite field source fields required.' }),
@@ -309,11 +310,9 @@ exports.generatedRegistry = {
309
310
  'DOMAIN_VERIFY_BAD_METHOD': (0, define_1.defineError)({ code: 'DOMAIN_VERIFY_BAD_METHOD', class: 'internal', http: 500, message: 'DOMAIN_VERIFY_BAD_METHOD: unsupported verification method {{arg0}}', positional: ['arg0'] }),
310
311
  'DOMAIN_VERIFY_NO_CHALLENGE': (0, define_1.defineError)({ code: 'DOMAIN_VERIFY_NO_CHALLENGE', class: 'internal', http: 500, message: 'DOMAIN_VERIFY_NO_CHALLENGE: no outstanding {{arg0}} challenge for managed_domain {{arg1}}', positional: ['arg0', 'arg1'] }),
311
312
  'EMAIL_NOT_VERIFIED': (0, define_1.defineError)({ code: 'EMAIL_NOT_VERIFIED', class: 'public', http: 400, message: 'Email not verified.' }),
312
- 'ENTITY_CLAIM_REQUIRED': (0, define_1.defineError)({ code: 'ENTITY_CLAIM_REQUIRED', class: 'internal', http: 500, message: 'Entity claim required.' }),
313
313
  'ENTITY_ID_REQUIRED': (0, define_1.defineError)({ code: 'ENTITY_ID_REQUIRED', class: 'public', http: 400, message: 'Entity id required.' }),
314
314
  'ENTITY_NOT_FOUND': (0, define_1.defineError)({ code: 'ENTITY_NOT_FOUND', class: 'public', http: 404, message: 'Entity not found.' }),
315
315
  'ENTITY_REQUIRED': (0, define_1.defineError)({ code: 'ENTITY_REQUIRED', class: 'internal', http: 500, message: 'Entity required.' }),
316
- 'ENTITY_TYPE_CLAIM_REQUIRED': (0, define_1.defineError)({ code: 'ENTITY_TYPE_CLAIM_REQUIRED', class: 'internal', http: 500, message: 'Entity type claim required.' }),
317
316
  'ENTITY_TYPE_MISMATCH': (0, define_1.defineError)({ code: 'ENTITY_TYPE_MISMATCH', class: 'public', http: 400, message: 'Entity type mismatch.' }),
318
317
  'ENTITY_TYPE_NOT_FOUND': (0, define_1.defineError)({ code: 'ENTITY_TYPE_NOT_FOUND', class: 'public', http: 404, message: 'Entity type not found.' }),
319
318
  'ENTITY_TYPE_PROVISION': (0, define_1.defineError)({ code: 'ENTITY_TYPE_PROVISION', class: 'internal', http: 500, message: 'Entity type provision.' }),
@@ -356,7 +355,6 @@ exports.generatedRegistry = {
356
355
  'FILE_REF_FIELD': (0, define_1.defineError)({ code: 'FILE_REF_FIELD', class: 'internal', http: 500, message: 'File ref field.' }),
357
356
  'FORBIDDEN': (0, define_1.defineError)({ code: 'FORBIDDEN', class: 'public', http: 403, message: 'Forbidden.' }),
358
357
  'FOREIGN_KEY_CONSTRAINT_NOT_FOUND': (0, define_1.defineError)({ code: 'FOREIGN_KEY_CONSTRAINT_NOT_FOUND', class: 'internal', http: 500, message: 'Foreign key constraint not found.' }),
359
- 'FREE_PLAN_REQUIRED': (0, define_1.defineError)({ code: 'FREE_PLAN_REQUIRED', class: 'internal', http: 500, message: 'Free plan required.' }),
360
358
  'FUNCTION_BODY_DEPARSE_EMPTY': (0, define_1.defineError)({ code: 'FUNCTION_BODY_DEPARSE_EMPTY', class: 'internal', http: 500, message: 'Function body deparse empty.' }),
361
359
  'FUNCTION_ENVELOPE_VIOLATION': (0, define_1.defineError)({ code: 'FUNCTION_ENVELOPE_VIOLATION', class: 'internal', http: 500, message: 'Function envelope violation.' }),
362
360
  'FUNCTION_GRAPH_NOT_FOUND': (0, define_1.defineError)({ code: 'FUNCTION_GRAPH_NOT_FOUND', class: 'internal', http: 500, message: 'Function graph not found.' }),
@@ -468,7 +466,6 @@ exports.generatedRegistry = {
468
466
  'INVALID_PAYLOAD_REF': (0, define_1.defineError)({ code: 'INVALID_PAYLOAD_REF', class: 'public', http: 400, message: 'Invalid payload ref.' }),
469
467
  'INVALID_TOKEN': (0, define_1.defineError)({ code: 'INVALID_TOKEN', class: 'public', http: 401, message: 'Invalid token.' }),
470
468
  'INVALID_USER': (0, define_1.defineError)({ code: 'INVALID_USER', class: 'public', http: 400, message: 'Invalid user.' }),
471
- 'INVALID_WORKER_ID': (0, define_1.defineError)({ code: 'INVALID_WORKER_ID', class: 'internal', http: 500, message: 'Invalid worker id.' }),
472
469
  'INVITE_ACCOUNT_EXISTS_UNVERIFIED': (0, define_1.defineError)({ code: 'INVITE_ACCOUNT_EXISTS_UNVERIFIED', class: 'public', http: 400, message: 'Invite account exists unverified.' }),
473
470
  'INVITE_ADDRESS_REQUIRED': (0, define_1.defineError)({ code: 'INVITE_ADDRESS_REQUIRED', class: 'public', http: 400, message: 'Invite address required.' }),
474
471
  'INVITE_EMAIL_NOT_FOUND': (0, define_1.defineError)({ code: 'INVITE_EMAIL_NOT_FOUND', class: 'public', http: 404, message: 'Invite email not found.' }),
@@ -587,6 +584,7 @@ exports.generatedRegistry = {
587
584
  'OWNER_FIELD_NOT_FOUND': (0, define_1.defineError)({ code: 'OWNER_FIELD_NOT_FOUND', class: 'public', http: 404, message: 'Owner field not found.' }),
588
585
  'OWNER_FIELD_NOT_IN_OWNER_TABLE': (0, define_1.defineError)({ code: 'OWNER_FIELD_NOT_IN_OWNER_TABLE', class: 'public', http: 400, message: 'Owner field not in owner table.' }),
589
586
  'PAGES_MODULE': (0, define_1.defineError)({ code: 'PAGES_MODULE', class: 'internal', http: 500, message: 'Pages module.' }),
587
+ 'PARENT_CURSOR_NOT_ADVANCED': (0, define_1.defineError)({ code: 'PARENT_CURSOR_NOT_ADVANCED', class: 'public', http: 400, message: 'Parent cursor not advanced.' }),
590
588
  'PARENT_ENTITY_TYPE_NOT_FOUND': (0, define_1.defineError)({ code: 'PARENT_ENTITY_TYPE_NOT_FOUND', class: 'public', http: 404, message: 'Parent entity type not found.' }),
591
589
  'PARENT_EXECUTION_NOT_FOUND': (0, define_1.defineError)({ code: 'PARENT_EXECUTION_NOT_FOUND', class: 'internal', http: 500, message: 'Parent execution not found.' }),
592
590
  'PASSWORD_INSECURE': (0, define_1.defineError)({ code: 'PASSWORD_INSECURE', class: 'public', http: 400, message: 'Password insecure.' }),
@@ -672,6 +670,9 @@ exports.generatedRegistry = {
672
670
  'ROUTING_API_TABLES_SCOPE_REQUIRED': (0, define_1.defineError)({ code: 'ROUTING_API_TABLES_SCOPE_REQUIRED', class: 'public', http: 400, message: 'Routing api tables scope required.' }),
673
671
  'ROUTING_SURFACE_NOT_PROVISIONED': (0, define_1.defineError)({ code: 'ROUTING_SURFACE_NOT_PROVISIONED', class: 'public', http: 400, message: 'Routing surface not provisioned.' }),
674
672
  'ROW_LOCKED': (0, define_1.defineError)({ code: 'ROW_LOCKED', class: 'public', http: 423, message: 'Row locked.' }),
673
+ 'SCHEDULE_FANOUT_LANE_INVALID': (0, define_1.defineError)({ code: 'SCHEDULE_FANOUT_LANE_INVALID', class: 'internal', http: 500, message: 'Schedule fanout lane invalid.' }),
674
+ 'SCHEDULE_FANOUT_TASK_NOT_ALLOWED': (0, define_1.defineError)({ code: 'SCHEDULE_FANOUT_TASK_NOT_ALLOWED', class: 'internal', http: 500, message: 'Schedule fanout task not allowed.' }),
675
+ 'SCHEDULE_FANOUT_TENANTS_PER_LANE_INVALID': (0, define_1.defineError)({ code: 'SCHEDULE_FANOUT_TENANTS_PER_LANE_INVALID', class: 'internal', http: 500, message: 'Schedule fanout tenants per lane invalid.' }),
675
676
  'SCOPE_TYPE_BACKFILL': (0, define_1.defineError)({ code: 'SCOPE_TYPE_BACKFILL', class: 'internal', http: 500, message: 'SCOPE_TYPE_BACKFILL: the membership types table must be resolved before generating a statement' }),
676
677
  'SCOPE_TYPE_SYNC': (0, define_1.defineError)({ code: 'SCOPE_TYPE_SYNC', class: 'internal', http: 500, message: 'SCOPE_TYPE_SYNC: the scope type projection must be resolved before generating a body' }),
677
678
  'SEARCH_BM25': (0, define_1.defineError)({ code: 'SEARCH_BM25', class: 'public', http: 400, message: 'Search bm25.' }),
@@ -753,16 +754,14 @@ exports.generatedRegistry = {
753
754
  'SSO_STATE_TTL_INVALID': (0, define_1.defineError)({ code: 'SSO_STATE_TTL_INVALID', class: 'internal', http: 500, message: 'Sso state ttl invalid.' }),
754
755
  'STATIC_SITES_LIMIT': (0, define_1.defineError)({ code: 'STATIC_SITES_LIMIT', class: 'public', http: 429, message: 'Static sites limit.' }),
755
756
  'STEP_UP_INVALID_TYPE': (0, define_1.defineError)({ code: 'STEP_UP_INVALID_TYPE', class: 'public', http: 403, message: 'This action requires verification that is not configured correctly. Please contact support.' }),
756
- 'STEP_UP_REQUIRED': (0, define_1.defineError)({ code: 'STEP_UP_REQUIRED', class: 'public', http: 403, message: 'Step up required.' }),
757
757
  'STEP_UP_REQUIRED_FRESH_AUTH': (0, define_1.defineError)({ code: 'STEP_UP_REQUIRED_FRESH_AUTH', class: 'public', http: 403, message: 'Please verify your identity to continue.' }),
758
758
  'STEP_UP_REQUIRED_MFA': (0, define_1.defineError)({ code: 'STEP_UP_REQUIRED_MFA', class: 'public', http: 403, message: 'Please enter a code from your authenticator app to continue.' }),
759
759
  'STEP_UP_REQUIRED_PASSWORD': (0, define_1.defineError)({ code: 'STEP_UP_REQUIRED_PASSWORD', class: 'public', http: 403, message: 'Please re-enter your password to continue.' }),
760
- 'STORAGE_ACCESS_CLAIM_MISMATCH': (0, define_1.defineError)({ code: 'STORAGE_ACCESS_CLAIM_MISMATCH', class: 'public', http: 400, message: 'Storage access claim mismatch.' }),
760
+ 'STEP_UP_REQUIRED_PASSWORD_OR_MFA': (0, define_1.defineError)({ code: 'STEP_UP_REQUIRED_PASSWORD_OR_MFA', class: 'public', http: 403, message: 'Please re-enter your password or enter a code from your authenticator app to continue.' }),
761
761
  'STORAGE_API_NOT_PROVISIONED': (0, define_1.defineError)({ code: 'STORAGE_API_NOT_PROVISIONED', class: 'public', http: 400, message: 'Storage api not provisioned.' }),
762
762
  'STORAGE_DESTINATION_REQUIRES_TEMP': (0, define_1.defineError)({ code: 'STORAGE_DESTINATION_REQUIRES_TEMP', class: 'internal', http: 500, message: 'Storage destination requires temp.' }),
763
763
  'STORAGE_FILE_BUCKET_IMMUTABLE': (0, define_1.defineError)({ code: 'STORAGE_FILE_BUCKET_IMMUTABLE', class: 'internal', http: 500, message: 'Storage file bucket immutable.' }),
764
764
  'STORAGE_FILE_KEY_IMMUTABLE': (0, define_1.defineError)({ code: 'STORAGE_FILE_KEY_IMMUTABLE', class: 'internal', http: 500, message: 'Storage file key immutable.' }),
765
- 'STORAGE_FILE_NOT_FOUND': (0, define_1.defineError)({ code: 'STORAGE_FILE_NOT_FOUND', class: 'public', http: 404, message: 'Storage file not found.' }),
766
765
  'STORAGE_GC_CONTENT_HASH_UNSUPPORTED': (0, define_1.defineError)({ code: 'STORAGE_GC_CONTENT_HASH_UNSUPPORTED', class: 'internal', http: 500, message: 'Storage gc content hash unsupported.' }),
767
766
  'STORAGE_GC_FILES_TABLE_MISSING': (0, define_1.defineError)({ code: 'STORAGE_GC_FILES_TABLE_MISSING', class: 'internal', http: 500, message: 'Storage gc files table missing.' }),
768
767
  'STORAGE_GC_MODULE_AMBIGUOUS': (0, define_1.defineError)({ code: 'STORAGE_GC_MODULE_AMBIGUOUS', class: 'internal', http: 500, message: 'Storage gc module ambiguous.' }),
@@ -772,15 +771,8 @@ exports.generatedRegistry = {
772
771
  'STORAGE_GC_REF_CROSS_DATABASE': (0, define_1.defineError)({ code: 'STORAGE_GC_REF_CROSS_DATABASE', class: 'internal', http: 500, message: 'Storage gc ref cross database.' }),
773
772
  'STORAGE_GC_REF_FIELD_MISSING': (0, define_1.defineError)({ code: 'STORAGE_GC_REF_FIELD_MISSING', class: 'internal', http: 500, message: 'Storage gc ref field missing.' }),
774
773
  'STORAGE_GC_REF_TABLE_MISSING': (0, define_1.defineError)({ code: 'STORAGE_GC_REF_TABLE_MISSING', class: 'internal', http: 500, message: 'Storage gc ref table missing.' }),
775
- 'STORAGE_INVALID_COMPLETION_RESULT': (0, define_1.defineError)({ code: 'STORAGE_INVALID_COMPLETION_RESULT', class: 'public', http: 400, message: 'Storage invalid completion result.' }),
776
- 'STORAGE_INVALID_UPLOAD_DOCUMENT': (0, define_1.defineError)({ code: 'STORAGE_INVALID_UPLOAD_DOCUMENT', class: 'internal', http: 500, message: 'Storage invalid upload document.' }),
777
- 'STORAGE_MODULE_ENTITY_FIELD_INVALID': (0, define_1.defineError)({ code: 'STORAGE_MODULE_ENTITY_FIELD_INVALID', class: 'internal', http: 500, message: 'Storage module entity field invalid.' }),
778
- 'STORAGE_MODULE_NOT_FOUND': (0, define_1.defineError)({ code: 'STORAGE_MODULE_NOT_FOUND', class: 'internal', http: 500, message: 'Storage module not found.' }),
779
- 'STORAGE_PROCESSING_CONFLICT': (0, define_1.defineError)({ code: 'STORAGE_PROCESSING_CONFLICT', class: 'public', http: 400, message: 'Storage processing conflict.' }),
780
774
  'STORAGE_PROMOTION_DESTINATION_MISMATCH': (0, define_1.defineError)({ code: 'STORAGE_PROMOTION_DESTINATION_MISMATCH', class: 'internal', http: 500, message: 'Storage promotion destination mismatch.' }),
781
775
  'STORAGE_PROMOTION_VISIBILITY_MISMATCH': (0, define_1.defineError)({ code: 'STORAGE_PROMOTION_VISIBILITY_MISMATCH', class: 'internal', http: 500, message: 'Storage promotion visibility mismatch.' }),
782
- 'STORAGE_SOURCE_HASH_MISMATCH': (0, define_1.defineError)({ code: 'STORAGE_SOURCE_HASH_MISMATCH', class: 'public', http: 400, message: 'Storage source hash mismatch.' }),
783
- 'STORAGE_SOURCE_HASH_REQUIRED': (0, define_1.defineError)({ code: 'STORAGE_SOURCE_HASH_REQUIRED', class: 'public', http: 400, message: 'Storage source hash required.' }),
784
776
  'STORAGE_STAGING_BUCKET_NO_DESTINATION': (0, define_1.defineError)({ code: 'STORAGE_STAGING_BUCKET_NO_DESTINATION', class: 'internal', http: 500, message: 'Storage staging bucket no destination.' }),
785
777
  'STORAGE_STAGING_BUCKET_NO_TTL': (0, define_1.defineError)({ code: 'STORAGE_STAGING_BUCKET_NO_TTL', class: 'internal', http: 500, message: 'Storage staging bucket no ttl.' }),
786
778
  'STORAGE_STAGING_DESTINATION_INVALID': (0, define_1.defineError)({ code: 'STORAGE_STAGING_DESTINATION_INVALID', class: 'internal', http: 500, message: 'Storage staging destination invalid.' }),
@@ -849,9 +841,7 @@ exports.GENERATED_CODE_META = {
849
841
  'ACCOUNT_EXISTS': { class: 'public', dynamic: false, generatedOnly: false },
850
842
  'ACCOUNT_LOCKED_EXCEED_ATTEMPTS': { class: 'public', dynamic: false, generatedOnly: false },
851
843
  'ACCOUNT_NOT_FOUND': { class: 'public', dynamic: false, generatedOnly: false },
852
- 'ACTOR_CLAIM_REQUIRED': { class: 'internal', dynamic: false, generatedOnly: true },
853
844
  'ALREADY_AUTHENTICATED_USE_LINK': { class: 'public', dynamic: false, generatedOnly: false },
854
- 'ALREADY_SCHEDULED': { class: 'public', dynamic: false, generatedOnly: true },
855
845
  'ALTER_TABLE_ADD_COLUMN': { class: 'internal', dynamic: true, generatedOnly: false },
856
846
  'API_KEYS_DISABLED': { class: 'public', dynamic: false, generatedOnly: true },
857
847
  'API_KEY_LIMIT_REACHED': { class: 'public', dynamic: false, generatedOnly: false },
@@ -868,7 +858,6 @@ exports.GENERATED_CODE_META = {
868
858
  'AST_OPTIONS_NOT_OBJECT': { class: 'internal', dynamic: false, generatedOnly: false },
869
859
  'AST_OPTION_REQUIRED': { class: 'internal', dynamic: false, generatedOnly: false },
870
860
  'AST_OPTION_UNKNOWN': { class: 'internal', dynamic: false, generatedOnly: false },
871
- 'ATTRIBUTION_REQUIRED': { class: 'internal', dynamic: false, generatedOnly: true },
872
861
  'AUTHZ_COLUMN_SECURITY_AUTHZ_NODE_REQUIRED': { class: 'public', dynamic: false, generatedOnly: false },
873
862
  'AUTHZ_COLUMN_SECURITY_COLUMNS_REQUIRED': { class: 'public', dynamic: false, generatedOnly: false },
874
863
  'AUTHZ_COLUMN_SECURITY_COLUMN_NOT_FOUND': { class: 'public', dynamic: false, generatedOnly: false },
@@ -904,6 +893,7 @@ exports.GENERATED_CODE_META = {
904
893
  'BAD_RLS_EXPRESSION': { class: 'public', dynamic: false, generatedOnly: false },
905
894
  'BAD_VIEW_EXPRESSION': { class: 'public', dynamic: false, generatedOnly: false },
906
895
  'BEHAVIOR_FRAGMENT_EMPTY': { class: 'internal', dynamic: false, generatedOnly: false },
896
+ 'BILLING_CHECKOUT_BINDING_INVALID': { class: 'internal', dynamic: false, generatedOnly: true },
907
897
  'BILLING_DISPUTE_BALANCE_NOT_FOUND': { class: 'internal', dynamic: false, generatedOnly: false },
908
898
  'BILLING_ENTITY_BUSY': { class: 'public', dynamic: false, generatedOnly: true },
909
899
  'BILLING_HEALTH_INVALID': { class: 'internal', dynamic: false, generatedOnly: true },
@@ -914,14 +904,17 @@ exports.GENERATED_CODE_META = {
914
904
  'BILLING_OPERATION_NOT_FOUND': { class: 'internal', dynamic: false, generatedOnly: true },
915
905
  'BILLING_OPERATION_SETTLED': { class: 'internal', dynamic: false, generatedOnly: true },
916
906
  'BILLING_OPERATION_STATE_INVALID': { class: 'internal', dynamic: false, generatedOnly: true },
907
+ 'BILLING_QUOTA_EXCEEDED': { class: 'public', dynamic: false, generatedOnly: false },
917
908
  'BILLING_RECONCILE_BOUNDS_REQUIRED': { class: 'internal', dynamic: false, generatedOnly: true },
918
909
  'BILLING_SCHEDULED_CHANGE_INVALID': { class: 'internal', dynamic: false, generatedOnly: true },
910
+ 'BILLING_SUBSCRIPTION_ACTIVE': { class: 'public', dynamic: false, generatedOnly: false },
919
911
  'BLUEPRINT_MODULE_NOT_INSTALLED': { class: 'public', dynamic: false, generatedOnly: false },
920
912
  'BLUEPRINT_MODULE_REF_AMBIGUOUS': { class: 'public', dynamic: false, generatedOnly: false },
921
913
  'BLUEPRINT_MODULE_REF_INVALID': { class: 'public', dynamic: false, generatedOnly: false },
922
914
  'BLUEPRINT_MODULE_TABLE_UNKNOWN': { class: 'public', dynamic: false, generatedOnly: false },
923
915
  'BM25': { class: 'public', dynamic: false, generatedOnly: false },
924
916
  'BOOTSTRAP_DATABASE_MISSING': { class: 'internal', dynamic: false, generatedOnly: false },
917
+ 'BOOTSTRAP_OWNER_NOT_ACTIVE': { class: 'internal', dynamic: false, generatedOnly: false },
925
918
  'BOOTSTRAP_SOURCE_MISSING': { class: 'internal', dynamic: false, generatedOnly: false },
926
919
  'BOOTSTRAP_TARGET_NOT_EMPTY': { class: 'internal', dynamic: false, generatedOnly: false },
927
920
  'BUILD_CONDITION_EXPR': { class: 'internal', dynamic: false, generatedOnly: false },
@@ -967,6 +960,7 @@ exports.GENERATED_CODE_META = {
967
960
  'CONSTRUCT_BLUEPRINT_PROVISIONS_WITHOUT_MODULE': { class: 'public', dynamic: false, generatedOnly: false },
968
961
  'CONSTRUCT_BLUEPRINT_SCHEMA_NOT_FOUND': { class: 'internal', dynamic: false, generatedOnly: false },
969
962
  'CONSTRUCT_BLUEPRINT_STORAGE_ORG_MEMBERSHIP_NOT_FOUND': { class: 'internal', dynamic: false, generatedOnly: false },
963
+ 'CONSTRUCT_BLUEPRINT_TABLES_ORG_MEMBERSHIP_NOT_FOUND': { class: 'internal', dynamic: false, generatedOnly: false },
970
964
  'CONST_TYPE_FIELDS_IMMUTABLE': { class: 'public', dynamic: false, generatedOnly: false },
971
965
  'CONTENT_PRESET_CATALOG_MISSING': { class: 'internal', dynamic: false, generatedOnly: false },
972
966
  'CONTENT_PRESET_EMPTY': { class: 'public', dynamic: false, generatedOnly: false },
@@ -986,7 +980,6 @@ exports.GENERATED_CODE_META = {
986
980
  'CROSS_DATABASE_CHECK': { class: 'public', dynamic: false, generatedOnly: false },
987
981
  'CROSS_DATABASE_REF': { class: 'public', dynamic: false, generatedOnly: false },
988
982
  'CSRF_TOKEN_REQUIRED': { class: 'public', dynamic: false, generatedOnly: false },
989
- 'DATABASE_CLAIM_REQUIRED': { class: 'internal', dynamic: false, generatedOnly: true },
990
983
  'DATABASE_FIELD_RESERVED_WORD': { class: 'public', dynamic: false, generatedOnly: false },
991
984
  'DATABASE_FUNCTION_RESERVED_WORD': { class: 'public', dynamic: false, generatedOnly: false },
992
985
  'DATABASE_HOSTNAME_IDENTITY_AMBIGUOUS': { class: 'public', dynamic: false, generatedOnly: false },
@@ -1136,11 +1129,9 @@ exports.GENERATED_CODE_META = {
1136
1129
  'DOMAIN_VERIFY_BAD_METHOD': { class: 'internal', dynamic: true, generatedOnly: true },
1137
1130
  'DOMAIN_VERIFY_NO_CHALLENGE': { class: 'internal', dynamic: true, generatedOnly: true },
1138
1131
  'EMAIL_NOT_VERIFIED': { class: 'public', dynamic: false, generatedOnly: false },
1139
- 'ENTITY_CLAIM_REQUIRED': { class: 'internal', dynamic: false, generatedOnly: true },
1140
1132
  'ENTITY_ID_REQUIRED': { class: 'public', dynamic: false, generatedOnly: false },
1141
1133
  'ENTITY_NOT_FOUND': { class: 'public', dynamic: false, generatedOnly: false },
1142
1134
  'ENTITY_REQUIRED': { class: 'internal', dynamic: false, generatedOnly: false },
1143
- 'ENTITY_TYPE_CLAIM_REQUIRED': { class: 'internal', dynamic: false, generatedOnly: true },
1144
1135
  'ENTITY_TYPE_MISMATCH': { class: 'public', dynamic: false, generatedOnly: false },
1145
1136
  'ENTITY_TYPE_NOT_FOUND': { class: 'public', dynamic: false, generatedOnly: false },
1146
1137
  'ENTITY_TYPE_PROVISION': { class: 'internal', dynamic: false, generatedOnly: false },
@@ -1183,7 +1174,6 @@ exports.GENERATED_CODE_META = {
1183
1174
  'FILE_REF_FIELD': { class: 'internal', dynamic: false, generatedOnly: false },
1184
1175
  'FORBIDDEN': { class: 'public', dynamic: false, generatedOnly: false },
1185
1176
  'FOREIGN_KEY_CONSTRAINT_NOT_FOUND': { class: 'internal', dynamic: false, generatedOnly: false },
1186
- 'FREE_PLAN_REQUIRED': { class: 'internal', dynamic: false, generatedOnly: false },
1187
1177
  'FUNCTION_BODY_DEPARSE_EMPTY': { class: 'internal', dynamic: false, generatedOnly: false },
1188
1178
  'FUNCTION_ENVELOPE_VIOLATION': { class: 'internal', dynamic: false, generatedOnly: false },
1189
1179
  'FUNCTION_GRAPH_NOT_FOUND': { class: 'internal', dynamic: false, generatedOnly: false },
@@ -1295,7 +1285,6 @@ exports.GENERATED_CODE_META = {
1295
1285
  'INVALID_PAYLOAD_REF': { class: 'public', dynamic: false, generatedOnly: false },
1296
1286
  'INVALID_TOKEN': { class: 'public', dynamic: false, generatedOnly: false },
1297
1287
  'INVALID_USER': { class: 'public', dynamic: false, generatedOnly: false },
1298
- 'INVALID_WORKER_ID': { class: 'internal', dynamic: false, generatedOnly: true },
1299
1288
  'INVITE_ACCOUNT_EXISTS_UNVERIFIED': { class: 'public', dynamic: false, generatedOnly: false },
1300
1289
  'INVITE_ADDRESS_REQUIRED': { class: 'public', dynamic: false, generatedOnly: false },
1301
1290
  'INVITE_EMAIL_NOT_FOUND': { class: 'public', dynamic: false, generatedOnly: false },
@@ -1414,6 +1403,7 @@ exports.GENERATED_CODE_META = {
1414
1403
  'OWNER_FIELD_NOT_FOUND': { class: 'public', dynamic: false, generatedOnly: false },
1415
1404
  'OWNER_FIELD_NOT_IN_OWNER_TABLE': { class: 'public', dynamic: false, generatedOnly: false },
1416
1405
  'PAGES_MODULE': { class: 'internal', dynamic: false, generatedOnly: false },
1406
+ 'PARENT_CURSOR_NOT_ADVANCED': { class: 'public', dynamic: false, generatedOnly: false },
1417
1407
  'PARENT_ENTITY_TYPE_NOT_FOUND': { class: 'public', dynamic: false, generatedOnly: false },
1418
1408
  'PARENT_EXECUTION_NOT_FOUND': { class: 'internal', dynamic: false, generatedOnly: false },
1419
1409
  'PASSWORD_INSECURE': { class: 'public', dynamic: false, generatedOnly: false },
@@ -1499,6 +1489,9 @@ exports.GENERATED_CODE_META = {
1499
1489
  'ROUTING_API_TABLES_SCOPE_REQUIRED': { class: 'public', dynamic: false, generatedOnly: false },
1500
1490
  'ROUTING_SURFACE_NOT_PROVISIONED': { class: 'public', dynamic: false, generatedOnly: false },
1501
1491
  'ROW_LOCKED': { class: 'public', dynamic: false, generatedOnly: false },
1492
+ 'SCHEDULE_FANOUT_LANE_INVALID': { class: 'internal', dynamic: false, generatedOnly: false },
1493
+ 'SCHEDULE_FANOUT_TASK_NOT_ALLOWED': { class: 'internal', dynamic: false, generatedOnly: false },
1494
+ 'SCHEDULE_FANOUT_TENANTS_PER_LANE_INVALID': { class: 'internal', dynamic: false, generatedOnly: false },
1502
1495
  'SCOPE_TYPE_BACKFILL': { class: 'internal', dynamic: false, generatedOnly: false },
1503
1496
  'SCOPE_TYPE_SYNC': { class: 'internal', dynamic: true, generatedOnly: false },
1504
1497
  'SEARCH_BM25': { class: 'public', dynamic: false, generatedOnly: false },
@@ -1580,16 +1573,14 @@ exports.GENERATED_CODE_META = {
1580
1573
  'SSO_STATE_TTL_INVALID': { class: 'internal', dynamic: false, generatedOnly: false },
1581
1574
  'STATIC_SITES_LIMIT': { class: 'public', dynamic: false, generatedOnly: false },
1582
1575
  'STEP_UP_INVALID_TYPE': { class: 'public', dynamic: false, generatedOnly: false },
1583
- 'STEP_UP_REQUIRED': { class: 'public', dynamic: false, generatedOnly: false },
1584
1576
  'STEP_UP_REQUIRED_FRESH_AUTH': { class: 'public', dynamic: false, generatedOnly: false },
1585
1577
  'STEP_UP_REQUIRED_MFA': { class: 'public', dynamic: false, generatedOnly: false },
1586
1578
  'STEP_UP_REQUIRED_PASSWORD': { class: 'public', dynamic: false, generatedOnly: false },
1587
- 'STORAGE_ACCESS_CLAIM_MISMATCH': { class: 'public', dynamic: false, generatedOnly: false },
1579
+ 'STEP_UP_REQUIRED_PASSWORD_OR_MFA': { class: 'public', dynamic: false, generatedOnly: false },
1588
1580
  'STORAGE_API_NOT_PROVISIONED': { class: 'public', dynamic: false, generatedOnly: false },
1589
1581
  'STORAGE_DESTINATION_REQUIRES_TEMP': { class: 'internal', dynamic: false, generatedOnly: false },
1590
1582
  'STORAGE_FILE_BUCKET_IMMUTABLE': { class: 'internal', dynamic: false, generatedOnly: false },
1591
1583
  'STORAGE_FILE_KEY_IMMUTABLE': { class: 'internal', dynamic: false, generatedOnly: false },
1592
- 'STORAGE_FILE_NOT_FOUND': { class: 'public', dynamic: false, generatedOnly: false },
1593
1584
  'STORAGE_GC_CONTENT_HASH_UNSUPPORTED': { class: 'internal', dynamic: false, generatedOnly: false },
1594
1585
  'STORAGE_GC_FILES_TABLE_MISSING': { class: 'internal', dynamic: false, generatedOnly: false },
1595
1586
  'STORAGE_GC_MODULE_AMBIGUOUS': { class: 'internal', dynamic: false, generatedOnly: false },
@@ -1599,15 +1590,8 @@ exports.GENERATED_CODE_META = {
1599
1590
  'STORAGE_GC_REF_CROSS_DATABASE': { class: 'internal', dynamic: false, generatedOnly: false },
1600
1591
  'STORAGE_GC_REF_FIELD_MISSING': { class: 'internal', dynamic: false, generatedOnly: false },
1601
1592
  'STORAGE_GC_REF_TABLE_MISSING': { class: 'internal', dynamic: false, generatedOnly: false },
1602
- 'STORAGE_INVALID_COMPLETION_RESULT': { class: 'public', dynamic: false, generatedOnly: false },
1603
- 'STORAGE_INVALID_UPLOAD_DOCUMENT': { class: 'internal', dynamic: false, generatedOnly: false },
1604
- 'STORAGE_MODULE_ENTITY_FIELD_INVALID': { class: 'internal', dynamic: false, generatedOnly: false },
1605
- 'STORAGE_MODULE_NOT_FOUND': { class: 'internal', dynamic: false, generatedOnly: false },
1606
- 'STORAGE_PROCESSING_CONFLICT': { class: 'public', dynamic: false, generatedOnly: false },
1607
1593
  'STORAGE_PROMOTION_DESTINATION_MISMATCH': { class: 'internal', dynamic: false, generatedOnly: false },
1608
1594
  'STORAGE_PROMOTION_VISIBILITY_MISMATCH': { class: 'internal', dynamic: false, generatedOnly: false },
1609
- 'STORAGE_SOURCE_HASH_MISMATCH': { class: 'public', dynamic: false, generatedOnly: false },
1610
- 'STORAGE_SOURCE_HASH_REQUIRED': { class: 'public', dynamic: false, generatedOnly: false },
1611
1595
  'STORAGE_STAGING_BUCKET_NO_DESTINATION': { class: 'internal', dynamic: false, generatedOnly: false },
1612
1596
  'STORAGE_STAGING_BUCKET_NO_TTL': { class: 'internal', dynamic: false, generatedOnly: false },
1613
1597
  'STORAGE_STAGING_DESTINATION_INVALID': { class: 'internal', dynamic: false, generatedOnly: false },
@@ -1671,4 +1655,4 @@ exports.GENERATED_CODE_META = {
1671
1655
  'WITH_CHECK_NOT_ALLOWED': { class: 'public', dynamic: false, generatedOnly: false },
1672
1656
  };
1673
1657
  /** Total number of codes collected from constructive-db. */
1674
- exports.GENERATED_CODE_COUNT = 824;
1658
+ exports.GENERATED_CODE_COUNT = 816;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@constructive-io/errors",
3
- "version": "0.20.0",
3
+ "version": "0.21.0",
4
4
  "author": "Constructive <developers@constructive.io>",
5
5
  "description": "Canonical Constructive error system: registry, codes, i18n messages, and cross-source (PostgreSQL/GraphQL/client) parsing. Zero runtime dependencies.",
6
6
  "main": "index.js",
@@ -41,5 +41,5 @@
41
41
  "makage": "^0.8.0",
42
42
  "ts-node": "^10.9.2"
43
43
  },
44
- "gitHead": "e05686fb94c5e22c954436f18c25aa4439b9e83e"
44
+ "gitHead": "34e91da5b3dd9c0cae14875afe609993acf53a84"
45
45
  }
package/registry.d.ts CHANGED
@@ -1,10 +1,5 @@
1
1
  import type { ErrorContext, ErrorDefinition } from './types';
2
2
  export { type DefinedError, defineError } from './define';
3
- type StorageFileContext = {
4
- database_id?: string | null;
5
- file_id?: string | null;
6
- bucket_id?: string | null;
7
- };
8
3
  /**
9
4
  * The curated Constructive error registry.
10
5
  *
@@ -16,36 +11,6 @@ type StorageFileContext = {
16
11
  */
17
12
  export declare const registry: {
18
13
  readonly STORAGE_BUCKET_NOT_RECONCILED: import("./define").DefinedError<import("./types").EmptyContext>;
19
- readonly STORAGE_ACCESS_CLAIM_MISMATCH: import("./define").DefinedError<StorageFileContext>;
20
- readonly STORAGE_FILE_NOT_FOUND: import("./define").DefinedError<StorageFileContext & {
21
- bucket?: string;
22
- fileId?: string;
23
- reason?: string;
24
- }>;
25
- readonly STORAGE_SOURCE_HASH_REQUIRED: import("./define").DefinedError<StorageFileContext & {
26
- field?: string;
27
- }>;
28
- readonly STORAGE_SOURCE_HASH_MISMATCH: import("./define").DefinedError<StorageFileContext>;
29
- readonly STORAGE_INVALID_COMPLETION_RESULT: import("./define").DefinedError<StorageFileContext & {
30
- field?: string;
31
- reason?: string;
32
- cause?: string;
33
- maxBytes?: number;
34
- }>;
35
- readonly STORAGE_PROCESSING_CONFLICT: import("./define").DefinedError<StorageFileContext>;
36
- readonly STORAGE_INVALID_UPLOAD_DOCUMENT: import("./define").DefinedError<StorageFileContext>;
37
- readonly STORAGE_BUCKET_DATABASE_MISMATCH: import("./define").DefinedError<{
38
- bucket: string;
39
- capabilitiesDatabaseId?: string;
40
- bucketDatabaseId?: string;
41
- invocationDatabaseId?: string | null;
42
- reason?: string;
43
- }>;
44
- readonly STORAGE_FILE_TARGET_UNAVAILABLE: import("./define").DefinedError<{
45
- bucket: string;
46
- bucketId?: string;
47
- reason?: string;
48
- }>;
49
14
  readonly ACCOUNT_EXISTS: import("./define").DefinedError<import("./types").EmptyContext>;
50
15
  readonly ALREADY_AUTHENTICATED_USE_LINK: import("./define").DefinedError<import("./types").EmptyContext>;
51
16
  readonly IDENTIFIER_CONFLICT: import("./define").DefinedError<import("./types").EmptyContext>;
@@ -113,6 +78,7 @@ export declare const registry: {
113
78
  resource?: string;
114
79
  limit?: number;
115
80
  }>;
81
+ readonly BILLING_QUOTA_EXCEEDED: import("./define").DefinedError<import("./types").EmptyContext>;
116
82
  readonly RATE_LIMITED: import("./define").DefinedError<import("./types").EmptyContext>;
117
83
  readonly BILLING_NOT_READY: import("./define").DefinedError<{
118
84
  database_id?: string;
@@ -126,6 +92,10 @@ export declare const registry: {
126
92
  operation_id?: string;
127
93
  }>;
128
94
  readonly BILLING_OPERATION_INVALID: import("./define").DefinedError<import("./types").EmptyContext>;
95
+ readonly BILLING_SUBSCRIPTION_ACTIVE: import("./define").DefinedError<{
96
+ entity_id?: string;
97
+ external_subscription_id?: string;
98
+ }>;
129
99
  readonly UNKNOWN_METER: import("./define").DefinedError<{
130
100
  meter_slug?: string;
131
101
  }>;
package/registry.js CHANGED
@@ -23,63 +23,6 @@ exports.registry = {
23
23
  http: 409,
24
24
  message: 'The storage bucket has not yet been reconciled.'
25
25
  }),
26
- // File processing lifecycle — curated HTTP hints override the generated
27
- // name-based heuristic, particularly for access and processing conflicts.
28
- STORAGE_ACCESS_CLAIM_MISMATCH: (0, define_1.defineError)({
29
- code: 'STORAGE_ACCESS_CLAIM_MISMATCH',
30
- class: 'public',
31
- http: 403,
32
- message: 'You do not have permission to process this file.'
33
- }),
34
- STORAGE_FILE_NOT_FOUND: (0, define_1.defineError)({
35
- code: 'STORAGE_FILE_NOT_FOUND',
36
- class: 'public',
37
- http: 404,
38
- message: 'The file could not be found.'
39
- }),
40
- STORAGE_SOURCE_HASH_REQUIRED: (0, define_1.defineError)({
41
- code: 'STORAGE_SOURCE_HASH_REQUIRED',
42
- class: 'public',
43
- http: 400,
44
- message: 'A valid source file hash is required.'
45
- }),
46
- STORAGE_SOURCE_HASH_MISMATCH: (0, define_1.defineError)({
47
- code: 'STORAGE_SOURCE_HASH_MISMATCH',
48
- class: 'public',
49
- http: 409,
50
- message: 'The source file has changed. Please process it again.'
51
- }),
52
- STORAGE_INVALID_COMPLETION_RESULT: (0, define_1.defineError)({
53
- code: 'STORAGE_INVALID_COMPLETION_RESULT',
54
- class: 'public',
55
- http: 400,
56
- message: 'The file processing result is invalid.'
57
- }),
58
- STORAGE_PROCESSING_CONFLICT: (0, define_1.defineError)({
59
- code: 'STORAGE_PROCESSING_CONFLICT',
60
- class: 'public',
61
- http: 409,
62
- message: 'The file is not in a state that allows this processing result.'
63
- }),
64
- STORAGE_INVALID_UPLOAD_DOCUMENT: (0, define_1.defineError)({
65
- code: 'STORAGE_INVALID_UPLOAD_DOCUMENT',
66
- class: 'internal',
67
- http: 500,
68
- message: 'The stored upload document is invalid.'
69
- }),
70
- // Runtime-only dispatch errors; these have no database audit records.
71
- STORAGE_BUCKET_DATABASE_MISMATCH: (0, define_1.defineError)({
72
- code: 'STORAGE_BUCKET_DATABASE_MISMATCH',
73
- class: 'internal',
74
- http: 500,
75
- message: 'The storage bucket does not belong to the invocation database.'
76
- }),
77
- STORAGE_FILE_TARGET_UNAVAILABLE: (0, define_1.defineError)({
78
- code: 'STORAGE_FILE_TARGET_UNAVAILABLE',
79
- class: 'internal',
80
- http: 500,
81
- message: 'The storage file target is unavailable.'
82
- }),
83
26
  // ===========================================================================
84
27
  // Auth / account (public) — copy sourced from dashboard auth-errors.ts
85
28
  // ===========================================================================
@@ -430,6 +373,12 @@ exports.registry = {
430
373
  message: 'You have reached a plan limit for this resource.',
431
374
  positional: ['resource', 'limit']
432
375
  }),
376
+ BILLING_QUOTA_EXCEEDED: (0, define_1.defineError)({
377
+ code: 'BILLING_QUOTA_EXCEEDED',
378
+ class: 'public',
379
+ http: 429,
380
+ message: 'You have used up your usage allowance for this resource.'
381
+ }),
433
382
  RATE_LIMITED: (0, define_1.defineError)({
434
383
  code: 'RATE_LIMITED',
435
384
  class: 'public',
@@ -463,6 +412,12 @@ exports.registry = {
463
412
  http: 400,
464
413
  message: 'The billing operation request is invalid.'
465
414
  }),
415
+ BILLING_SUBSCRIPTION_ACTIVE: (0, define_1.defineError)({
416
+ code: 'BILLING_SUBSCRIPTION_ACTIVE',
417
+ class: 'public',
418
+ http: 409,
419
+ message: 'This account still has an active subscription. Cancel the subscription before deleting the account.'
420
+ }),
466
421
  UNKNOWN_METER: (0, define_1.defineError)({
467
422
  code: 'UNKNOWN_METER',
468
423
  class: 'public',