@constructive-io/errors 0.3.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.
Files changed (51) hide show
  1. package/LICENSE +23 -0
  2. package/README.md +139 -0
  3. package/classify.d.ts +10 -0
  4. package/classify.js +20 -0
  5. package/define.d.ts +16 -0
  6. package/define.js +11 -0
  7. package/error.d.ts +32 -0
  8. package/error.js +47 -0
  9. package/esm/classify.d.ts +10 -0
  10. package/esm/classify.js +16 -0
  11. package/esm/define.d.ts +16 -0
  12. package/esm/define.js +8 -0
  13. package/esm/error.d.ts +32 -0
  14. package/esm/error.js +43 -0
  15. package/esm/factory.d.ts +35 -0
  16. package/esm/factory.js +49 -0
  17. package/esm/format.d.ts +24 -0
  18. package/esm/format.js +54 -0
  19. package/esm/generated/registry.generated.d.ts +27 -0
  20. package/esm/generated/registry.generated.js +601 -0
  21. package/esm/index.d.ts +9 -0
  22. package/esm/index.js +9 -0
  23. package/esm/interpolate.d.ts +6 -0
  24. package/esm/interpolate.js +11 -0
  25. package/esm/parse.d.ts +30 -0
  26. package/esm/parse.js +199 -0
  27. package/esm/pg.d.ts +14 -0
  28. package/esm/pg.js +49 -0
  29. package/esm/registry.d.ts +147 -0
  30. package/esm/registry.js +468 -0
  31. package/esm/types.d.ts +81 -0
  32. package/esm/types.js +10 -0
  33. package/factory.d.ts +35 -0
  34. package/factory.js +55 -0
  35. package/format.d.ts +24 -0
  36. package/format.js +59 -0
  37. package/generated/registry.generated.d.ts +27 -0
  38. package/generated/registry.generated.js +604 -0
  39. package/index.d.ts +9 -0
  40. package/index.js +25 -0
  41. package/interpolate.d.ts +6 -0
  42. package/interpolate.js +14 -0
  43. package/package.json +45 -0
  44. package/parse.d.ts +30 -0
  45. package/parse.js +203 -0
  46. package/pg.d.ts +14 -0
  47. package/pg.js +53 -0
  48. package/registry.d.ts +147 -0
  49. package/registry.js +474 -0
  50. package/types.d.ts +81 -0
  51. package/types.js +11 -0
@@ -0,0 +1,604 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GENERATED_CODE_COUNT = exports.GENERATED_CODE_META = exports.generatedRegistry = void 0;
4
+ /* eslint-disable */
5
+ /**
6
+ * GENERATED FILE — DO NOT EDIT BY HAND.
7
+ *
8
+ * Source of truth: the constructive-db error audit (289 distinct codes
9
+ * raised via EXCEPTION/THROW across deploy sources + generated output).
10
+ * Regenerate with `python3 scripts/generate-registry.py` (see README.md).
11
+ *
12
+ * Public copy is seeded from the dashboard error catalogs; developer/invariant
13
+ * codes carry their raw message (with %-args rendered as {{argN}}). Curated
14
+ * entries in `registry.ts` override anything here (typed context + refined copy).
15
+ *
16
+ * Counts: 289 total, 82 public, 207 internal.
17
+ */
18
+ const define_1 = require("../define");
19
+ /** Every constructive-db error code, keyed by code. */
20
+ exports.generatedRegistry = {
21
+ 'ACCOUNT_DISABLED': (0, define_1.defineError)({ code: 'ACCOUNT_DISABLED', class: 'public', http: 403, message: 'Your account has been disabled. Please contact support for assistance.' }),
22
+ 'ACCOUNT_EXISTS': (0, define_1.defineError)({ code: 'ACCOUNT_EXISTS', class: 'public', http: 409, message: 'An account with this email already exists. Please sign in or use a different email.' }),
23
+ 'ACCOUNT_LOCKED_EXCEED_ATTEMPTS': (0, define_1.defineError)({ code: 'ACCOUNT_LOCKED_EXCEED_ATTEMPTS', class: 'public', http: 423, message: 'Your account has been temporarily locked due to too many failed login attempts. Please try again later or reset your password.' }),
24
+ 'ACCOUNT_NOT_FOUND': (0, define_1.defineError)({ code: 'ACCOUNT_NOT_FOUND', class: 'public', http: 404, message: 'Account not found.' }),
25
+ 'ALREADY_SCHEDULED': (0, define_1.defineError)({ code: 'ALREADY_SCHEDULED', class: 'public', http: 409, message: 'Already scheduled.' }),
26
+ 'ALTER_TABLE_ADD_COLUMN': (0, define_1.defineError)({ code: 'ALTER_TABLE_ADD_COLUMN', class: 'internal', http: 500, message: 'ALTER_TABLE_ADD_COLUMN: a column cannot be both generated and an identity column' }),
27
+ 'API_KEYS_DISABLED': (0, define_1.defineError)({ code: 'API_KEYS_DISABLED', class: 'public', http: 403, message: 'Api keys disabled.' }),
28
+ 'API_KEY_LIMIT_REACHED': (0, define_1.defineError)({ code: 'API_KEY_LIMIT_REACHED', class: 'public', http: 429, message: 'Api key limit reached.' }),
29
+ 'API_KEY_NOT_FOUND': (0, define_1.defineError)({ code: 'API_KEY_NOT_FOUND', class: 'public', http: 404, message: 'Api key not found.' }),
30
+ 'APPLY_RLS': (0, define_1.defineError)({ code: 'APPLY_RLS', class: 'internal', http: 500, message: 'APPLY_RLS (bad privs) {{arg0}}', positional: ['arg0'] }),
31
+ 'APPLY_RLS_BAD_ARGS': (0, define_1.defineError)({ code: 'APPLY_RLS_BAD_ARGS', class: 'internal', http: 500, message: 'Apply rls bad args.' }),
32
+ 'APPLY_TABLE_STEP_UP': (0, define_1.defineError)({ code: 'APPLY_TABLE_STEP_UP', class: 'internal', http: 500, message: 'APPLY_TABLE_STEP_UP: table not found for table_id {{arg0}}', positional: ['arg0'] }),
33
+ 'APP_COMPONENT_NOT_VISIBLE': (0, define_1.defineError)({ code: 'APP_COMPONENT_NOT_VISIBLE', class: 'internal', http: 500, message: 'App component not visible.' }),
34
+ 'APP_COMPONENT_TARGET_REQUIRED': (0, define_1.defineError)({ code: 'APP_COMPONENT_TARGET_REQUIRED', class: 'internal', http: 500, message: 'App component target required.' }),
35
+ 'ASSIGN_PROFILES_PERMISSION_REQUIRED': (0, define_1.defineError)({ code: 'ASSIGN_PROFILES_PERMISSION_REQUIRED', class: 'public', http: 403, message: 'Assign profiles permission required.' }),
36
+ 'AUTHZ_COLUMN_SECURITY': (0, define_1.defineError)({ code: 'AUTHZ_COLUMN_SECURITY', class: 'internal', http: 500, message: 'AUTHZ_COLUMN_SECURITY: rule transition requires a non-empty allowed array' }),
37
+ 'AUTH_METHOD_NOT_ALLOWED': (0, define_1.defineError)({ code: 'AUTH_METHOD_NOT_ALLOWED', class: 'public', http: 403, message: 'Auth method not allowed.' }),
38
+ 'BAD_CASING_FUNC': (0, define_1.defineError)({ code: 'BAD_CASING_FUNC', class: 'internal', http: 500, message: 'BAD_CASING_FUNC ({{arg0}}, {{arg1}})', positional: ['arg0', 'arg1'] }),
39
+ 'BAD_EXPRESSION': (0, define_1.defineError)({ code: 'BAD_EXPRESSION', class: 'internal', http: 500, message: 'BAD_EXPRESSION {{arg0}} (unrecognized format)', positional: ['arg0'] }),
40
+ 'BAD_FIELD_INPUT': (0, define_1.defineError)({ code: 'BAD_FIELD_INPUT', class: 'internal', http: 500, message: 'BAD_FIELD_INPUT: identity_generation must be always or by_default, got {{arg0}}', positional: ['arg0'] }),
41
+ 'BAD_FIELD_ORDERING_CROSS_TABLE': (0, define_1.defineError)({ code: 'BAD_FIELD_ORDERING_CROSS_TABLE', class: 'internal', http: 500, message: 'Bad field ordering cross table.' }),
42
+ 'BAD_PRIVILEGE_FOR_POLICY': (0, define_1.defineError)({ code: 'BAD_PRIVILEGE_FOR_POLICY', class: 'internal', http: 500, message: 'Bad privilege for policy.' }),
43
+ 'BAD_RLS_EXPRESSION': (0, define_1.defineError)({ code: 'BAD_RLS_EXPRESSION', class: 'internal', http: 500, message: 'BAD_RLS_EXPRESSION {{arg0}} (policy.AuthzValueExists requires ref_schema/ref_table or ref_table_id)', positional: ['arg0'] }),
44
+ 'BAD_VIEW_EXPRESSION': (0, define_1.defineError)({ code: 'BAD_VIEW_EXPRESSION', class: 'internal', http: 500, message: 'BAD_VIEW_EXPRESSION {{arg0}} (view.ViewTableProjection)', positional: ['arg0'] }),
45
+ 'BM25': (0, define_1.defineError)({ code: 'BM25', class: 'internal', http: 500, message: 'BM25: invalid text_config "{{arg0}}", must be a valid pg_ts_config', positional: ['arg0'] }),
46
+ 'BOOTSTRAP_DATABASE_MISSING': (0, define_1.defineError)({ code: 'BOOTSTRAP_DATABASE_MISSING', class: 'internal', http: 500, message: 'Bootstrap database missing.' }),
47
+ 'BOOTSTRAP_SOURCE_MISSING': (0, define_1.defineError)({ code: 'BOOTSTRAP_SOURCE_MISSING', class: 'internal', http: 500, message: 'Bootstrap source missing.' }),
48
+ 'BOOTSTRAP_TARGET_NOT_EMPTY': (0, define_1.defineError)({ code: 'BOOTSTRAP_TARGET_NOT_EMPTY', class: 'internal', http: 500, message: 'Bootstrap target not empty.' }),
49
+ 'BUILD_CONDITION_EXPR': (0, define_1.defineError)({ code: 'BUILD_CONDITION_EXPR', class: 'internal', http: 500, message: 'BUILD_CONDITION_EXPR: unknown condition op "{{arg0}}", expected =|!=|>|<|>=|<=|LIKE|NOT LIKE|IS NULL|IS NOT NULL|IS DISTINCT FROM', positional: ['arg0'] }),
50
+ 'CANNOT_DISCONNECT_LAST_AUTH_METHOD': (0, define_1.defineError)({ code: 'CANNOT_DISCONNECT_LAST_AUTH_METHOD', class: 'public', http: 400, message: 'Cannot disconnect last auth method.' }),
51
+ 'CANNOT_REVOKE_CURRENT_SESSION': (0, define_1.defineError)({ code: 'CANNOT_REVOKE_CURRENT_SESSION', class: 'public', http: 400, message: 'Cannot revoke current session.' }),
52
+ 'CAP_CHECK_TRIGGER_ARGS': (0, define_1.defineError)({ code: 'CAP_CHECK_TRIGGER_ARGS', class: 'internal', http: 500, message: 'CAP_CHECK_TRIGGER_ARGS ({{arg0}})', positional: ['arg0'] }),
53
+ 'CATALOG_BACKFILL': (0, define_1.defineError)({ code: 'CATALOG_BACKFILL', class: 'internal', http: 500, message: 'CATALOG_BACKFILL: catalog {{arg0}}.{{arg1}} registration has no owning database (database_id / database_id_field / database_id_is_platform)', positional: ['arg0', 'arg1'] }),
54
+ 'CATALOG_SYNC': (0, define_1.defineError)({ code: 'CATALOG_SYNC', class: 'internal', http: 500, message: 'CATALOG_SYNC: catalog {{arg0}}.{{arg1}} registration has no owning database (database_id / database_id_field / database_id_is_platform)', positional: ['arg0', 'arg1'] }),
55
+ 'COMMIT_NOT_FOUND': (0, define_1.defineError)({ code: 'COMMIT_NOT_FOUND', class: 'internal', http: 500, message: 'Commit not found.' }),
56
+ 'CONFIG_API_NOT_PROVISIONED': (0, define_1.defineError)({ code: 'CONFIG_API_NOT_PROVISIONED', class: 'internal', http: 500, message: 'CONFIG_API_NOT_PROVISIONED: infra_config_module (database scope) names API "{{arg0}}" but no such API row exists for database {{arg1}}', positional: ['arg0', 'arg1'] }),
57
+ 'CONNECTED_ACCOUNT_NOT_FOUND': (0, define_1.defineError)({ code: 'CONNECTED_ACCOUNT_NOT_FOUND', class: 'public', http: 404, message: 'Connected account not found.' }),
58
+ 'CONSTRUCT_BLUEPRINT': (0, define_1.defineError)({ code: 'CONSTRUCT_BLUEPRINT', class: 'internal', http: 500, message: 'CONSTRUCT_BLUEPRINT: achievements entry "{{arg0}}" uses entity_prefix "{{arg1}}" which is entity-scoped and requires an "entity_id", but none was provided', positional: ['arg0', 'arg1'] }),
59
+ 'CONST_TYPE_FIELDS_IMMUTABLE': (0, define_1.defineError)({ code: 'CONST_TYPE_FIELDS_IMMUTABLE', class: 'public', http: 403, message: 'Const type fields immutable.' }),
60
+ 'COPY_TEMPLATE_TO_BLUEPRINT': (0, define_1.defineError)({ code: 'COPY_TEMPLATE_TO_BLUEPRINT', class: 'internal', http: 500, message: 'COPY_TEMPLATE_TO_BLUEPRINT: template {{arg0}} is private and not owned by {{arg1}}', positional: ['arg0', 'arg1'] }),
61
+ 'CREDIT_CODE_EXPIRED': (0, define_1.defineError)({ code: 'CREDIT_CODE_EXPIRED', class: 'internal', http: 500, message: 'Credit code expired.' }),
62
+ '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.' }),
63
+ 'CREDIT_CODE_NOT_FOUND': (0, define_1.defineError)({ code: 'CREDIT_CODE_NOT_FOUND', class: 'internal', http: 500, message: 'Credit code not found.' }),
64
+ 'CROSS_DATABASE_CHECK': (0, define_1.defineError)({ code: 'CROSS_DATABASE_CHECK', class: 'internal', http: 500, message: 'CROSS_DATABASE_CHECK: table {{arg0}} not found ({{arg1}})', positional: ['arg0', 'arg1'] }),
65
+ 'CROSS_DATABASE_REF': (0, define_1.defineError)({ code: 'CROSS_DATABASE_REF', class: 'public', http: 400, message: 'Cross database ref.' }),
66
+ 'CSRF_TOKEN_REQUIRED': (0, define_1.defineError)({ code: 'CSRF_TOKEN_REQUIRED', class: 'public', http: 401, message: 'Csrf token required.' }),
67
+ 'DATABASE_FIELD_RESERVED_WORD': (0, define_1.defineError)({ code: 'DATABASE_FIELD_RESERVED_WORD', class: 'internal', http: 500, message: 'Database field reserved word.' }),
68
+ 'DATABASE_NOT_FOUND': (0, define_1.defineError)({ code: 'DATABASE_NOT_FOUND', class: 'internal', http: 500, message: 'DATABASE_NOT_FOUND (database {{arg0}})', positional: ['arg0'] }),
69
+ 'DATABASE_SETTINGS_TABLES_SCOPE_REQUIRED': (0, define_1.defineError)({ code: 'DATABASE_SETTINGS_TABLES_SCOPE_REQUIRED', class: 'internal', http: 500, message: 'DATABASE_SETTINGS_TABLES_SCOPE_REQUIRED: scope is required (no default scope)' }),
70
+ 'DATABASE_TABLE_RESERVED_WORD': (0, define_1.defineError)({ code: 'DATABASE_TABLE_RESERVED_WORD', class: 'internal', http: 500, message: 'Database table reserved word.' }),
71
+ 'DATA_BILLING_METER': (0, define_1.defineError)({ code: 'DATA_BILLING_METER', class: 'internal', http: 500, message: 'DATA_BILLING_METER: unknown event {{arg0}}, expected INSERT, DELETE, or UPDATE', positional: ['arg0'] }),
72
+ 'DATA_COMPOSITE_FIELD': (0, define_1.defineError)({ code: 'DATA_COMPOSITE_FIELD', class: 'internal', http: 500, message: 'DATA_COMPOSITE_FIELD: source_fields is required and must be a JSON array' }),
73
+ 'DATA_DIRECT_OWNER': (0, define_1.defineError)({ code: 'DATA_DIRECT_OWNER', class: 'internal', http: 500, message: 'DATA_DIRECT_OWNER: table not found for table_id {{arg0}}', positional: ['arg0'] }),
74
+ 'DATA_DIRECT_OWNER_IN_ENTITY': (0, define_1.defineError)({ code: 'DATA_DIRECT_OWNER_IN_ENTITY', class: 'internal', http: 500, message: 'DATA_DIRECT_OWNER_IN_ENTITY: table not found for table_id {{arg0}}', positional: ['arg0'] }),
75
+ 'DATA_FORCE_CURRENT_USER': (0, define_1.defineError)({ code: 'DATA_FORCE_CURRENT_USER', class: 'internal', http: 500, message: 'DATA_FORCE_CURRENT_USER: field "{{arg0}}" not found on table "{{arg1}}"', positional: ['arg0', 'arg1'] }),
76
+ 'DATA_GENERATED': (0, define_1.defineError)({ code: 'DATA_GENERATED', class: 'internal', http: 500, message: 'DATA_GENERATED: unknown kind {{arg0}}, expected expression|concat|slug|object_name|hash', positional: ['arg0'] }),
77
+ 'DATA_I18N': (0, define_1.defineError)({ code: 'DATA_I18N', class: 'internal', http: 500, message: 'DATA_I18N: "fields" parameter is required and must be a non-empty array' }),
78
+ 'DATA_ID': (0, define_1.defineError)({ code: 'DATA_ID', class: 'internal', http: 500, message: 'DATA_ID: table not found for table_id {{arg0}}', positional: ['arg0'] }),
79
+ 'DATA_IDENTITY': (0, define_1.defineError)({ code: 'DATA_IDENTITY', class: 'internal', http: 500, message: 'DATA_IDENTITY: generation must be always or by_default, got {{arg0}}', positional: ['arg0'] }),
80
+ 'DATA_IMMUTABLE_FIELDS': (0, define_1.defineError)({ code: 'DATA_IMMUTABLE_FIELDS', class: 'internal', http: 500, message: 'DATA_IMMUTABLE_FIELDS: fields array is required and must not be empty' }),
81
+ 'DATA_INFLECTION': (0, define_1.defineError)({ code: 'DATA_INFLECTION', class: 'internal', http: 500, message: 'DATA_INFLECTION: field "{{arg0}}" not found on table "{{arg1}}"', positional: ['arg0', 'arg1'] }),
82
+ 'DATA_INHERIT_FROM_PARENT': (0, define_1.defineError)({ code: 'DATA_INHERIT_FROM_PARENT', class: 'internal', http: 500, message: 'DATA_INHERIT_FROM_PARENT: could not resolve parent table from FK on field {{arg0}}. Provide parent_table in data.', positional: ['arg0'] }),
83
+ 'DATA_JOB_TRIGGER': (0, define_1.defineError)({ code: 'DATA_JOB_TRIGGER', class: 'internal', http: 500, message: 'DATA_JOB_TRIGGER: "function_target" is not a valid option. Ledger routing is derived from the function registry and cannot be set by callers.' }),
84
+ 'DATA_JSONB': (0, define_1.defineError)({ code: 'DATA_JSONB', class: 'internal', http: 500, message: 'DATA_JSONB: table not found for table_id {{arg0}}', positional: ['arg0'] }),
85
+ 'DATA_MEMBERSHIP_BY_FIELD': (0, define_1.defineError)({ code: 'DATA_MEMBERSHIP_BY_FIELD', class: 'internal', http: 500, message: 'DATA_MEMBERSHIP_BY_FIELD: table not found for table_id {{arg0}}', positional: ['arg0'] }),
86
+ 'DATA_MEMBER_OWNER': (0, define_1.defineError)({ code: 'DATA_MEMBER_OWNER', class: 'internal', http: 500, message: 'DATA_MEMBER_OWNER: table not found for table_id {{arg0}}', positional: ['arg0'] }),
87
+ 'DATA_OWNED_FIELDS': (0, define_1.defineError)({ code: 'DATA_OWNED_FIELDS', class: 'internal', http: 500, message: 'DATA_OWNED_FIELDS: protected field "{{arg0}}" not found on table "{{arg1}}"', positional: ['arg0', 'arg1'] }),
88
+ 'DATA_PEOPLESTAMPS': (0, define_1.defineError)({ code: 'DATA_PEOPLESTAMPS', class: 'internal', http: 500, message: 'DATA_PEOPLESTAMPS: table not found for table_id {{arg0}}', positional: ['arg0'] }),
89
+ 'DATA_PUBLISHABLE': (0, define_1.defineError)({ code: 'DATA_PUBLISHABLE', class: 'internal', http: 500, message: 'DATA_PUBLISHABLE: is_published_field_name must not be empty' }),
90
+ 'DATA_REALTIME': (0, define_1.defineError)({ code: 'DATA_REALTIME', class: 'internal', http: 500, message: 'DATA_REALTIME: unknown operation {{arg0}}, expected INSERT, UPDATE, or DELETE', positional: ['arg0'] }),
91
+ 'DATA_SLUG': (0, define_1.defineError)({ code: 'DATA_SLUG', class: 'internal', http: 500, message: 'DATA_SLUG: source field "{{arg0}}" not found on table "{{arg1}}"', positional: ['arg0', 'arg1'] }),
92
+ 'DATA_STATUS_FIELD': (0, define_1.defineError)({ code: 'DATA_STATUS_FIELD', class: 'internal', http: 500, message: 'DATA_STATUS_FIELD: unsupported type "{{arg0}}" for status field, expected a scalar type (text, varchar, integer, smallint, bigint, boolean, uuid, citext)', positional: ['arg0'] }),
93
+ 'DATA_TAGS': (0, define_1.defineError)({ code: 'DATA_TAGS', class: 'internal', http: 500, message: 'DATA_TAGS: table not found for table_id {{arg0}}', positional: ['arg0'] }),
94
+ 'DATA_TIMESTAMPS': (0, define_1.defineError)({ code: 'DATA_TIMESTAMPS', class: 'internal', http: 500, message: 'DATA_TIMESTAMPS: table not found for table_id {{arg0}}', positional: ['arg0'] }),
95
+ 'DB_PRESET_MODULE': (0, define_1.defineError)({ code: 'DB_PRESET_MODULE', class: 'internal', http: 500, message: 'DB_PRESET_MODULE: scope ({{arg0}}) does not match backing merkle_store_module {{arg1}} scope ({{arg2}})', positional: ['arg0', 'arg1', 'arg2'] }),
96
+ 'DELETE_FIRST': (0, define_1.defineError)({ code: 'DELETE_FIRST', class: 'public', http: 400, message: 'Delete first.' }),
97
+ 'DEVICE_NOT_FOUND': (0, define_1.defineError)({ code: 'DEVICE_NOT_FOUND', class: 'internal', http: 500, message: 'Device not found.' }),
98
+ 'DOMAIN_CHECK_CERT_NOT_ISSUING': (0, define_1.defineError)({ code: 'DOMAIN_CHECK_CERT_NOT_ISSUING', class: 'internal', http: 500, message: 'DOMAIN_CHECK_CERT_NOT_ISSUING: managed_domain {{arg0}} has cert_status {{arg1}} (issue a cert first)', positional: ['arg0', 'arg1'] }),
99
+ 'DOMAIN_CHECK_CERT_UNKNOWN_DOMAIN': (0, define_1.defineError)({ code: 'DOMAIN_CHECK_CERT_UNKNOWN_DOMAIN', class: 'internal', http: 500, message: 'DOMAIN_CHECK_CERT_UNKNOWN_DOMAIN: no managed_domain with id {{arg0}}', positional: ['arg0'] }),
100
+ 'DOMAIN_ISSUE_CERT_BAD_ISSUER': (0, define_1.defineError)({ code: 'DOMAIN_ISSUE_CERT_BAD_ISSUER', class: 'internal', http: 500, message: 'DOMAIN_ISSUE_CERT_BAD_ISSUER: unsupported issuer_env {{arg0}} (expected staging|production)', positional: ['arg0'] }),
101
+ 'DOMAIN_ISSUE_CERT_NOT_VERIFIED': (0, define_1.defineError)({ code: 'DOMAIN_ISSUE_CERT_NOT_VERIFIED', class: 'internal', http: 500, message: 'DOMAIN_ISSUE_CERT_NOT_VERIFIED: managed_domain {{arg0}} is {{arg1}} (must be verified before issuing a cert)', positional: ['arg0', 'arg1'] }),
102
+ 'DOMAIN_ISSUE_CERT_UNKNOWN_DOMAIN': (0, define_1.defineError)({ code: 'DOMAIN_ISSUE_CERT_UNKNOWN_DOMAIN', class: 'internal', http: 500, message: 'DOMAIN_ISSUE_CERT_UNKNOWN_DOMAIN: no managed_domain with id {{arg0}}', positional: ['arg0'] }),
103
+ 'DOMAIN_ISSUE_CHALLENGE_BAD_METHOD': (0, define_1.defineError)({ code: 'DOMAIN_ISSUE_CHALLENGE_BAD_METHOD', class: 'internal', http: 500, message: 'DOMAIN_ISSUE_CHALLENGE_BAD_METHOD: unsupported verification method {{arg0}}', positional: ['arg0'] }),
104
+ 'DOMAIN_ISSUE_CHALLENGE_UNKNOWN_DOMAIN': (0, define_1.defineError)({ code: 'DOMAIN_ISSUE_CHALLENGE_UNKNOWN_DOMAIN', class: 'internal', http: 500, message: 'DOMAIN_ISSUE_CHALLENGE_UNKNOWN_DOMAIN: no managed_domain with id {{arg0}}', positional: ['arg0'] }),
105
+ 'DOMAIN_RENEW_NOT_ACTIVE': (0, define_1.defineError)({ code: 'DOMAIN_RENEW_NOT_ACTIVE', class: 'internal', http: 500, message: 'DOMAIN_RENEW_NOT_ACTIVE: managed_domain {{arg0}} has cert_status {{arg1}} (only an active cert can be renewed)', positional: ['arg0', 'arg1'] }),
106
+ 'DOMAIN_RENEW_UNKNOWN_DOMAIN': (0, define_1.defineError)({ code: 'DOMAIN_RENEW_UNKNOWN_DOMAIN', class: 'internal', http: 500, message: 'DOMAIN_RENEW_UNKNOWN_DOMAIN: no managed_domain with id {{arg0}}', positional: ['arg0'] }),
107
+ 'DOMAIN_REVOKE_UNKNOWN_DOMAIN': (0, define_1.defineError)({ code: 'DOMAIN_REVOKE_UNKNOWN_DOMAIN', class: 'internal', http: 500, message: 'DOMAIN_REVOKE_UNKNOWN_DOMAIN: no managed_domain with id {{arg0}}', positional: ['arg0'] }),
108
+ 'DOMAIN_VERIFY_BAD_METHOD': (0, define_1.defineError)({ code: 'DOMAIN_VERIFY_BAD_METHOD', class: 'internal', http: 500, message: 'DOMAIN_VERIFY_BAD_METHOD: unsupported verification method {{arg0}}', positional: ['arg0'] }),
109
+ 'DOMAIN_VERIFY_NO_CHALLENGE': (0, define_1.defineError)({ code: 'DOMAIN_VERIFY_NO_CHALLENGE', class: 'internal', http: 500, message: 'DOMAIN_VERIFY_NO_CHALLENGE: no outstanding {{arg0}} challenge for managed_domain {{arg1}}', positional: ['arg0', 'arg1'] }),
110
+ 'EMAIL_NOT_VERIFIED': (0, define_1.defineError)({ code: 'EMAIL_NOT_VERIFIED', class: 'public', http: 400, message: 'Please verify your email before accepting this invitation.' }),
111
+ 'EMBEDDING_CHUNKS': (0, define_1.defineError)({ code: 'EMBEDDING_CHUNKS', class: 'internal', http: 500, message: 'EMBEDDING_CHUNKS: unknown metric {{arg0}}, expected cosine|l2|ip', positional: ['arg0'] }),
112
+ 'ENTITY_NOT_FOUND': (0, define_1.defineError)({ code: 'ENTITY_NOT_FOUND', class: 'internal', http: 500, message: 'Entity not found.' }),
113
+ 'ENTITY_TYPE_NOT_FOUND': (0, define_1.defineError)({ code: 'ENTITY_TYPE_NOT_FOUND', class: 'internal', http: 500, message: 'Entity type not found.' }),
114
+ 'ENTITY_TYPE_PROVISION': (0, define_1.defineError)({ code: 'ENTITY_TYPE_PROVISION', class: 'internal', http: 500, message: 'ENTITY_TYPE_PROVISION: derived table name "{{arg0}}" exceeds safe length (prefix: {{arg1}}, key: {{arg2}})', positional: ['arg0', 'arg1', 'arg2'] }),
115
+ 'ENUM_VALUES_CANNOT_BE_REMOVED': (0, define_1.defineError)({ code: 'ENUM_VALUES_CANNOT_BE_REMOVED', class: 'internal', http: 500, message: 'ENUM_VALUES_CANNOT_BE_REMOVED: PostgreSQL does not support removing enum values' }),
116
+ 'ENUM_VALUES_CANNOT_BE_REORDERED': (0, define_1.defineError)({ code: 'ENUM_VALUES_CANNOT_BE_REORDERED', class: 'internal', http: 500, message: 'ENUM_VALUES_CANNOT_BE_REORDERED: existing enum values must remain in the same order' }),
117
+ 'EVENT_REFERRAL': (0, define_1.defineError)({ code: 'EVENT_REFERRAL', class: 'internal', http: 500, message: 'EVENT_REFERRAL: invites module not found for database_id {{arg0}}. Ensure invites module is enabled (has_invites=true).', positional: ['arg0'] }),
118
+ 'EVENT_TRACKER': (0, define_1.defineError)({ code: 'EVENT_TRACKER', class: 'internal', http: 500, message: 'EVENT_TRACKER: events module not found for database_id {{arg0}}. Ensure events module is enabled.', positional: ['arg0'] }),
119
+ 'EXCLUSION_CONSTRAINT': (0, define_1.defineError)({ code: 'EXCLUSION_CONSTRAINT', class: 'internal', http: 500, message: 'EXCLUSION_CONSTRAINT: field_ids and operators must have the same cardinality' }),
120
+ 'EXPIRED_TOKEN': (0, define_1.defineError)({ code: 'EXPIRED_TOKEN', class: 'public', http: 400, message: 'This reset link has expired. Please request a new one.' }),
121
+ 'EXTERNAL_MEMBERS_NOT_ALLOWED': (0, define_1.defineError)({ code: 'EXTERNAL_MEMBERS_NOT_ALLOWED', class: 'public', http: 403, message: 'External members not allowed.' }),
122
+ 'FEATURE_DISABLED': (0, define_1.defineError)({ code: 'FEATURE_DISABLED', class: 'public', http: 403, message: 'Feature disabled.', positional: ['arg0'] }),
123
+ 'FIELDS_MISMATCH': (0, define_1.defineError)({ code: 'FIELDS_MISMATCH', class: 'internal', http: 500, message: 'FIELDS_MISMATCH (denormalized_table_field {{arg0}}[{{arg1}}] {{arg2}}[{{arg3}}])', positional: ['arg0', 'arg1', 'arg2', 'arg3'] }),
124
+ 'FULL_TEXT_SEARCH': (0, define_1.defineError)({ code: 'FULL_TEXT_SEARCH', class: 'internal', http: 500, message: 'FULL_TEXT_SEARCH: invalid lang "{{arg0}}" at index {{arg1}}, must be a valid pg_ts_config', positional: ['arg0', 'arg1'] }),
125
+ 'FUNCTION_SCHEDULES': (0, define_1.defineError)({ code: 'FUNCTION_SCHEDULES', class: 'internal', http: 500, message: 'FUNCTION_SCHEDULES: function definition does not allow the cron access channel' }),
126
+ 'FUNCTION_SCHEDULES_INTERVAL': (0, define_1.defineError)({ code: 'FUNCTION_SCHEDULES_INTERVAL', class: 'internal', http: 500, message: 'FUNCTION_SCHEDULES_INTERVAL (min_schedule_interval)' }),
127
+ 'FUNCTION_SCHEDULES_LIMIT': (0, define_1.defineError)({ code: 'FUNCTION_SCHEDULES_LIMIT', class: 'internal', http: 500, message: 'FUNCTION_SCHEDULES_LIMIT (max_schedules_per_entity)' }),
128
+ 'FUNCTION_SCHEDULE_SYNC': (0, define_1.defineError)({ code: 'FUNCTION_SCHEDULE_SYNC', class: 'internal', http: 500, message: 'FUNCTION_SCHEDULE_SYNC: unknown event {{arg0}}, expected UPSERT or DELETE', positional: ['arg0'] }),
129
+ 'GRAPH_EXECUTION_MODULE': (0, define_1.defineError)({ code: 'GRAPH_EXECUTION_MODULE', class: 'internal', http: 500, message: 'GRAPH_EXECUTION_MODULE: merkle_store_module {{arg0}} not found (from graph_module {{arg1}})', positional: ['arg0', 'arg1'] }),
130
+ 'GRAPH_MODULE': (0, define_1.defineError)({ code: 'GRAPH_MODULE', class: 'internal', http: 500, message: 'GRAPH_MODULE: scope ({{arg0}}) does not match backing merkle_store_module {{arg1}} scope ({{arg2}})', positional: ['arg0', 'arg1', 'arg2'] }),
131
+ 'GRAPH_VALIDATION_FAILED': (0, define_1.defineError)({ code: 'GRAPH_VALIDATION_FAILED', class: 'internal', http: 500, message: 'GRAPH_VALIDATION_FAILED: graph {{arg0}} failed pre-execution validation: {{arg1}}', positional: ['arg0', 'arg1'] }),
132
+ 'GROUPS_REQ_ENTITIES': (0, define_1.defineError)({ code: 'GROUPS_REQ_ENTITIES', class: 'public', http: 400, message: 'Groups req entities.' }),
133
+ 'GUARD_STEP_UP': (0, define_1.defineError)({ code: 'GUARD_STEP_UP', class: 'internal', http: 500, message: 'GUARD_STEP_UP: user_auth_module not found for database_id {{arg0}} — required for require_step_up()', positional: ['arg0'] }),
134
+ 'HIERARCHY_CYCLE_DETECTED': (0, define_1.defineError)({ code: 'HIERARCHY_CYCLE_DETECTED', class: 'internal', http: 500, message: 'HIERARCHY_CYCLE_DETECTED: Setting {{arg0}} as parent of {{arg1}} would create a cycle', positional: ['arg0', 'arg1'] }),
135
+ 'HIERARCHY_DEPTH_EXCEEDED': (0, define_1.defineError)({ code: 'HIERARCHY_DEPTH_EXCEEDED', class: 'internal', http: 500, message: 'Hierarchy depth exceeded.' }),
136
+ 'HIERARCHY_INACTIVE_MEMBER': (0, define_1.defineError)({ code: 'HIERARCHY_INACTIVE_MEMBER', class: 'internal', http: 500, message: 'HIERARCHY_INACTIVE_MEMBER: Cannot add user {{arg0}} to hierarchy - user must be an active member of the organization first', positional: ['arg0'] }),
137
+ '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'] }),
138
+ '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'] }),
139
+ 'HTTP_ROUTE_TARGET_NOT_FOUND': (0, define_1.defineError)({ code: 'HTTP_ROUTE_TARGET_NOT_FOUND', class: 'internal', http: 500, message: 'HTTP_ROUTE_TARGET_NOT_FOUND:' }),
140
+ 'HTTP_ROUTE_TARGET_OUTSIDE_SCOPE': (0, define_1.defineError)({ code: 'HTTP_ROUTE_TARGET_OUTSIDE_SCOPE', class: 'internal', http: 500, message: 'HTTP_ROUTE_TARGET_OUTSIDE_SCOPE:' }),
141
+ 'IDENTITY_ACCOUNT_NOT_FOUND': (0, define_1.defineError)({ code: 'IDENTITY_ACCOUNT_NOT_FOUND', class: 'public', http: 404, message: 'Identity account not found.' }),
142
+ 'IDENTITY_ALREADY_LINKED': (0, define_1.defineError)({ code: 'IDENTITY_ALREADY_LINKED', class: 'public', http: 409, message: 'Identity already linked.' }),
143
+ 'IDENTITY_LINK_AVAILABLE': (0, define_1.defineError)({ code: 'IDENTITY_LINK_AVAILABLE', class: 'public', http: 400, message: 'Identity link available.' }),
144
+ 'IDENTITY_PROVIDER_NOT_CONFIGURED': (0, define_1.defineError)({ code: 'IDENTITY_PROVIDER_NOT_CONFIGURED', class: 'public', http: 400, message: 'Identity provider not configured.' }),
145
+ 'IDENTITY_PROVIDER_NOT_FOUND': (0, define_1.defineError)({ code: 'IDENTITY_PROVIDER_NOT_FOUND', class: 'public', http: 404, message: 'Identity provider not found.' }),
146
+ 'IDENTITY_SIGN_IN_DISABLED': (0, define_1.defineError)({ code: 'IDENTITY_SIGN_IN_DISABLED', class: 'public', http: 403, message: 'Identity sign in disabled.' }),
147
+ 'IDENTITY_SIGN_UP_DISABLED': (0, define_1.defineError)({ code: 'IDENTITY_SIGN_UP_DISABLED', class: 'public', http: 403, message: 'Identity sign up disabled.' }),
148
+ 'IMMUTABLE_FIELD': (0, define_1.defineError)({ code: 'IMMUTABLE_FIELD', class: 'public', http: 403, message: 'Immutable field.' }),
149
+ 'IMMUTABLE_PEOPLESTAMPS': (0, define_1.defineError)({ code: 'IMMUTABLE_PEOPLESTAMPS', class: 'public', http: 403, message: 'Immutable peoplestamps.' }),
150
+ 'IMMUTABLE_PROPERTY': (0, define_1.defineError)({ code: 'IMMUTABLE_PROPERTY', class: 'internal', http: 500, message: 'Immutable property.' }),
151
+ 'IMMUTABLE_PROPS': (0, define_1.defineError)({ code: 'IMMUTABLE_PROPS', class: 'public', http: 403, message: 'Immutable props.' }),
152
+ 'IMMUTABLE_TIMESTAMPS': (0, define_1.defineError)({ code: 'IMMUTABLE_TIMESTAMPS', class: 'public', http: 403, message: 'Immutable timestamps.' }),
153
+ 'INCORRECT_PASSWORD': (0, define_1.defineError)({ code: 'INCORRECT_PASSWORD', class: 'public', http: 401, message: 'The password you entered is incorrect. Please try again.' }),
154
+ 'INFRA_API_NOT_PROVISIONED': (0, define_1.defineError)({ code: 'INFRA_API_NOT_PROVISIONED', class: 'internal', http: 500, message: 'INFRA_API_NOT_PROVISIONED: merkle_store_module/db_preset_module (database scope) names API "{{arg0}}" but no such API row exists for database {{arg1}}', positional: ['arg0', 'arg1'] }),
155
+ 'INSERT_GRAPH_EXECUTION_MODULE': (0, define_1.defineError)({ code: 'INSERT_GRAPH_EXECUTION_MODULE', class: 'internal', http: 500, message: 'INSERT_GRAPH_EXECUTION_MODULE: graph_module {{arg0}} not found', positional: ['arg0'] }),
156
+ 'INVALID_ACCESS_LEVEL': (0, define_1.defineError)({ code: 'INVALID_ACCESS_LEVEL', class: 'internal', http: 500, message: 'Invalid access level.' }),
157
+ 'INVALID_CHECK_OPTION': (0, define_1.defineError)({ code: 'INVALID_CHECK_OPTION', class: 'internal', http: 500, message: 'INVALID_CHECK_OPTION {{arg0}}', positional: ['arg0'] }),
158
+ 'INVALID_CODE': (0, define_1.defineError)({ code: 'INVALID_CODE', class: 'public', http: 401, message: 'Invalid code.' }),
159
+ 'INVALID_CSRF_TOKEN': (0, define_1.defineError)({ code: 'INVALID_CSRF_TOKEN', class: 'public', http: 401, message: 'Invalid csrf token.' }),
160
+ 'INVALID_DEFAULT_LIMIT_ID': (0, define_1.defineError)({ code: 'INVALID_DEFAULT_LIMIT_ID', class: 'internal', http: 500, message: 'Invalid default limit id.' }),
161
+ 'INVALID_FUNCTION_REF': (0, define_1.defineError)({ code: 'INVALID_FUNCTION_REF', class: 'internal', http: 500, message: 'INVALID_FUNCTION_REF: node_type "{{arg0}}" field "{{arg1}}" references task_identifier "{{arg2}}" which is not a registered function.', positional: ['arg0', 'arg1', 'arg2'] }),
162
+ 'INVALID_METER_ID': (0, define_1.defineError)({ code: 'INVALID_METER_ID', class: 'internal', http: 500, message: 'Invalid meter id.' }),
163
+ 'INVALID_MFA_CHALLENGE': (0, define_1.defineError)({ code: 'INVALID_MFA_CHALLENGE', class: 'public', http: 403, message: 'Invalid mfa challenge.' }),
164
+ 'INVALID_MFA_LEVEL': (0, define_1.defineError)({ code: 'INVALID_MFA_LEVEL', class: 'internal', http: 500, message: 'Invalid mfa level.' }),
165
+ 'INVALID_NODE_EDGES': (0, define_1.defineError)({ code: 'INVALID_NODE_EDGES', class: 'internal', http: 500, message: 'INVALID_NODE_EDGES: node "{{arg0}}" edges must be a JSON array, got {{arg1}}', positional: ['arg0', 'arg1'] }),
166
+ 'INVALID_NODE_NODES': (0, define_1.defineError)({ code: 'INVALID_NODE_NODES', class: 'internal', http: 500, message: 'INVALID_NODE_NODES: node "{{arg0}}" nodes must be a JSON array, got {{arg1}}', positional: ['arg0', 'arg1'] }),
167
+ 'INVALID_NODE_PROPS': (0, define_1.defineError)({ code: 'INVALID_NODE_PROPS', class: 'internal', http: 500, message: 'INVALID_NODE_PROPS: node "{{arg0}}" props must be a JSON array, got {{arg1}}', positional: ['arg0', 'arg1'] }),
168
+ 'INVALID_ORGANIZATION': (0, define_1.defineError)({ code: 'INVALID_ORGANIZATION', class: 'internal', http: 500, message: 'Invalid organization.' }),
169
+ 'INVALID_TOKEN': (0, define_1.defineError)({ code: 'INVALID_TOKEN', class: 'public', http: 401, message: 'This reset link is invalid. Please request a new one.' }),
170
+ 'INVALID_USER': (0, define_1.defineError)({ code: 'INVALID_USER', class: 'public', http: 400, message: 'Invalid user.' }),
171
+ 'INVALID_WORKER_ID': (0, define_1.defineError)({ code: 'INVALID_WORKER_ID', class: 'internal', http: 500, message: 'Invalid worker id.' }),
172
+ 'INVITE_EMAIL_NOT_FOUND': (0, define_1.defineError)({ code: 'INVITE_EMAIL_NOT_FOUND', class: 'public', http: 404, message: 'This invitation was sent to a different email address.' }),
173
+ 'INVITE_LIMIT': (0, define_1.defineError)({ code: 'INVITE_LIMIT', class: 'public', http: 429, message: 'This invitation has reached its usage limit.' }),
174
+ 'INVITE_NOT_FOUND': (0, define_1.defineError)({ code: 'INVITE_NOT_FOUND', class: 'public', http: 404, message: 'This invitation was not found.' }),
175
+ 'INVOCATION_QUOTA_GATE': (0, define_1.defineError)({ code: 'INVOCATION_QUOTA_GATE', class: 'internal', http: 500, message: 'INVOCATION_QUOTA_GATE: quota_schema and quota_function are required — the generator must only build this trigger when billing is provisioned' }),
176
+ 'INVOCATION_USAGE': (0, define_1.defineError)({ code: 'INVOCATION_USAGE', class: 'internal', http: 500, message: 'INVOCATION_USAGE: billing_schema and record_usage_fn are required — the generator must only build this trigger when billing is provisioned' }),
177
+ 'LIMIT_ENFORCE_AGGREGATE': (0, define_1.defineError)({ code: 'LIMIT_ENFORCE_AGGREGATE', class: 'internal', http: 500, message: 'LIMIT_ENFORCE_AGGREGATE: limits_module with aggregate table not found for database_id {{arg0}} scope "{{arg1}}"', positional: ['arg0', 'arg1'] }),
178
+ 'LIMIT_ENFORCE_COUNTER': (0, define_1.defineError)({ code: 'LIMIT_ENFORCE_COUNTER', class: 'internal', http: 500, message: 'LIMIT_ENFORCE_COUNTER: limits_module not found for database_id {{arg0}} with scope {{arg1}}', positional: ['arg0', 'arg1'] }),
179
+ 'LIMIT_ENFORCE_FEATURE': (0, define_1.defineError)({ code: 'LIMIT_ENFORCE_FEATURE', class: 'internal', http: 500, message: 'LIMIT_ENFORCE_FEATURE: cap_check_trigger not configured in limits_module for scope {{arg0}}', positional: ['arg0'] }),
180
+ 'LIMIT_ENFORCE_RATE': (0, define_1.defineError)({ code: 'LIMIT_ENFORCE_RATE', class: 'internal', http: 500, message: 'LIMIT_ENFORCE_RATE: rate_limit_meters_module with check_rate_limit_function not found for database_id {{arg0}}', positional: ['arg0'] }),
181
+ 'LIMIT_REACHED': (0, define_1.defineError)({ code: 'LIMIT_REACHED', class: 'public', http: 429, message: 'Limit reached.' }),
182
+ 'LIMIT_TRACK_USAGE': (0, define_1.defineError)({ code: 'LIMIT_TRACK_USAGE', class: 'internal', http: 500, message: 'LIMIT_TRACK_USAGE: billing_module with record_usage_function not found for database_id {{arg0}}', positional: ['arg0'] }),
183
+ 'LIMIT_TRIGGER_ARGS': (0, define_1.defineError)({ code: 'LIMIT_TRIGGER_ARGS', class: 'internal', http: 500, message: 'LIMIT_TRIGGER_ARGS ({{arg0}})', positional: ['arg0'] }),
184
+ 'LIMIT_WARNING_AGGREGATE': (0, define_1.defineError)({ code: 'LIMIT_WARNING_AGGREGATE', class: 'internal', http: 500, message: 'LIMIT_WARNING_AGGREGATE: aggregate table not provisioned for database_id {{arg0}} scope "{{arg1}}"', positional: ['arg0', 'arg1'] }),
185
+ 'LIMIT_WARNING_COUNTER': (0, define_1.defineError)({ code: 'LIMIT_WARNING_COUNTER', class: 'internal', http: 500, message: 'LIMIT_WARNING_COUNTER: limit_warnings table not provisioned for database_id {{arg0}} with scope {{arg1}}', positional: ['arg0', 'arg1'] }),
186
+ 'LIMIT_WARNING_RATE': (0, define_1.defineError)({ code: 'LIMIT_WARNING_RATE', class: 'internal', http: 500, message: 'LIMIT_WARNING_RATE: limit_warnings table not provisioned for database_id {{arg0}}', positional: ['arg0'] }),
187
+ 'MANAGED_DOMAIN_PUBLISH_FORBIDDEN': (0, define_1.defineError)({ code: 'MANAGED_DOMAIN_PUBLISH_FORBIDDEN', class: 'public', http: 403, message: 'Managed domain publish forbidden.' }),
188
+ 'MEMBERSHIP_NOT_FOUND': (0, define_1.defineError)({ code: 'MEMBERSHIP_NOT_FOUND', class: 'public', http: 404, message: 'Membership not found.' }),
189
+ 'MEMBERSHIP_TYPE_MUST_BE_INT': (0, define_1.defineError)({ code: 'MEMBERSHIP_TYPE_MUST_BE_INT', class: 'internal', http: 500, message: 'MEMBERSHIP_TYPE_MUST_BE_INT (got {{arg0}}; use entity_type for scope strings)', positional: ['arg0'] }),
190
+ 'MEMBERSHIP_TYPE_SCOPE_NOT_FOUND': (0, define_1.defineError)({ code: 'MEMBERSHIP_TYPE_SCOPE_NOT_FOUND', class: 'public', http: 404, message: 'Membership type scope not found.', positional: ['arg0', 'arg1'] }),
191
+ 'METER_RATE_LIMIT': (0, define_1.defineError)({ code: 'METER_RATE_LIMIT', class: 'internal', http: 500, message: 'METER_RATE_LIMIT: unknown event {{arg0}}, expected INSERT or UPDATE', positional: ['arg0'] }),
192
+ 'MFA_CHALLENGE_EXPIRED': (0, define_1.defineError)({ code: 'MFA_CHALLENGE_EXPIRED', class: 'public', http: 403, message: 'Mfa challenge expired.' }),
193
+ 'MFA_REQUIRED': (0, define_1.defineError)({ code: 'MFA_REQUIRED', class: 'public', http: 403, message: 'Mfa required.' }),
194
+ 'MISSING_FIXTURE_TYPE': (0, define_1.defineError)({ code: 'MISSING_FIXTURE_TYPE', class: 'internal', http: 500, message: 'Missing fixture type.' }),
195
+ 'MISSING_REQUIRED_FIELD': (0, define_1.defineError)({ code: 'MISSING_REQUIRED_FIELD', class: 'internal', http: 500, message: 'MISSING_REQUIRED_FIELD: node_type "{{arg0}}" requires field "{{arg1}}" but it is NULL after applying defaults.', positional: ['arg0', 'arg1'] }),
196
+ 'MISSING_RLS': (0, define_1.defineError)({ code: 'MISSING_RLS', class: 'internal', http: 500, message: 'MISSING_RLS: The following infrastructure tables have no RLS policies: {{arg0}}', positional: ['arg0'] }),
197
+ 'MODULES_HASH_DUPLICATE_ENTRY': (0, define_1.defineError)({ code: 'MODULES_HASH_DUPLICATE_ENTRY', class: 'internal', http: 500, message: 'MODULES_HASH_DUPLICATE_ENTRY: duplicate module entries in {{arg0}}', positional: ['arg0'] }),
198
+ 'MODULES_HASH_INVALID_ENTRY': (0, define_1.defineError)({ code: 'MODULES_HASH_INVALID_ENTRY', class: 'internal', http: 500, message: 'MODULES_HASH_INVALID_ENTRY: expected string or [name, options?], got {{arg0}}', positional: ['arg0'] }),
199
+ 'MODULES_HASH_INVALID_INPUT': (0, define_1.defineError)({ code: 'MODULES_HASH_INVALID_INPUT', class: 'internal', http: 500, message: 'MODULES_HASH_INVALID_INPUT: modules must be a jsonb array, got {{arg0}}', positional: ['arg0'] }),
200
+ 'MODULE_SECURITY': (0, define_1.defineError)({ code: 'MODULE_SECURITY', class: 'internal', http: 500, message: 'MODULE_SECURITY: policy entry missing $type' }),
201
+ 'MONOTONIC_FIELD': (0, define_1.defineError)({ code: 'MONOTONIC_FIELD', class: 'internal', http: 500, message: 'Monotonic field.' }),
202
+ 'NONEXISTENT_TYPE': (0, define_1.defineError)({ code: 'NONEXISTENT_TYPE', class: 'internal', http: 500, message: 'Nonexistent type.' }),
203
+ 'NOT_AUTHENTICATED': (0, define_1.defineError)({ code: 'NOT_AUTHENTICATED', class: 'public', http: 401, message: 'Not authenticated.' }),
204
+ 'NOT_FOUND': (0, define_1.defineError)({ code: 'NOT_FOUND', class: 'public', http: 404, message: 'Not found.', positional: ['arg0'] }),
205
+ 'NOT_ORG_ADMIN': (0, define_1.defineError)({ code: 'NOT_ORG_ADMIN', class: 'internal', http: 500, message: 'Not org admin.' }),
206
+ 'NOT_ORG_PRINCIPAL': (0, define_1.defineError)({ code: 'NOT_ORG_PRINCIPAL', class: 'internal', http: 500, message: 'Not org principal.' }),
207
+ 'NOT_OWNER': (0, define_1.defineError)({ code: 'NOT_OWNER', class: 'internal', http: 500, message: 'Not owner.' }),
208
+ 'NO_PRIMARY_IDENTIFIER': (0, define_1.defineError)({ code: 'NO_PRIMARY_IDENTIFIER', class: 'internal', http: 500, message: 'No primary identifier.' }),
209
+ 'NULL_VALUES_DISALLOWED': (0, define_1.defineError)({ code: 'NULL_VALUES_DISALLOWED', class: 'public', http: 400, message: 'Null values disallowed.' }),
210
+ 'OBJECT_NOT_FOUND': (0, define_1.defineError)({ code: 'OBJECT_NOT_FOUND', class: 'public', http: 404, message: 'Object not found.', positional: ['arg0'] }),
211
+ 'OBJECT_NO_UPDATE': (0, define_1.defineError)({ code: 'OBJECT_NO_UPDATE', class: 'public', http: 400, message: 'Object no update.' }),
212
+ 'ORG_API_KEY_NOT_FOUND': (0, define_1.defineError)({ code: 'ORG_API_KEY_NOT_FOUND', class: 'internal', http: 500, message: 'Org api key not found.' }),
213
+ 'OWNER_FIELD_NOT_FOUND': (0, define_1.defineError)({ code: 'OWNER_FIELD_NOT_FOUND', class: 'internal', http: 500, message: 'Owner field not found.' }),
214
+ 'OWNER_FIELD_NOT_IN_OWNER_TABLE': (0, define_1.defineError)({ code: 'OWNER_FIELD_NOT_IN_OWNER_TABLE', class: 'internal', http: 500, message: 'Owner field not in owner table.' }),
215
+ 'PARENT_ENTITY_TYPE_NOT_FOUND': (0, define_1.defineError)({ code: 'PARENT_ENTITY_TYPE_NOT_FOUND', class: 'internal', http: 500, message: 'Parent entity type not found.' }),
216
+ 'PASSWORD_INSECURE': (0, define_1.defineError)({ code: 'PASSWORD_INSECURE', class: 'public', http: 400, message: 'This password is not secure enough. Please choose a stronger password.' }),
217
+ 'PASSWORD_LEN': (0, define_1.defineError)({ code: 'PASSWORD_LEN', class: 'public', http: 400, message: 'Password must be between 8 and 63 characters long.' }),
218
+ '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.' }),
219
+ 'PASSWORD_SIGN_IN_DISABLED': (0, define_1.defineError)({ code: 'PASSWORD_SIGN_IN_DISABLED', class: 'public', http: 403, message: 'Password sign in disabled.' }),
220
+ 'PASSWORD_SIGN_UP_DISABLED': (0, define_1.defineError)({ code: 'PASSWORD_SIGN_UP_DISABLED', class: 'public', http: 403, message: 'Password sign up disabled.' }),
221
+ 'PLATFORM_FLAG_IMMUTABLE': (0, define_1.defineError)({ code: 'PLATFORM_FLAG_IMMUTABLE', class: 'internal', http: 500, message: 'PLATFORM_FLAG_IMMUTABLE: metaschema_public.database.platform cannot be changed once set' }),
222
+ 'POOL_BOOTSTRAP_INCOMPLETE': (0, define_1.defineError)({ code: 'POOL_BOOTSTRAP_INCOMPLETE', class: 'internal', http: 500, message: 'POOL_BOOTSTRAP_INCOMPLETE: pool row {{arg0}} is missing database_id or claimed_by', positional: ['arg0'] }),
223
+ 'POOL_CONFIG_NOT_FOUND': (0, define_1.defineError)({ code: 'POOL_CONFIG_NOT_FOUND', class: 'internal', http: 500, message: 'POOL_CONFIG_NOT_FOUND: no db_pool_config for preset {{arg0}}', positional: ['arg0'] }),
224
+ 'POOL_ROW_NOT_FOUND': (0, define_1.defineError)({ code: 'POOL_ROW_NOT_FOUND', class: 'internal', http: 500, message: 'POOL_ROW_NOT_FOUND: no db_pool row with id {{arg0}}', positional: ['arg0'] }),
225
+ 'PRESET_MODULES_INVALID': (0, define_1.defineError)({ code: 'PRESET_MODULES_INVALID', class: 'internal', http: 500, message: 'PRESET_MODULES_INVALID: preset {{arg0}} definition.modules must be a jsonb array', positional: ['arg0'] }),
226
+ 'PRESET_NOT_FOUND': (0, define_1.defineError)({ code: 'PRESET_NOT_FOUND', class: 'internal', http: 500, message: 'PRESET_NOT_FOUND: no active db_preset with slug {{arg0}}', positional: ['arg0'] }),
227
+ 'PRIMARY_AUTH_METHOD_MISMATCH': (0, define_1.defineError)({ code: 'PRIMARY_AUTH_METHOD_MISMATCH', class: 'public', http: 400, message: 'Primary auth method mismatch.' }),
228
+ 'PRIMARY_REQUIRES_VERIFIED': (0, define_1.defineError)({ code: 'PRIMARY_REQUIRES_VERIFIED', class: 'internal', http: 500, message: 'Primary requires verified.' }),
229
+ 'PRINCIPAL_CANNOT_CREATE_API_KEY': (0, define_1.defineError)({ code: 'PRINCIPAL_CANNOT_CREATE_API_KEY', class: 'internal', http: 500, message: 'Principal cannot create api key.' }),
230
+ 'PRINCIPAL_CANNOT_CREATE_PRINCIPAL': (0, define_1.defineError)({ code: 'PRINCIPAL_CANNOT_CREATE_PRINCIPAL', class: 'internal', http: 500, message: 'Principal cannot create principal.' }),
231
+ 'PRINCIPAL_CANNOT_DELETE_PRINCIPAL': (0, define_1.defineError)({ code: 'PRINCIPAL_CANNOT_DELETE_PRINCIPAL', class: 'internal', http: 500, message: 'Principal cannot delete principal.' }),
232
+ 'PRINCIPAL_CANNOT_REVOKE_API_KEY': (0, define_1.defineError)({ code: 'PRINCIPAL_CANNOT_REVOKE_API_KEY', class: 'internal', http: 500, message: 'Principal cannot revoke api key.' }),
233
+ 'PRINCIPAL_NOT_FOUND': (0, define_1.defineError)({ code: 'PRINCIPAL_NOT_FOUND', class: 'internal', http: 500, message: 'Principal not found.' }),
234
+ 'PRINCIPAL_NOT_IN_ORG': (0, define_1.defineError)({ code: 'PRINCIPAL_NOT_IN_ORG', class: 'internal', http: 500, message: 'Principal not in org.' }),
235
+ 'PRINCIPAL_NOT_OWNED': (0, define_1.defineError)({ code: 'PRINCIPAL_NOT_OWNED', class: 'internal', http: 500, message: 'Principal not owned.' }),
236
+ 'PROFILE_ASSIGNMENT_REQUIRES_EMAIL_INVITE': (0, define_1.defineError)({ code: 'PROFILE_ASSIGNMENT_REQUIRES_EMAIL_INVITE', class: 'public', http: 403, message: 'Profile assignment requires email invite.' }),
237
+ 'PROFILE_EXCEEDS_PERMISSIONS': (0, define_1.defineError)({ code: 'PROFILE_EXCEEDS_PERMISSIONS', class: 'public', http: 403, message: 'Profile exceeds permissions.' }),
238
+ 'PROFILE_NOT_FOUND': (0, define_1.defineError)({ code: 'PROFILE_NOT_FOUND', class: 'public', http: 404, message: 'Profile not found.' }),
239
+ 'PROVISION_CHECK_CONSTRAINT': (0, define_1.defineError)({ code: 'PROVISION_CHECK_CONSTRAINT', class: 'internal', http: 500, message: 'PROVISION_CHECK_CONSTRAINT: unknown $type "{{arg0}}" for constraint "{{arg1}}" on table "{{arg2}}". Supported: CheckOneOf, CheckGreaterThan, CheckLessThan, CheckNotEqual', positional: ['arg0', 'arg1', 'arg2'] }),
240
+ 'PROVISION_FULL_TEXT_SEARCH': (0, define_1.defineError)({ code: 'PROVISION_FULL_TEXT_SEARCH', class: 'internal', http: 500, message: 'PROVISION_FULL_TEXT_SEARCH: tsvector field "{{arg0}}" not found on table "{{arg1}}"', positional: ['arg0', 'arg1'] }),
241
+ 'PROVISION_INDEX': (0, define_1.defineError)({ code: 'PROVISION_INDEX', class: 'internal', http: 500, message: 'PROVISION_INDEX: "columns" array or "column" string is required' }),
242
+ 'PROVISION_INVALID_DATABASE_ID': (0, define_1.defineError)({ code: 'PROVISION_INVALID_DATABASE_ID', class: 'internal', http: 500, message: 'PROVISION_INVALID_DATABASE_ID: database_id may only be pre-set for a warm pool claim owned by the requester' }),
243
+ 'PROVISION_RELATION': (0, define_1.defineError)({ code: 'PROVISION_RELATION', class: 'internal', http: 500, message: 'PROVISION_RELATION: delete_action is required for RelationBelongsTo (e.g., r=RESTRICT, c=CASCADE, n=SET NULL)' }),
244
+ 'PROVISION_TABLE': (0, define_1.defineError)({ code: 'PROVISION_TABLE', class: 'internal', http: 500, message: 'PROVISION_TABLE: invalid index access method "{{arg0}}" for field "{{arg1}}", expected btree|gin|gist|brin|hash', positional: ['arg0', 'arg1'] }),
245
+ 'PROVISION_UNIQUE_CONSTRAINT': (0, define_1.defineError)({ code: 'PROVISION_UNIQUE_CONSTRAINT', class: 'internal', http: 500, message: 'PROVISION_UNIQUE_CONSTRAINT: "columns" array is required for table "{{arg0}}"', positional: ['arg0'] }),
246
+ 'RATE_LIMIT_EXCEEDED': (0, define_1.defineError)({ code: 'RATE_LIMIT_EXCEEDED', class: 'public', http: 429, message: 'Rate limit exceeded.' }),
247
+ 'REF_NOT_FOUND': (0, define_1.defineError)({ code: 'REF_NOT_FOUND', class: 'public', http: 404, message: 'Ref not found.' }),
248
+ 'REGISTER_SITE_MODULE_SCOPE_REQUIRED': (0, define_1.defineError)({ code: 'REGISTER_SITE_MODULE_SCOPE_REQUIRED', class: 'internal', http: 500, message: 'REGISTER_SITE_MODULE_SCOPE_REQUIRED: scope is required (no default scope)' }),
249
+ 'RELATION_PROVISION': (0, define_1.defineError)({ code: 'RELATION_PROVISION', class: 'internal', http: 500, message: 'RELATION_PROVISION: delete_action is required for RelationBelongsTo (e.g., r=RESTRICT, c=CASCADE, n=SET NULL)' }),
250
+ 'REPO_EXISTS': (0, define_1.defineError)({ code: 'REPO_EXISTS', class: 'internal', http: 500, message: 'Repo exists.' }),
251
+ 'REQUEST_DATABASE_INVALID_INPUT': (0, define_1.defineError)({ code: 'REQUEST_DATABASE_INVALID_INPUT', class: 'internal', http: 500, message: 'REQUEST_DATABASE_INVALID_INPUT: provide exactly one of preset_slug or modules' }),
252
+ 'REQUEST_DATABASE_UNKNOWN_PRESET': (0, define_1.defineError)({ code: 'REQUEST_DATABASE_UNKNOWN_PRESET', class: 'internal', http: 500, message: 'REQUEST_DATABASE_UNKNOWN_PRESET: no active preset with slug {{arg0}}', positional: ['arg0'] }),
253
+ 'REQUIRES': (0, define_1.defineError)({ code: 'REQUIRES', class: 'internal', http: 500, message: 'REQUIRES (user_settings_module or user_settings_table_id) when has_settings_extension is enabled' }),
254
+ 'REQUIRES_ONE_OWNER': (0, define_1.defineError)({ code: 'REQUIRES_ONE_OWNER', class: 'public', http: 403, message: 'Requires one owner.' }),
255
+ 'RESOLVE_BLUEPRINT_FIELD': (0, define_1.defineError)({ code: 'RESOLVE_BLUEPRINT_FIELD', class: 'internal', http: 500, message: 'RESOLVE_BLUEPRINT_FIELD: field "{{arg0}}" not found on table {{arg1}} (database {{arg2}})', positional: ['arg0', 'arg1', 'arg2'] }),
256
+ 'RESOLVE_BLUEPRINT_TABLE': (0, define_1.defineError)({ code: 'RESOLVE_BLUEPRINT_TABLE', class: 'internal', http: 500, message: 'RESOLVE_BLUEPRINT_TABLE: table "{{arg0}}" not found in database {{arg1}} (not in blueprint tables and not in existing tables)', positional: ['arg0', 'arg1'] }),
257
+ 'RESOURCE_MODULE': (0, define_1.defineError)({ code: 'RESOURCE_MODULE', class: 'internal', http: 500, message: 'RESOURCE_MODULE: merkle_store_module {{arg0}} not found', positional: ['arg0'] }),
258
+ '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'] }),
259
+ 'ROUTE_TARGET_NOT_VISIBLE': (0, define_1.defineError)({ code: 'ROUTE_TARGET_NOT_VISIBLE', class: 'internal', http: 500, message: 'Route target not visible.' }),
260
+ 'ROUTE_TARGET_REQUIRED': (0, define_1.defineError)({ code: 'ROUTE_TARGET_REQUIRED', class: 'internal', http: 500, message: 'Route target required.' }),
261
+ 'ROUTING_API_TABLES_SCOPE_REQUIRED': (0, define_1.defineError)({ code: 'ROUTING_API_TABLES_SCOPE_REQUIRED', class: 'internal', http: 500, message: 'ROUTING_API_TABLES_SCOPE_REQUIRED: scope is required (no default scope)' }),
262
+ 'ROUTING_SURFACE_NOT_PROVISIONED': (0, define_1.defineError)({ code: 'ROUTING_SURFACE_NOT_PROVISIONED', class: 'internal', http: 500, message: 'ROUTING_SURFACE_NOT_PROVISIONED (database {{arg0}}, scope {{arg1}}): http_route_module requires scoped routing domains, apis, and sites tables', positional: ['arg0', 'arg1'] }),
263
+ 'SEARCH_BM25': (0, define_1.defineError)({ code: 'SEARCH_BM25', class: 'internal', http: 500, message: 'SEARCH_BM25: field "{{arg0}}" not found on table "{{arg1}}". The field must already exist.', positional: ['arg0', 'arg1'] }),
264
+ 'SEARCH_FULL_TEXT': (0, define_1.defineError)({ code: 'SEARCH_FULL_TEXT', class: 'internal', http: 500, message: 'SEARCH_FULL_TEXT: source_fields is required and must be a non-empty array of {field, weight, lang} objects' }),
265
+ 'SEARCH_SPATIAL': (0, define_1.defineError)({ code: 'SEARCH_SPATIAL', class: 'internal', http: 500, message: 'SEARCH_SPATIAL: unknown geometry_type {{arg0}}, expected Point|LineString|Polygon|MultiPoint|MultiLineString|MultiPolygon|GeometryCollection|Geometry', positional: ['arg0'] }),
266
+ 'SEARCH_SPATIAL_AGGREGATE': (0, define_1.defineError)({ code: 'SEARCH_SPATIAL_AGGREGATE', class: 'internal', http: 500, message: 'SEARCH_SPATIAL_AGGREGATE: unknown geometry_type {{arg0}}, expected Point|LineString|Polygon|MultiPoint|MultiLineString|MultiPolygon|GeometryCollection|Geometry', positional: ['arg0'] }),
267
+ 'SEARCH_TRGM': (0, define_1.defineError)({ code: 'SEARCH_TRGM', class: 'internal', http: 500, message: 'SEARCH_TRGM: "fields" parameter is required and must be a JSON array' }),
268
+ 'SEARCH_UNIFIED': (0, define_1.defineError)({ code: 'SEARCH_UNIFIED', class: 'internal', http: 500, message: 'SEARCH_UNIFIED: trgm field "{{arg0}}" not found on table "{{arg1}}"', positional: ['arg0', 'arg1'] }),
269
+ 'SEARCH_VECTOR': (0, define_1.defineError)({ code: 'SEARCH_VECTOR', class: 'internal', http: 500, message: 'SEARCH_VECTOR: unknown index_method {{arg0}}, expected hnsw|ivfflat', positional: ['arg0'] }),
270
+ 'SECURITY': (0, define_1.defineError)({ code: 'SECURITY', class: 'internal', http: 500, message: 'SECURITY: obj_table_id references a table from a different database (expected {{arg0}}, got {{arg1}})', positional: ['arg0', 'arg1'] }),
271
+ 'SESSION_NOT_FOUND': (0, define_1.defineError)({ code: 'SESSION_NOT_FOUND', class: 'public', http: 404, message: 'Session not found.' }),
272
+ 'SETTINGS_SURFACE_NOT_PROVISIONED': (0, define_1.defineError)({ code: 'SETTINGS_SURFACE_NOT_PROVISIONED', class: 'internal', http: 500, message: 'SETTINGS_SURFACE_NOT_PROVISIONED (database {{arg0}})', positional: ['arg0'] }),
273
+ 'SIGN_UP_DISABLED': (0, define_1.defineError)({ code: 'SIGN_UP_DISABLED', class: 'public', http: 403, message: 'New registrations are currently disabled.' }),
274
+ 'SITE_NOT_PROVISIONED': (0, define_1.defineError)({ code: 'SITE_NOT_PROVISIONED', class: 'internal', http: 500, message: 'SITE_NOT_PROVISIONED (database {{arg0}}, scope {{arg1}})', positional: ['arg0', 'arg1'] }),
275
+ 'SITE_SURFACE_NOT_PROVISIONED': (0, define_1.defineError)({ code: 'SITE_SURFACE_NOT_PROVISIONED', class: 'internal', http: 500, message: 'SITE_SURFACE_NOT_PROVISIONED (database {{arg0}}, scope {{arg1}})', positional: ['arg0', 'arg1'] }),
276
+ 'SMS_SIGN_IN_DISABLED': (0, define_1.defineError)({ code: 'SMS_SIGN_IN_DISABLED', class: 'public', http: 403, message: 'Sms sign in disabled.' }),
277
+ 'SMS_SIGN_UP_DISABLED': (0, define_1.defineError)({ code: 'SMS_SIGN_UP_DISABLED', class: 'public', http: 403, message: 'Sms sign up disabled.' }),
278
+ 'SOURCE_EMAILS_NOT_FOUND': (0, define_1.defineError)({ code: 'SOURCE_EMAILS_NOT_FOUND', class: 'internal', http: 500, message: 'Source emails not found.' }),
279
+ 'SOURCE_SECRETS_NOT_FOUND': (0, define_1.defineError)({ code: 'SOURCE_SECRETS_NOT_FOUND', class: 'internal', http: 500, message: 'Source secrets not found.' }),
280
+ 'SOURCE_USERS_NOT_FOUND': (0, define_1.defineError)({ code: 'SOURCE_USERS_NOT_FOUND', class: 'internal', http: 500, message: 'Source users not found.' }),
281
+ 'STEP_UP_REQUIRED': (0, define_1.defineError)({ code: 'STEP_UP_REQUIRED', class: 'public', http: 403, message: 'Please verify your identity to continue.' }),
282
+ 'STEP_UP_REQUIRED_PASSWORD': (0, define_1.defineError)({ code: 'STEP_UP_REQUIRED_PASSWORD', class: 'public', http: 403, message: 'Step up required password.' }),
283
+ 'STEP_UP_REQUIRED_PASSWORD_OR_MFA': (0, define_1.defineError)({ code: 'STEP_UP_REQUIRED_PASSWORD_OR_MFA', class: 'public', http: 403, message: 'Step up required password or mfa.' }),
284
+ 'SUPER_CONSTRUCTIVE_REQUIRED': (0, define_1.defineError)({ code: 'SUPER_CONSTRUCTIVE_REQUIRED', class: 'internal', http: 500, message: 'SUPER_CONSTRUCTIVE_REQUIRED: {{arg0}} requires constructive.allow_super_constructive GUC', positional: ['arg0'] }),
285
+ 'TABLE_MODULE': (0, define_1.defineError)({ code: 'TABLE_MODULE', class: 'internal', http: 500, message: 'TABLE_MODULE: table not found for table_id {{arg0}}', positional: ['arg0'] }),
286
+ 'TARGET_EMAILS_NOT_FOUND': (0, define_1.defineError)({ code: 'TARGET_EMAILS_NOT_FOUND', class: 'internal', http: 500, message: 'Target emails not found.' }),
287
+ 'TARGET_FIELD_NOT_FOUND': (0, define_1.defineError)({ code: 'TARGET_FIELD_NOT_FOUND', class: 'internal', http: 500, message: 'Target field not found.' }),
288
+ 'TARGET_FIELD_NOT_IN_TARGET_TABLE': (0, define_1.defineError)({ code: 'TARGET_FIELD_NOT_IN_TARGET_TABLE', class: 'internal', http: 500, message: 'Target field not in target table.' }),
289
+ 'TARGET_MEMBERSHIPS_NOT_FOUND': (0, define_1.defineError)({ code: 'TARGET_MEMBERSHIPS_NOT_FOUND', class: 'internal', http: 500, message: 'Target memberships not found.' }),
290
+ 'TARGET_SECRETS_NOT_FOUND': (0, define_1.defineError)({ code: 'TARGET_SECRETS_NOT_FOUND', class: 'internal', http: 500, message: 'Target secrets not found.' }),
291
+ 'TARGET_USERS_NOT_FOUND': (0, define_1.defineError)({ code: 'TARGET_USERS_NOT_FOUND', class: 'internal', http: 500, message: 'Target users not found.' }),
292
+ 'TOO_MANY_REQUESTS': (0, define_1.defineError)({ code: 'TOO_MANY_REQUESTS', class: 'public', http: 429, message: 'Too many requests.' }),
293
+ 'TOTP_ALREADY_ENABLED': (0, define_1.defineError)({ code: 'TOTP_ALREADY_ENABLED', class: 'public', http: 409, message: 'Totp already enabled.' }),
294
+ 'TOTP_NOT_ENABLED': (0, define_1.defineError)({ code: 'TOTP_NOT_ENABLED', class: 'public', http: 400, message: 'Totp not enabled.' }),
295
+ 'TOTP_SETUP_NOT_INITIATED': (0, define_1.defineError)({ code: 'TOTP_SETUP_NOT_INITIATED', class: 'public', http: 400, message: 'Totp setup not initiated.' }),
296
+ 'TRANSFER_NOT_ALLOWED_IN_POOLED_MODE': (0, define_1.defineError)({ code: 'TRANSFER_NOT_ALLOWED_IN_POOLED_MODE', class: 'internal', http: 500, message: 'Transfer not allowed in pooled mode.' }),
297
+ 'UNAUTHENTICATED': (0, define_1.defineError)({ code: 'UNAUTHENTICATED', class: 'public', http: 401, message: 'Unauthenticated.' }),
298
+ 'UNKNOWN_POLICY_TYPE': (0, define_1.defineError)({ code: 'UNKNOWN_POLICY_TYPE', class: 'internal', http: 500, message: 'UNKNOWN_POLICY_TYPE {{arg0}}', positional: ['arg0'] }),
299
+ 'UNKNOWN_VIEW_TYPE': (0, define_1.defineError)({ code: 'UNKNOWN_VIEW_TYPE', class: 'internal', http: 500, message: 'UNKNOWN_VIEW_TYPE {{arg0}}', positional: ['arg0'] }),
300
+ 'UNSUPPORTED': (0, define_1.defineError)({ code: 'UNSUPPORTED', class: 'internal', http: 500, message: 'UNSUPPORTED POLICY ({{arg0}})', positional: ['arg0'] }),
301
+ 'UNSUPPORTED_EXPRESSION': (0, define_1.defineError)({ code: 'UNSUPPORTED_EXPRESSION', class: 'internal', http: 500, message: 'UNSUPPORTED_EXPRESSION {{arg0}}', positional: ['arg0'] }),
302
+ 'UNSUPPORTED_VIEW_RULE_ACTION': (0, define_1.defineError)({ code: 'UNSUPPORTED_VIEW_RULE_ACTION', class: 'internal', http: 500, message: 'UNSUPPORTED_VIEW_RULE_ACTION {{arg0}}', positional: ['arg0'] }),
303
+ 'VALIDATE_BLUEPRINT': (0, define_1.defineError)({ code: 'VALIDATE_BLUEPRINT', class: 'internal', http: 500, message: 'VALIDATE_BLUEPRINT: definition must contain a non-empty "tables" array, a non-empty "entity_types" array, or at least one of relations/indexes/full_text_searches/unique_constraints' }),
304
+ 'WEBAUTHN_CREDENTIAL_NOT_FOUND': (0, define_1.defineError)({ code: 'WEBAUTHN_CREDENTIAL_NOT_FOUND', class: 'public', http: 404, message: 'Webauthn credential not found.' }),
305
+ 'WEBAUTHN_REGISTER_CHALLENGE_NOT_FOUND_OR_EXPIRED': (0, define_1.defineError)({ code: 'WEBAUTHN_REGISTER_CHALLENGE_NOT_FOUND_OR_EXPIRED', class: 'public', http: 400, message: 'Webauthn register challenge not found or expired.' }),
306
+ 'WEBAUTHN_SIGN_IN_CHALLENGE_NOT_FOUND_OR_EXPIRED': (0, define_1.defineError)({ code: 'WEBAUTHN_SIGN_IN_CHALLENGE_NOT_FOUND_OR_EXPIRED', class: 'public', http: 400, message: 'Webauthn sign in challenge not found or expired.' }),
307
+ 'WEBAUTHN_SIGN_IN_DISABLED': (0, define_1.defineError)({ code: 'WEBAUTHN_SIGN_IN_DISABLED', class: 'public', http: 403, message: 'Webauthn sign in disabled.' }),
308
+ 'WEBAUTHN_SIGN_UP_DISABLED': (0, define_1.defineError)({ code: 'WEBAUTHN_SIGN_UP_DISABLED', class: 'public', http: 403, message: 'Webauthn sign up disabled.' }),
309
+ 'WITH_CHECK_NOT_ALLOWED_FOR_': (0, define_1.defineError)({ code: 'WITH_CHECK_NOT_ALLOWED_FOR_', class: 'internal', http: 500, message: 'WITH_CHECK_NOT_ALLOWED_FOR_{{arg0}} (for INSERT, the policy node itself is the check)', positional: ['arg0'] }),
310
+ };
311
+ /** Audit metadata for each generated code. */
312
+ exports.GENERATED_CODE_META = {
313
+ 'ACCOUNT_DISABLED': { class: 'public', dynamic: false, generatedOnly: false },
314
+ 'ACCOUNT_EXISTS': { class: 'public', dynamic: false, generatedOnly: false },
315
+ 'ACCOUNT_LOCKED_EXCEED_ATTEMPTS': { class: 'public', dynamic: false, generatedOnly: false },
316
+ 'ACCOUNT_NOT_FOUND': { class: 'public', dynamic: false, generatedOnly: false },
317
+ 'ALREADY_SCHEDULED': { class: 'public', dynamic: false, generatedOnly: true },
318
+ 'ALTER_TABLE_ADD_COLUMN': { class: 'internal', dynamic: true, generatedOnly: false },
319
+ 'API_KEYS_DISABLED': { class: 'public', dynamic: false, generatedOnly: true },
320
+ 'API_KEY_LIMIT_REACHED': { class: 'public', dynamic: false, generatedOnly: false },
321
+ 'API_KEY_NOT_FOUND': { class: 'public', dynamic: false, generatedOnly: false },
322
+ 'APPLY_RLS': { class: 'internal', dynamic: true, generatedOnly: false },
323
+ 'APPLY_RLS_BAD_ARGS': { class: 'internal', dynamic: false, generatedOnly: false },
324
+ 'APPLY_TABLE_STEP_UP': { class: 'internal', dynamic: true, generatedOnly: false },
325
+ 'APP_COMPONENT_NOT_VISIBLE': { class: 'internal', dynamic: false, generatedOnly: true },
326
+ 'APP_COMPONENT_TARGET_REQUIRED': { class: 'internal', dynamic: false, generatedOnly: true },
327
+ 'ASSIGN_PROFILES_PERMISSION_REQUIRED': { class: 'public', dynamic: false, generatedOnly: false },
328
+ 'AUTHZ_COLUMN_SECURITY': { class: 'internal', dynamic: true, generatedOnly: false },
329
+ 'AUTH_METHOD_NOT_ALLOWED': { class: 'public', dynamic: false, generatedOnly: false },
330
+ 'BAD_CASING_FUNC': { class: 'internal', dynamic: true, generatedOnly: false },
331
+ 'BAD_EXPRESSION': { class: 'internal', dynamic: true, generatedOnly: false },
332
+ 'BAD_FIELD_INPUT': { class: 'internal', dynamic: true, generatedOnly: false },
333
+ 'BAD_FIELD_ORDERING_CROSS_TABLE': { class: 'internal', dynamic: false, generatedOnly: false },
334
+ 'BAD_PRIVILEGE_FOR_POLICY': { class: 'internal', dynamic: false, generatedOnly: false },
335
+ 'BAD_RLS_EXPRESSION': { class: 'internal', dynamic: true, generatedOnly: false },
336
+ 'BAD_VIEW_EXPRESSION': { class: 'internal', dynamic: true, generatedOnly: false },
337
+ 'BM25': { class: 'internal', dynamic: true, generatedOnly: false },
338
+ 'BOOTSTRAP_DATABASE_MISSING': { class: 'internal', dynamic: false, generatedOnly: false },
339
+ 'BOOTSTRAP_SOURCE_MISSING': { class: 'internal', dynamic: false, generatedOnly: false },
340
+ 'BOOTSTRAP_TARGET_NOT_EMPTY': { class: 'internal', dynamic: false, generatedOnly: false },
341
+ 'BUILD_CONDITION_EXPR': { class: 'internal', dynamic: true, generatedOnly: false },
342
+ 'CANNOT_DISCONNECT_LAST_AUTH_METHOD': { class: 'public', dynamic: false, generatedOnly: false },
343
+ 'CANNOT_REVOKE_CURRENT_SESSION': { class: 'public', dynamic: false, generatedOnly: false },
344
+ 'CAP_CHECK_TRIGGER_ARGS': { class: 'internal', dynamic: true, generatedOnly: false },
345
+ 'CATALOG_BACKFILL': { class: 'internal', dynamic: true, generatedOnly: false },
346
+ 'CATALOG_SYNC': { class: 'internal', dynamic: true, generatedOnly: false },
347
+ 'COMMIT_NOT_FOUND': { class: 'internal', dynamic: false, generatedOnly: false },
348
+ 'CONFIG_API_NOT_PROVISIONED': { class: 'internal', dynamic: true, generatedOnly: false },
349
+ 'CONNECTED_ACCOUNT_NOT_FOUND': { class: 'public', dynamic: false, generatedOnly: false },
350
+ 'CONSTRUCT_BLUEPRINT': { class: 'internal', dynamic: true, generatedOnly: false },
351
+ 'CONST_TYPE_FIELDS_IMMUTABLE': { class: 'public', dynamic: false, generatedOnly: false },
352
+ 'COPY_TEMPLATE_TO_BLUEPRINT': { class: 'internal', dynamic: true, generatedOnly: false },
353
+ 'CREDIT_CODE_EXPIRED': { class: 'internal', dynamic: false, generatedOnly: false },
354
+ 'CREDIT_CODE_MAX_REDEMPTIONS_REACHED': { class: 'internal', dynamic: false, generatedOnly: false },
355
+ 'CREDIT_CODE_NOT_FOUND': { class: 'internal', dynamic: false, generatedOnly: false },
356
+ 'CROSS_DATABASE_CHECK': { class: 'internal', dynamic: true, generatedOnly: false },
357
+ 'CROSS_DATABASE_REF': { class: 'public', dynamic: true, generatedOnly: false },
358
+ 'CSRF_TOKEN_REQUIRED': { class: 'public', dynamic: false, generatedOnly: false },
359
+ 'DATABASE_FIELD_RESERVED_WORD': { class: 'internal', dynamic: false, generatedOnly: false },
360
+ 'DATABASE_NOT_FOUND': { class: 'internal', dynamic: true, generatedOnly: false },
361
+ 'DATABASE_SETTINGS_TABLES_SCOPE_REQUIRED': { class: 'internal', dynamic: false, generatedOnly: false },
362
+ 'DATABASE_TABLE_RESERVED_WORD': { class: 'internal', dynamic: false, generatedOnly: false },
363
+ 'DATA_BILLING_METER': { class: 'internal', dynamic: true, generatedOnly: false },
364
+ 'DATA_COMPOSITE_FIELD': { class: 'internal', dynamic: true, generatedOnly: false },
365
+ 'DATA_DIRECT_OWNER': { class: 'internal', dynamic: true, generatedOnly: false },
366
+ 'DATA_DIRECT_OWNER_IN_ENTITY': { class: 'internal', dynamic: true, generatedOnly: false },
367
+ 'DATA_FORCE_CURRENT_USER': { class: 'internal', dynamic: true, generatedOnly: false },
368
+ 'DATA_GENERATED': { class: 'internal', dynamic: true, generatedOnly: false },
369
+ 'DATA_I18N': { class: 'internal', dynamic: true, generatedOnly: false },
370
+ 'DATA_ID': { class: 'internal', dynamic: true, generatedOnly: false },
371
+ 'DATA_IDENTITY': { class: 'internal', dynamic: true, generatedOnly: false },
372
+ 'DATA_IMMUTABLE_FIELDS': { class: 'internal', dynamic: true, generatedOnly: false },
373
+ 'DATA_INFLECTION': { class: 'internal', dynamic: true, generatedOnly: false },
374
+ 'DATA_INHERIT_FROM_PARENT': { class: 'internal', dynamic: true, generatedOnly: false },
375
+ 'DATA_JOB_TRIGGER': { class: 'internal', dynamic: true, generatedOnly: false },
376
+ 'DATA_JSONB': { class: 'internal', dynamic: true, generatedOnly: false },
377
+ 'DATA_MEMBERSHIP_BY_FIELD': { class: 'internal', dynamic: true, generatedOnly: false },
378
+ 'DATA_MEMBER_OWNER': { class: 'internal', dynamic: true, generatedOnly: false },
379
+ 'DATA_OWNED_FIELDS': { class: 'internal', dynamic: true, generatedOnly: false },
380
+ 'DATA_PEOPLESTAMPS': { class: 'internal', dynamic: true, generatedOnly: false },
381
+ 'DATA_PUBLISHABLE': { class: 'internal', dynamic: true, generatedOnly: false },
382
+ 'DATA_REALTIME': { class: 'internal', dynamic: true, generatedOnly: false },
383
+ 'DATA_SLUG': { class: 'internal', dynamic: true, generatedOnly: false },
384
+ 'DATA_STATUS_FIELD': { class: 'internal', dynamic: true, generatedOnly: false },
385
+ 'DATA_TAGS': { class: 'internal', dynamic: true, generatedOnly: false },
386
+ 'DATA_TIMESTAMPS': { class: 'internal', dynamic: true, generatedOnly: false },
387
+ 'DB_PRESET_MODULE': { class: 'internal', dynamic: true, generatedOnly: false },
388
+ 'DELETE_FIRST': { class: 'public', dynamic: false, generatedOnly: false },
389
+ 'DEVICE_NOT_FOUND': { class: 'internal', dynamic: false, generatedOnly: false },
390
+ 'DOMAIN_CHECK_CERT_NOT_ISSUING': { class: 'internal', dynamic: true, generatedOnly: true },
391
+ 'DOMAIN_CHECK_CERT_UNKNOWN_DOMAIN': { class: 'internal', dynamic: true, generatedOnly: true },
392
+ 'DOMAIN_ISSUE_CERT_BAD_ISSUER': { class: 'internal', dynamic: true, generatedOnly: true },
393
+ 'DOMAIN_ISSUE_CERT_NOT_VERIFIED': { class: 'internal', dynamic: true, generatedOnly: true },
394
+ 'DOMAIN_ISSUE_CERT_UNKNOWN_DOMAIN': { class: 'internal', dynamic: true, generatedOnly: true },
395
+ 'DOMAIN_ISSUE_CHALLENGE_BAD_METHOD': { class: 'internal', dynamic: true, generatedOnly: true },
396
+ 'DOMAIN_ISSUE_CHALLENGE_UNKNOWN_DOMAIN': { class: 'internal', dynamic: true, generatedOnly: true },
397
+ 'DOMAIN_RENEW_NOT_ACTIVE': { class: 'internal', dynamic: true, generatedOnly: true },
398
+ 'DOMAIN_RENEW_UNKNOWN_DOMAIN': { class: 'internal', dynamic: true, generatedOnly: true },
399
+ 'DOMAIN_REVOKE_UNKNOWN_DOMAIN': { class: 'internal', dynamic: true, generatedOnly: true },
400
+ 'DOMAIN_VERIFY_BAD_METHOD': { class: 'internal', dynamic: true, generatedOnly: true },
401
+ 'DOMAIN_VERIFY_NO_CHALLENGE': { class: 'internal', dynamic: true, generatedOnly: true },
402
+ 'EMAIL_NOT_VERIFIED': { class: 'public', dynamic: false, generatedOnly: false },
403
+ 'EMBEDDING_CHUNKS': { class: 'internal', dynamic: true, generatedOnly: false },
404
+ 'ENTITY_NOT_FOUND': { class: 'internal', dynamic: false, generatedOnly: false },
405
+ 'ENTITY_TYPE_NOT_FOUND': { class: 'internal', dynamic: false, generatedOnly: false },
406
+ 'ENTITY_TYPE_PROVISION': { class: 'internal', dynamic: true, generatedOnly: false },
407
+ 'ENUM_VALUES_CANNOT_BE_REMOVED': { class: 'internal', dynamic: false, generatedOnly: false },
408
+ 'ENUM_VALUES_CANNOT_BE_REORDERED': { class: 'internal', dynamic: false, generatedOnly: false },
409
+ 'EVENT_REFERRAL': { class: 'internal', dynamic: true, generatedOnly: false },
410
+ 'EVENT_TRACKER': { class: 'internal', dynamic: true, generatedOnly: false },
411
+ 'EXCLUSION_CONSTRAINT': { class: 'internal', dynamic: false, generatedOnly: false },
412
+ 'EXPIRED_TOKEN': { class: 'public', dynamic: false, generatedOnly: false },
413
+ 'EXTERNAL_MEMBERS_NOT_ALLOWED': { class: 'public', dynamic: false, generatedOnly: false },
414
+ 'FEATURE_DISABLED': { class: 'public', dynamic: true, generatedOnly: false },
415
+ 'FIELDS_MISMATCH': { class: 'internal', dynamic: true, generatedOnly: false },
416
+ 'FULL_TEXT_SEARCH': { class: 'internal', dynamic: true, generatedOnly: false },
417
+ 'FUNCTION_SCHEDULES': { class: 'internal', dynamic: false, generatedOnly: false },
418
+ 'FUNCTION_SCHEDULES_INTERVAL': { class: 'internal', dynamic: false, generatedOnly: false },
419
+ 'FUNCTION_SCHEDULES_LIMIT': { class: 'internal', dynamic: false, generatedOnly: false },
420
+ 'FUNCTION_SCHEDULE_SYNC': { class: 'internal', dynamic: true, generatedOnly: false },
421
+ 'GRAPH_EXECUTION_MODULE': { class: 'internal', dynamic: true, generatedOnly: false },
422
+ 'GRAPH_MODULE': { class: 'internal', dynamic: true, generatedOnly: false },
423
+ 'GRAPH_VALIDATION_FAILED': { class: 'internal', dynamic: true, generatedOnly: false },
424
+ 'GROUPS_REQ_ENTITIES': { class: 'public', dynamic: false, generatedOnly: false },
425
+ 'GUARD_STEP_UP': { class: 'internal', dynamic: true, generatedOnly: false },
426
+ 'HIERARCHY_CYCLE_DETECTED': { class: 'internal', dynamic: true, generatedOnly: false },
427
+ 'HIERARCHY_DEPTH_EXCEEDED': { class: 'internal', dynamic: false, generatedOnly: false },
428
+ 'HIERARCHY_INACTIVE_MEMBER': { class: 'internal', dynamic: true, generatedOnly: false },
429
+ 'HIERARCHY_MEMBER_IN_USE': { class: 'internal', dynamic: true, generatedOnly: false },
430
+ 'HOSTNAME_BINDING_SYNC': { class: 'internal', dynamic: true, generatedOnly: false },
431
+ 'HTTP_ROUTE_TARGET_NOT_FOUND': { class: 'internal', dynamic: false, generatedOnly: false },
432
+ 'HTTP_ROUTE_TARGET_OUTSIDE_SCOPE': { class: 'internal', dynamic: false, generatedOnly: false },
433
+ 'IDENTITY_ACCOUNT_NOT_FOUND': { class: 'public', dynamic: false, generatedOnly: false },
434
+ 'IDENTITY_ALREADY_LINKED': { class: 'public', dynamic: false, generatedOnly: false },
435
+ 'IDENTITY_LINK_AVAILABLE': { class: 'public', dynamic: false, generatedOnly: false },
436
+ 'IDENTITY_PROVIDER_NOT_CONFIGURED': { class: 'public', dynamic: false, generatedOnly: false },
437
+ 'IDENTITY_PROVIDER_NOT_FOUND': { class: 'public', dynamic: false, generatedOnly: false },
438
+ 'IDENTITY_SIGN_IN_DISABLED': { class: 'public', dynamic: false, generatedOnly: true },
439
+ 'IDENTITY_SIGN_UP_DISABLED': { class: 'public', dynamic: false, generatedOnly: true },
440
+ 'IMMUTABLE_FIELD': { class: 'public', dynamic: false, generatedOnly: false },
441
+ 'IMMUTABLE_PEOPLESTAMPS': { class: 'public', dynamic: false, generatedOnly: false },
442
+ 'IMMUTABLE_PROPERTY': { class: 'internal', dynamic: false, generatedOnly: true },
443
+ 'IMMUTABLE_PROPS': { class: 'public', dynamic: false, generatedOnly: false },
444
+ 'IMMUTABLE_TIMESTAMPS': { class: 'public', dynamic: false, generatedOnly: false },
445
+ 'INCORRECT_PASSWORD': { class: 'public', dynamic: false, generatedOnly: false },
446
+ 'INFRA_API_NOT_PROVISIONED': { class: 'internal', dynamic: true, generatedOnly: false },
447
+ 'INSERT_GRAPH_EXECUTION_MODULE': { class: 'internal', dynamic: true, generatedOnly: false },
448
+ 'INVALID_ACCESS_LEVEL': { class: 'internal', dynamic: false, generatedOnly: false },
449
+ 'INVALID_CHECK_OPTION': { class: 'internal', dynamic: true, generatedOnly: false },
450
+ 'INVALID_CODE': { class: 'public', dynamic: false, generatedOnly: false },
451
+ 'INVALID_CSRF_TOKEN': { class: 'public', dynamic: false, generatedOnly: false },
452
+ 'INVALID_DEFAULT_LIMIT_ID': { class: 'internal', dynamic: false, generatedOnly: false },
453
+ 'INVALID_FUNCTION_REF': { class: 'internal', dynamic: true, generatedOnly: false },
454
+ 'INVALID_METER_ID': { class: 'internal', dynamic: false, generatedOnly: false },
455
+ 'INVALID_MFA_CHALLENGE': { class: 'public', dynamic: false, generatedOnly: false },
456
+ 'INVALID_MFA_LEVEL': { class: 'internal', dynamic: false, generatedOnly: false },
457
+ 'INVALID_NODE_EDGES': { class: 'internal', dynamic: true, generatedOnly: true },
458
+ 'INVALID_NODE_NODES': { class: 'internal', dynamic: true, generatedOnly: true },
459
+ 'INVALID_NODE_PROPS': { class: 'internal', dynamic: true, generatedOnly: true },
460
+ 'INVALID_ORGANIZATION': { class: 'internal', dynamic: false, generatedOnly: false },
461
+ 'INVALID_TOKEN': { class: 'public', dynamic: false, generatedOnly: false },
462
+ 'INVALID_USER': { class: 'public', dynamic: false, generatedOnly: false },
463
+ 'INVALID_WORKER_ID': { class: 'internal', dynamic: false, generatedOnly: true },
464
+ 'INVITE_EMAIL_NOT_FOUND': { class: 'public', dynamic: false, generatedOnly: false },
465
+ 'INVITE_LIMIT': { class: 'public', dynamic: false, generatedOnly: false },
466
+ 'INVITE_NOT_FOUND': { class: 'public', dynamic: false, generatedOnly: false },
467
+ 'INVOCATION_QUOTA_GATE': { class: 'internal', dynamic: false, generatedOnly: false },
468
+ 'INVOCATION_USAGE': { class: 'internal', dynamic: false, generatedOnly: false },
469
+ 'LIMIT_ENFORCE_AGGREGATE': { class: 'internal', dynamic: true, generatedOnly: false },
470
+ 'LIMIT_ENFORCE_COUNTER': { class: 'internal', dynamic: true, generatedOnly: false },
471
+ 'LIMIT_ENFORCE_FEATURE': { class: 'internal', dynamic: true, generatedOnly: false },
472
+ 'LIMIT_ENFORCE_RATE': { class: 'internal', dynamic: true, generatedOnly: false },
473
+ 'LIMIT_REACHED': { class: 'public', dynamic: false, generatedOnly: false },
474
+ 'LIMIT_TRACK_USAGE': { class: 'internal', dynamic: true, generatedOnly: false },
475
+ 'LIMIT_TRIGGER_ARGS': { class: 'internal', dynamic: true, generatedOnly: false },
476
+ 'LIMIT_WARNING_AGGREGATE': { class: 'internal', dynamic: true, generatedOnly: false },
477
+ 'LIMIT_WARNING_COUNTER': { class: 'internal', dynamic: true, generatedOnly: false },
478
+ 'LIMIT_WARNING_RATE': { class: 'internal', dynamic: true, generatedOnly: false },
479
+ 'MANAGED_DOMAIN_PUBLISH_FORBIDDEN': { class: 'public', dynamic: false, generatedOnly: true },
480
+ 'MEMBERSHIP_NOT_FOUND': { class: 'public', dynamic: false, generatedOnly: false },
481
+ 'MEMBERSHIP_TYPE_MUST_BE_INT': { class: 'internal', dynamic: true, generatedOnly: false },
482
+ 'MEMBERSHIP_TYPE_SCOPE_NOT_FOUND': { class: 'public', dynamic: true, generatedOnly: false },
483
+ 'METER_RATE_LIMIT': { class: 'internal', dynamic: true, generatedOnly: false },
484
+ 'MFA_CHALLENGE_EXPIRED': { class: 'public', dynamic: false, generatedOnly: false },
485
+ 'MFA_REQUIRED': { class: 'public', dynamic: false, generatedOnly: false },
486
+ 'MISSING_FIXTURE_TYPE': { class: 'internal', dynamic: false, generatedOnly: false },
487
+ 'MISSING_REQUIRED_FIELD': { class: 'internal', dynamic: true, generatedOnly: false },
488
+ 'MISSING_RLS': { class: 'internal', dynamic: true, generatedOnly: false },
489
+ 'MODULES_HASH_DUPLICATE_ENTRY': { class: 'internal', dynamic: true, generatedOnly: false },
490
+ 'MODULES_HASH_INVALID_ENTRY': { class: 'internal', dynamic: true, generatedOnly: false },
491
+ 'MODULES_HASH_INVALID_INPUT': { class: 'internal', dynamic: true, generatedOnly: false },
492
+ 'MODULE_SECURITY': { class: 'internal', dynamic: false, generatedOnly: false },
493
+ 'MONOTONIC_FIELD': { class: 'internal', dynamic: false, generatedOnly: true },
494
+ 'NONEXISTENT_TYPE': { class: 'internal', dynamic: false, generatedOnly: false },
495
+ 'NOT_AUTHENTICATED': { class: 'public', dynamic: false, generatedOnly: false },
496
+ 'NOT_FOUND': { class: 'public', dynamic: true, generatedOnly: false },
497
+ 'NOT_ORG_ADMIN': { class: 'internal', dynamic: false, generatedOnly: false },
498
+ 'NOT_ORG_PRINCIPAL': { class: 'internal', dynamic: false, generatedOnly: false },
499
+ 'NOT_OWNER': { class: 'internal', dynamic: false, generatedOnly: false },
500
+ 'NO_PRIMARY_IDENTIFIER': { class: 'internal', dynamic: false, generatedOnly: false },
501
+ 'NULL_VALUES_DISALLOWED': { class: 'public', dynamic: false, generatedOnly: false },
502
+ 'OBJECT_NOT_FOUND': { class: 'public', dynamic: true, generatedOnly: false },
503
+ 'OBJECT_NO_UPDATE': { class: 'public', dynamic: false, generatedOnly: false },
504
+ 'ORG_API_KEY_NOT_FOUND': { class: 'internal', dynamic: false, generatedOnly: false },
505
+ 'OWNER_FIELD_NOT_FOUND': { class: 'internal', dynamic: false, generatedOnly: false },
506
+ 'OWNER_FIELD_NOT_IN_OWNER_TABLE': { class: 'internal', dynamic: false, generatedOnly: false },
507
+ 'PARENT_ENTITY_TYPE_NOT_FOUND': { class: 'internal', dynamic: false, generatedOnly: false },
508
+ 'PASSWORD_INSECURE': { class: 'public', dynamic: false, generatedOnly: false },
509
+ 'PASSWORD_LEN': { class: 'public', dynamic: false, generatedOnly: false },
510
+ 'PASSWORD_RESET_LOCKED_EXCEED_ATTEMPTS': { class: 'public', dynamic: false, generatedOnly: true },
511
+ 'PASSWORD_SIGN_IN_DISABLED': { class: 'public', dynamic: false, generatedOnly: true },
512
+ 'PASSWORD_SIGN_UP_DISABLED': { class: 'public', dynamic: false, generatedOnly: true },
513
+ 'PLATFORM_FLAG_IMMUTABLE': { class: 'internal', dynamic: false, generatedOnly: false },
514
+ 'POOL_BOOTSTRAP_INCOMPLETE': { class: 'internal', dynamic: true, generatedOnly: false },
515
+ 'POOL_CONFIG_NOT_FOUND': { class: 'internal', dynamic: true, generatedOnly: false },
516
+ 'POOL_ROW_NOT_FOUND': { class: 'internal', dynamic: true, generatedOnly: false },
517
+ 'PRESET_MODULES_INVALID': { class: 'internal', dynamic: true, generatedOnly: false },
518
+ 'PRESET_NOT_FOUND': { class: 'internal', dynamic: true, generatedOnly: false },
519
+ 'PRIMARY_AUTH_METHOD_MISMATCH': { class: 'public', dynamic: false, generatedOnly: false },
520
+ 'PRIMARY_REQUIRES_VERIFIED': { class: 'internal', dynamic: false, generatedOnly: false },
521
+ 'PRINCIPAL_CANNOT_CREATE_API_KEY': { class: 'internal', dynamic: false, generatedOnly: false },
522
+ 'PRINCIPAL_CANNOT_CREATE_PRINCIPAL': { class: 'internal', dynamic: false, generatedOnly: false },
523
+ 'PRINCIPAL_CANNOT_DELETE_PRINCIPAL': { class: 'internal', dynamic: false, generatedOnly: false },
524
+ 'PRINCIPAL_CANNOT_REVOKE_API_KEY': { class: 'internal', dynamic: false, generatedOnly: false },
525
+ 'PRINCIPAL_NOT_FOUND': { class: 'internal', dynamic: false, generatedOnly: false },
526
+ 'PRINCIPAL_NOT_IN_ORG': { class: 'internal', dynamic: false, generatedOnly: false },
527
+ 'PRINCIPAL_NOT_OWNED': { class: 'internal', dynamic: false, generatedOnly: false },
528
+ 'PROFILE_ASSIGNMENT_REQUIRES_EMAIL_INVITE': { class: 'public', dynamic: false, generatedOnly: false },
529
+ 'PROFILE_EXCEEDS_PERMISSIONS': { class: 'public', dynamic: false, generatedOnly: false },
530
+ 'PROFILE_NOT_FOUND': { class: 'public', dynamic: false, generatedOnly: false },
531
+ 'PROVISION_CHECK_CONSTRAINT': { class: 'internal', dynamic: true, generatedOnly: false },
532
+ 'PROVISION_FULL_TEXT_SEARCH': { class: 'internal', dynamic: true, generatedOnly: false },
533
+ 'PROVISION_INDEX': { class: 'internal', dynamic: true, generatedOnly: false },
534
+ 'PROVISION_INVALID_DATABASE_ID': { class: 'internal', dynamic: false, generatedOnly: false },
535
+ 'PROVISION_RELATION': { class: 'internal', dynamic: true, generatedOnly: false },
536
+ 'PROVISION_TABLE': { class: 'internal', dynamic: true, generatedOnly: false },
537
+ 'PROVISION_UNIQUE_CONSTRAINT': { class: 'internal', dynamic: true, generatedOnly: false },
538
+ 'RATE_LIMIT_EXCEEDED': { class: 'public', dynamic: false, generatedOnly: false },
539
+ 'REF_NOT_FOUND': { class: 'public', dynamic: false, generatedOnly: false },
540
+ 'REGISTER_SITE_MODULE_SCOPE_REQUIRED': { class: 'internal', dynamic: false, generatedOnly: false },
541
+ 'RELATION_PROVISION': { class: 'internal', dynamic: true, generatedOnly: false },
542
+ 'REPO_EXISTS': { class: 'internal', dynamic: false, generatedOnly: false },
543
+ 'REQUEST_DATABASE_INVALID_INPUT': { class: 'internal', dynamic: false, generatedOnly: false },
544
+ 'REQUEST_DATABASE_UNKNOWN_PRESET': { class: 'internal', dynamic: true, generatedOnly: false },
545
+ 'REQUIRES': { class: 'internal', dynamic: true, generatedOnly: false },
546
+ 'REQUIRES_ONE_OWNER': { class: 'public', dynamic: false, generatedOnly: false },
547
+ 'RESOLVE_BLUEPRINT_FIELD': { class: 'internal', dynamic: true, generatedOnly: false },
548
+ 'RESOLVE_BLUEPRINT_TABLE': { class: 'internal', dynamic: true, generatedOnly: false },
549
+ 'RESOURCE_MODULE': { class: 'internal', dynamic: true, generatedOnly: false },
550
+ 'ROUTE_BINDING_SYNC': { class: 'internal', dynamic: true, generatedOnly: false },
551
+ 'ROUTE_TARGET_NOT_VISIBLE': { class: 'internal', dynamic: false, generatedOnly: true },
552
+ 'ROUTE_TARGET_REQUIRED': { class: 'internal', dynamic: false, generatedOnly: true },
553
+ 'ROUTING_API_TABLES_SCOPE_REQUIRED': { class: 'internal', dynamic: false, generatedOnly: false },
554
+ 'ROUTING_SURFACE_NOT_PROVISIONED': { class: 'internal', dynamic: true, generatedOnly: false },
555
+ 'SEARCH_BM25': { class: 'internal', dynamic: true, generatedOnly: false },
556
+ 'SEARCH_FULL_TEXT': { class: 'internal', dynamic: true, generatedOnly: false },
557
+ 'SEARCH_SPATIAL': { class: 'internal', dynamic: true, generatedOnly: false },
558
+ 'SEARCH_SPATIAL_AGGREGATE': { class: 'internal', dynamic: true, generatedOnly: false },
559
+ 'SEARCH_TRGM': { class: 'internal', dynamic: true, generatedOnly: false },
560
+ 'SEARCH_UNIFIED': { class: 'internal', dynamic: true, generatedOnly: false },
561
+ 'SEARCH_VECTOR': { class: 'internal', dynamic: true, generatedOnly: false },
562
+ 'SECURITY': { class: 'internal', dynamic: true, generatedOnly: false },
563
+ 'SESSION_NOT_FOUND': { class: 'public', dynamic: false, generatedOnly: false },
564
+ 'SETTINGS_SURFACE_NOT_PROVISIONED': { class: 'internal', dynamic: true, generatedOnly: false },
565
+ 'SIGN_UP_DISABLED': { class: 'public', dynamic: false, generatedOnly: true },
566
+ 'SITE_NOT_PROVISIONED': { class: 'internal', dynamic: true, generatedOnly: false },
567
+ 'SITE_SURFACE_NOT_PROVISIONED': { class: 'internal', dynamic: true, generatedOnly: false },
568
+ 'SMS_SIGN_IN_DISABLED': { class: 'public', dynamic: false, generatedOnly: true },
569
+ 'SMS_SIGN_UP_DISABLED': { class: 'public', dynamic: false, generatedOnly: true },
570
+ 'SOURCE_EMAILS_NOT_FOUND': { class: 'internal', dynamic: false, generatedOnly: false },
571
+ 'SOURCE_SECRETS_NOT_FOUND': { class: 'internal', dynamic: false, generatedOnly: false },
572
+ 'SOURCE_USERS_NOT_FOUND': { class: 'internal', dynamic: false, generatedOnly: false },
573
+ 'STEP_UP_REQUIRED': { class: 'public', dynamic: false, generatedOnly: false },
574
+ 'STEP_UP_REQUIRED_PASSWORD': { class: 'public', dynamic: false, generatedOnly: false },
575
+ 'STEP_UP_REQUIRED_PASSWORD_OR_MFA': { class: 'public', dynamic: false, generatedOnly: false },
576
+ 'SUPER_CONSTRUCTIVE_REQUIRED': { class: 'internal', dynamic: true, generatedOnly: false },
577
+ 'TABLE_MODULE': { class: 'internal', dynamic: true, generatedOnly: false },
578
+ 'TARGET_EMAILS_NOT_FOUND': { class: 'internal', dynamic: false, generatedOnly: false },
579
+ 'TARGET_FIELD_NOT_FOUND': { class: 'internal', dynamic: false, generatedOnly: false },
580
+ 'TARGET_FIELD_NOT_IN_TARGET_TABLE': { class: 'internal', dynamic: false, generatedOnly: false },
581
+ 'TARGET_MEMBERSHIPS_NOT_FOUND': { class: 'internal', dynamic: false, generatedOnly: false },
582
+ 'TARGET_SECRETS_NOT_FOUND': { class: 'internal', dynamic: false, generatedOnly: false },
583
+ 'TARGET_USERS_NOT_FOUND': { class: 'internal', dynamic: false, generatedOnly: false },
584
+ 'TOO_MANY_REQUESTS': { class: 'public', dynamic: false, generatedOnly: false },
585
+ 'TOTP_ALREADY_ENABLED': { class: 'public', dynamic: false, generatedOnly: false },
586
+ 'TOTP_NOT_ENABLED': { class: 'public', dynamic: false, generatedOnly: false },
587
+ 'TOTP_SETUP_NOT_INITIATED': { class: 'public', dynamic: false, generatedOnly: false },
588
+ 'TRANSFER_NOT_ALLOWED_IN_POOLED_MODE': { class: 'internal', dynamic: false, generatedOnly: false },
589
+ 'UNAUTHENTICATED': { class: 'public', dynamic: false, generatedOnly: false },
590
+ 'UNKNOWN_POLICY_TYPE': { class: 'internal', dynamic: true, generatedOnly: false },
591
+ 'UNKNOWN_VIEW_TYPE': { class: 'internal', dynamic: true, generatedOnly: false },
592
+ 'UNSUPPORTED': { class: 'internal', dynamic: true, generatedOnly: false },
593
+ 'UNSUPPORTED_EXPRESSION': { class: 'internal', dynamic: true, generatedOnly: false },
594
+ 'UNSUPPORTED_VIEW_RULE_ACTION': { class: 'internal', dynamic: true, generatedOnly: false },
595
+ 'VALIDATE_BLUEPRINT': { class: 'internal', dynamic: true, generatedOnly: false },
596
+ 'WEBAUTHN_CREDENTIAL_NOT_FOUND': { class: 'public', dynamic: false, generatedOnly: false },
597
+ 'WEBAUTHN_REGISTER_CHALLENGE_NOT_FOUND_OR_EXPIRED': { class: 'public', dynamic: false, generatedOnly: false },
598
+ 'WEBAUTHN_SIGN_IN_CHALLENGE_NOT_FOUND_OR_EXPIRED': { class: 'public', dynamic: false, generatedOnly: false },
599
+ 'WEBAUTHN_SIGN_IN_DISABLED': { class: 'public', dynamic: false, generatedOnly: true },
600
+ 'WEBAUTHN_SIGN_UP_DISABLED': { class: 'public', dynamic: false, generatedOnly: true },
601
+ 'WITH_CHECK_NOT_ALLOWED_FOR_': { class: 'internal', dynamic: true, generatedOnly: false },
602
+ };
603
+ /** Total number of codes collected from constructive-db. */
604
+ exports.GENERATED_CODE_COUNT = 289;