@constructive-io/errors 0.19.0 → 0.20.1
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.
- package/esm/generated/registry.generated.d.ts +3 -3
- package/esm/generated/registry.generated.js +44 -18
- package/esm/registry.d.ts +22 -35
- package/esm/registry.js +65 -57
- package/generated/registry.generated.d.ts +3 -3
- package/generated/registry.generated.js +44 -18
- package/package.json +2 -2
- package/registry.d.ts +22 -35
- package/registry.js +65 -57
|
@@ -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 (
|
|
4
|
+
* Source of truth: the constructive-db error audit (817 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:
|
|
12
|
+
* Counts: 817 total, 598 public, 219 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 =
|
|
27
|
+
export declare const GENERATED_CODE_COUNT = 817;
|
|
@@ -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 (
|
|
5
|
+
* Source of truth: the constructive-db error audit (817 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:
|
|
13
|
+
* Counts: 817 total, 598 public, 219 internal.
|
|
14
14
|
*/
|
|
15
15
|
import { defineError } from '../define';
|
|
16
16
|
/** Every constructive-db error code, keyed by code. */
|
|
@@ -35,6 +35,9 @@ export const generatedRegistry = {
|
|
|
35
35
|
'APP_INSTALLATION_MISSING': defineError({ code: 'APP_INSTALLATION_MISSING', class: 'public', http: 400, message: 'App installation missing.' }),
|
|
36
36
|
'APP_INSTALL_NO_SERVICE': defineError({ code: 'APP_INSTALL_NO_SERVICE', class: 'public', http: 400, message: 'App install no service.' }),
|
|
37
37
|
'ASSIGN_PROFILES_CAPABILITY_REQUIRED': defineError({ code: 'ASSIGN_PROFILES_CAPABILITY_REQUIRED', class: 'internal', http: 500, message: 'Assign profiles capability required.' }),
|
|
38
|
+
'AST_OPTIONS_NOT_OBJECT': defineError({ code: 'AST_OPTIONS_NOT_OBJECT', class: 'internal', http: 500, message: 'Ast options not object.' }),
|
|
39
|
+
'AST_OPTION_REQUIRED': defineError({ code: 'AST_OPTION_REQUIRED', class: 'internal', http: 500, message: 'Ast option required.' }),
|
|
40
|
+
'AST_OPTION_UNKNOWN': defineError({ code: 'AST_OPTION_UNKNOWN', class: 'internal', http: 500, message: 'Ast option unknown.' }),
|
|
38
41
|
'ATTRIBUTION_REQUIRED': defineError({ code: 'ATTRIBUTION_REQUIRED', class: 'internal', http: 500, message: 'Attribution required.' }),
|
|
39
42
|
'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.' }),
|
|
40
43
|
'AUTHZ_COLUMN_SECURITY_COLUMNS_REQUIRED': defineError({ code: 'AUTHZ_COLUMN_SECURITY_COLUMNS_REQUIRED', class: 'public', http: 400, message: 'Authz column security columns required.' }),
|
|
@@ -72,6 +75,17 @@ export const generatedRegistry = {
|
|
|
72
75
|
'BAD_VIEW_EXPRESSION': defineError({ code: 'BAD_VIEW_EXPRESSION', class: 'public', http: 400, message: 'Bad view expression.' }),
|
|
73
76
|
'BEHAVIOR_FRAGMENT_EMPTY': defineError({ code: 'BEHAVIOR_FRAGMENT_EMPTY', class: 'internal', http: 500, message: 'Behavior fragment empty.' }),
|
|
74
77
|
'BILLING_DISPUTE_BALANCE_NOT_FOUND': defineError({ code: 'BILLING_DISPUTE_BALANCE_NOT_FOUND', class: 'internal', http: 500, message: 'Billing dispute balance not found.' }),
|
|
78
|
+
'BILLING_ENTITY_BUSY': defineError({ code: 'BILLING_ENTITY_BUSY', class: 'public', http: 400, message: 'Billing entity busy.' }),
|
|
79
|
+
'BILLING_HEALTH_INVALID': defineError({ code: 'BILLING_HEALTH_INVALID', class: 'internal', http: 500, message: 'Billing health invalid.' }),
|
|
80
|
+
'BILLING_NOT_READY': defineError({ code: 'BILLING_NOT_READY', class: 'public', http: 400, message: 'Billing not ready.' }),
|
|
81
|
+
'BILLING_OBSERVATION_INVALID': defineError({ code: 'BILLING_OBSERVATION_INVALID', class: 'internal', http: 500, message: 'Billing observation invalid.' }),
|
|
82
|
+
'BILLING_OPERATION_CONFLICT': defineError({ code: 'BILLING_OPERATION_CONFLICT', class: 'public', http: 400, message: 'Billing operation conflict.' }),
|
|
83
|
+
'BILLING_OPERATION_INVALID': defineError({ code: 'BILLING_OPERATION_INVALID', class: 'public', http: 400, message: 'Billing operation invalid.' }),
|
|
84
|
+
'BILLING_OPERATION_NOT_FOUND': defineError({ code: 'BILLING_OPERATION_NOT_FOUND', class: 'internal', http: 500, message: 'Billing operation not found.' }),
|
|
85
|
+
'BILLING_OPERATION_SETTLED': defineError({ code: 'BILLING_OPERATION_SETTLED', class: 'internal', http: 500, message: 'Billing operation settled.' }),
|
|
86
|
+
'BILLING_OPERATION_STATE_INVALID': defineError({ code: 'BILLING_OPERATION_STATE_INVALID', class: 'internal', http: 500, message: 'Billing operation state invalid.' }),
|
|
87
|
+
'BILLING_RECONCILE_BOUNDS_REQUIRED': defineError({ code: 'BILLING_RECONCILE_BOUNDS_REQUIRED', class: 'internal', http: 500, message: 'Billing reconcile bounds required.' }),
|
|
88
|
+
'BILLING_SCHEDULED_CHANGE_INVALID': defineError({ code: 'BILLING_SCHEDULED_CHANGE_INVALID', class: 'internal', http: 500, message: 'Billing scheduled change invalid.' }),
|
|
75
89
|
'BLUEPRINT_MODULE_NOT_INSTALLED': defineError({ code: 'BLUEPRINT_MODULE_NOT_INSTALLED', class: 'public', http: 400, message: 'Blueprint module not installed.' }),
|
|
76
90
|
'BLUEPRINT_MODULE_REF_AMBIGUOUS': defineError({ code: 'BLUEPRINT_MODULE_REF_AMBIGUOUS', class: 'public', http: 400, message: 'Blueprint module ref ambiguous.' }),
|
|
77
91
|
'BLUEPRINT_MODULE_REF_INVALID': defineError({ code: 'BLUEPRINT_MODULE_REF_INVALID', class: 'public', http: 400, message: 'Blueprint module ref invalid.' }),
|
|
@@ -363,7 +377,7 @@ export const generatedRegistry = {
|
|
|
363
377
|
'GRAPH_TREE_NOT_FOUND': defineError({ code: 'GRAPH_TREE_NOT_FOUND', class: 'internal', http: 500, message: 'Graph tree not found.' }),
|
|
364
378
|
'GRAPH_VALIDATION_FAILED': defineError({ code: 'GRAPH_VALIDATION_FAILED', class: 'internal', http: 500, message: 'GRAPH_VALIDATION_FAILED: graph {{arg0}} failed pre-execution validation: {{arg1}}', positional: ['arg0', 'arg1'] }),
|
|
365
379
|
'GROUPS_REQ_ENTITIES': defineError({ code: 'GROUPS_REQ_ENTITIES', class: 'public', http: 400, message: 'Groups req entities.' }),
|
|
366
|
-
'GUARD_STEP_UP': defineError({ code: 'GUARD_STEP_UP', class: 'internal', http: 500, message: 'GUARD_STEP_UP:
|
|
380
|
+
'GUARD_STEP_UP': defineError({ code: 'GUARD_STEP_UP', class: 'internal', http: 500, message: 'GUARD_STEP_UP: min_age anchor takes fk_col or anchor_conditions, not both' }),
|
|
367
381
|
'GUARD_STEP_UP_CONDITIONS_CONDITION_FIELD_CONFLICT': defineError({ code: 'GUARD_STEP_UP_CONDITIONS_CONDITION_FIELD_CONFLICT', class: 'public', http: 403, message: 'Guard step up conditions condition field conflict.' }),
|
|
368
382
|
'GUARD_STEP_UP_CONDITIONS_WATCH_FIELDS_CONFLICT': defineError({ code: 'GUARD_STEP_UP_CONDITIONS_WATCH_FIELDS_CONFLICT', class: 'public', http: 403, message: 'Guard step up conditions watch fields conflict.' }),
|
|
369
383
|
'GUARD_STEP_UP_CONDITION_FIELD_NOT_FOUND': defineError({ code: 'GUARD_STEP_UP_CONDITION_FIELD_NOT_FOUND', class: 'public', http: 404, message: 'Guard step up condition field not found.' }),
|
|
@@ -411,7 +425,10 @@ export const generatedRegistry = {
|
|
|
411
425
|
'HISTORY': defineError({ code: 'HISTORY', class: 'internal', http: 500, message: 'HISTORY: history {{arg0}}.{{arg1}} registration has no copy_fields', positional: ['arg0', 'arg1'] }),
|
|
412
426
|
'HOSTNAME_BINDING_SYNC': defineError({ code: 'HOSTNAME_BINDING_SYNC', class: 'internal', http: 500, message: 'HOSTNAME_BINDING_SYNC: unknown event {{arg0}}, expected UPSERT or DELETE', positional: ['arg0'] }),
|
|
413
427
|
'HOSTNAME_CLAIMED_IN_OTHER_PLANE': defineError({ code: 'HOSTNAME_CLAIMED_IN_OTHER_PLANE', class: 'public', http: 400, message: 'Hostname claimed in other plane.' }),
|
|
428
|
+
'IDENTIFIER_CLAIM_LIMIT': defineError({ code: 'IDENTIFIER_CLAIM_LIMIT', class: 'public', http: 429, message: 'Identifier claim limit.' }),
|
|
414
429
|
'IDENTIFIER_CONFLICT': defineError({ code: 'IDENTIFIER_CONFLICT', class: 'public', http: 400, message: 'Identifier conflict.' }),
|
|
430
|
+
'IDENTIFIER_UNVERIFIED_AMBIGUOUS': defineError({ code: 'IDENTIFIER_UNVERIFIED_AMBIGUOUS', class: 'public', http: 400, message: 'Identifier unverified ambiguous.' }),
|
|
431
|
+
'IDENTIFIER_VERIFIED_ELSEWHERE': defineError({ code: 'IDENTIFIER_VERIFIED_ELSEWHERE', class: 'public', http: 400, message: 'Identifier verified elsewhere.' }),
|
|
415
432
|
'IDENTITY_ACCOUNT_NOT_FOUND': defineError({ code: 'IDENTITY_ACCOUNT_NOT_FOUND', class: 'public', http: 404, message: 'Identity account not found.' }),
|
|
416
433
|
'IDENTITY_ALREADY_LINKED': defineError({ code: 'IDENTITY_ALREADY_LINKED', class: 'public', http: 409, message: 'Identity already linked.' }),
|
|
417
434
|
'IDENTITY_LINK_AVAILABLE': defineError({ code: 'IDENTITY_LINK_AVAILABLE', class: 'public', http: 400, message: 'Identity link available.' }),
|
|
@@ -538,6 +555,7 @@ export const generatedRegistry = {
|
|
|
538
555
|
'MERKLE_REF_NOT_FOUND': defineError({ code: 'MERKLE_REF_NOT_FOUND', class: 'public', http: 404, message: 'Merkle ref not found.' }),
|
|
539
556
|
'METER_RATE_LIMIT': defineError({ code: 'METER_RATE_LIMIT', class: 'internal', http: 500, message: 'METER_RATE_LIMIT: unknown event {{arg0}}, expected INSERT or UPDATE', positional: ['arg0'] }),
|
|
540
557
|
'MFA_CHALLENGE_EXPIRED': defineError({ code: 'MFA_CHALLENGE_EXPIRED', class: 'public', http: 403, message: 'Mfa challenge expired.' }),
|
|
558
|
+
'MFA_IDENTIFIER_UNVERIFIED': defineError({ code: 'MFA_IDENTIFIER_UNVERIFIED', class: 'public', http: 403, message: 'Mfa identifier unverified.' }),
|
|
541
559
|
'MFA_REQUIRED': defineError({ code: 'MFA_REQUIRED', class: 'public', http: 403, message: 'Mfa required.' }),
|
|
542
560
|
'MISSING_FIXTURE_TYPE': defineError({ code: 'MISSING_FIXTURE_TYPE', class: 'internal', http: 500, message: 'Missing fixture type.' }),
|
|
543
561
|
'MISSING_REQUIRED_FIELD': defineError({ code: 'MISSING_REQUIRED_FIELD', class: 'public', http: 400, message: 'Missing required field.' }),
|
|
@@ -717,6 +735,7 @@ export const generatedRegistry = {
|
|
|
717
735
|
'SITE_SURFACE_NOT_PROVISIONED': defineError({ code: 'SITE_SURFACE_NOT_PROVISIONED', class: 'public', http: 400, message: 'Site surface not provisioned.' }),
|
|
718
736
|
'SMS_SIGN_IN_DISABLED': defineError({ code: 'SMS_SIGN_IN_DISABLED', class: 'public', http: 403, message: 'Sms sign in disabled.' }),
|
|
719
737
|
'SMS_SIGN_UP_DISABLED': defineError({ code: 'SMS_SIGN_UP_DISABLED', class: 'public', http: 403, message: 'Sms sign up disabled.' }),
|
|
738
|
+
'SMS_VERIFICATION_DISABLED': defineError({ code: 'SMS_VERIFICATION_DISABLED', class: 'public', http: 403, message: 'Sms verification disabled.' }),
|
|
720
739
|
'SOURCE_COMMIT_NOT_FOUND': defineError({ code: 'SOURCE_COMMIT_NOT_FOUND', class: 'internal', http: 500, message: 'Source commit not found.' }),
|
|
721
740
|
'SOURCE_EMAILS_NOT_FOUND': defineError({ code: 'SOURCE_EMAILS_NOT_FOUND', class: 'internal', http: 500, message: 'Source emails not found.' }),
|
|
722
741
|
'SOURCE_SECRETS_NOT_FOUND': defineError({ code: 'SOURCE_SECRETS_NOT_FOUND', class: 'internal', http: 500, message: 'Source secrets not found.' }),
|
|
@@ -735,12 +754,10 @@ export const generatedRegistry = {
|
|
|
735
754
|
'STEP_UP_REQUIRED_FRESH_AUTH': defineError({ code: 'STEP_UP_REQUIRED_FRESH_AUTH', class: 'public', http: 403, message: 'Please verify your identity to continue.' }),
|
|
736
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.' }),
|
|
737
756
|
'STEP_UP_REQUIRED_PASSWORD': defineError({ code: 'STEP_UP_REQUIRED_PASSWORD', class: 'public', http: 403, message: 'Please re-enter your password to continue.' }),
|
|
738
|
-
'STORAGE_ACCESS_CLAIM_MISMATCH': defineError({ code: 'STORAGE_ACCESS_CLAIM_MISMATCH', class: 'public', http: 400, message: 'Storage access claim mismatch.' }),
|
|
739
757
|
'STORAGE_API_NOT_PROVISIONED': defineError({ code: 'STORAGE_API_NOT_PROVISIONED', class: 'public', http: 400, message: 'Storage api not provisioned.' }),
|
|
740
758
|
'STORAGE_DESTINATION_REQUIRES_TEMP': defineError({ code: 'STORAGE_DESTINATION_REQUIRES_TEMP', class: 'internal', http: 500, message: 'Storage destination requires temp.' }),
|
|
741
759
|
'STORAGE_FILE_BUCKET_IMMUTABLE': defineError({ code: 'STORAGE_FILE_BUCKET_IMMUTABLE', class: 'internal', http: 500, message: 'Storage file bucket immutable.' }),
|
|
742
760
|
'STORAGE_FILE_KEY_IMMUTABLE': defineError({ code: 'STORAGE_FILE_KEY_IMMUTABLE', class: 'internal', http: 500, message: 'Storage file key immutable.' }),
|
|
743
|
-
'STORAGE_FILE_NOT_FOUND': defineError({ code: 'STORAGE_FILE_NOT_FOUND', class: 'public', http: 404, message: 'Storage file not found.' }),
|
|
744
761
|
'STORAGE_GC_CONTENT_HASH_UNSUPPORTED': defineError({ code: 'STORAGE_GC_CONTENT_HASH_UNSUPPORTED', class: 'internal', http: 500, message: 'Storage gc content hash unsupported.' }),
|
|
745
762
|
'STORAGE_GC_FILES_TABLE_MISSING': defineError({ code: 'STORAGE_GC_FILES_TABLE_MISSING', class: 'internal', http: 500, message: 'Storage gc files table missing.' }),
|
|
746
763
|
'STORAGE_GC_MODULE_AMBIGUOUS': defineError({ code: 'STORAGE_GC_MODULE_AMBIGUOUS', class: 'internal', http: 500, message: 'Storage gc module ambiguous.' }),
|
|
@@ -750,15 +767,10 @@ export const generatedRegistry = {
|
|
|
750
767
|
'STORAGE_GC_REF_CROSS_DATABASE': defineError({ code: 'STORAGE_GC_REF_CROSS_DATABASE', class: 'internal', http: 500, message: 'Storage gc ref cross database.' }),
|
|
751
768
|
'STORAGE_GC_REF_FIELD_MISSING': defineError({ code: 'STORAGE_GC_REF_FIELD_MISSING', class: 'internal', http: 500, message: 'Storage gc ref field missing.' }),
|
|
752
769
|
'STORAGE_GC_REF_TABLE_MISSING': defineError({ code: 'STORAGE_GC_REF_TABLE_MISSING', class: 'internal', http: 500, message: 'Storage gc ref table missing.' }),
|
|
753
|
-
'STORAGE_INVALID_COMPLETION_RESULT': defineError({ code: 'STORAGE_INVALID_COMPLETION_RESULT', class: 'public', http: 400, message: 'Storage invalid completion result.' }),
|
|
754
|
-
'STORAGE_INVALID_UPLOAD_DOCUMENT': defineError({ code: 'STORAGE_INVALID_UPLOAD_DOCUMENT', class: 'internal', http: 500, message: 'Storage invalid upload document.' }),
|
|
755
770
|
'STORAGE_MODULE_ENTITY_FIELD_INVALID': defineError({ code: 'STORAGE_MODULE_ENTITY_FIELD_INVALID', class: 'internal', http: 500, message: 'Storage module entity field invalid.' }),
|
|
756
771
|
'STORAGE_MODULE_NOT_FOUND': defineError({ code: 'STORAGE_MODULE_NOT_FOUND', class: 'internal', http: 500, message: 'Storage module not found.' }),
|
|
757
|
-
'STORAGE_PROCESSING_CONFLICT': defineError({ code: 'STORAGE_PROCESSING_CONFLICT', class: 'public', http: 400, message: 'Storage processing conflict.' }),
|
|
758
772
|
'STORAGE_PROMOTION_DESTINATION_MISMATCH': defineError({ code: 'STORAGE_PROMOTION_DESTINATION_MISMATCH', class: 'internal', http: 500, message: 'Storage promotion destination mismatch.' }),
|
|
759
773
|
'STORAGE_PROMOTION_VISIBILITY_MISMATCH': defineError({ code: 'STORAGE_PROMOTION_VISIBILITY_MISMATCH', class: 'internal', http: 500, message: 'Storage promotion visibility mismatch.' }),
|
|
760
|
-
'STORAGE_SOURCE_HASH_MISMATCH': defineError({ code: 'STORAGE_SOURCE_HASH_MISMATCH', class: 'public', http: 400, message: 'Storage source hash mismatch.' }),
|
|
761
|
-
'STORAGE_SOURCE_HASH_REQUIRED': defineError({ code: 'STORAGE_SOURCE_HASH_REQUIRED', class: 'public', http: 400, message: 'Storage source hash required.' }),
|
|
762
774
|
'STORAGE_STAGING_BUCKET_NO_DESTINATION': defineError({ code: 'STORAGE_STAGING_BUCKET_NO_DESTINATION', class: 'internal', http: 500, message: 'Storage staging bucket no destination.' }),
|
|
763
775
|
'STORAGE_STAGING_BUCKET_NO_TTL': defineError({ code: 'STORAGE_STAGING_BUCKET_NO_TTL', class: 'internal', http: 500, message: 'Storage staging bucket no ttl.' }),
|
|
764
776
|
'STORAGE_STAGING_DESTINATION_INVALID': defineError({ code: 'STORAGE_STAGING_DESTINATION_INVALID', class: 'internal', http: 500, message: 'Storage staging destination invalid.' }),
|
|
@@ -794,6 +806,7 @@ export const generatedRegistry = {
|
|
|
794
806
|
'TRIGGER_WHEN_AST_ROW_UNAVAILABLE': defineError({ code: 'TRIGGER_WHEN_AST_ROW_UNAVAILABLE', class: 'public', http: 400, message: 'Trigger when ast row unavailable.' }),
|
|
795
807
|
'TRUST_LADDER_OPTION_INVALID': defineError({ code: 'TRUST_LADDER_OPTION_INVALID', class: 'internal', http: 500, message: 'Trust ladder option invalid.' }),
|
|
796
808
|
'UNAUTHENTICATED': defineError({ code: 'UNAUTHENTICATED', class: 'public', http: 401, message: 'Unauthenticated.' }),
|
|
809
|
+
'UNKNOWN_METER': defineError({ code: 'UNKNOWN_METER', class: 'public', http: 400, message: 'Unknown meter.' }),
|
|
797
810
|
'UNKNOWN_POLICY_TYPE': defineError({ code: 'UNKNOWN_POLICY_TYPE', class: 'public', http: 400, message: 'Unknown policy type.' }),
|
|
798
811
|
'UNKNOWN_VIEW_TYPE': defineError({ code: 'UNKNOWN_VIEW_TYPE', class: 'public', http: 400, message: 'Unknown view type.', positional: ['arg0'] }),
|
|
799
812
|
'UNSUPPORTED': defineError({ code: 'UNSUPPORTED', class: 'internal', http: 500, message: 'UNSUPPORTED POLICY ({{arg0}})', positional: ['arg0'] }),
|
|
@@ -842,6 +855,9 @@ export const GENERATED_CODE_META = {
|
|
|
842
855
|
'APP_INSTALLATION_MISSING': { class: 'public', dynamic: false, generatedOnly: false },
|
|
843
856
|
'APP_INSTALL_NO_SERVICE': { class: 'public', dynamic: false, generatedOnly: false },
|
|
844
857
|
'ASSIGN_PROFILES_CAPABILITY_REQUIRED': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
858
|
+
'AST_OPTIONS_NOT_OBJECT': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
859
|
+
'AST_OPTION_REQUIRED': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
860
|
+
'AST_OPTION_UNKNOWN': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
845
861
|
'ATTRIBUTION_REQUIRED': { class: 'internal', dynamic: false, generatedOnly: true },
|
|
846
862
|
'AUTHZ_COLUMN_SECURITY_AUTHZ_NODE_REQUIRED': { class: 'public', dynamic: false, generatedOnly: false },
|
|
847
863
|
'AUTHZ_COLUMN_SECURITY_COLUMNS_REQUIRED': { class: 'public', dynamic: false, generatedOnly: false },
|
|
@@ -879,6 +895,17 @@ export const GENERATED_CODE_META = {
|
|
|
879
895
|
'BAD_VIEW_EXPRESSION': { class: 'public', dynamic: false, generatedOnly: false },
|
|
880
896
|
'BEHAVIOR_FRAGMENT_EMPTY': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
881
897
|
'BILLING_DISPUTE_BALANCE_NOT_FOUND': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
898
|
+
'BILLING_ENTITY_BUSY': { class: 'public', dynamic: false, generatedOnly: true },
|
|
899
|
+
'BILLING_HEALTH_INVALID': { class: 'internal', dynamic: false, generatedOnly: true },
|
|
900
|
+
'BILLING_NOT_READY': { class: 'public', dynamic: false, generatedOnly: false },
|
|
901
|
+
'BILLING_OBSERVATION_INVALID': { class: 'internal', dynamic: false, generatedOnly: true },
|
|
902
|
+
'BILLING_OPERATION_CONFLICT': { class: 'public', dynamic: false, generatedOnly: true },
|
|
903
|
+
'BILLING_OPERATION_INVALID': { class: 'public', dynamic: false, generatedOnly: true },
|
|
904
|
+
'BILLING_OPERATION_NOT_FOUND': { class: 'internal', dynamic: false, generatedOnly: true },
|
|
905
|
+
'BILLING_OPERATION_SETTLED': { class: 'internal', dynamic: false, generatedOnly: true },
|
|
906
|
+
'BILLING_OPERATION_STATE_INVALID': { class: 'internal', dynamic: false, generatedOnly: true },
|
|
907
|
+
'BILLING_RECONCILE_BOUNDS_REQUIRED': { class: 'internal', dynamic: false, generatedOnly: true },
|
|
908
|
+
'BILLING_SCHEDULED_CHANGE_INVALID': { class: 'internal', dynamic: false, generatedOnly: true },
|
|
882
909
|
'BLUEPRINT_MODULE_NOT_INSTALLED': { class: 'public', dynamic: false, generatedOnly: false },
|
|
883
910
|
'BLUEPRINT_MODULE_REF_AMBIGUOUS': { class: 'public', dynamic: false, generatedOnly: false },
|
|
884
911
|
'BLUEPRINT_MODULE_REF_INVALID': { class: 'public', dynamic: false, generatedOnly: false },
|
|
@@ -1218,7 +1245,10 @@ export const GENERATED_CODE_META = {
|
|
|
1218
1245
|
'HISTORY': { class: 'internal', dynamic: true, generatedOnly: false },
|
|
1219
1246
|
'HOSTNAME_BINDING_SYNC': { class: 'internal', dynamic: true, generatedOnly: false },
|
|
1220
1247
|
'HOSTNAME_CLAIMED_IN_OTHER_PLANE': { class: 'public', dynamic: false, generatedOnly: true },
|
|
1248
|
+
'IDENTIFIER_CLAIM_LIMIT': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1221
1249
|
'IDENTIFIER_CONFLICT': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1250
|
+
'IDENTIFIER_UNVERIFIED_AMBIGUOUS': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1251
|
+
'IDENTIFIER_VERIFIED_ELSEWHERE': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1222
1252
|
'IDENTITY_ACCOUNT_NOT_FOUND': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1223
1253
|
'IDENTITY_ALREADY_LINKED': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1224
1254
|
'IDENTITY_LINK_AVAILABLE': { class: 'public', dynamic: false, generatedOnly: false },
|
|
@@ -1345,6 +1375,7 @@ export const GENERATED_CODE_META = {
|
|
|
1345
1375
|
'MERKLE_REF_NOT_FOUND': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1346
1376
|
'METER_RATE_LIMIT': { class: 'internal', dynamic: true, generatedOnly: false },
|
|
1347
1377
|
'MFA_CHALLENGE_EXPIRED': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1378
|
+
'MFA_IDENTIFIER_UNVERIFIED': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1348
1379
|
'MFA_REQUIRED': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1349
1380
|
'MISSING_FIXTURE_TYPE': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1350
1381
|
'MISSING_REQUIRED_FIELD': { class: 'public', dynamic: false, generatedOnly: false },
|
|
@@ -1524,6 +1555,7 @@ export const GENERATED_CODE_META = {
|
|
|
1524
1555
|
'SITE_SURFACE_NOT_PROVISIONED': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1525
1556
|
'SMS_SIGN_IN_DISABLED': { class: 'public', dynamic: false, generatedOnly: true },
|
|
1526
1557
|
'SMS_SIGN_UP_DISABLED': { class: 'public', dynamic: false, generatedOnly: true },
|
|
1558
|
+
'SMS_VERIFICATION_DISABLED': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1527
1559
|
'SOURCE_COMMIT_NOT_FOUND': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1528
1560
|
'SOURCE_EMAILS_NOT_FOUND': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1529
1561
|
'SOURCE_SECRETS_NOT_FOUND': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
@@ -1542,12 +1574,10 @@ export const GENERATED_CODE_META = {
|
|
|
1542
1574
|
'STEP_UP_REQUIRED_FRESH_AUTH': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1543
1575
|
'STEP_UP_REQUIRED_MFA': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1544
1576
|
'STEP_UP_REQUIRED_PASSWORD': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1545
|
-
'STORAGE_ACCESS_CLAIM_MISMATCH': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1546
1577
|
'STORAGE_API_NOT_PROVISIONED': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1547
1578
|
'STORAGE_DESTINATION_REQUIRES_TEMP': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1548
1579
|
'STORAGE_FILE_BUCKET_IMMUTABLE': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1549
1580
|
'STORAGE_FILE_KEY_IMMUTABLE': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1550
|
-
'STORAGE_FILE_NOT_FOUND': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1551
1581
|
'STORAGE_GC_CONTENT_HASH_UNSUPPORTED': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1552
1582
|
'STORAGE_GC_FILES_TABLE_MISSING': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1553
1583
|
'STORAGE_GC_MODULE_AMBIGUOUS': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
@@ -1557,15 +1587,10 @@ export const GENERATED_CODE_META = {
|
|
|
1557
1587
|
'STORAGE_GC_REF_CROSS_DATABASE': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1558
1588
|
'STORAGE_GC_REF_FIELD_MISSING': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1559
1589
|
'STORAGE_GC_REF_TABLE_MISSING': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1560
|
-
'STORAGE_INVALID_COMPLETION_RESULT': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1561
|
-
'STORAGE_INVALID_UPLOAD_DOCUMENT': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1562
1590
|
'STORAGE_MODULE_ENTITY_FIELD_INVALID': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1563
1591
|
'STORAGE_MODULE_NOT_FOUND': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1564
|
-
'STORAGE_PROCESSING_CONFLICT': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1565
1592
|
'STORAGE_PROMOTION_DESTINATION_MISMATCH': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1566
1593
|
'STORAGE_PROMOTION_VISIBILITY_MISMATCH': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1567
|
-
'STORAGE_SOURCE_HASH_MISMATCH': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1568
|
-
'STORAGE_SOURCE_HASH_REQUIRED': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1569
1594
|
'STORAGE_STAGING_BUCKET_NO_DESTINATION': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1570
1595
|
'STORAGE_STAGING_BUCKET_NO_TTL': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1571
1596
|
'STORAGE_STAGING_DESTINATION_INVALID': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
@@ -1601,6 +1626,7 @@ export const GENERATED_CODE_META = {
|
|
|
1601
1626
|
'TRIGGER_WHEN_AST_ROW_UNAVAILABLE': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1602
1627
|
'TRUST_LADDER_OPTION_INVALID': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1603
1628
|
'UNAUTHENTICATED': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1629
|
+
'UNKNOWN_METER': { class: 'public', dynamic: false, generatedOnly: true },
|
|
1604
1630
|
'UNKNOWN_POLICY_TYPE': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1605
1631
|
'UNKNOWN_VIEW_TYPE': { class: 'public', dynamic: true, generatedOnly: false },
|
|
1606
1632
|
'UNSUPPORTED': { class: 'internal', dynamic: true, generatedOnly: false },
|
|
@@ -1628,4 +1654,4 @@ export const GENERATED_CODE_META = {
|
|
|
1628
1654
|
'WITH_CHECK_NOT_ALLOWED': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1629
1655
|
};
|
|
1630
1656
|
/** Total number of codes collected from constructive-db. */
|
|
1631
|
-
export const GENERATED_CODE_COUNT =
|
|
1657
|
+
export const GENERATED_CODE_COUNT = 817;
|
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,39 +11,16 @@ 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>;
|
|
17
|
+
readonly IDENTIFIER_VERIFIED_ELSEWHERE: import("./define").DefinedError<import("./types").EmptyContext>;
|
|
18
|
+
readonly IDENTIFIER_UNVERIFIED_AMBIGUOUS: import("./define").DefinedError<import("./types").EmptyContext>;
|
|
19
|
+
readonly IDENTIFIER_CLAIM_LIMIT: import("./define").DefinedError<{
|
|
20
|
+
limit?: number;
|
|
21
|
+
}>;
|
|
22
|
+
readonly MFA_IDENTIFIER_UNVERIFIED: import("./define").DefinedError<import("./types").EmptyContext>;
|
|
23
|
+
readonly SMS_VERIFICATION_DISABLED: import("./define").DefinedError<import("./types").EmptyContext>;
|
|
52
24
|
readonly ACCOUNT_NOT_FOUND: import("./define").DefinedError<import("./types").EmptyContext>;
|
|
53
25
|
readonly NO_ACCOUNT_EXISTS: import("./define").DefinedError<{
|
|
54
26
|
userId?: string;
|
|
@@ -107,6 +79,21 @@ export declare const registry: {
|
|
|
107
79
|
limit?: number;
|
|
108
80
|
}>;
|
|
109
81
|
readonly RATE_LIMITED: import("./define").DefinedError<import("./types").EmptyContext>;
|
|
82
|
+
readonly BILLING_NOT_READY: import("./define").DefinedError<{
|
|
83
|
+
database_id?: string;
|
|
84
|
+
checked_at?: string | null;
|
|
85
|
+
ready?: boolean | null;
|
|
86
|
+
}>;
|
|
87
|
+
readonly BILLING_ENTITY_BUSY: import("./define").DefinedError<{
|
|
88
|
+
entity_id?: string;
|
|
89
|
+
}>;
|
|
90
|
+
readonly BILLING_OPERATION_CONFLICT: import("./define").DefinedError<{
|
|
91
|
+
operation_id?: string;
|
|
92
|
+
}>;
|
|
93
|
+
readonly BILLING_OPERATION_INVALID: import("./define").DefinedError<import("./types").EmptyContext>;
|
|
94
|
+
readonly UNKNOWN_METER: import("./define").DefinedError<{
|
|
95
|
+
meter_slug?: string;
|
|
96
|
+
}>;
|
|
110
97
|
readonly QUERY_TOO_DEEP: import("./define").DefinedError<{
|
|
111
98
|
depth?: number;
|
|
112
99
|
limit?: number;
|
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
|
// ===========================================================================
|
|
@@ -95,6 +38,38 @@ export const registry = {
|
|
|
95
38
|
http: 409,
|
|
96
39
|
message: 'The email and phone number belong to different accounts. Provide only one of them.'
|
|
97
40
|
}),
|
|
41
|
+
// Verified-only identifier uniqueness: an email/phone may sit unverified on
|
|
42
|
+
// several accounts, but only one account may hold it verified.
|
|
43
|
+
IDENTIFIER_VERIFIED_ELSEWHERE: defineError({
|
|
44
|
+
code: 'IDENTIFIER_VERIFIED_ELSEWHERE',
|
|
45
|
+
class: 'public',
|
|
46
|
+
http: 409,
|
|
47
|
+
message: 'This email or phone number is already verified on another account. Sign in to that account or use a different one.'
|
|
48
|
+
}),
|
|
49
|
+
IDENTIFIER_UNVERIFIED_AMBIGUOUS: defineError({
|
|
50
|
+
code: 'IDENTIFIER_UNVERIFIED_AMBIGUOUS',
|
|
51
|
+
class: 'public',
|
|
52
|
+
http: 409,
|
|
53
|
+
message: 'This email or phone number is pending verification on more than one account. Verify it first to continue.'
|
|
54
|
+
}),
|
|
55
|
+
IDENTIFIER_CLAIM_LIMIT: defineError({
|
|
56
|
+
code: 'IDENTIFIER_CLAIM_LIMIT',
|
|
57
|
+
class: 'public',
|
|
58
|
+
http: 429,
|
|
59
|
+
message: 'This account has too many unverified emails or phone numbers. Verify or remove one before adding another.'
|
|
60
|
+
}),
|
|
61
|
+
MFA_IDENTIFIER_UNVERIFIED: defineError({
|
|
62
|
+
code: 'MFA_IDENTIFIER_UNVERIFIED',
|
|
63
|
+
class: 'public',
|
|
64
|
+
http: 403,
|
|
65
|
+
message: 'Verify this email or phone number before using it for multi-factor authentication.'
|
|
66
|
+
}),
|
|
67
|
+
SMS_VERIFICATION_DISABLED: defineError({
|
|
68
|
+
code: 'SMS_VERIFICATION_DISABLED',
|
|
69
|
+
class: 'public',
|
|
70
|
+
http: 403,
|
|
71
|
+
message: 'Phone number verification is not enabled.'
|
|
72
|
+
}),
|
|
98
73
|
ACCOUNT_NOT_FOUND: defineError({
|
|
99
74
|
code: 'ACCOUNT_NOT_FOUND',
|
|
100
75
|
class: 'public',
|
|
@@ -399,6 +374,39 @@ export const registry = {
|
|
|
399
374
|
message: 'Too many requests. Please slow down and try again shortly.'
|
|
400
375
|
}),
|
|
401
376
|
// ===========================================================================
|
|
377
|
+
// Billing provider operations (public)
|
|
378
|
+
// ===========================================================================
|
|
379
|
+
BILLING_NOT_READY: defineError({
|
|
380
|
+
code: 'BILLING_NOT_READY',
|
|
381
|
+
class: 'public',
|
|
382
|
+
http: 409,
|
|
383
|
+
message: 'Billing is not ready for this database yet. Please try again shortly.'
|
|
384
|
+
}),
|
|
385
|
+
BILLING_ENTITY_BUSY: defineError({
|
|
386
|
+
code: 'BILLING_ENTITY_BUSY',
|
|
387
|
+
class: 'public',
|
|
388
|
+
http: 409,
|
|
389
|
+
message: 'Another billing operation is already in progress for this account. Please wait for it to finish.'
|
|
390
|
+
}),
|
|
391
|
+
BILLING_OPERATION_CONFLICT: defineError({
|
|
392
|
+
code: 'BILLING_OPERATION_CONFLICT',
|
|
393
|
+
class: 'public',
|
|
394
|
+
http: 409,
|
|
395
|
+
message: 'This billing operation ID was already used for a different request.'
|
|
396
|
+
}),
|
|
397
|
+
BILLING_OPERATION_INVALID: defineError({
|
|
398
|
+
code: 'BILLING_OPERATION_INVALID',
|
|
399
|
+
class: 'public',
|
|
400
|
+
http: 400,
|
|
401
|
+
message: 'The billing operation request is invalid.'
|
|
402
|
+
}),
|
|
403
|
+
UNKNOWN_METER: defineError({
|
|
404
|
+
code: 'UNKNOWN_METER',
|
|
405
|
+
class: 'public',
|
|
406
|
+
http: 404,
|
|
407
|
+
message: 'The requested meter does not exist.'
|
|
408
|
+
}),
|
|
409
|
+
// ===========================================================================
|
|
402
410
|
// Request protection (public, dynamic) — raised by the GraphQL runtime when a
|
|
403
411
|
// request exceeds the bounds resolved from database_settings/api_settings.
|
|
404
412
|
// Each carries the limit that was in force so a client can adapt rather than
|
|
@@ -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 (
|
|
4
|
+
* Source of truth: the constructive-db error audit (817 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:
|
|
12
|
+
* Counts: 817 total, 598 public, 219 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 =
|
|
27
|
+
export declare const GENERATED_CODE_COUNT = 817;
|
|
@@ -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 (
|
|
8
|
+
* Source of truth: the constructive-db error audit (817 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:
|
|
16
|
+
* Counts: 817 total, 598 public, 219 internal.
|
|
17
17
|
*/
|
|
18
18
|
const define_1 = require("../define");
|
|
19
19
|
/** Every constructive-db error code, keyed by code. */
|
|
@@ -38,6 +38,9 @@ exports.generatedRegistry = {
|
|
|
38
38
|
'APP_INSTALLATION_MISSING': (0, define_1.defineError)({ code: 'APP_INSTALLATION_MISSING', class: 'public', http: 400, message: 'App installation missing.' }),
|
|
39
39
|
'APP_INSTALL_NO_SERVICE': (0, define_1.defineError)({ code: 'APP_INSTALL_NO_SERVICE', class: 'public', http: 400, message: 'App install no service.' }),
|
|
40
40
|
'ASSIGN_PROFILES_CAPABILITY_REQUIRED': (0, define_1.defineError)({ code: 'ASSIGN_PROFILES_CAPABILITY_REQUIRED', class: 'internal', http: 500, message: 'Assign profiles capability required.' }),
|
|
41
|
+
'AST_OPTIONS_NOT_OBJECT': (0, define_1.defineError)({ code: 'AST_OPTIONS_NOT_OBJECT', class: 'internal', http: 500, message: 'Ast options not object.' }),
|
|
42
|
+
'AST_OPTION_REQUIRED': (0, define_1.defineError)({ code: 'AST_OPTION_REQUIRED', class: 'internal', http: 500, message: 'Ast option required.' }),
|
|
43
|
+
'AST_OPTION_UNKNOWN': (0, define_1.defineError)({ code: 'AST_OPTION_UNKNOWN', class: 'internal', http: 500, message: 'Ast option unknown.' }),
|
|
41
44
|
'ATTRIBUTION_REQUIRED': (0, define_1.defineError)({ code: 'ATTRIBUTION_REQUIRED', class: 'internal', http: 500, message: 'Attribution required.' }),
|
|
42
45
|
'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.' }),
|
|
43
46
|
'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.' }),
|
|
@@ -75,6 +78,17 @@ exports.generatedRegistry = {
|
|
|
75
78
|
'BAD_VIEW_EXPRESSION': (0, define_1.defineError)({ code: 'BAD_VIEW_EXPRESSION', class: 'public', http: 400, message: 'Bad view expression.' }),
|
|
76
79
|
'BEHAVIOR_FRAGMENT_EMPTY': (0, define_1.defineError)({ code: 'BEHAVIOR_FRAGMENT_EMPTY', class: 'internal', http: 500, message: 'Behavior fragment empty.' }),
|
|
77
80
|
'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
|
+
'BILLING_ENTITY_BUSY': (0, define_1.defineError)({ code: 'BILLING_ENTITY_BUSY', class: 'public', http: 400, message: 'Billing entity busy.' }),
|
|
82
|
+
'BILLING_HEALTH_INVALID': (0, define_1.defineError)({ code: 'BILLING_HEALTH_INVALID', class: 'internal', http: 500, message: 'Billing health invalid.' }),
|
|
83
|
+
'BILLING_NOT_READY': (0, define_1.defineError)({ code: 'BILLING_NOT_READY', class: 'public', http: 400, message: 'Billing not ready.' }),
|
|
84
|
+
'BILLING_OBSERVATION_INVALID': (0, define_1.defineError)({ code: 'BILLING_OBSERVATION_INVALID', class: 'internal', http: 500, message: 'Billing observation invalid.' }),
|
|
85
|
+
'BILLING_OPERATION_CONFLICT': (0, define_1.defineError)({ code: 'BILLING_OPERATION_CONFLICT', class: 'public', http: 400, message: 'Billing operation conflict.' }),
|
|
86
|
+
'BILLING_OPERATION_INVALID': (0, define_1.defineError)({ code: 'BILLING_OPERATION_INVALID', class: 'public', http: 400, message: 'Billing operation invalid.' }),
|
|
87
|
+
'BILLING_OPERATION_NOT_FOUND': (0, define_1.defineError)({ code: 'BILLING_OPERATION_NOT_FOUND', class: 'internal', http: 500, message: 'Billing operation not found.' }),
|
|
88
|
+
'BILLING_OPERATION_SETTLED': (0, define_1.defineError)({ code: 'BILLING_OPERATION_SETTLED', class: 'internal', http: 500, message: 'Billing operation settled.' }),
|
|
89
|
+
'BILLING_OPERATION_STATE_INVALID': (0, define_1.defineError)({ code: 'BILLING_OPERATION_STATE_INVALID', class: 'internal', http: 500, message: 'Billing operation state invalid.' }),
|
|
90
|
+
'BILLING_RECONCILE_BOUNDS_REQUIRED': (0, define_1.defineError)({ code: 'BILLING_RECONCILE_BOUNDS_REQUIRED', class: 'internal', http: 500, message: 'Billing reconcile bounds required.' }),
|
|
91
|
+
'BILLING_SCHEDULED_CHANGE_INVALID': (0, define_1.defineError)({ code: 'BILLING_SCHEDULED_CHANGE_INVALID', class: 'internal', http: 500, message: 'Billing scheduled change invalid.' }),
|
|
78
92
|
'BLUEPRINT_MODULE_NOT_INSTALLED': (0, define_1.defineError)({ code: 'BLUEPRINT_MODULE_NOT_INSTALLED', class: 'public', http: 400, message: 'Blueprint module not installed.' }),
|
|
79
93
|
'BLUEPRINT_MODULE_REF_AMBIGUOUS': (0, define_1.defineError)({ code: 'BLUEPRINT_MODULE_REF_AMBIGUOUS', class: 'public', http: 400, message: 'Blueprint module ref ambiguous.' }),
|
|
80
94
|
'BLUEPRINT_MODULE_REF_INVALID': (0, define_1.defineError)({ code: 'BLUEPRINT_MODULE_REF_INVALID', class: 'public', http: 400, message: 'Blueprint module ref invalid.' }),
|
|
@@ -366,7 +380,7 @@ exports.generatedRegistry = {
|
|
|
366
380
|
'GRAPH_TREE_NOT_FOUND': (0, define_1.defineError)({ code: 'GRAPH_TREE_NOT_FOUND', class: 'internal', http: 500, message: 'Graph tree not found.' }),
|
|
367
381
|
'GRAPH_VALIDATION_FAILED': (0, define_1.defineError)({ code: 'GRAPH_VALIDATION_FAILED', class: 'internal', http: 500, message: 'GRAPH_VALIDATION_FAILED: graph {{arg0}} failed pre-execution validation: {{arg1}}', positional: ['arg0', 'arg1'] }),
|
|
368
382
|
'GROUPS_REQ_ENTITIES': (0, define_1.defineError)({ code: 'GROUPS_REQ_ENTITIES', class: 'public', http: 400, message: 'Groups req entities.' }),
|
|
369
|
-
'GUARD_STEP_UP': (0, define_1.defineError)({ code: 'GUARD_STEP_UP', class: 'internal', http: 500, message: 'GUARD_STEP_UP:
|
|
383
|
+
'GUARD_STEP_UP': (0, define_1.defineError)({ code: 'GUARD_STEP_UP', class: 'internal', http: 500, message: 'GUARD_STEP_UP: min_age anchor takes fk_col or anchor_conditions, not both' }),
|
|
370
384
|
'GUARD_STEP_UP_CONDITIONS_CONDITION_FIELD_CONFLICT': (0, define_1.defineError)({ code: 'GUARD_STEP_UP_CONDITIONS_CONDITION_FIELD_CONFLICT', class: 'public', http: 403, message: 'Guard step up conditions condition field conflict.' }),
|
|
371
385
|
'GUARD_STEP_UP_CONDITIONS_WATCH_FIELDS_CONFLICT': (0, define_1.defineError)({ code: 'GUARD_STEP_UP_CONDITIONS_WATCH_FIELDS_CONFLICT', class: 'public', http: 403, message: 'Guard step up conditions watch fields conflict.' }),
|
|
372
386
|
'GUARD_STEP_UP_CONDITION_FIELD_NOT_FOUND': (0, define_1.defineError)({ code: 'GUARD_STEP_UP_CONDITION_FIELD_NOT_FOUND', class: 'public', http: 404, message: 'Guard step up condition field not found.' }),
|
|
@@ -414,7 +428,10 @@ exports.generatedRegistry = {
|
|
|
414
428
|
'HISTORY': (0, define_1.defineError)({ code: 'HISTORY', class: 'internal', http: 500, message: 'HISTORY: history {{arg0}}.{{arg1}} registration has no copy_fields', positional: ['arg0', 'arg1'] }),
|
|
415
429
|
'HOSTNAME_BINDING_SYNC': (0, define_1.defineError)({ code: 'HOSTNAME_BINDING_SYNC', class: 'internal', http: 500, message: 'HOSTNAME_BINDING_SYNC: unknown event {{arg0}}, expected UPSERT or DELETE', positional: ['arg0'] }),
|
|
416
430
|
'HOSTNAME_CLAIMED_IN_OTHER_PLANE': (0, define_1.defineError)({ code: 'HOSTNAME_CLAIMED_IN_OTHER_PLANE', class: 'public', http: 400, message: 'Hostname claimed in other plane.' }),
|
|
431
|
+
'IDENTIFIER_CLAIM_LIMIT': (0, define_1.defineError)({ code: 'IDENTIFIER_CLAIM_LIMIT', class: 'public', http: 429, message: 'Identifier claim limit.' }),
|
|
417
432
|
'IDENTIFIER_CONFLICT': (0, define_1.defineError)({ code: 'IDENTIFIER_CONFLICT', class: 'public', http: 400, message: 'Identifier conflict.' }),
|
|
433
|
+
'IDENTIFIER_UNVERIFIED_AMBIGUOUS': (0, define_1.defineError)({ code: 'IDENTIFIER_UNVERIFIED_AMBIGUOUS', class: 'public', http: 400, message: 'Identifier unverified ambiguous.' }),
|
|
434
|
+
'IDENTIFIER_VERIFIED_ELSEWHERE': (0, define_1.defineError)({ code: 'IDENTIFIER_VERIFIED_ELSEWHERE', class: 'public', http: 400, message: 'Identifier verified elsewhere.' }),
|
|
418
435
|
'IDENTITY_ACCOUNT_NOT_FOUND': (0, define_1.defineError)({ code: 'IDENTITY_ACCOUNT_NOT_FOUND', class: 'public', http: 404, message: 'Identity account not found.' }),
|
|
419
436
|
'IDENTITY_ALREADY_LINKED': (0, define_1.defineError)({ code: 'IDENTITY_ALREADY_LINKED', class: 'public', http: 409, message: 'Identity already linked.' }),
|
|
420
437
|
'IDENTITY_LINK_AVAILABLE': (0, define_1.defineError)({ code: 'IDENTITY_LINK_AVAILABLE', class: 'public', http: 400, message: 'Identity link available.' }),
|
|
@@ -541,6 +558,7 @@ exports.generatedRegistry = {
|
|
|
541
558
|
'MERKLE_REF_NOT_FOUND': (0, define_1.defineError)({ code: 'MERKLE_REF_NOT_FOUND', class: 'public', http: 404, message: 'Merkle ref not found.' }),
|
|
542
559
|
'METER_RATE_LIMIT': (0, define_1.defineError)({ code: 'METER_RATE_LIMIT', class: 'internal', http: 500, message: 'METER_RATE_LIMIT: unknown event {{arg0}}, expected INSERT or UPDATE', positional: ['arg0'] }),
|
|
543
560
|
'MFA_CHALLENGE_EXPIRED': (0, define_1.defineError)({ code: 'MFA_CHALLENGE_EXPIRED', class: 'public', http: 403, message: 'Mfa challenge expired.' }),
|
|
561
|
+
'MFA_IDENTIFIER_UNVERIFIED': (0, define_1.defineError)({ code: 'MFA_IDENTIFIER_UNVERIFIED', class: 'public', http: 403, message: 'Mfa identifier unverified.' }),
|
|
544
562
|
'MFA_REQUIRED': (0, define_1.defineError)({ code: 'MFA_REQUIRED', class: 'public', http: 403, message: 'Mfa required.' }),
|
|
545
563
|
'MISSING_FIXTURE_TYPE': (0, define_1.defineError)({ code: 'MISSING_FIXTURE_TYPE', class: 'internal', http: 500, message: 'Missing fixture type.' }),
|
|
546
564
|
'MISSING_REQUIRED_FIELD': (0, define_1.defineError)({ code: 'MISSING_REQUIRED_FIELD', class: 'public', http: 400, message: 'Missing required field.' }),
|
|
@@ -720,6 +738,7 @@ exports.generatedRegistry = {
|
|
|
720
738
|
'SITE_SURFACE_NOT_PROVISIONED': (0, define_1.defineError)({ code: 'SITE_SURFACE_NOT_PROVISIONED', class: 'public', http: 400, message: 'Site surface not provisioned.' }),
|
|
721
739
|
'SMS_SIGN_IN_DISABLED': (0, define_1.defineError)({ code: 'SMS_SIGN_IN_DISABLED', class: 'public', http: 403, message: 'Sms sign in disabled.' }),
|
|
722
740
|
'SMS_SIGN_UP_DISABLED': (0, define_1.defineError)({ code: 'SMS_SIGN_UP_DISABLED', class: 'public', http: 403, message: 'Sms sign up disabled.' }),
|
|
741
|
+
'SMS_VERIFICATION_DISABLED': (0, define_1.defineError)({ code: 'SMS_VERIFICATION_DISABLED', class: 'public', http: 403, message: 'Sms verification disabled.' }),
|
|
723
742
|
'SOURCE_COMMIT_NOT_FOUND': (0, define_1.defineError)({ code: 'SOURCE_COMMIT_NOT_FOUND', class: 'internal', http: 500, message: 'Source commit not found.' }),
|
|
724
743
|
'SOURCE_EMAILS_NOT_FOUND': (0, define_1.defineError)({ code: 'SOURCE_EMAILS_NOT_FOUND', class: 'internal', http: 500, message: 'Source emails not found.' }),
|
|
725
744
|
'SOURCE_SECRETS_NOT_FOUND': (0, define_1.defineError)({ code: 'SOURCE_SECRETS_NOT_FOUND', class: 'internal', http: 500, message: 'Source secrets not found.' }),
|
|
@@ -738,12 +757,10 @@ exports.generatedRegistry = {
|
|
|
738
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.' }),
|
|
739
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.' }),
|
|
740
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.' }),
|
|
741
|
-
'STORAGE_ACCESS_CLAIM_MISMATCH': (0, define_1.defineError)({ code: 'STORAGE_ACCESS_CLAIM_MISMATCH', class: 'public', http: 400, message: 'Storage access claim mismatch.' }),
|
|
742
760
|
'STORAGE_API_NOT_PROVISIONED': (0, define_1.defineError)({ code: 'STORAGE_API_NOT_PROVISIONED', class: 'public', http: 400, message: 'Storage api not provisioned.' }),
|
|
743
761
|
'STORAGE_DESTINATION_REQUIRES_TEMP': (0, define_1.defineError)({ code: 'STORAGE_DESTINATION_REQUIRES_TEMP', class: 'internal', http: 500, message: 'Storage destination requires temp.' }),
|
|
744
762
|
'STORAGE_FILE_BUCKET_IMMUTABLE': (0, define_1.defineError)({ code: 'STORAGE_FILE_BUCKET_IMMUTABLE', class: 'internal', http: 500, message: 'Storage file bucket immutable.' }),
|
|
745
763
|
'STORAGE_FILE_KEY_IMMUTABLE': (0, define_1.defineError)({ code: 'STORAGE_FILE_KEY_IMMUTABLE', class: 'internal', http: 500, message: 'Storage file key immutable.' }),
|
|
746
|
-
'STORAGE_FILE_NOT_FOUND': (0, define_1.defineError)({ code: 'STORAGE_FILE_NOT_FOUND', class: 'public', http: 404, message: 'Storage file not found.' }),
|
|
747
764
|
'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.' }),
|
|
748
765
|
'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.' }),
|
|
749
766
|
'STORAGE_GC_MODULE_AMBIGUOUS': (0, define_1.defineError)({ code: 'STORAGE_GC_MODULE_AMBIGUOUS', class: 'internal', http: 500, message: 'Storage gc module ambiguous.' }),
|
|
@@ -753,15 +770,10 @@ exports.generatedRegistry = {
|
|
|
753
770
|
'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.' }),
|
|
754
771
|
'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.' }),
|
|
755
772
|
'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.' }),
|
|
756
|
-
'STORAGE_INVALID_COMPLETION_RESULT': (0, define_1.defineError)({ code: 'STORAGE_INVALID_COMPLETION_RESULT', class: 'public', http: 400, message: 'Storage invalid completion result.' }),
|
|
757
|
-
'STORAGE_INVALID_UPLOAD_DOCUMENT': (0, define_1.defineError)({ code: 'STORAGE_INVALID_UPLOAD_DOCUMENT', class: 'internal', http: 500, message: 'Storage invalid upload document.' }),
|
|
758
773
|
'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.' }),
|
|
759
774
|
'STORAGE_MODULE_NOT_FOUND': (0, define_1.defineError)({ code: 'STORAGE_MODULE_NOT_FOUND', class: 'internal', http: 500, message: 'Storage module not found.' }),
|
|
760
|
-
'STORAGE_PROCESSING_CONFLICT': (0, define_1.defineError)({ code: 'STORAGE_PROCESSING_CONFLICT', class: 'public', http: 400, message: 'Storage processing conflict.' }),
|
|
761
775
|
'STORAGE_PROMOTION_DESTINATION_MISMATCH': (0, define_1.defineError)({ code: 'STORAGE_PROMOTION_DESTINATION_MISMATCH', class: 'internal', http: 500, message: 'Storage promotion destination mismatch.' }),
|
|
762
776
|
'STORAGE_PROMOTION_VISIBILITY_MISMATCH': (0, define_1.defineError)({ code: 'STORAGE_PROMOTION_VISIBILITY_MISMATCH', class: 'internal', http: 500, message: 'Storage promotion visibility mismatch.' }),
|
|
763
|
-
'STORAGE_SOURCE_HASH_MISMATCH': (0, define_1.defineError)({ code: 'STORAGE_SOURCE_HASH_MISMATCH', class: 'public', http: 400, message: 'Storage source hash mismatch.' }),
|
|
764
|
-
'STORAGE_SOURCE_HASH_REQUIRED': (0, define_1.defineError)({ code: 'STORAGE_SOURCE_HASH_REQUIRED', class: 'public', http: 400, message: 'Storage source hash required.' }),
|
|
765
777
|
'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.' }),
|
|
766
778
|
'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.' }),
|
|
767
779
|
'STORAGE_STAGING_DESTINATION_INVALID': (0, define_1.defineError)({ code: 'STORAGE_STAGING_DESTINATION_INVALID', class: 'internal', http: 500, message: 'Storage staging destination invalid.' }),
|
|
@@ -797,6 +809,7 @@ exports.generatedRegistry = {
|
|
|
797
809
|
'TRIGGER_WHEN_AST_ROW_UNAVAILABLE': (0, define_1.defineError)({ code: 'TRIGGER_WHEN_AST_ROW_UNAVAILABLE', class: 'public', http: 400, message: 'Trigger when ast row unavailable.' }),
|
|
798
810
|
'TRUST_LADDER_OPTION_INVALID': (0, define_1.defineError)({ code: 'TRUST_LADDER_OPTION_INVALID', class: 'internal', http: 500, message: 'Trust ladder option invalid.' }),
|
|
799
811
|
'UNAUTHENTICATED': (0, define_1.defineError)({ code: 'UNAUTHENTICATED', class: 'public', http: 401, message: 'Unauthenticated.' }),
|
|
812
|
+
'UNKNOWN_METER': (0, define_1.defineError)({ code: 'UNKNOWN_METER', class: 'public', http: 400, message: 'Unknown meter.' }),
|
|
800
813
|
'UNKNOWN_POLICY_TYPE': (0, define_1.defineError)({ code: 'UNKNOWN_POLICY_TYPE', class: 'public', http: 400, message: 'Unknown policy type.' }),
|
|
801
814
|
'UNKNOWN_VIEW_TYPE': (0, define_1.defineError)({ code: 'UNKNOWN_VIEW_TYPE', class: 'public', http: 400, message: 'Unknown view type.', positional: ['arg0'] }),
|
|
802
815
|
'UNSUPPORTED': (0, define_1.defineError)({ code: 'UNSUPPORTED', class: 'internal', http: 500, message: 'UNSUPPORTED POLICY ({{arg0}})', positional: ['arg0'] }),
|
|
@@ -845,6 +858,9 @@ exports.GENERATED_CODE_META = {
|
|
|
845
858
|
'APP_INSTALLATION_MISSING': { class: 'public', dynamic: false, generatedOnly: false },
|
|
846
859
|
'APP_INSTALL_NO_SERVICE': { class: 'public', dynamic: false, generatedOnly: false },
|
|
847
860
|
'ASSIGN_PROFILES_CAPABILITY_REQUIRED': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
861
|
+
'AST_OPTIONS_NOT_OBJECT': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
862
|
+
'AST_OPTION_REQUIRED': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
863
|
+
'AST_OPTION_UNKNOWN': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
848
864
|
'ATTRIBUTION_REQUIRED': { class: 'internal', dynamic: false, generatedOnly: true },
|
|
849
865
|
'AUTHZ_COLUMN_SECURITY_AUTHZ_NODE_REQUIRED': { class: 'public', dynamic: false, generatedOnly: false },
|
|
850
866
|
'AUTHZ_COLUMN_SECURITY_COLUMNS_REQUIRED': { class: 'public', dynamic: false, generatedOnly: false },
|
|
@@ -882,6 +898,17 @@ exports.GENERATED_CODE_META = {
|
|
|
882
898
|
'BAD_VIEW_EXPRESSION': { class: 'public', dynamic: false, generatedOnly: false },
|
|
883
899
|
'BEHAVIOR_FRAGMENT_EMPTY': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
884
900
|
'BILLING_DISPUTE_BALANCE_NOT_FOUND': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
901
|
+
'BILLING_ENTITY_BUSY': { class: 'public', dynamic: false, generatedOnly: true },
|
|
902
|
+
'BILLING_HEALTH_INVALID': { class: 'internal', dynamic: false, generatedOnly: true },
|
|
903
|
+
'BILLING_NOT_READY': { class: 'public', dynamic: false, generatedOnly: false },
|
|
904
|
+
'BILLING_OBSERVATION_INVALID': { class: 'internal', dynamic: false, generatedOnly: true },
|
|
905
|
+
'BILLING_OPERATION_CONFLICT': { class: 'public', dynamic: false, generatedOnly: true },
|
|
906
|
+
'BILLING_OPERATION_INVALID': { class: 'public', dynamic: false, generatedOnly: true },
|
|
907
|
+
'BILLING_OPERATION_NOT_FOUND': { class: 'internal', dynamic: false, generatedOnly: true },
|
|
908
|
+
'BILLING_OPERATION_SETTLED': { class: 'internal', dynamic: false, generatedOnly: true },
|
|
909
|
+
'BILLING_OPERATION_STATE_INVALID': { class: 'internal', dynamic: false, generatedOnly: true },
|
|
910
|
+
'BILLING_RECONCILE_BOUNDS_REQUIRED': { class: 'internal', dynamic: false, generatedOnly: true },
|
|
911
|
+
'BILLING_SCHEDULED_CHANGE_INVALID': { class: 'internal', dynamic: false, generatedOnly: true },
|
|
885
912
|
'BLUEPRINT_MODULE_NOT_INSTALLED': { class: 'public', dynamic: false, generatedOnly: false },
|
|
886
913
|
'BLUEPRINT_MODULE_REF_AMBIGUOUS': { class: 'public', dynamic: false, generatedOnly: false },
|
|
887
914
|
'BLUEPRINT_MODULE_REF_INVALID': { class: 'public', dynamic: false, generatedOnly: false },
|
|
@@ -1221,7 +1248,10 @@ exports.GENERATED_CODE_META = {
|
|
|
1221
1248
|
'HISTORY': { class: 'internal', dynamic: true, generatedOnly: false },
|
|
1222
1249
|
'HOSTNAME_BINDING_SYNC': { class: 'internal', dynamic: true, generatedOnly: false },
|
|
1223
1250
|
'HOSTNAME_CLAIMED_IN_OTHER_PLANE': { class: 'public', dynamic: false, generatedOnly: true },
|
|
1251
|
+
'IDENTIFIER_CLAIM_LIMIT': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1224
1252
|
'IDENTIFIER_CONFLICT': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1253
|
+
'IDENTIFIER_UNVERIFIED_AMBIGUOUS': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1254
|
+
'IDENTIFIER_VERIFIED_ELSEWHERE': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1225
1255
|
'IDENTITY_ACCOUNT_NOT_FOUND': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1226
1256
|
'IDENTITY_ALREADY_LINKED': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1227
1257
|
'IDENTITY_LINK_AVAILABLE': { class: 'public', dynamic: false, generatedOnly: false },
|
|
@@ -1348,6 +1378,7 @@ exports.GENERATED_CODE_META = {
|
|
|
1348
1378
|
'MERKLE_REF_NOT_FOUND': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1349
1379
|
'METER_RATE_LIMIT': { class: 'internal', dynamic: true, generatedOnly: false },
|
|
1350
1380
|
'MFA_CHALLENGE_EXPIRED': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1381
|
+
'MFA_IDENTIFIER_UNVERIFIED': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1351
1382
|
'MFA_REQUIRED': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1352
1383
|
'MISSING_FIXTURE_TYPE': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1353
1384
|
'MISSING_REQUIRED_FIELD': { class: 'public', dynamic: false, generatedOnly: false },
|
|
@@ -1527,6 +1558,7 @@ exports.GENERATED_CODE_META = {
|
|
|
1527
1558
|
'SITE_SURFACE_NOT_PROVISIONED': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1528
1559
|
'SMS_SIGN_IN_DISABLED': { class: 'public', dynamic: false, generatedOnly: true },
|
|
1529
1560
|
'SMS_SIGN_UP_DISABLED': { class: 'public', dynamic: false, generatedOnly: true },
|
|
1561
|
+
'SMS_VERIFICATION_DISABLED': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1530
1562
|
'SOURCE_COMMIT_NOT_FOUND': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1531
1563
|
'SOURCE_EMAILS_NOT_FOUND': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1532
1564
|
'SOURCE_SECRETS_NOT_FOUND': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
@@ -1545,12 +1577,10 @@ exports.GENERATED_CODE_META = {
|
|
|
1545
1577
|
'STEP_UP_REQUIRED_FRESH_AUTH': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1546
1578
|
'STEP_UP_REQUIRED_MFA': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1547
1579
|
'STEP_UP_REQUIRED_PASSWORD': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1548
|
-
'STORAGE_ACCESS_CLAIM_MISMATCH': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1549
1580
|
'STORAGE_API_NOT_PROVISIONED': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1550
1581
|
'STORAGE_DESTINATION_REQUIRES_TEMP': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1551
1582
|
'STORAGE_FILE_BUCKET_IMMUTABLE': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1552
1583
|
'STORAGE_FILE_KEY_IMMUTABLE': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1553
|
-
'STORAGE_FILE_NOT_FOUND': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1554
1584
|
'STORAGE_GC_CONTENT_HASH_UNSUPPORTED': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1555
1585
|
'STORAGE_GC_FILES_TABLE_MISSING': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1556
1586
|
'STORAGE_GC_MODULE_AMBIGUOUS': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
@@ -1560,15 +1590,10 @@ exports.GENERATED_CODE_META = {
|
|
|
1560
1590
|
'STORAGE_GC_REF_CROSS_DATABASE': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1561
1591
|
'STORAGE_GC_REF_FIELD_MISSING': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1562
1592
|
'STORAGE_GC_REF_TABLE_MISSING': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1563
|
-
'STORAGE_INVALID_COMPLETION_RESULT': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1564
|
-
'STORAGE_INVALID_UPLOAD_DOCUMENT': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1565
1593
|
'STORAGE_MODULE_ENTITY_FIELD_INVALID': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1566
1594
|
'STORAGE_MODULE_NOT_FOUND': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1567
|
-
'STORAGE_PROCESSING_CONFLICT': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1568
1595
|
'STORAGE_PROMOTION_DESTINATION_MISMATCH': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1569
1596
|
'STORAGE_PROMOTION_VISIBILITY_MISMATCH': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1570
|
-
'STORAGE_SOURCE_HASH_MISMATCH': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1571
|
-
'STORAGE_SOURCE_HASH_REQUIRED': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1572
1597
|
'STORAGE_STAGING_BUCKET_NO_DESTINATION': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1573
1598
|
'STORAGE_STAGING_BUCKET_NO_TTL': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1574
1599
|
'STORAGE_STAGING_DESTINATION_INVALID': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
@@ -1604,6 +1629,7 @@ exports.GENERATED_CODE_META = {
|
|
|
1604
1629
|
'TRIGGER_WHEN_AST_ROW_UNAVAILABLE': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1605
1630
|
'TRUST_LADDER_OPTION_INVALID': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1606
1631
|
'UNAUTHENTICATED': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1632
|
+
'UNKNOWN_METER': { class: 'public', dynamic: false, generatedOnly: true },
|
|
1607
1633
|
'UNKNOWN_POLICY_TYPE': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1608
1634
|
'UNKNOWN_VIEW_TYPE': { class: 'public', dynamic: true, generatedOnly: false },
|
|
1609
1635
|
'UNSUPPORTED': { class: 'internal', dynamic: true, generatedOnly: false },
|
|
@@ -1631,4 +1657,4 @@ exports.GENERATED_CODE_META = {
|
|
|
1631
1657
|
'WITH_CHECK_NOT_ALLOWED': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1632
1658
|
};
|
|
1633
1659
|
/** Total number of codes collected from constructive-db. */
|
|
1634
|
-
exports.GENERATED_CODE_COUNT =
|
|
1660
|
+
exports.GENERATED_CODE_COUNT = 817;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@constructive-io/errors",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.20.1",
|
|
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": "
|
|
44
|
+
"gitHead": "4c68f85c7d9b3c72082f8305dffc0b3dfca80941"
|
|
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,39 +11,16 @@ 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>;
|
|
17
|
+
readonly IDENTIFIER_VERIFIED_ELSEWHERE: import("./define").DefinedError<import("./types").EmptyContext>;
|
|
18
|
+
readonly IDENTIFIER_UNVERIFIED_AMBIGUOUS: import("./define").DefinedError<import("./types").EmptyContext>;
|
|
19
|
+
readonly IDENTIFIER_CLAIM_LIMIT: import("./define").DefinedError<{
|
|
20
|
+
limit?: number;
|
|
21
|
+
}>;
|
|
22
|
+
readonly MFA_IDENTIFIER_UNVERIFIED: import("./define").DefinedError<import("./types").EmptyContext>;
|
|
23
|
+
readonly SMS_VERIFICATION_DISABLED: import("./define").DefinedError<import("./types").EmptyContext>;
|
|
52
24
|
readonly ACCOUNT_NOT_FOUND: import("./define").DefinedError<import("./types").EmptyContext>;
|
|
53
25
|
readonly NO_ACCOUNT_EXISTS: import("./define").DefinedError<{
|
|
54
26
|
userId?: string;
|
|
@@ -107,6 +79,21 @@ export declare const registry: {
|
|
|
107
79
|
limit?: number;
|
|
108
80
|
}>;
|
|
109
81
|
readonly RATE_LIMITED: import("./define").DefinedError<import("./types").EmptyContext>;
|
|
82
|
+
readonly BILLING_NOT_READY: import("./define").DefinedError<{
|
|
83
|
+
database_id?: string;
|
|
84
|
+
checked_at?: string | null;
|
|
85
|
+
ready?: boolean | null;
|
|
86
|
+
}>;
|
|
87
|
+
readonly BILLING_ENTITY_BUSY: import("./define").DefinedError<{
|
|
88
|
+
entity_id?: string;
|
|
89
|
+
}>;
|
|
90
|
+
readonly BILLING_OPERATION_CONFLICT: import("./define").DefinedError<{
|
|
91
|
+
operation_id?: string;
|
|
92
|
+
}>;
|
|
93
|
+
readonly BILLING_OPERATION_INVALID: import("./define").DefinedError<import("./types").EmptyContext>;
|
|
94
|
+
readonly UNKNOWN_METER: import("./define").DefinedError<{
|
|
95
|
+
meter_slug?: string;
|
|
96
|
+
}>;
|
|
110
97
|
readonly QUERY_TOO_DEEP: import("./define").DefinedError<{
|
|
111
98
|
depth?: number;
|
|
112
99
|
limit?: number;
|
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
|
// ===========================================================================
|
|
@@ -101,6 +44,38 @@ exports.registry = {
|
|
|
101
44
|
http: 409,
|
|
102
45
|
message: 'The email and phone number belong to different accounts. Provide only one of them.'
|
|
103
46
|
}),
|
|
47
|
+
// Verified-only identifier uniqueness: an email/phone may sit unverified on
|
|
48
|
+
// several accounts, but only one account may hold it verified.
|
|
49
|
+
IDENTIFIER_VERIFIED_ELSEWHERE: (0, define_1.defineError)({
|
|
50
|
+
code: 'IDENTIFIER_VERIFIED_ELSEWHERE',
|
|
51
|
+
class: 'public',
|
|
52
|
+
http: 409,
|
|
53
|
+
message: 'This email or phone number is already verified on another account. Sign in to that account or use a different one.'
|
|
54
|
+
}),
|
|
55
|
+
IDENTIFIER_UNVERIFIED_AMBIGUOUS: (0, define_1.defineError)({
|
|
56
|
+
code: 'IDENTIFIER_UNVERIFIED_AMBIGUOUS',
|
|
57
|
+
class: 'public',
|
|
58
|
+
http: 409,
|
|
59
|
+
message: 'This email or phone number is pending verification on more than one account. Verify it first to continue.'
|
|
60
|
+
}),
|
|
61
|
+
IDENTIFIER_CLAIM_LIMIT: (0, define_1.defineError)({
|
|
62
|
+
code: 'IDENTIFIER_CLAIM_LIMIT',
|
|
63
|
+
class: 'public',
|
|
64
|
+
http: 429,
|
|
65
|
+
message: 'This account has too many unverified emails or phone numbers. Verify or remove one before adding another.'
|
|
66
|
+
}),
|
|
67
|
+
MFA_IDENTIFIER_UNVERIFIED: (0, define_1.defineError)({
|
|
68
|
+
code: 'MFA_IDENTIFIER_UNVERIFIED',
|
|
69
|
+
class: 'public',
|
|
70
|
+
http: 403,
|
|
71
|
+
message: 'Verify this email or phone number before using it for multi-factor authentication.'
|
|
72
|
+
}),
|
|
73
|
+
SMS_VERIFICATION_DISABLED: (0, define_1.defineError)({
|
|
74
|
+
code: 'SMS_VERIFICATION_DISABLED',
|
|
75
|
+
class: 'public',
|
|
76
|
+
http: 403,
|
|
77
|
+
message: 'Phone number verification is not enabled.'
|
|
78
|
+
}),
|
|
104
79
|
ACCOUNT_NOT_FOUND: (0, define_1.defineError)({
|
|
105
80
|
code: 'ACCOUNT_NOT_FOUND',
|
|
106
81
|
class: 'public',
|
|
@@ -405,6 +380,39 @@ exports.registry = {
|
|
|
405
380
|
message: 'Too many requests. Please slow down and try again shortly.'
|
|
406
381
|
}),
|
|
407
382
|
// ===========================================================================
|
|
383
|
+
// Billing provider operations (public)
|
|
384
|
+
// ===========================================================================
|
|
385
|
+
BILLING_NOT_READY: (0, define_1.defineError)({
|
|
386
|
+
code: 'BILLING_NOT_READY',
|
|
387
|
+
class: 'public',
|
|
388
|
+
http: 409,
|
|
389
|
+
message: 'Billing is not ready for this database yet. Please try again shortly.'
|
|
390
|
+
}),
|
|
391
|
+
BILLING_ENTITY_BUSY: (0, define_1.defineError)({
|
|
392
|
+
code: 'BILLING_ENTITY_BUSY',
|
|
393
|
+
class: 'public',
|
|
394
|
+
http: 409,
|
|
395
|
+
message: 'Another billing operation is already in progress for this account. Please wait for it to finish.'
|
|
396
|
+
}),
|
|
397
|
+
BILLING_OPERATION_CONFLICT: (0, define_1.defineError)({
|
|
398
|
+
code: 'BILLING_OPERATION_CONFLICT',
|
|
399
|
+
class: 'public',
|
|
400
|
+
http: 409,
|
|
401
|
+
message: 'This billing operation ID was already used for a different request.'
|
|
402
|
+
}),
|
|
403
|
+
BILLING_OPERATION_INVALID: (0, define_1.defineError)({
|
|
404
|
+
code: 'BILLING_OPERATION_INVALID',
|
|
405
|
+
class: 'public',
|
|
406
|
+
http: 400,
|
|
407
|
+
message: 'The billing operation request is invalid.'
|
|
408
|
+
}),
|
|
409
|
+
UNKNOWN_METER: (0, define_1.defineError)({
|
|
410
|
+
code: 'UNKNOWN_METER',
|
|
411
|
+
class: 'public',
|
|
412
|
+
http: 404,
|
|
413
|
+
message: 'The requested meter does not exist.'
|
|
414
|
+
}),
|
|
415
|
+
// ===========================================================================
|
|
408
416
|
// Request protection (public, dynamic) — raised by the GraphQL runtime when a
|
|
409
417
|
// request exceeds the bounds resolved from database_settings/api_settings.
|
|
410
418
|
// Each carries the limit that was in force so a client can adapt rather than
|