@constructive-io/errors 0.13.0 → 0.16.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.
- package/esm/generated/registry.generated.d.ts +3 -3
- package/esm/generated/registry.generated.js +46 -4
- package/esm/registry.d.ts +48 -0
- package/esm/registry.js +99 -0
- package/generated/registry.generated.d.ts +3 -3
- package/generated/registry.generated.js +46 -4
- package/package.json +2 -2
- package/registry.d.ts +48 -0
- package/registry.js +99 -0
|
@@ -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 (799 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: 799 total, 589 public, 210 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 = 799;
|
|
@@ -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 (799 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: 799 total, 589 public, 210 internal.
|
|
14
14
|
*/
|
|
15
15
|
import { defineError } from '../define';
|
|
16
16
|
/** Every constructive-db error code, keyed by code. */
|
|
@@ -134,6 +134,7 @@ export const generatedRegistry = {
|
|
|
134
134
|
'CONTENT_PRESET_NOT_SAVED': defineError({ code: 'CONTENT_PRESET_NOT_SAVED', class: 'public', http: 400, message: 'Content preset not saved.' }),
|
|
135
135
|
'COPY_TEMPLATE_TO_BLUEPRINT': defineError({ code: 'COPY_TEMPLATE_TO_BLUEPRINT', class: 'internal', http: 500, message: 'Copy template to blueprint.' }),
|
|
136
136
|
'CREDENTIAL_NOT_EXCHANGEABLE': defineError({ code: 'CREDENTIAL_NOT_EXCHANGEABLE', class: 'public', http: 400, message: 'Credential not exchangeable.' }),
|
|
137
|
+
'CREDENTIAL_NOT_EXTENDABLE': defineError({ code: 'CREDENTIAL_NOT_EXTENDABLE', class: 'public', http: 400, message: 'Credential not extendable.' }),
|
|
137
138
|
'CREDIT_CODE_EXPIRED': defineError({ code: 'CREDIT_CODE_EXPIRED', class: 'internal', http: 500, message: 'Credit code expired.' }),
|
|
138
139
|
'CREDIT_CODE_MAX_REDEMPTIONS_REACHED': defineError({ code: 'CREDIT_CODE_MAX_REDEMPTIONS_REACHED', class: 'internal', http: 500, message: 'Credit code max redemptions reached.' }),
|
|
139
140
|
'CREDIT_CODE_NOT_FOUND': defineError({ code: 'CREDIT_CODE_NOT_FOUND', class: 'internal', http: 500, message: 'Credit code not found.' }),
|
|
@@ -250,6 +251,7 @@ export const generatedRegistry = {
|
|
|
250
251
|
'DATA_PERMISSIONS_MAPPING_TABLE_REQUIRED': defineError({ code: 'DATA_PERMISSIONS_MAPPING_TABLE_REQUIRED', class: 'public', http: 400, message: 'Data permissions mapping table required.' }),
|
|
251
252
|
'DATA_PERMISSIONS_MODULE_AMBIGUOUS': defineError({ code: 'DATA_PERMISSIONS_MODULE_AMBIGUOUS', class: 'public', http: 400, message: 'Data permissions module ambiguous.' }),
|
|
252
253
|
'DATA_PERMISSIONS_MODULE_NOT_FOUND': defineError({ code: 'DATA_PERMISSIONS_MODULE_NOT_FOUND', class: 'public', http: 404, message: 'Data permissions module not found.' }),
|
|
254
|
+
'DATA_PERMISSIONS_MODULE_REF_INVALID': defineError({ code: 'DATA_PERMISSIONS_MODULE_REF_INVALID', class: 'public', http: 400, message: 'Data permissions module ref invalid.' }),
|
|
253
255
|
'DATA_PERMISSIONS_NO_PERMISSIONS_MODULE': defineError({ code: 'DATA_PERMISSIONS_NO_PERMISSIONS_MODULE', class: 'public', http: 400, message: 'Data permissions no permissions module.' }),
|
|
254
256
|
'DATA_PERMISSIONS_REGISTRATION_CONFLICT': defineError({ code: 'DATA_PERMISSIONS_REGISTRATION_CONFLICT', class: 'public', http: 400, message: 'Data permissions registration conflict.' }),
|
|
255
257
|
'DATA_PERMISSIONS_TABLE_NOT_FOUND': defineError({ code: 'DATA_PERMISSIONS_TABLE_NOT_FOUND', class: 'public', http: 404, message: 'Data permissions table not found.' }),
|
|
@@ -405,6 +407,7 @@ export const generatedRegistry = {
|
|
|
405
407
|
'HIERARCHY_MEMBER_IN_USE': defineError({ code: 'HIERARCHY_MEMBER_IN_USE', class: 'internal', http: 500, message: 'HIERARCHY_MEMBER_IN_USE: Cannot deactivate user {{arg0}} - user must be removed from the organization hierarchy first', positional: ['arg0'] }),
|
|
406
408
|
'HISTORY': defineError({ code: 'HISTORY', class: 'internal', http: 500, message: 'HISTORY: history {{arg0}}.{{arg1}} registration has no copy_fields', positional: ['arg0', 'arg1'] }),
|
|
407
409
|
'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'] }),
|
|
410
|
+
'HOSTNAME_CLAIMED_IN_OTHER_PLANE': defineError({ code: 'HOSTNAME_CLAIMED_IN_OTHER_PLANE', class: 'public', http: 400, message: 'Hostname claimed in other plane.' }),
|
|
408
411
|
'IDENTITY_ACCOUNT_NOT_FOUND': defineError({ code: 'IDENTITY_ACCOUNT_NOT_FOUND', class: 'public', http: 404, message: 'Identity account not found.' }),
|
|
409
412
|
'IDENTITY_ALREADY_LINKED': defineError({ code: 'IDENTITY_ALREADY_LINKED', class: 'public', http: 409, message: 'Identity already linked.' }),
|
|
410
413
|
'IDENTITY_LINK_AVAILABLE': defineError({ code: 'IDENTITY_LINK_AVAILABLE', class: 'public', http: 400, message: 'Identity link available.' }),
|
|
@@ -442,9 +445,12 @@ export const generatedRegistry = {
|
|
|
442
445
|
'INVALID_TOKEN': defineError({ code: 'INVALID_TOKEN', class: 'public', http: 401, message: 'Invalid token.' }),
|
|
443
446
|
'INVALID_USER': defineError({ code: 'INVALID_USER', class: 'public', http: 400, message: 'Invalid user.' }),
|
|
444
447
|
'INVALID_WORKER_ID': defineError({ code: 'INVALID_WORKER_ID', class: 'internal', http: 500, message: 'Invalid worker id.' }),
|
|
448
|
+
'INVITE_ADDRESS_REQUIRED': defineError({ code: 'INVITE_ADDRESS_REQUIRED', class: 'public', http: 400, message: 'Invite address required.' }),
|
|
445
449
|
'INVITE_EMAIL_NOT_FOUND': defineError({ code: 'INVITE_EMAIL_NOT_FOUND', class: 'public', http: 404, message: 'Invite email not found.' }),
|
|
446
450
|
'INVITE_LIMIT': defineError({ code: 'INVITE_LIMIT', class: 'public', http: 429, message: 'Invite limit.' }),
|
|
447
451
|
'INVITE_NOT_FOUND': defineError({ code: 'INVITE_NOT_FOUND', class: 'public', http: 404, message: 'Invite not found.' }),
|
|
452
|
+
'INVITE_PHONE_NOT_FOUND': defineError({ code: 'INVITE_PHONE_NOT_FOUND', class: 'public', http: 404, message: 'Invite phone not found.' }),
|
|
453
|
+
'INVITE_USERS_INVALID': defineError({ code: 'INVITE_USERS_INVALID', class: 'public', http: 400, message: 'Invite users invalid.' }),
|
|
448
454
|
'INVOCATION_ANONYMOUS_NOT_AUTHORIZED': defineError({ code: 'INVOCATION_ANONYMOUS_NOT_AUTHORIZED', class: 'public', http: 400, message: 'Invocation anonymous not authorized.' }),
|
|
449
455
|
'INVOCATION_ANONYMOUS_NOT_CALLABLE': defineError({ code: 'INVOCATION_ANONYMOUS_NOT_CALLABLE', class: 'public', http: 400, message: 'Invocation anonymous not callable.' }),
|
|
450
456
|
'INVOCATION_ANONYMOUS_ROUTE_REQUIRED': defineError({ code: 'INVOCATION_ANONYMOUS_ROUTE_REQUIRED', class: 'public', http: 400, message: 'Invocation anonymous route required.' }),
|
|
@@ -534,6 +540,7 @@ export const generatedRegistry = {
|
|
|
534
540
|
'MODULES_HASH_DUPLICATE_ENTRY': defineError({ code: 'MODULES_HASH_DUPLICATE_ENTRY', class: 'internal', http: 500, message: 'Modules hash duplicate entry.' }),
|
|
535
541
|
'MODULES_HASH_INVALID_ENTRY': defineError({ code: 'MODULES_HASH_INVALID_ENTRY', class: 'internal', http: 500, message: 'Modules hash invalid entry.' }),
|
|
536
542
|
'MODULES_HASH_INVALID_INPUT': defineError({ code: 'MODULES_HASH_INVALID_INPUT', class: 'internal', http: 500, message: 'Modules hash invalid input.' }),
|
|
543
|
+
'MODULE_ENTRY_MALFORMED': defineError({ code: 'MODULE_ENTRY_MALFORMED', class: 'internal', http: 500, message: 'Module entry malformed.' }),
|
|
537
544
|
'MODULE_SECURITY_POLICY_ENTRY_MISSING_TYPE': defineError({ code: 'MODULE_SECURITY_POLICY_ENTRY_MISSING_TYPE', class: 'public', http: 400, message: 'Module security policy entry missing type.' }),
|
|
538
545
|
'MODULE_TABLE_ALREADY_ATTRIBUTED': defineError({ code: 'MODULE_TABLE_ALREADY_ATTRIBUTED', class: 'internal', http: 500, message: 'Module table already attributed.' }),
|
|
539
546
|
'MONOTONIC_FIELD': defineError({ code: 'MONOTONIC_FIELD', class: 'internal', http: 500, message: 'Monotonic field.' }),
|
|
@@ -561,6 +568,7 @@ export const generatedRegistry = {
|
|
|
561
568
|
'PASSWORD_RESET_LOCKED_EXCEED_ATTEMPTS': defineError({ code: 'PASSWORD_RESET_LOCKED_EXCEED_ATTEMPTS', class: 'public', http: 423, message: 'Password reset locked exceed attempts.' }),
|
|
562
569
|
'PASSWORD_SIGN_IN_DISABLED': defineError({ code: 'PASSWORD_SIGN_IN_DISABLED', class: 'public', http: 403, message: 'Password sign in disabled.' }),
|
|
563
570
|
'PASSWORD_SIGN_UP_DISABLED': defineError({ code: 'PASSWORD_SIGN_UP_DISABLED', class: 'public', http: 403, message: 'Password sign up disabled.' }),
|
|
571
|
+
'PERMISSION_DENIED': defineError({ code: 'PERMISSION_DENIED', class: 'public', http: 403, message: 'Permission denied.' }),
|
|
564
572
|
'PLAN_REQUIRED': defineError({ code: 'PLAN_REQUIRED', class: 'internal', http: 500, message: 'Plan required.' }),
|
|
565
573
|
'PLATFORM_FLAG_IMMUTABLE': defineError({ code: 'PLATFORM_FLAG_IMMUTABLE', class: 'internal', http: 500, message: 'Platform flag immutable.' }),
|
|
566
574
|
'POLICY_COLUMN_REF_UNRESOLVED': defineError({ code: 'POLICY_COLUMN_REF_UNRESOLVED', class: 'internal', http: 500, message: 'Policy column ref unresolved.' }),
|
|
@@ -600,6 +608,7 @@ export const generatedRegistry = {
|
|
|
600
608
|
'PROVISION_INDEX_COLUMNS_REQUIRED': defineError({ code: 'PROVISION_INDEX_COLUMNS_REQUIRED', class: 'internal', http: 500, message: 'Provision index columns required.' }),
|
|
601
609
|
'PROVISION_INDEX_FIELD_NOT_FOUND': defineError({ code: 'PROVISION_INDEX_FIELD_NOT_FOUND', class: 'internal', http: 500, message: 'Provision index field not found.' }),
|
|
602
610
|
'PROVISION_INVALID_DATABASE_ID': defineError({ code: 'PROVISION_INVALID_DATABASE_ID', class: 'internal', http: 500, message: 'Provision invalid database id.' }),
|
|
611
|
+
'PROVISION_PRIVATE_API_NAME_FORBIDDEN': defineError({ code: 'PROVISION_PRIVATE_API_NAME_FORBIDDEN', class: 'public', http: 403, message: 'Provision private api name forbidden.' }),
|
|
603
612
|
'PROVISION_RELATION': defineError({ code: 'PROVISION_RELATION', class: 'internal', http: 500, message: 'Provision relation.' }),
|
|
604
613
|
'PROVISION_TABLE': defineError({ code: 'PROVISION_TABLE', class: 'internal', http: 500, message: 'Provision table.' }),
|
|
605
614
|
'PROVISION_UNIQUE_CONSTRAINT': defineError({ code: 'PROVISION_UNIQUE_CONSTRAINT', class: 'internal', http: 500, message: 'Provision unique constraint.' }),
|
|
@@ -630,6 +639,7 @@ export const generatedRegistry = {
|
|
|
630
639
|
'RESOURCE_STORAGE_TOTAL_CAP_EXCEEDED': defineError({ code: 'RESOURCE_STORAGE_TOTAL_CAP_EXCEEDED', class: 'internal', http: 500, message: 'Resource storage total cap exceeded.' }),
|
|
631
640
|
'RETIRE_UNSERVED_APIS_SCOPE_REQUIRED': defineError({ code: 'RETIRE_UNSERVED_APIS_SCOPE_REQUIRED', class: 'internal', http: 500, message: 'Retire unserved apis scope required.' }),
|
|
632
641
|
'ROUTE_BINDING_SYNC': defineError({ code: 'ROUTE_BINDING_SYNC', class: 'internal', http: 500, message: 'ROUTE_BINDING_SYNC: unknown event {{arg0}}, expected UPSERT or DELETE', positional: ['arg0'] }),
|
|
642
|
+
'ROUTE_DOMAIN_REQUIRED': defineError({ code: 'ROUTE_DOMAIN_REQUIRED', class: 'internal', http: 500, message: 'Route domain required.' }),
|
|
633
643
|
'ROUTE_PRIVILEGED_TARGET_FORBIDDEN': defineError({ code: 'ROUTE_PRIVILEGED_TARGET_FORBIDDEN', class: 'internal', http: 500, message: 'ROUTE_PRIVILEGED_TARGET_FORBIDDEN: only a platform administrator may route to an API served as a role other than anonymous or authenticated' }),
|
|
634
644
|
'ROUTE_TARGET_NOT_OWNED': defineError({ code: 'ROUTE_TARGET_NOT_OWNED', class: 'internal', http: 500, message: 'Route target not owned.' }),
|
|
635
645
|
'ROUTE_TARGET_REQUIRED': defineError({ code: 'ROUTE_TARGET_REQUIRED', class: 'internal', http: 500, message: 'Route target required.' }),
|
|
@@ -686,6 +696,7 @@ export const generatedRegistry = {
|
|
|
686
696
|
'SESSION_TTL_EXCEEDS_PARENT': defineError({ code: 'SESSION_TTL_EXCEEDS_PARENT', class: 'public', http: 400, message: 'Session ttl exceeds parent.' }),
|
|
687
697
|
'SETTINGS_SURFACE_NOT_PROVISIONED': defineError({ code: 'SETTINGS_SURFACE_NOT_PROVISIONED', class: 'public', http: 400, message: 'Settings surface not provisioned.' }),
|
|
688
698
|
'SIGN_UP_DISABLED': defineError({ code: 'SIGN_UP_DISABLED', class: 'public', http: 403, message: 'Sign up disabled.' }),
|
|
699
|
+
'SIGN_UP_REQUIRES_INVITE': defineError({ code: 'SIGN_UP_REQUIRES_INVITE', class: 'public', http: 403, message: 'Sign up requires invite.' }),
|
|
689
700
|
'SITE_INSTALLATION_MEMBER_NOT_SERVABLE': defineError({ code: 'SITE_INSTALLATION_MEMBER_NOT_SERVABLE', class: 'internal', http: 500, message: 'Site installation member not servable.' }),
|
|
690
701
|
'SITE_NOT_FOUND': defineError({ code: 'SITE_NOT_FOUND', class: 'public', http: 404, message: 'Site not found.' }),
|
|
691
702
|
'SITE_NOT_PROVISIONED': defineError({ code: 'SITE_NOT_PROVISIONED', class: 'public', http: 400, message: 'Site not provisioned.' }),
|
|
@@ -719,10 +730,12 @@ export const generatedRegistry = {
|
|
|
719
730
|
'STEP_UP_REQUIRED_FRESH_AUTH': defineError({ code: 'STEP_UP_REQUIRED_FRESH_AUTH', class: 'public', http: 403, message: 'Please verify your identity to continue.' }),
|
|
720
731
|
'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.' }),
|
|
721
732
|
'STEP_UP_REQUIRED_PASSWORD': defineError({ code: 'STEP_UP_REQUIRED_PASSWORD', class: 'public', http: 403, message: 'Please re-enter your password to continue.' }),
|
|
733
|
+
'STORAGE_ACCESS_CLAIM_MISMATCH': defineError({ code: 'STORAGE_ACCESS_CLAIM_MISMATCH', class: 'public', http: 400, message: 'Storage access claim mismatch.' }),
|
|
722
734
|
'STORAGE_API_NOT_PROVISIONED': defineError({ code: 'STORAGE_API_NOT_PROVISIONED', class: 'public', http: 400, message: 'Storage api not provisioned.' }),
|
|
723
735
|
'STORAGE_DESTINATION_REQUIRES_TEMP': defineError({ code: 'STORAGE_DESTINATION_REQUIRES_TEMP', class: 'internal', http: 500, message: 'Storage destination requires temp.' }),
|
|
724
736
|
'STORAGE_FILE_BUCKET_IMMUTABLE': defineError({ code: 'STORAGE_FILE_BUCKET_IMMUTABLE', class: 'internal', http: 500, message: 'Storage file bucket immutable.' }),
|
|
725
737
|
'STORAGE_FILE_KEY_IMMUTABLE': defineError({ code: 'STORAGE_FILE_KEY_IMMUTABLE', class: 'internal', http: 500, message: 'Storage file key immutable.' }),
|
|
738
|
+
'STORAGE_FILE_NOT_FOUND': defineError({ code: 'STORAGE_FILE_NOT_FOUND', class: 'public', http: 404, message: 'Storage file not found.' }),
|
|
726
739
|
'STORAGE_GC_CONTENT_HASH_UNSUPPORTED': defineError({ code: 'STORAGE_GC_CONTENT_HASH_UNSUPPORTED', class: 'internal', http: 500, message: 'Storage gc content hash unsupported.' }),
|
|
727
740
|
'STORAGE_GC_FILES_TABLE_MISSING': defineError({ code: 'STORAGE_GC_FILES_TABLE_MISSING', class: 'internal', http: 500, message: 'Storage gc files table missing.' }),
|
|
728
741
|
'STORAGE_GC_MODULE_AMBIGUOUS': defineError({ code: 'STORAGE_GC_MODULE_AMBIGUOUS', class: 'internal', http: 500, message: 'Storage gc module ambiguous.' }),
|
|
@@ -732,10 +745,15 @@ export const generatedRegistry = {
|
|
|
732
745
|
'STORAGE_GC_REF_CROSS_DATABASE': defineError({ code: 'STORAGE_GC_REF_CROSS_DATABASE', class: 'internal', http: 500, message: 'Storage gc ref cross database.' }),
|
|
733
746
|
'STORAGE_GC_REF_FIELD_MISSING': defineError({ code: 'STORAGE_GC_REF_FIELD_MISSING', class: 'internal', http: 500, message: 'Storage gc ref field missing.' }),
|
|
734
747
|
'STORAGE_GC_REF_TABLE_MISSING': defineError({ code: 'STORAGE_GC_REF_TABLE_MISSING', class: 'internal', http: 500, message: 'Storage gc ref table missing.' }),
|
|
748
|
+
'STORAGE_INVALID_COMPLETION_RESULT': defineError({ code: 'STORAGE_INVALID_COMPLETION_RESULT', class: 'public', http: 400, message: 'Storage invalid completion result.' }),
|
|
749
|
+
'STORAGE_INVALID_UPLOAD_DOCUMENT': defineError({ code: 'STORAGE_INVALID_UPLOAD_DOCUMENT', class: 'internal', http: 500, message: 'Storage invalid upload document.' }),
|
|
735
750
|
'STORAGE_MODULE_ENTITY_FIELD_INVALID': defineError({ code: 'STORAGE_MODULE_ENTITY_FIELD_INVALID', class: 'internal', http: 500, message: 'Storage module entity field invalid.' }),
|
|
736
751
|
'STORAGE_MODULE_NOT_FOUND': defineError({ code: 'STORAGE_MODULE_NOT_FOUND', class: 'internal', http: 500, message: 'Storage module not found.' }),
|
|
752
|
+
'STORAGE_PROCESSING_CONFLICT': defineError({ code: 'STORAGE_PROCESSING_CONFLICT', class: 'public', http: 400, message: 'Storage processing conflict.' }),
|
|
737
753
|
'STORAGE_PROMOTION_DESTINATION_MISMATCH': defineError({ code: 'STORAGE_PROMOTION_DESTINATION_MISMATCH', class: 'internal', http: 500, message: 'Storage promotion destination mismatch.' }),
|
|
738
754
|
'STORAGE_PROMOTION_VISIBILITY_MISMATCH': defineError({ code: 'STORAGE_PROMOTION_VISIBILITY_MISMATCH', class: 'internal', http: 500, message: 'Storage promotion visibility mismatch.' }),
|
|
755
|
+
'STORAGE_SOURCE_HASH_MISMATCH': defineError({ code: 'STORAGE_SOURCE_HASH_MISMATCH', class: 'public', http: 400, message: 'Storage source hash mismatch.' }),
|
|
756
|
+
'STORAGE_SOURCE_HASH_REQUIRED': defineError({ code: 'STORAGE_SOURCE_HASH_REQUIRED', class: 'public', http: 400, message: 'Storage source hash required.' }),
|
|
739
757
|
'STORAGE_STAGING_BUCKET_NO_DESTINATION': defineError({ code: 'STORAGE_STAGING_BUCKET_NO_DESTINATION', class: 'internal', http: 500, message: 'Storage staging bucket no destination.' }),
|
|
740
758
|
'STORAGE_STAGING_BUCKET_NO_TTL': defineError({ code: 'STORAGE_STAGING_BUCKET_NO_TTL', class: 'internal', http: 500, message: 'Storage staging bucket no ttl.' }),
|
|
741
759
|
'STORAGE_STAGING_DESTINATION_INVALID': defineError({ code: 'STORAGE_STAGING_DESTINATION_INVALID', class: 'internal', http: 500, message: 'Storage staging destination invalid.' }),
|
|
@@ -745,6 +763,8 @@ export const generatedRegistry = {
|
|
|
745
763
|
'SUBDOMAIN_LABEL_EXHAUSTED': defineError({ code: 'SUBDOMAIN_LABEL_EXHAUSTED', class: 'public', http: 400, message: 'Subdomain label exhausted.' }),
|
|
746
764
|
'SUBDOMAIN_LABEL_INVALID': defineError({ code: 'SUBDOMAIN_LABEL_INVALID', class: 'public', http: 400, message: 'Subdomain label invalid.' }),
|
|
747
765
|
'SUPER_CONSTRUCTIVE_REQUIRED': defineError({ code: 'SUPER_CONSTRUCTIVE_REQUIRED', class: 'public', http: 400, message: 'Super constructive required.' }),
|
|
766
|
+
'SUSPENSION_FORBIDDEN': defineError({ code: 'SUSPENSION_FORBIDDEN', class: 'public', http: 403, message: 'Suspension forbidden.' }),
|
|
767
|
+
'SUSPENSION_REASON_INVALID': defineError({ code: 'SUSPENSION_REASON_INVALID', class: 'public', http: 400, message: 'Suspension reason invalid.' }),
|
|
748
768
|
'TABLE_MODULE': defineError({ code: 'TABLE_MODULE', class: 'internal', http: 500, message: 'Table module.' }),
|
|
749
769
|
'TABLE_MODULE_TABLE_NOT_FOUND': defineError({ code: 'TABLE_MODULE_TABLE_NOT_FOUND', class: 'internal', http: 500, message: 'Table module table not found.' }),
|
|
750
770
|
'TARGET_EMAILS_NOT_FOUND': defineError({ code: 'TARGET_EMAILS_NOT_FOUND', class: 'internal', http: 500, message: 'Target emails not found.' }),
|
|
@@ -767,6 +787,7 @@ export const generatedRegistry = {
|
|
|
767
787
|
'TRIGGER_NOT_TRANSPILABLE': defineError({ code: 'TRIGGER_NOT_TRANSPILABLE', class: 'public', http: 400, message: 'Trigger not transpilable.' }),
|
|
768
788
|
'TRIGGER_WHEN_AST_INVALID': defineError({ code: 'TRIGGER_WHEN_AST_INVALID', class: 'public', http: 400, message: 'Trigger when ast invalid.' }),
|
|
769
789
|
'TRIGGER_WHEN_AST_ROW_UNAVAILABLE': defineError({ code: 'TRIGGER_WHEN_AST_ROW_UNAVAILABLE', class: 'public', http: 400, message: 'Trigger when ast row unavailable.' }),
|
|
790
|
+
'TRUST_LADDER_OPTION_INVALID': defineError({ code: 'TRUST_LADDER_OPTION_INVALID', class: 'internal', http: 500, message: 'Trust ladder option invalid.' }),
|
|
770
791
|
'UNAUTHENTICATED': defineError({ code: 'UNAUTHENTICATED', class: 'public', http: 401, message: 'Unauthenticated.' }),
|
|
771
792
|
'UNKNOWN_POLICY_TYPE': defineError({ code: 'UNKNOWN_POLICY_TYPE', class: 'public', http: 400, message: 'Unknown policy type.' }),
|
|
772
793
|
'UNKNOWN_VIEW_TYPE': defineError({ code: 'UNKNOWN_VIEW_TYPE', class: 'public', http: 400, message: 'Unknown view type.', positional: ['arg0'] }),
|
|
@@ -915,6 +936,7 @@ export const GENERATED_CODE_META = {
|
|
|
915
936
|
'CONTENT_PRESET_NOT_SAVED': { class: 'public', dynamic: false, generatedOnly: false },
|
|
916
937
|
'COPY_TEMPLATE_TO_BLUEPRINT': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
917
938
|
'CREDENTIAL_NOT_EXCHANGEABLE': { class: 'public', dynamic: false, generatedOnly: true },
|
|
939
|
+
'CREDENTIAL_NOT_EXTENDABLE': { class: 'public', dynamic: false, generatedOnly: false },
|
|
918
940
|
'CREDIT_CODE_EXPIRED': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
919
941
|
'CREDIT_CODE_MAX_REDEMPTIONS_REACHED': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
920
942
|
'CREDIT_CODE_NOT_FOUND': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
@@ -1031,6 +1053,7 @@ export const GENERATED_CODE_META = {
|
|
|
1031
1053
|
'DATA_PERMISSIONS_MAPPING_TABLE_REQUIRED': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1032
1054
|
'DATA_PERMISSIONS_MODULE_AMBIGUOUS': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1033
1055
|
'DATA_PERMISSIONS_MODULE_NOT_FOUND': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1056
|
+
'DATA_PERMISSIONS_MODULE_REF_INVALID': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1034
1057
|
'DATA_PERMISSIONS_NO_PERMISSIONS_MODULE': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1035
1058
|
'DATA_PERMISSIONS_REGISTRATION_CONFLICT': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1036
1059
|
'DATA_PERMISSIONS_TABLE_NOT_FOUND': { class: 'public', dynamic: false, generatedOnly: false },
|
|
@@ -1059,7 +1082,7 @@ export const GENERATED_CODE_META = {
|
|
|
1059
1082
|
'DOMAIN_CHECK_CERT_UNKNOWN_DOMAIN': { class: 'internal', dynamic: true, generatedOnly: true },
|
|
1060
1083
|
'DOMAIN_ISSUE_CERT_BAD_ISSUER': { class: 'internal', dynamic: true, generatedOnly: true },
|
|
1061
1084
|
'DOMAIN_ISSUE_CERT_FORBIDDEN': { class: 'public', dynamic: false, generatedOnly: true },
|
|
1062
|
-
'DOMAIN_ISSUE_CERT_NOT_VERIFIED': { class: 'public', dynamic:
|
|
1085
|
+
'DOMAIN_ISSUE_CERT_NOT_VERIFIED': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1063
1086
|
'DOMAIN_ISSUE_CERT_UNKNOWN_DOMAIN': { class: 'internal', dynamic: true, generatedOnly: true },
|
|
1064
1087
|
'DOMAIN_ISSUE_CHALLENGE_BAD_METHOD': { class: 'internal', dynamic: true, generatedOnly: true },
|
|
1065
1088
|
'DOMAIN_ISSUE_CHALLENGE_UNKNOWN_DOMAIN': { class: 'internal', dynamic: true, generatedOnly: true },
|
|
@@ -1186,6 +1209,7 @@ export const GENERATED_CODE_META = {
|
|
|
1186
1209
|
'HIERARCHY_MEMBER_IN_USE': { class: 'internal', dynamic: true, generatedOnly: false },
|
|
1187
1210
|
'HISTORY': { class: 'internal', dynamic: true, generatedOnly: false },
|
|
1188
1211
|
'HOSTNAME_BINDING_SYNC': { class: 'internal', dynamic: true, generatedOnly: false },
|
|
1212
|
+
'HOSTNAME_CLAIMED_IN_OTHER_PLANE': { class: 'public', dynamic: false, generatedOnly: true },
|
|
1189
1213
|
'IDENTITY_ACCOUNT_NOT_FOUND': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1190
1214
|
'IDENTITY_ALREADY_LINKED': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1191
1215
|
'IDENTITY_LINK_AVAILABLE': { class: 'public', dynamic: false, generatedOnly: false },
|
|
@@ -1223,9 +1247,12 @@ export const GENERATED_CODE_META = {
|
|
|
1223
1247
|
'INVALID_TOKEN': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1224
1248
|
'INVALID_USER': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1225
1249
|
'INVALID_WORKER_ID': { class: 'internal', dynamic: false, generatedOnly: true },
|
|
1250
|
+
'INVITE_ADDRESS_REQUIRED': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1226
1251
|
'INVITE_EMAIL_NOT_FOUND': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1227
1252
|
'INVITE_LIMIT': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1228
1253
|
'INVITE_NOT_FOUND': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1254
|
+
'INVITE_PHONE_NOT_FOUND': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1255
|
+
'INVITE_USERS_INVALID': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1229
1256
|
'INVOCATION_ANONYMOUS_NOT_AUTHORIZED': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1230
1257
|
'INVOCATION_ANONYMOUS_NOT_CALLABLE': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1231
1258
|
'INVOCATION_ANONYMOUS_ROUTE_REQUIRED': { class: 'public', dynamic: false, generatedOnly: false },
|
|
@@ -1315,6 +1342,7 @@ export const GENERATED_CODE_META = {
|
|
|
1315
1342
|
'MODULES_HASH_DUPLICATE_ENTRY': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1316
1343
|
'MODULES_HASH_INVALID_ENTRY': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1317
1344
|
'MODULES_HASH_INVALID_INPUT': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1345
|
+
'MODULE_ENTRY_MALFORMED': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1318
1346
|
'MODULE_SECURITY_POLICY_ENTRY_MISSING_TYPE': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1319
1347
|
'MODULE_TABLE_ALREADY_ATTRIBUTED': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1320
1348
|
'MONOTONIC_FIELD': { class: 'internal', dynamic: false, generatedOnly: true },
|
|
@@ -1342,6 +1370,7 @@ export const GENERATED_CODE_META = {
|
|
|
1342
1370
|
'PASSWORD_RESET_LOCKED_EXCEED_ATTEMPTS': { class: 'public', dynamic: false, generatedOnly: true },
|
|
1343
1371
|
'PASSWORD_SIGN_IN_DISABLED': { class: 'public', dynamic: false, generatedOnly: true },
|
|
1344
1372
|
'PASSWORD_SIGN_UP_DISABLED': { class: 'public', dynamic: false, generatedOnly: true },
|
|
1373
|
+
'PERMISSION_DENIED': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1345
1374
|
'PLAN_REQUIRED': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1346
1375
|
'PLATFORM_FLAG_IMMUTABLE': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1347
1376
|
'POLICY_COLUMN_REF_UNRESOLVED': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
@@ -1381,6 +1410,7 @@ export const GENERATED_CODE_META = {
|
|
|
1381
1410
|
'PROVISION_INDEX_COLUMNS_REQUIRED': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1382
1411
|
'PROVISION_INDEX_FIELD_NOT_FOUND': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1383
1412
|
'PROVISION_INVALID_DATABASE_ID': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1413
|
+
'PROVISION_PRIVATE_API_NAME_FORBIDDEN': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1384
1414
|
'PROVISION_RELATION': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1385
1415
|
'PROVISION_TABLE': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1386
1416
|
'PROVISION_UNIQUE_CONSTRAINT': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
@@ -1411,6 +1441,7 @@ export const GENERATED_CODE_META = {
|
|
|
1411
1441
|
'RESOURCE_STORAGE_TOTAL_CAP_EXCEEDED': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1412
1442
|
'RETIRE_UNSERVED_APIS_SCOPE_REQUIRED': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1413
1443
|
'ROUTE_BINDING_SYNC': { class: 'internal', dynamic: true, generatedOnly: false },
|
|
1444
|
+
'ROUTE_DOMAIN_REQUIRED': { class: 'internal', dynamic: false, generatedOnly: true },
|
|
1414
1445
|
'ROUTE_PRIVILEGED_TARGET_FORBIDDEN': { class: 'internal', dynamic: false, generatedOnly: true },
|
|
1415
1446
|
'ROUTE_TARGET_NOT_OWNED': { class: 'internal', dynamic: false, generatedOnly: true },
|
|
1416
1447
|
'ROUTE_TARGET_REQUIRED': { class: 'internal', dynamic: false, generatedOnly: true },
|
|
@@ -1467,6 +1498,7 @@ export const GENERATED_CODE_META = {
|
|
|
1467
1498
|
'SESSION_TTL_EXCEEDS_PARENT': { class: 'public', dynamic: false, generatedOnly: true },
|
|
1468
1499
|
'SETTINGS_SURFACE_NOT_PROVISIONED': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1469
1500
|
'SIGN_UP_DISABLED': { class: 'public', dynamic: false, generatedOnly: true },
|
|
1501
|
+
'SIGN_UP_REQUIRES_INVITE': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1470
1502
|
'SITE_INSTALLATION_MEMBER_NOT_SERVABLE': { class: 'internal', dynamic: false, generatedOnly: true },
|
|
1471
1503
|
'SITE_NOT_FOUND': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1472
1504
|
'SITE_NOT_PROVISIONED': { class: 'public', dynamic: false, generatedOnly: false },
|
|
@@ -1500,10 +1532,12 @@ export const GENERATED_CODE_META = {
|
|
|
1500
1532
|
'STEP_UP_REQUIRED_FRESH_AUTH': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1501
1533
|
'STEP_UP_REQUIRED_MFA': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1502
1534
|
'STEP_UP_REQUIRED_PASSWORD': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1535
|
+
'STORAGE_ACCESS_CLAIM_MISMATCH': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1503
1536
|
'STORAGE_API_NOT_PROVISIONED': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1504
1537
|
'STORAGE_DESTINATION_REQUIRES_TEMP': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1505
1538
|
'STORAGE_FILE_BUCKET_IMMUTABLE': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1506
1539
|
'STORAGE_FILE_KEY_IMMUTABLE': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1540
|
+
'STORAGE_FILE_NOT_FOUND': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1507
1541
|
'STORAGE_GC_CONTENT_HASH_UNSUPPORTED': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1508
1542
|
'STORAGE_GC_FILES_TABLE_MISSING': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1509
1543
|
'STORAGE_GC_MODULE_AMBIGUOUS': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
@@ -1513,10 +1547,15 @@ export const GENERATED_CODE_META = {
|
|
|
1513
1547
|
'STORAGE_GC_REF_CROSS_DATABASE': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1514
1548
|
'STORAGE_GC_REF_FIELD_MISSING': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1515
1549
|
'STORAGE_GC_REF_TABLE_MISSING': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1550
|
+
'STORAGE_INVALID_COMPLETION_RESULT': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1551
|
+
'STORAGE_INVALID_UPLOAD_DOCUMENT': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1516
1552
|
'STORAGE_MODULE_ENTITY_FIELD_INVALID': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1517
1553
|
'STORAGE_MODULE_NOT_FOUND': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1554
|
+
'STORAGE_PROCESSING_CONFLICT': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1518
1555
|
'STORAGE_PROMOTION_DESTINATION_MISMATCH': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1519
1556
|
'STORAGE_PROMOTION_VISIBILITY_MISMATCH': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1557
|
+
'STORAGE_SOURCE_HASH_MISMATCH': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1558
|
+
'STORAGE_SOURCE_HASH_REQUIRED': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1520
1559
|
'STORAGE_STAGING_BUCKET_NO_DESTINATION': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1521
1560
|
'STORAGE_STAGING_BUCKET_NO_TTL': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1522
1561
|
'STORAGE_STAGING_DESTINATION_INVALID': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
@@ -1526,6 +1565,8 @@ export const GENERATED_CODE_META = {
|
|
|
1526
1565
|
'SUBDOMAIN_LABEL_EXHAUSTED': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1527
1566
|
'SUBDOMAIN_LABEL_INVALID': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1528
1567
|
'SUPER_CONSTRUCTIVE_REQUIRED': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1568
|
+
'SUSPENSION_FORBIDDEN': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1569
|
+
'SUSPENSION_REASON_INVALID': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1529
1570
|
'TABLE_MODULE': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1530
1571
|
'TABLE_MODULE_TABLE_NOT_FOUND': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1531
1572
|
'TARGET_EMAILS_NOT_FOUND': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
@@ -1548,6 +1589,7 @@ export const GENERATED_CODE_META = {
|
|
|
1548
1589
|
'TRIGGER_NOT_TRANSPILABLE': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1549
1590
|
'TRIGGER_WHEN_AST_INVALID': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1550
1591
|
'TRIGGER_WHEN_AST_ROW_UNAVAILABLE': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1592
|
+
'TRUST_LADDER_OPTION_INVALID': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1551
1593
|
'UNAUTHENTICATED': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1552
1594
|
'UNKNOWN_POLICY_TYPE': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1553
1595
|
'UNKNOWN_VIEW_TYPE': { class: 'public', dynamic: true, generatedOnly: false },
|
|
@@ -1576,4 +1618,4 @@ export const GENERATED_CODE_META = {
|
|
|
1576
1618
|
'WITH_CHECK_NOT_ALLOWED': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1577
1619
|
};
|
|
1578
1620
|
/** Total number of codes collected from constructive-db. */
|
|
1579
|
-
export const GENERATED_CODE_COUNT =
|
|
1621
|
+
export const GENERATED_CODE_COUNT = 799;
|
package/esm/registry.d.ts
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
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
|
+
};
|
|
3
8
|
/**
|
|
4
9
|
* The curated Constructive error registry.
|
|
5
10
|
*
|
|
@@ -11,6 +16,36 @@ export { type DefinedError, defineError } from './define';
|
|
|
11
16
|
*/
|
|
12
17
|
export declare const registry: {
|
|
13
18
|
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
|
+
}>;
|
|
14
49
|
readonly ACCOUNT_EXISTS: import("./define").DefinedError<import("./types").EmptyContext>;
|
|
15
50
|
readonly ACCOUNT_NOT_FOUND: import("./define").DefinedError<import("./types").EmptyContext>;
|
|
16
51
|
readonly NO_ACCOUNT_EXISTS: import("./define").DefinedError<{
|
|
@@ -24,6 +59,7 @@ export declare const registry: {
|
|
|
24
59
|
readonly PASSWORD_LEN: import("./define").DefinedError<import("./types").EmptyContext>;
|
|
25
60
|
readonly EMAIL_NOT_VERIFIED: import("./define").DefinedError<import("./types").EmptyContext>;
|
|
26
61
|
readonly SIGN_UP_DISABLED: import("./define").DefinedError<import("./types").EmptyContext>;
|
|
62
|
+
readonly SIGN_UP_REQUIRES_INVITE: import("./define").DefinedError<import("./types").EmptyContext>;
|
|
27
63
|
readonly USER_NOT_AUTHENTICATED: import("./define").DefinedError<import("./types").EmptyContext>;
|
|
28
64
|
readonly ACCOUNT_LOCKED: import("./define").DefinedError<import("./types").EmptyContext>;
|
|
29
65
|
readonly USER_NOT_FOUND: import("./define").DefinedError<import("./types").EmptyContext>;
|
|
@@ -44,10 +80,22 @@ export declare const registry: {
|
|
|
44
80
|
readonly INVITE_NOT_FOUND: import("./define").DefinedError<import("./types").EmptyContext>;
|
|
45
81
|
readonly INVITE_LIMIT: import("./define").DefinedError<import("./types").EmptyContext>;
|
|
46
82
|
readonly INVITE_EMAIL_NOT_FOUND: import("./define").DefinedError<import("./types").EmptyContext>;
|
|
83
|
+
readonly INVITE_PHONE_NOT_FOUND: import("./define").DefinedError<import("./types").EmptyContext>;
|
|
84
|
+
readonly INVITE_ADDRESS_REQUIRED: import("./define").DefinedError<import("./types").EmptyContext>;
|
|
85
|
+
readonly INVITE_USERS_INVALID: import("./define").DefinedError<import("./types").EmptyContext>;
|
|
47
86
|
readonly UNAUTHENTICATED: import("./define").DefinedError<import("./types").EmptyContext>;
|
|
48
87
|
readonly CAPTCHA_REQUIRED: import("./define").DefinedError<import("./types").EmptyContext>;
|
|
49
88
|
readonly CAPTCHA_FAILED: import("./define").DefinedError<import("./types").EmptyContext>;
|
|
50
89
|
readonly FORBIDDEN: import("./define").DefinedError<import("./types").EmptyContext>;
|
|
90
|
+
readonly ACCESS_SUSPENDED: import("./define").DefinedError<{
|
|
91
|
+
reason?: string;
|
|
92
|
+
}>;
|
|
93
|
+
readonly SUSPENSION_FORBIDDEN: import("./define").DefinedError<{
|
|
94
|
+
database_id?: string;
|
|
95
|
+
}>;
|
|
96
|
+
readonly SUSPENSION_REASON_INVALID: import("./define").DefinedError<{
|
|
97
|
+
reason?: string;
|
|
98
|
+
}>;
|
|
51
99
|
readonly STEP_UP_REQUIRED: import("./define").DefinedError<import("./types").EmptyContext>;
|
|
52
100
|
readonly MFA_REQUIRED: import("./define").DefinedError<import("./types").EmptyContext>;
|
|
53
101
|
readonly INVALID_TOKEN: import("./define").DefinedError<import("./types").EmptyContext>;
|
package/esm/registry.js
CHANGED
|
@@ -17,6 +17,63 @@ 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
|
+
}),
|
|
20
77
|
// ===========================================================================
|
|
21
78
|
// Auth / account (public) — copy sourced from dashboard auth-errors.ts
|
|
22
79
|
// ===========================================================================
|
|
@@ -86,6 +143,12 @@ export const registry = {
|
|
|
86
143
|
http: 403,
|
|
87
144
|
message: 'Sign-up is currently disabled.'
|
|
88
145
|
}),
|
|
146
|
+
SIGN_UP_REQUIRES_INVITE: defineError({
|
|
147
|
+
code: 'SIGN_UP_REQUIRES_INVITE',
|
|
148
|
+
class: 'public',
|
|
149
|
+
http: 403,
|
|
150
|
+
message: 'Sign-up is by invitation only. Please provide a valid invite code.'
|
|
151
|
+
}),
|
|
89
152
|
// ===========================================================================
|
|
90
153
|
// Auth / account (public) — migrated from the server graphile SAFE_ERROR_CODES
|
|
91
154
|
// allowlist so the registry (not a hand-maintained set) is the source of truth
|
|
@@ -220,6 +283,24 @@ export const registry = {
|
|
|
220
283
|
http: 404,
|
|
221
284
|
message: 'This email is not associated with the invitation. Please use the email address the invitation was sent to.'
|
|
222
285
|
}),
|
|
286
|
+
INVITE_PHONE_NOT_FOUND: defineError({
|
|
287
|
+
code: 'INVITE_PHONE_NOT_FOUND',
|
|
288
|
+
class: 'public',
|
|
289
|
+
http: 404,
|
|
290
|
+
message: 'This phone number is not associated with the invitation. Please use the phone number the invitation was sent to.'
|
|
291
|
+
}),
|
|
292
|
+
INVITE_ADDRESS_REQUIRED: defineError({
|
|
293
|
+
code: 'INVITE_ADDRESS_REQUIRED',
|
|
294
|
+
class: 'public',
|
|
295
|
+
http: 400,
|
|
296
|
+
message: 'An email address or phone number is required.'
|
|
297
|
+
}),
|
|
298
|
+
INVITE_USERS_INVALID: defineError({
|
|
299
|
+
code: 'INVITE_USERS_INVALID',
|
|
300
|
+
class: 'public',
|
|
301
|
+
http: 400,
|
|
302
|
+
message: 'The users payload must be a JSON array.'
|
|
303
|
+
}),
|
|
223
304
|
// ===========================================================================
|
|
224
305
|
// Authorization / step-up (public)
|
|
225
306
|
// ===========================================================================
|
|
@@ -247,6 +328,24 @@ export const registry = {
|
|
|
247
328
|
http: 403,
|
|
248
329
|
message: 'You do not have permission to do that.'
|
|
249
330
|
}),
|
|
331
|
+
ACCESS_SUSPENDED: defineError({
|
|
332
|
+
code: 'ACCESS_SUSPENDED',
|
|
333
|
+
class: 'public',
|
|
334
|
+
http: 403,
|
|
335
|
+
message: 'Access to this database is suspended.'
|
|
336
|
+
}),
|
|
337
|
+
SUSPENSION_FORBIDDEN: defineError({
|
|
338
|
+
code: 'SUSPENSION_FORBIDDEN',
|
|
339
|
+
class: 'public',
|
|
340
|
+
http: 403,
|
|
341
|
+
message: 'Only the platform may change database suspension.'
|
|
342
|
+
}),
|
|
343
|
+
SUSPENSION_REASON_INVALID: defineError({
|
|
344
|
+
code: 'SUSPENSION_REASON_INVALID',
|
|
345
|
+
class: 'public',
|
|
346
|
+
http: 400,
|
|
347
|
+
message: 'Suspension reason must be "billing" or "admin".'
|
|
348
|
+
}),
|
|
250
349
|
STEP_UP_REQUIRED: defineError({
|
|
251
350
|
code: 'STEP_UP_REQUIRED',
|
|
252
351
|
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 (
|
|
4
|
+
* Source of truth: the constructive-db error audit (799 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: 799 total, 589 public, 210 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 = 799;
|
|
@@ -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 (799 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: 799 total, 589 public, 210 internal.
|
|
17
17
|
*/
|
|
18
18
|
const define_1 = require("../define");
|
|
19
19
|
/** Every constructive-db error code, keyed by code. */
|
|
@@ -137,6 +137,7 @@ exports.generatedRegistry = {
|
|
|
137
137
|
'CONTENT_PRESET_NOT_SAVED': (0, define_1.defineError)({ code: 'CONTENT_PRESET_NOT_SAVED', class: 'public', http: 400, message: 'Content preset not saved.' }),
|
|
138
138
|
'COPY_TEMPLATE_TO_BLUEPRINT': (0, define_1.defineError)({ code: 'COPY_TEMPLATE_TO_BLUEPRINT', class: 'internal', http: 500, message: 'Copy template to blueprint.' }),
|
|
139
139
|
'CREDENTIAL_NOT_EXCHANGEABLE': (0, define_1.defineError)({ code: 'CREDENTIAL_NOT_EXCHANGEABLE', class: 'public', http: 400, message: 'Credential not exchangeable.' }),
|
|
140
|
+
'CREDENTIAL_NOT_EXTENDABLE': (0, define_1.defineError)({ code: 'CREDENTIAL_NOT_EXTENDABLE', class: 'public', http: 400, message: 'Credential not extendable.' }),
|
|
140
141
|
'CREDIT_CODE_EXPIRED': (0, define_1.defineError)({ code: 'CREDIT_CODE_EXPIRED', class: 'internal', http: 500, message: 'Credit code expired.' }),
|
|
141
142
|
'CREDIT_CODE_MAX_REDEMPTIONS_REACHED': (0, define_1.defineError)({ code: 'CREDIT_CODE_MAX_REDEMPTIONS_REACHED', class: 'internal', http: 500, message: 'Credit code max redemptions reached.' }),
|
|
142
143
|
'CREDIT_CODE_NOT_FOUND': (0, define_1.defineError)({ code: 'CREDIT_CODE_NOT_FOUND', class: 'internal', http: 500, message: 'Credit code not found.' }),
|
|
@@ -253,6 +254,7 @@ exports.generatedRegistry = {
|
|
|
253
254
|
'DATA_PERMISSIONS_MAPPING_TABLE_REQUIRED': (0, define_1.defineError)({ code: 'DATA_PERMISSIONS_MAPPING_TABLE_REQUIRED', class: 'public', http: 400, message: 'Data permissions mapping table required.' }),
|
|
254
255
|
'DATA_PERMISSIONS_MODULE_AMBIGUOUS': (0, define_1.defineError)({ code: 'DATA_PERMISSIONS_MODULE_AMBIGUOUS', class: 'public', http: 400, message: 'Data permissions module ambiguous.' }),
|
|
255
256
|
'DATA_PERMISSIONS_MODULE_NOT_FOUND': (0, define_1.defineError)({ code: 'DATA_PERMISSIONS_MODULE_NOT_FOUND', class: 'public', http: 404, message: 'Data permissions module not found.' }),
|
|
257
|
+
'DATA_PERMISSIONS_MODULE_REF_INVALID': (0, define_1.defineError)({ code: 'DATA_PERMISSIONS_MODULE_REF_INVALID', class: 'public', http: 400, message: 'Data permissions module ref invalid.' }),
|
|
256
258
|
'DATA_PERMISSIONS_NO_PERMISSIONS_MODULE': (0, define_1.defineError)({ code: 'DATA_PERMISSIONS_NO_PERMISSIONS_MODULE', class: 'public', http: 400, message: 'Data permissions no permissions module.' }),
|
|
257
259
|
'DATA_PERMISSIONS_REGISTRATION_CONFLICT': (0, define_1.defineError)({ code: 'DATA_PERMISSIONS_REGISTRATION_CONFLICT', class: 'public', http: 400, message: 'Data permissions registration conflict.' }),
|
|
258
260
|
'DATA_PERMISSIONS_TABLE_NOT_FOUND': (0, define_1.defineError)({ code: 'DATA_PERMISSIONS_TABLE_NOT_FOUND', class: 'public', http: 404, message: 'Data permissions table not found.' }),
|
|
@@ -408,6 +410,7 @@ exports.generatedRegistry = {
|
|
|
408
410
|
'HIERARCHY_MEMBER_IN_USE': (0, define_1.defineError)({ code: 'HIERARCHY_MEMBER_IN_USE', class: 'internal', http: 500, message: 'HIERARCHY_MEMBER_IN_USE: Cannot deactivate user {{arg0}} - user must be removed from the organization hierarchy first', positional: ['arg0'] }),
|
|
409
411
|
'HISTORY': (0, define_1.defineError)({ code: 'HISTORY', class: 'internal', http: 500, message: 'HISTORY: history {{arg0}}.{{arg1}} registration has no copy_fields', positional: ['arg0', 'arg1'] }),
|
|
410
412
|
'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'] }),
|
|
413
|
+
'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.' }),
|
|
411
414
|
'IDENTITY_ACCOUNT_NOT_FOUND': (0, define_1.defineError)({ code: 'IDENTITY_ACCOUNT_NOT_FOUND', class: 'public', http: 404, message: 'Identity account not found.' }),
|
|
412
415
|
'IDENTITY_ALREADY_LINKED': (0, define_1.defineError)({ code: 'IDENTITY_ALREADY_LINKED', class: 'public', http: 409, message: 'Identity already linked.' }),
|
|
413
416
|
'IDENTITY_LINK_AVAILABLE': (0, define_1.defineError)({ code: 'IDENTITY_LINK_AVAILABLE', class: 'public', http: 400, message: 'Identity link available.' }),
|
|
@@ -445,9 +448,12 @@ exports.generatedRegistry = {
|
|
|
445
448
|
'INVALID_TOKEN': (0, define_1.defineError)({ code: 'INVALID_TOKEN', class: 'public', http: 401, message: 'Invalid token.' }),
|
|
446
449
|
'INVALID_USER': (0, define_1.defineError)({ code: 'INVALID_USER', class: 'public', http: 400, message: 'Invalid user.' }),
|
|
447
450
|
'INVALID_WORKER_ID': (0, define_1.defineError)({ code: 'INVALID_WORKER_ID', class: 'internal', http: 500, message: 'Invalid worker id.' }),
|
|
451
|
+
'INVITE_ADDRESS_REQUIRED': (0, define_1.defineError)({ code: 'INVITE_ADDRESS_REQUIRED', class: 'public', http: 400, message: 'Invite address required.' }),
|
|
448
452
|
'INVITE_EMAIL_NOT_FOUND': (0, define_1.defineError)({ code: 'INVITE_EMAIL_NOT_FOUND', class: 'public', http: 404, message: 'Invite email not found.' }),
|
|
449
453
|
'INVITE_LIMIT': (0, define_1.defineError)({ code: 'INVITE_LIMIT', class: 'public', http: 429, message: 'Invite limit.' }),
|
|
450
454
|
'INVITE_NOT_FOUND': (0, define_1.defineError)({ code: 'INVITE_NOT_FOUND', class: 'public', http: 404, message: 'Invite not found.' }),
|
|
455
|
+
'INVITE_PHONE_NOT_FOUND': (0, define_1.defineError)({ code: 'INVITE_PHONE_NOT_FOUND', class: 'public', http: 404, message: 'Invite phone not found.' }),
|
|
456
|
+
'INVITE_USERS_INVALID': (0, define_1.defineError)({ code: 'INVITE_USERS_INVALID', class: 'public', http: 400, message: 'Invite users invalid.' }),
|
|
451
457
|
'INVOCATION_ANONYMOUS_NOT_AUTHORIZED': (0, define_1.defineError)({ code: 'INVOCATION_ANONYMOUS_NOT_AUTHORIZED', class: 'public', http: 400, message: 'Invocation anonymous not authorized.' }),
|
|
452
458
|
'INVOCATION_ANONYMOUS_NOT_CALLABLE': (0, define_1.defineError)({ code: 'INVOCATION_ANONYMOUS_NOT_CALLABLE', class: 'public', http: 400, message: 'Invocation anonymous not callable.' }),
|
|
453
459
|
'INVOCATION_ANONYMOUS_ROUTE_REQUIRED': (0, define_1.defineError)({ code: 'INVOCATION_ANONYMOUS_ROUTE_REQUIRED', class: 'public', http: 400, message: 'Invocation anonymous route required.' }),
|
|
@@ -537,6 +543,7 @@ exports.generatedRegistry = {
|
|
|
537
543
|
'MODULES_HASH_DUPLICATE_ENTRY': (0, define_1.defineError)({ code: 'MODULES_HASH_DUPLICATE_ENTRY', class: 'internal', http: 500, message: 'Modules hash duplicate entry.' }),
|
|
538
544
|
'MODULES_HASH_INVALID_ENTRY': (0, define_1.defineError)({ code: 'MODULES_HASH_INVALID_ENTRY', class: 'internal', http: 500, message: 'Modules hash invalid entry.' }),
|
|
539
545
|
'MODULES_HASH_INVALID_INPUT': (0, define_1.defineError)({ code: 'MODULES_HASH_INVALID_INPUT', class: 'internal', http: 500, message: 'Modules hash invalid input.' }),
|
|
546
|
+
'MODULE_ENTRY_MALFORMED': (0, define_1.defineError)({ code: 'MODULE_ENTRY_MALFORMED', class: 'internal', http: 500, message: 'Module entry malformed.' }),
|
|
540
547
|
'MODULE_SECURITY_POLICY_ENTRY_MISSING_TYPE': (0, define_1.defineError)({ code: 'MODULE_SECURITY_POLICY_ENTRY_MISSING_TYPE', class: 'public', http: 400, message: 'Module security policy entry missing type.' }),
|
|
541
548
|
'MODULE_TABLE_ALREADY_ATTRIBUTED': (0, define_1.defineError)({ code: 'MODULE_TABLE_ALREADY_ATTRIBUTED', class: 'internal', http: 500, message: 'Module table already attributed.' }),
|
|
542
549
|
'MONOTONIC_FIELD': (0, define_1.defineError)({ code: 'MONOTONIC_FIELD', class: 'internal', http: 500, message: 'Monotonic field.' }),
|
|
@@ -564,6 +571,7 @@ exports.generatedRegistry = {
|
|
|
564
571
|
'PASSWORD_RESET_LOCKED_EXCEED_ATTEMPTS': (0, define_1.defineError)({ code: 'PASSWORD_RESET_LOCKED_EXCEED_ATTEMPTS', class: 'public', http: 423, message: 'Password reset locked exceed attempts.' }),
|
|
565
572
|
'PASSWORD_SIGN_IN_DISABLED': (0, define_1.defineError)({ code: 'PASSWORD_SIGN_IN_DISABLED', class: 'public', http: 403, message: 'Password sign in disabled.' }),
|
|
566
573
|
'PASSWORD_SIGN_UP_DISABLED': (0, define_1.defineError)({ code: 'PASSWORD_SIGN_UP_DISABLED', class: 'public', http: 403, message: 'Password sign up disabled.' }),
|
|
574
|
+
'PERMISSION_DENIED': (0, define_1.defineError)({ code: 'PERMISSION_DENIED', class: 'public', http: 403, message: 'Permission denied.' }),
|
|
567
575
|
'PLAN_REQUIRED': (0, define_1.defineError)({ code: 'PLAN_REQUIRED', class: 'internal', http: 500, message: 'Plan required.' }),
|
|
568
576
|
'PLATFORM_FLAG_IMMUTABLE': (0, define_1.defineError)({ code: 'PLATFORM_FLAG_IMMUTABLE', class: 'internal', http: 500, message: 'Platform flag immutable.' }),
|
|
569
577
|
'POLICY_COLUMN_REF_UNRESOLVED': (0, define_1.defineError)({ code: 'POLICY_COLUMN_REF_UNRESOLVED', class: 'internal', http: 500, message: 'Policy column ref unresolved.' }),
|
|
@@ -603,6 +611,7 @@ exports.generatedRegistry = {
|
|
|
603
611
|
'PROVISION_INDEX_COLUMNS_REQUIRED': (0, define_1.defineError)({ code: 'PROVISION_INDEX_COLUMNS_REQUIRED', class: 'internal', http: 500, message: 'Provision index columns required.' }),
|
|
604
612
|
'PROVISION_INDEX_FIELD_NOT_FOUND': (0, define_1.defineError)({ code: 'PROVISION_INDEX_FIELD_NOT_FOUND', class: 'internal', http: 500, message: 'Provision index field not found.' }),
|
|
605
613
|
'PROVISION_INVALID_DATABASE_ID': (0, define_1.defineError)({ code: 'PROVISION_INVALID_DATABASE_ID', class: 'internal', http: 500, message: 'Provision invalid database id.' }),
|
|
614
|
+
'PROVISION_PRIVATE_API_NAME_FORBIDDEN': (0, define_1.defineError)({ code: 'PROVISION_PRIVATE_API_NAME_FORBIDDEN', class: 'public', http: 403, message: 'Provision private api name forbidden.' }),
|
|
606
615
|
'PROVISION_RELATION': (0, define_1.defineError)({ code: 'PROVISION_RELATION', class: 'internal', http: 500, message: 'Provision relation.' }),
|
|
607
616
|
'PROVISION_TABLE': (0, define_1.defineError)({ code: 'PROVISION_TABLE', class: 'internal', http: 500, message: 'Provision table.' }),
|
|
608
617
|
'PROVISION_UNIQUE_CONSTRAINT': (0, define_1.defineError)({ code: 'PROVISION_UNIQUE_CONSTRAINT', class: 'internal', http: 500, message: 'Provision unique constraint.' }),
|
|
@@ -633,6 +642,7 @@ exports.generatedRegistry = {
|
|
|
633
642
|
'RESOURCE_STORAGE_TOTAL_CAP_EXCEEDED': (0, define_1.defineError)({ code: 'RESOURCE_STORAGE_TOTAL_CAP_EXCEEDED', class: 'internal', http: 500, message: 'Resource storage total cap exceeded.' }),
|
|
634
643
|
'RETIRE_UNSERVED_APIS_SCOPE_REQUIRED': (0, define_1.defineError)({ code: 'RETIRE_UNSERVED_APIS_SCOPE_REQUIRED', class: 'internal', http: 500, message: 'Retire unserved apis scope required.' }),
|
|
635
644
|
'ROUTE_BINDING_SYNC': (0, define_1.defineError)({ code: 'ROUTE_BINDING_SYNC', class: 'internal', http: 500, message: 'ROUTE_BINDING_SYNC: unknown event {{arg0}}, expected UPSERT or DELETE', positional: ['arg0'] }),
|
|
645
|
+
'ROUTE_DOMAIN_REQUIRED': (0, define_1.defineError)({ code: 'ROUTE_DOMAIN_REQUIRED', class: 'internal', http: 500, message: 'Route domain required.' }),
|
|
636
646
|
'ROUTE_PRIVILEGED_TARGET_FORBIDDEN': (0, define_1.defineError)({ code: 'ROUTE_PRIVILEGED_TARGET_FORBIDDEN', class: 'internal', http: 500, message: 'ROUTE_PRIVILEGED_TARGET_FORBIDDEN: only a platform administrator may route to an API served as a role other than anonymous or authenticated' }),
|
|
637
647
|
'ROUTE_TARGET_NOT_OWNED': (0, define_1.defineError)({ code: 'ROUTE_TARGET_NOT_OWNED', class: 'internal', http: 500, message: 'Route target not owned.' }),
|
|
638
648
|
'ROUTE_TARGET_REQUIRED': (0, define_1.defineError)({ code: 'ROUTE_TARGET_REQUIRED', class: 'internal', http: 500, message: 'Route target required.' }),
|
|
@@ -689,6 +699,7 @@ exports.generatedRegistry = {
|
|
|
689
699
|
'SESSION_TTL_EXCEEDS_PARENT': (0, define_1.defineError)({ code: 'SESSION_TTL_EXCEEDS_PARENT', class: 'public', http: 400, message: 'Session ttl exceeds parent.' }),
|
|
690
700
|
'SETTINGS_SURFACE_NOT_PROVISIONED': (0, define_1.defineError)({ code: 'SETTINGS_SURFACE_NOT_PROVISIONED', class: 'public', http: 400, message: 'Settings surface not provisioned.' }),
|
|
691
701
|
'SIGN_UP_DISABLED': (0, define_1.defineError)({ code: 'SIGN_UP_DISABLED', class: 'public', http: 403, message: 'Sign up disabled.' }),
|
|
702
|
+
'SIGN_UP_REQUIRES_INVITE': (0, define_1.defineError)({ code: 'SIGN_UP_REQUIRES_INVITE', class: 'public', http: 403, message: 'Sign up requires invite.' }),
|
|
692
703
|
'SITE_INSTALLATION_MEMBER_NOT_SERVABLE': (0, define_1.defineError)({ code: 'SITE_INSTALLATION_MEMBER_NOT_SERVABLE', class: 'internal', http: 500, message: 'Site installation member not servable.' }),
|
|
693
704
|
'SITE_NOT_FOUND': (0, define_1.defineError)({ code: 'SITE_NOT_FOUND', class: 'public', http: 404, message: 'Site not found.' }),
|
|
694
705
|
'SITE_NOT_PROVISIONED': (0, define_1.defineError)({ code: 'SITE_NOT_PROVISIONED', class: 'public', http: 400, message: 'Site not provisioned.' }),
|
|
@@ -722,10 +733,12 @@ exports.generatedRegistry = {
|
|
|
722
733
|
'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.' }),
|
|
723
734
|
'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.' }),
|
|
724
735
|
'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.' }),
|
|
736
|
+
'STORAGE_ACCESS_CLAIM_MISMATCH': (0, define_1.defineError)({ code: 'STORAGE_ACCESS_CLAIM_MISMATCH', class: 'public', http: 400, message: 'Storage access claim mismatch.' }),
|
|
725
737
|
'STORAGE_API_NOT_PROVISIONED': (0, define_1.defineError)({ code: 'STORAGE_API_NOT_PROVISIONED', class: 'public', http: 400, message: 'Storage api not provisioned.' }),
|
|
726
738
|
'STORAGE_DESTINATION_REQUIRES_TEMP': (0, define_1.defineError)({ code: 'STORAGE_DESTINATION_REQUIRES_TEMP', class: 'internal', http: 500, message: 'Storage destination requires temp.' }),
|
|
727
739
|
'STORAGE_FILE_BUCKET_IMMUTABLE': (0, define_1.defineError)({ code: 'STORAGE_FILE_BUCKET_IMMUTABLE', class: 'internal', http: 500, message: 'Storage file bucket immutable.' }),
|
|
728
740
|
'STORAGE_FILE_KEY_IMMUTABLE': (0, define_1.defineError)({ code: 'STORAGE_FILE_KEY_IMMUTABLE', class: 'internal', http: 500, message: 'Storage file key immutable.' }),
|
|
741
|
+
'STORAGE_FILE_NOT_FOUND': (0, define_1.defineError)({ code: 'STORAGE_FILE_NOT_FOUND', class: 'public', http: 404, message: 'Storage file not found.' }),
|
|
729
742
|
'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.' }),
|
|
730
743
|
'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.' }),
|
|
731
744
|
'STORAGE_GC_MODULE_AMBIGUOUS': (0, define_1.defineError)({ code: 'STORAGE_GC_MODULE_AMBIGUOUS', class: 'internal', http: 500, message: 'Storage gc module ambiguous.' }),
|
|
@@ -735,10 +748,15 @@ exports.generatedRegistry = {
|
|
|
735
748
|
'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.' }),
|
|
736
749
|
'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.' }),
|
|
737
750
|
'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.' }),
|
|
751
|
+
'STORAGE_INVALID_COMPLETION_RESULT': (0, define_1.defineError)({ code: 'STORAGE_INVALID_COMPLETION_RESULT', class: 'public', http: 400, message: 'Storage invalid completion result.' }),
|
|
752
|
+
'STORAGE_INVALID_UPLOAD_DOCUMENT': (0, define_1.defineError)({ code: 'STORAGE_INVALID_UPLOAD_DOCUMENT', class: 'internal', http: 500, message: 'Storage invalid upload document.' }),
|
|
738
753
|
'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.' }),
|
|
739
754
|
'STORAGE_MODULE_NOT_FOUND': (0, define_1.defineError)({ code: 'STORAGE_MODULE_NOT_FOUND', class: 'internal', http: 500, message: 'Storage module not found.' }),
|
|
755
|
+
'STORAGE_PROCESSING_CONFLICT': (0, define_1.defineError)({ code: 'STORAGE_PROCESSING_CONFLICT', class: 'public', http: 400, message: 'Storage processing conflict.' }),
|
|
740
756
|
'STORAGE_PROMOTION_DESTINATION_MISMATCH': (0, define_1.defineError)({ code: 'STORAGE_PROMOTION_DESTINATION_MISMATCH', class: 'internal', http: 500, message: 'Storage promotion destination mismatch.' }),
|
|
741
757
|
'STORAGE_PROMOTION_VISIBILITY_MISMATCH': (0, define_1.defineError)({ code: 'STORAGE_PROMOTION_VISIBILITY_MISMATCH', class: 'internal', http: 500, message: 'Storage promotion visibility mismatch.' }),
|
|
758
|
+
'STORAGE_SOURCE_HASH_MISMATCH': (0, define_1.defineError)({ code: 'STORAGE_SOURCE_HASH_MISMATCH', class: 'public', http: 400, message: 'Storage source hash mismatch.' }),
|
|
759
|
+
'STORAGE_SOURCE_HASH_REQUIRED': (0, define_1.defineError)({ code: 'STORAGE_SOURCE_HASH_REQUIRED', class: 'public', http: 400, message: 'Storage source hash required.' }),
|
|
742
760
|
'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.' }),
|
|
743
761
|
'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.' }),
|
|
744
762
|
'STORAGE_STAGING_DESTINATION_INVALID': (0, define_1.defineError)({ code: 'STORAGE_STAGING_DESTINATION_INVALID', class: 'internal', http: 500, message: 'Storage staging destination invalid.' }),
|
|
@@ -748,6 +766,8 @@ exports.generatedRegistry = {
|
|
|
748
766
|
'SUBDOMAIN_LABEL_EXHAUSTED': (0, define_1.defineError)({ code: 'SUBDOMAIN_LABEL_EXHAUSTED', class: 'public', http: 400, message: 'Subdomain label exhausted.' }),
|
|
749
767
|
'SUBDOMAIN_LABEL_INVALID': (0, define_1.defineError)({ code: 'SUBDOMAIN_LABEL_INVALID', class: 'public', http: 400, message: 'Subdomain label invalid.' }),
|
|
750
768
|
'SUPER_CONSTRUCTIVE_REQUIRED': (0, define_1.defineError)({ code: 'SUPER_CONSTRUCTIVE_REQUIRED', class: 'public', http: 400, message: 'Super constructive required.' }),
|
|
769
|
+
'SUSPENSION_FORBIDDEN': (0, define_1.defineError)({ code: 'SUSPENSION_FORBIDDEN', class: 'public', http: 403, message: 'Suspension forbidden.' }),
|
|
770
|
+
'SUSPENSION_REASON_INVALID': (0, define_1.defineError)({ code: 'SUSPENSION_REASON_INVALID', class: 'public', http: 400, message: 'Suspension reason invalid.' }),
|
|
751
771
|
'TABLE_MODULE': (0, define_1.defineError)({ code: 'TABLE_MODULE', class: 'internal', http: 500, message: 'Table module.' }),
|
|
752
772
|
'TABLE_MODULE_TABLE_NOT_FOUND': (0, define_1.defineError)({ code: 'TABLE_MODULE_TABLE_NOT_FOUND', class: 'internal', http: 500, message: 'Table module table not found.' }),
|
|
753
773
|
'TARGET_EMAILS_NOT_FOUND': (0, define_1.defineError)({ code: 'TARGET_EMAILS_NOT_FOUND', class: 'internal', http: 500, message: 'Target emails not found.' }),
|
|
@@ -770,6 +790,7 @@ exports.generatedRegistry = {
|
|
|
770
790
|
'TRIGGER_NOT_TRANSPILABLE': (0, define_1.defineError)({ code: 'TRIGGER_NOT_TRANSPILABLE', class: 'public', http: 400, message: 'Trigger not transpilable.' }),
|
|
771
791
|
'TRIGGER_WHEN_AST_INVALID': (0, define_1.defineError)({ code: 'TRIGGER_WHEN_AST_INVALID', class: 'public', http: 400, message: 'Trigger when ast invalid.' }),
|
|
772
792
|
'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.' }),
|
|
793
|
+
'TRUST_LADDER_OPTION_INVALID': (0, define_1.defineError)({ code: 'TRUST_LADDER_OPTION_INVALID', class: 'internal', http: 500, message: 'Trust ladder option invalid.' }),
|
|
773
794
|
'UNAUTHENTICATED': (0, define_1.defineError)({ code: 'UNAUTHENTICATED', class: 'public', http: 401, message: 'Unauthenticated.' }),
|
|
774
795
|
'UNKNOWN_POLICY_TYPE': (0, define_1.defineError)({ code: 'UNKNOWN_POLICY_TYPE', class: 'public', http: 400, message: 'Unknown policy type.' }),
|
|
775
796
|
'UNKNOWN_VIEW_TYPE': (0, define_1.defineError)({ code: 'UNKNOWN_VIEW_TYPE', class: 'public', http: 400, message: 'Unknown view type.', positional: ['arg0'] }),
|
|
@@ -918,6 +939,7 @@ exports.GENERATED_CODE_META = {
|
|
|
918
939
|
'CONTENT_PRESET_NOT_SAVED': { class: 'public', dynamic: false, generatedOnly: false },
|
|
919
940
|
'COPY_TEMPLATE_TO_BLUEPRINT': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
920
941
|
'CREDENTIAL_NOT_EXCHANGEABLE': { class: 'public', dynamic: false, generatedOnly: true },
|
|
942
|
+
'CREDENTIAL_NOT_EXTENDABLE': { class: 'public', dynamic: false, generatedOnly: false },
|
|
921
943
|
'CREDIT_CODE_EXPIRED': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
922
944
|
'CREDIT_CODE_MAX_REDEMPTIONS_REACHED': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
923
945
|
'CREDIT_CODE_NOT_FOUND': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
@@ -1034,6 +1056,7 @@ exports.GENERATED_CODE_META = {
|
|
|
1034
1056
|
'DATA_PERMISSIONS_MAPPING_TABLE_REQUIRED': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1035
1057
|
'DATA_PERMISSIONS_MODULE_AMBIGUOUS': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1036
1058
|
'DATA_PERMISSIONS_MODULE_NOT_FOUND': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1059
|
+
'DATA_PERMISSIONS_MODULE_REF_INVALID': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1037
1060
|
'DATA_PERMISSIONS_NO_PERMISSIONS_MODULE': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1038
1061
|
'DATA_PERMISSIONS_REGISTRATION_CONFLICT': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1039
1062
|
'DATA_PERMISSIONS_TABLE_NOT_FOUND': { class: 'public', dynamic: false, generatedOnly: false },
|
|
@@ -1062,7 +1085,7 @@ exports.GENERATED_CODE_META = {
|
|
|
1062
1085
|
'DOMAIN_CHECK_CERT_UNKNOWN_DOMAIN': { class: 'internal', dynamic: true, generatedOnly: true },
|
|
1063
1086
|
'DOMAIN_ISSUE_CERT_BAD_ISSUER': { class: 'internal', dynamic: true, generatedOnly: true },
|
|
1064
1087
|
'DOMAIN_ISSUE_CERT_FORBIDDEN': { class: 'public', dynamic: false, generatedOnly: true },
|
|
1065
|
-
'DOMAIN_ISSUE_CERT_NOT_VERIFIED': { class: 'public', dynamic:
|
|
1088
|
+
'DOMAIN_ISSUE_CERT_NOT_VERIFIED': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1066
1089
|
'DOMAIN_ISSUE_CERT_UNKNOWN_DOMAIN': { class: 'internal', dynamic: true, generatedOnly: true },
|
|
1067
1090
|
'DOMAIN_ISSUE_CHALLENGE_BAD_METHOD': { class: 'internal', dynamic: true, generatedOnly: true },
|
|
1068
1091
|
'DOMAIN_ISSUE_CHALLENGE_UNKNOWN_DOMAIN': { class: 'internal', dynamic: true, generatedOnly: true },
|
|
@@ -1189,6 +1212,7 @@ exports.GENERATED_CODE_META = {
|
|
|
1189
1212
|
'HIERARCHY_MEMBER_IN_USE': { class: 'internal', dynamic: true, generatedOnly: false },
|
|
1190
1213
|
'HISTORY': { class: 'internal', dynamic: true, generatedOnly: false },
|
|
1191
1214
|
'HOSTNAME_BINDING_SYNC': { class: 'internal', dynamic: true, generatedOnly: false },
|
|
1215
|
+
'HOSTNAME_CLAIMED_IN_OTHER_PLANE': { class: 'public', dynamic: false, generatedOnly: true },
|
|
1192
1216
|
'IDENTITY_ACCOUNT_NOT_FOUND': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1193
1217
|
'IDENTITY_ALREADY_LINKED': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1194
1218
|
'IDENTITY_LINK_AVAILABLE': { class: 'public', dynamic: false, generatedOnly: false },
|
|
@@ -1226,9 +1250,12 @@ exports.GENERATED_CODE_META = {
|
|
|
1226
1250
|
'INVALID_TOKEN': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1227
1251
|
'INVALID_USER': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1228
1252
|
'INVALID_WORKER_ID': { class: 'internal', dynamic: false, generatedOnly: true },
|
|
1253
|
+
'INVITE_ADDRESS_REQUIRED': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1229
1254
|
'INVITE_EMAIL_NOT_FOUND': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1230
1255
|
'INVITE_LIMIT': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1231
1256
|
'INVITE_NOT_FOUND': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1257
|
+
'INVITE_PHONE_NOT_FOUND': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1258
|
+
'INVITE_USERS_INVALID': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1232
1259
|
'INVOCATION_ANONYMOUS_NOT_AUTHORIZED': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1233
1260
|
'INVOCATION_ANONYMOUS_NOT_CALLABLE': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1234
1261
|
'INVOCATION_ANONYMOUS_ROUTE_REQUIRED': { class: 'public', dynamic: false, generatedOnly: false },
|
|
@@ -1318,6 +1345,7 @@ exports.GENERATED_CODE_META = {
|
|
|
1318
1345
|
'MODULES_HASH_DUPLICATE_ENTRY': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1319
1346
|
'MODULES_HASH_INVALID_ENTRY': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1320
1347
|
'MODULES_HASH_INVALID_INPUT': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1348
|
+
'MODULE_ENTRY_MALFORMED': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1321
1349
|
'MODULE_SECURITY_POLICY_ENTRY_MISSING_TYPE': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1322
1350
|
'MODULE_TABLE_ALREADY_ATTRIBUTED': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1323
1351
|
'MONOTONIC_FIELD': { class: 'internal', dynamic: false, generatedOnly: true },
|
|
@@ -1345,6 +1373,7 @@ exports.GENERATED_CODE_META = {
|
|
|
1345
1373
|
'PASSWORD_RESET_LOCKED_EXCEED_ATTEMPTS': { class: 'public', dynamic: false, generatedOnly: true },
|
|
1346
1374
|
'PASSWORD_SIGN_IN_DISABLED': { class: 'public', dynamic: false, generatedOnly: true },
|
|
1347
1375
|
'PASSWORD_SIGN_UP_DISABLED': { class: 'public', dynamic: false, generatedOnly: true },
|
|
1376
|
+
'PERMISSION_DENIED': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1348
1377
|
'PLAN_REQUIRED': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1349
1378
|
'PLATFORM_FLAG_IMMUTABLE': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1350
1379
|
'POLICY_COLUMN_REF_UNRESOLVED': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
@@ -1384,6 +1413,7 @@ exports.GENERATED_CODE_META = {
|
|
|
1384
1413
|
'PROVISION_INDEX_COLUMNS_REQUIRED': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1385
1414
|
'PROVISION_INDEX_FIELD_NOT_FOUND': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1386
1415
|
'PROVISION_INVALID_DATABASE_ID': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1416
|
+
'PROVISION_PRIVATE_API_NAME_FORBIDDEN': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1387
1417
|
'PROVISION_RELATION': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1388
1418
|
'PROVISION_TABLE': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1389
1419
|
'PROVISION_UNIQUE_CONSTRAINT': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
@@ -1414,6 +1444,7 @@ exports.GENERATED_CODE_META = {
|
|
|
1414
1444
|
'RESOURCE_STORAGE_TOTAL_CAP_EXCEEDED': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1415
1445
|
'RETIRE_UNSERVED_APIS_SCOPE_REQUIRED': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1416
1446
|
'ROUTE_BINDING_SYNC': { class: 'internal', dynamic: true, generatedOnly: false },
|
|
1447
|
+
'ROUTE_DOMAIN_REQUIRED': { class: 'internal', dynamic: false, generatedOnly: true },
|
|
1417
1448
|
'ROUTE_PRIVILEGED_TARGET_FORBIDDEN': { class: 'internal', dynamic: false, generatedOnly: true },
|
|
1418
1449
|
'ROUTE_TARGET_NOT_OWNED': { class: 'internal', dynamic: false, generatedOnly: true },
|
|
1419
1450
|
'ROUTE_TARGET_REQUIRED': { class: 'internal', dynamic: false, generatedOnly: true },
|
|
@@ -1470,6 +1501,7 @@ exports.GENERATED_CODE_META = {
|
|
|
1470
1501
|
'SESSION_TTL_EXCEEDS_PARENT': { class: 'public', dynamic: false, generatedOnly: true },
|
|
1471
1502
|
'SETTINGS_SURFACE_NOT_PROVISIONED': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1472
1503
|
'SIGN_UP_DISABLED': { class: 'public', dynamic: false, generatedOnly: true },
|
|
1504
|
+
'SIGN_UP_REQUIRES_INVITE': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1473
1505
|
'SITE_INSTALLATION_MEMBER_NOT_SERVABLE': { class: 'internal', dynamic: false, generatedOnly: true },
|
|
1474
1506
|
'SITE_NOT_FOUND': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1475
1507
|
'SITE_NOT_PROVISIONED': { class: 'public', dynamic: false, generatedOnly: false },
|
|
@@ -1503,10 +1535,12 @@ exports.GENERATED_CODE_META = {
|
|
|
1503
1535
|
'STEP_UP_REQUIRED_FRESH_AUTH': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1504
1536
|
'STEP_UP_REQUIRED_MFA': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1505
1537
|
'STEP_UP_REQUIRED_PASSWORD': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1538
|
+
'STORAGE_ACCESS_CLAIM_MISMATCH': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1506
1539
|
'STORAGE_API_NOT_PROVISIONED': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1507
1540
|
'STORAGE_DESTINATION_REQUIRES_TEMP': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1508
1541
|
'STORAGE_FILE_BUCKET_IMMUTABLE': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1509
1542
|
'STORAGE_FILE_KEY_IMMUTABLE': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1543
|
+
'STORAGE_FILE_NOT_FOUND': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1510
1544
|
'STORAGE_GC_CONTENT_HASH_UNSUPPORTED': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1511
1545
|
'STORAGE_GC_FILES_TABLE_MISSING': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1512
1546
|
'STORAGE_GC_MODULE_AMBIGUOUS': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
@@ -1516,10 +1550,15 @@ exports.GENERATED_CODE_META = {
|
|
|
1516
1550
|
'STORAGE_GC_REF_CROSS_DATABASE': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1517
1551
|
'STORAGE_GC_REF_FIELD_MISSING': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1518
1552
|
'STORAGE_GC_REF_TABLE_MISSING': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1553
|
+
'STORAGE_INVALID_COMPLETION_RESULT': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1554
|
+
'STORAGE_INVALID_UPLOAD_DOCUMENT': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1519
1555
|
'STORAGE_MODULE_ENTITY_FIELD_INVALID': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1520
1556
|
'STORAGE_MODULE_NOT_FOUND': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1557
|
+
'STORAGE_PROCESSING_CONFLICT': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1521
1558
|
'STORAGE_PROMOTION_DESTINATION_MISMATCH': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1522
1559
|
'STORAGE_PROMOTION_VISIBILITY_MISMATCH': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1560
|
+
'STORAGE_SOURCE_HASH_MISMATCH': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1561
|
+
'STORAGE_SOURCE_HASH_REQUIRED': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1523
1562
|
'STORAGE_STAGING_BUCKET_NO_DESTINATION': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1524
1563
|
'STORAGE_STAGING_BUCKET_NO_TTL': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1525
1564
|
'STORAGE_STAGING_DESTINATION_INVALID': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
@@ -1529,6 +1568,8 @@ exports.GENERATED_CODE_META = {
|
|
|
1529
1568
|
'SUBDOMAIN_LABEL_EXHAUSTED': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1530
1569
|
'SUBDOMAIN_LABEL_INVALID': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1531
1570
|
'SUPER_CONSTRUCTIVE_REQUIRED': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1571
|
+
'SUSPENSION_FORBIDDEN': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1572
|
+
'SUSPENSION_REASON_INVALID': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1532
1573
|
'TABLE_MODULE': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1533
1574
|
'TABLE_MODULE_TABLE_NOT_FOUND': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1534
1575
|
'TARGET_EMAILS_NOT_FOUND': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
@@ -1551,6 +1592,7 @@ exports.GENERATED_CODE_META = {
|
|
|
1551
1592
|
'TRIGGER_NOT_TRANSPILABLE': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1552
1593
|
'TRIGGER_WHEN_AST_INVALID': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1553
1594
|
'TRIGGER_WHEN_AST_ROW_UNAVAILABLE': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1595
|
+
'TRUST_LADDER_OPTION_INVALID': { class: 'internal', dynamic: false, generatedOnly: false },
|
|
1554
1596
|
'UNAUTHENTICATED': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1555
1597
|
'UNKNOWN_POLICY_TYPE': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1556
1598
|
'UNKNOWN_VIEW_TYPE': { class: 'public', dynamic: true, generatedOnly: false },
|
|
@@ -1579,4 +1621,4 @@ exports.GENERATED_CODE_META = {
|
|
|
1579
1621
|
'WITH_CHECK_NOT_ALLOWED': { class: 'public', dynamic: false, generatedOnly: false },
|
|
1580
1622
|
};
|
|
1581
1623
|
/** Total number of codes collected from constructive-db. */
|
|
1582
|
-
exports.GENERATED_CODE_COUNT =
|
|
1624
|
+
exports.GENERATED_CODE_COUNT = 799;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@constructive-io/errors",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.16.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": "
|
|
44
|
+
"gitHead": "b9e16a625520cb8ad92ac4fcd7705dd807f55dfe"
|
|
45
45
|
}
|
package/registry.d.ts
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
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
|
+
};
|
|
3
8
|
/**
|
|
4
9
|
* The curated Constructive error registry.
|
|
5
10
|
*
|
|
@@ -11,6 +16,36 @@ export { type DefinedError, defineError } from './define';
|
|
|
11
16
|
*/
|
|
12
17
|
export declare const registry: {
|
|
13
18
|
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
|
+
}>;
|
|
14
49
|
readonly ACCOUNT_EXISTS: import("./define").DefinedError<import("./types").EmptyContext>;
|
|
15
50
|
readonly ACCOUNT_NOT_FOUND: import("./define").DefinedError<import("./types").EmptyContext>;
|
|
16
51
|
readonly NO_ACCOUNT_EXISTS: import("./define").DefinedError<{
|
|
@@ -24,6 +59,7 @@ export declare const registry: {
|
|
|
24
59
|
readonly PASSWORD_LEN: import("./define").DefinedError<import("./types").EmptyContext>;
|
|
25
60
|
readonly EMAIL_NOT_VERIFIED: import("./define").DefinedError<import("./types").EmptyContext>;
|
|
26
61
|
readonly SIGN_UP_DISABLED: import("./define").DefinedError<import("./types").EmptyContext>;
|
|
62
|
+
readonly SIGN_UP_REQUIRES_INVITE: import("./define").DefinedError<import("./types").EmptyContext>;
|
|
27
63
|
readonly USER_NOT_AUTHENTICATED: import("./define").DefinedError<import("./types").EmptyContext>;
|
|
28
64
|
readonly ACCOUNT_LOCKED: import("./define").DefinedError<import("./types").EmptyContext>;
|
|
29
65
|
readonly USER_NOT_FOUND: import("./define").DefinedError<import("./types").EmptyContext>;
|
|
@@ -44,10 +80,22 @@ export declare const registry: {
|
|
|
44
80
|
readonly INVITE_NOT_FOUND: import("./define").DefinedError<import("./types").EmptyContext>;
|
|
45
81
|
readonly INVITE_LIMIT: import("./define").DefinedError<import("./types").EmptyContext>;
|
|
46
82
|
readonly INVITE_EMAIL_NOT_FOUND: import("./define").DefinedError<import("./types").EmptyContext>;
|
|
83
|
+
readonly INVITE_PHONE_NOT_FOUND: import("./define").DefinedError<import("./types").EmptyContext>;
|
|
84
|
+
readonly INVITE_ADDRESS_REQUIRED: import("./define").DefinedError<import("./types").EmptyContext>;
|
|
85
|
+
readonly INVITE_USERS_INVALID: import("./define").DefinedError<import("./types").EmptyContext>;
|
|
47
86
|
readonly UNAUTHENTICATED: import("./define").DefinedError<import("./types").EmptyContext>;
|
|
48
87
|
readonly CAPTCHA_REQUIRED: import("./define").DefinedError<import("./types").EmptyContext>;
|
|
49
88
|
readonly CAPTCHA_FAILED: import("./define").DefinedError<import("./types").EmptyContext>;
|
|
50
89
|
readonly FORBIDDEN: import("./define").DefinedError<import("./types").EmptyContext>;
|
|
90
|
+
readonly ACCESS_SUSPENDED: import("./define").DefinedError<{
|
|
91
|
+
reason?: string;
|
|
92
|
+
}>;
|
|
93
|
+
readonly SUSPENSION_FORBIDDEN: import("./define").DefinedError<{
|
|
94
|
+
database_id?: string;
|
|
95
|
+
}>;
|
|
96
|
+
readonly SUSPENSION_REASON_INVALID: import("./define").DefinedError<{
|
|
97
|
+
reason?: string;
|
|
98
|
+
}>;
|
|
51
99
|
readonly STEP_UP_REQUIRED: import("./define").DefinedError<import("./types").EmptyContext>;
|
|
52
100
|
readonly MFA_REQUIRED: import("./define").DefinedError<import("./types").EmptyContext>;
|
|
53
101
|
readonly INVALID_TOKEN: import("./define").DefinedError<import("./types").EmptyContext>;
|
package/registry.js
CHANGED
|
@@ -23,6 +23,63 @@ 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
|
+
}),
|
|
26
83
|
// ===========================================================================
|
|
27
84
|
// Auth / account (public) — copy sourced from dashboard auth-errors.ts
|
|
28
85
|
// ===========================================================================
|
|
@@ -92,6 +149,12 @@ exports.registry = {
|
|
|
92
149
|
http: 403,
|
|
93
150
|
message: 'Sign-up is currently disabled.'
|
|
94
151
|
}),
|
|
152
|
+
SIGN_UP_REQUIRES_INVITE: (0, define_1.defineError)({
|
|
153
|
+
code: 'SIGN_UP_REQUIRES_INVITE',
|
|
154
|
+
class: 'public',
|
|
155
|
+
http: 403,
|
|
156
|
+
message: 'Sign-up is by invitation only. Please provide a valid invite code.'
|
|
157
|
+
}),
|
|
95
158
|
// ===========================================================================
|
|
96
159
|
// Auth / account (public) — migrated from the server graphile SAFE_ERROR_CODES
|
|
97
160
|
// allowlist so the registry (not a hand-maintained set) is the source of truth
|
|
@@ -226,6 +289,24 @@ exports.registry = {
|
|
|
226
289
|
http: 404,
|
|
227
290
|
message: 'This email is not associated with the invitation. Please use the email address the invitation was sent to.'
|
|
228
291
|
}),
|
|
292
|
+
INVITE_PHONE_NOT_FOUND: (0, define_1.defineError)({
|
|
293
|
+
code: 'INVITE_PHONE_NOT_FOUND',
|
|
294
|
+
class: 'public',
|
|
295
|
+
http: 404,
|
|
296
|
+
message: 'This phone number is not associated with the invitation. Please use the phone number the invitation was sent to.'
|
|
297
|
+
}),
|
|
298
|
+
INVITE_ADDRESS_REQUIRED: (0, define_1.defineError)({
|
|
299
|
+
code: 'INVITE_ADDRESS_REQUIRED',
|
|
300
|
+
class: 'public',
|
|
301
|
+
http: 400,
|
|
302
|
+
message: 'An email address or phone number is required.'
|
|
303
|
+
}),
|
|
304
|
+
INVITE_USERS_INVALID: (0, define_1.defineError)({
|
|
305
|
+
code: 'INVITE_USERS_INVALID',
|
|
306
|
+
class: 'public',
|
|
307
|
+
http: 400,
|
|
308
|
+
message: 'The users payload must be a JSON array.'
|
|
309
|
+
}),
|
|
229
310
|
// ===========================================================================
|
|
230
311
|
// Authorization / step-up (public)
|
|
231
312
|
// ===========================================================================
|
|
@@ -253,6 +334,24 @@ exports.registry = {
|
|
|
253
334
|
http: 403,
|
|
254
335
|
message: 'You do not have permission to do that.'
|
|
255
336
|
}),
|
|
337
|
+
ACCESS_SUSPENDED: (0, define_1.defineError)({
|
|
338
|
+
code: 'ACCESS_SUSPENDED',
|
|
339
|
+
class: 'public',
|
|
340
|
+
http: 403,
|
|
341
|
+
message: 'Access to this database is suspended.'
|
|
342
|
+
}),
|
|
343
|
+
SUSPENSION_FORBIDDEN: (0, define_1.defineError)({
|
|
344
|
+
code: 'SUSPENSION_FORBIDDEN',
|
|
345
|
+
class: 'public',
|
|
346
|
+
http: 403,
|
|
347
|
+
message: 'Only the platform may change database suspension.'
|
|
348
|
+
}),
|
|
349
|
+
SUSPENSION_REASON_INVALID: (0, define_1.defineError)({
|
|
350
|
+
code: 'SUSPENSION_REASON_INVALID',
|
|
351
|
+
class: 'public',
|
|
352
|
+
http: 400,
|
|
353
|
+
message: 'Suspension reason must be "billing" or "admin".'
|
|
354
|
+
}),
|
|
256
355
|
STEP_UP_REQUIRED: (0, define_1.defineError)({
|
|
257
356
|
code: 'STEP_UP_REQUIRED',
|
|
258
357
|
class: 'public',
|