@constructive-sdk/cli 0.21.0 → 0.21.3

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.
@@ -20,7 +20,7 @@ class FetchAdapter {
20
20
  constructor(endpoint, headers, fetchFn) {
21
21
  this.endpoint = endpoint;
22
22
  this.headers = headers ?? {};
23
- this.fetchFn = fetchFn ?? (0, runtime_1.createFetch)();
23
+ this.fetchFn = (fetchFn ?? (0, runtime_1.createFetch)()).bind(globalThis);
24
24
  }
25
25
  async execute(document, variables) {
26
26
  const response = await this.fetchFn(this.endpoint, {
@@ -20,7 +20,7 @@ class FetchAdapter {
20
20
  constructor(endpoint, headers, fetchFn) {
21
21
  this.endpoint = endpoint;
22
22
  this.headers = headers ?? {};
23
- this.fetchFn = fetchFn ?? (0, runtime_1.createFetch)();
23
+ this.fetchFn = (fetchFn ?? (0, runtime_1.createFetch)()).bind(globalThis);
24
24
  }
25
25
  async execute(document, variables) {
26
26
  const response = await this.fetchFn(this.endpoint, {
@@ -16,7 +16,7 @@ export class FetchAdapter {
16
16
  constructor(endpoint, headers, fetchFn) {
17
17
  this.endpoint = endpoint;
18
18
  this.headers = headers ?? {};
19
- this.fetchFn = fetchFn ?? createFetch();
19
+ this.fetchFn = (fetchFn ?? createFetch()).bind(globalThis);
20
20
  }
21
21
  async execute(document, variables) {
22
22
  const response = await this.fetchFn(this.endpoint, {
@@ -16,7 +16,7 @@ export class FetchAdapter {
16
16
  constructor(endpoint, headers, fetchFn) {
17
17
  this.endpoint = endpoint;
18
18
  this.headers = headers ?? {};
19
- this.fetchFn = fetchFn ?? createFetch();
19
+ this.fetchFn = (fetchFn ?? createFetch()).bind(globalThis);
20
20
  }
21
21
  async execute(document, variables) {
22
22
  const response = await this.fetchFn(this.endpoint, {
@@ -16,7 +16,7 @@ export class FetchAdapter {
16
16
  constructor(endpoint, headers, fetchFn) {
17
17
  this.endpoint = endpoint;
18
18
  this.headers = headers ?? {};
19
- this.fetchFn = fetchFn ?? createFetch();
19
+ this.fetchFn = (fetchFn ?? createFetch()).bind(globalThis);
20
20
  }
21
21
  async execute(document, variables) {
22
22
  const response = await this.fetchFn(this.endpoint, {
@@ -19,6 +19,7 @@ const fieldSchema = {
19
19
  enableConnectionFilter: 'boolean',
20
20
  enableLtree: 'boolean',
21
21
  enableLlm: 'boolean',
22
+ enableRealtime: 'boolean',
22
23
  options: 'json',
23
24
  };
24
25
  const usage = '\napi-setting <command>\n\nCommands:\n list List apiSetting records\n find-first Find first matching apiSetting record\n get Get a apiSetting by ID\n create Create a new apiSetting\n update Update an existing apiSetting\n delete Delete a apiSetting\n\nList Options:\n --limit <n> Max number of records to return (forward pagination)\n --last <n> Number of records from the end (backward pagination)\n --after <cursor> Cursor for forward pagination\n --before <cursor> Cursor for backward pagination\n --offset <n> Number of records to skip\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.<f>.<op> Condition filter (dot-notation)\n --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.<f>.<op> Condition filter (dot-notation)\n\n --help, -h Show this help message\n';
@@ -75,6 +76,7 @@ async function handleList(argv, _prompter) {
75
76
  enableConnectionFilter: true,
76
77
  enableLtree: true,
77
78
  enableLlm: true,
79
+ enableRealtime: true,
78
80
  options: true,
79
81
  };
80
82
  const findManyArgs = parseFindManyArgs(argv, defaultSelect);
@@ -105,6 +107,7 @@ async function handleFindFirst(argv, _prompter) {
105
107
  enableConnectionFilter: true,
106
108
  enableLtree: true,
107
109
  enableLlm: true,
110
+ enableRealtime: true,
108
111
  options: true,
109
112
  };
110
113
  const findFirstArgs = parseFindFirstArgs(argv, defaultSelect);
@@ -147,6 +150,7 @@ async function handleGet(argv, prompter) {
147
150
  enableConnectionFilter: true,
148
151
  enableLtree: true,
149
152
  enableLlm: true,
153
+ enableRealtime: true,
150
154
  options: true,
151
155
  },
152
156
  })
@@ -239,6 +243,13 @@ async function handleCreate(argv, prompter) {
239
243
  required: false,
240
244
  skipPrompt: true,
241
245
  },
246
+ {
247
+ type: 'boolean',
248
+ name: 'enableRealtime',
249
+ message: 'enableRealtime',
250
+ required: false,
251
+ skipPrompt: true,
252
+ },
242
253
  {
243
254
  type: 'json',
244
255
  name: 'options',
@@ -264,6 +275,7 @@ async function handleCreate(argv, prompter) {
264
275
  enableConnectionFilter: cleanedData.enableConnectionFilter,
265
276
  enableLtree: cleanedData.enableLtree,
266
277
  enableLlm: cleanedData.enableLlm,
278
+ enableRealtime: cleanedData.enableRealtime,
267
279
  options: cleanedData.options,
268
280
  },
269
281
  select: {
@@ -279,6 +291,7 @@ async function handleCreate(argv, prompter) {
279
291
  enableConnectionFilter: true,
280
292
  enableLtree: true,
281
293
  enableLlm: true,
294
+ enableRealtime: true,
282
295
  options: true,
283
296
  },
284
297
  })
@@ -377,6 +390,13 @@ async function handleUpdate(argv, prompter) {
377
390
  required: false,
378
391
  skipPrompt: true,
379
392
  },
393
+ {
394
+ type: 'boolean',
395
+ name: 'enableRealtime',
396
+ message: 'enableRealtime',
397
+ required: false,
398
+ skipPrompt: true,
399
+ },
380
400
  {
381
401
  type: 'json',
382
402
  name: 'options',
@@ -405,6 +425,7 @@ async function handleUpdate(argv, prompter) {
405
425
  enableConnectionFilter: cleanedData.enableConnectionFilter,
406
426
  enableLtree: cleanedData.enableLtree,
407
427
  enableLlm: cleanedData.enableLlm,
428
+ enableRealtime: cleanedData.enableRealtime,
408
429
  options: cleanedData.options,
409
430
  },
410
431
  select: {
@@ -420,6 +441,7 @@ async function handleUpdate(argv, prompter) {
420
441
  enableConnectionFilter: true,
421
442
  enableLtree: true,
422
443
  enableLlm: true,
444
+ enableRealtime: true,
423
445
  options: true,
424
446
  },
425
447
  })
@@ -3,7 +3,7 @@ import { unflattenDotNotation, buildSelectFromPaths } from '../utils';
3
3
  export default async (argv, prompter, _options) => {
4
4
  try {
5
5
  if (argv.help || argv.h) {
6
- console.log('construct-blueprint - Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Six phases: (0) entity_type_provision for each membership_type entry \u2014 provisions entity tables, membership modules, and security, (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints are deferred), (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level indexes/fts/unique_constraints are deferred to phases 3-5 so they can reference columns created by relations in phase 2. Returns the construction record ID on success, NULL on failure.\n\nUsage: construct-blueprint [OPTIONS]\n');
6
+ console.log('construct-blueprint - Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Seven phases: (0) entity_type_provision for each membership_type entry \u2014 provisions entity tables, membership modules, and security, (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred), (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID on success, NULL on failure.\n\nUsage: construct-blueprint [OPTIONS]\n');
7
7
  process.exit(0);
8
8
  }
9
9
  const answers = await prompter.prompt(argv, [
@@ -18,6 +18,7 @@ const fieldSchema = {
18
18
  enableConnectionFilter: 'boolean',
19
19
  enableLtree: 'boolean',
20
20
  enableLlm: 'boolean',
21
+ enableRealtime: 'boolean',
21
22
  options: 'json',
22
23
  };
23
24
  const usage = '\ndatabase-setting <command>\n\nCommands:\n list List databaseSetting records\n find-first Find first matching databaseSetting record\n get Get a databaseSetting by ID\n create Create a new databaseSetting\n update Update an existing databaseSetting\n delete Delete a databaseSetting\n\nList Options:\n --limit <n> Max number of records to return (forward pagination)\n --last <n> Number of records from the end (backward pagination)\n --after <cursor> Cursor for forward pagination\n --before <cursor> Cursor for backward pagination\n --offset <n> Number of records to skip\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.<f>.<op> Condition filter (dot-notation)\n --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.<f>.<op> Condition filter (dot-notation)\n\n --help, -h Show this help message\n';
@@ -73,6 +74,7 @@ async function handleList(argv, _prompter) {
73
74
  enableConnectionFilter: true,
74
75
  enableLtree: true,
75
76
  enableLlm: true,
77
+ enableRealtime: true,
76
78
  options: true,
77
79
  };
78
80
  const findManyArgs = parseFindManyArgs(argv, defaultSelect);
@@ -102,6 +104,7 @@ async function handleFindFirst(argv, _prompter) {
102
104
  enableConnectionFilter: true,
103
105
  enableLtree: true,
104
106
  enableLlm: true,
107
+ enableRealtime: true,
105
108
  options: true,
106
109
  };
107
110
  const findFirstArgs = parseFindFirstArgs(argv, defaultSelect);
@@ -143,6 +146,7 @@ async function handleGet(argv, prompter) {
143
146
  enableConnectionFilter: true,
144
147
  enableLtree: true,
145
148
  enableLlm: true,
149
+ enableRealtime: true,
146
150
  options: true,
147
151
  },
148
152
  })
@@ -229,6 +233,13 @@ async function handleCreate(argv, prompter) {
229
233
  required: false,
230
234
  skipPrompt: true,
231
235
  },
236
+ {
237
+ type: 'boolean',
238
+ name: 'enableRealtime',
239
+ message: 'enableRealtime',
240
+ required: false,
241
+ skipPrompt: true,
242
+ },
232
243
  {
233
244
  type: 'json',
234
245
  name: 'options',
@@ -253,6 +264,7 @@ async function handleCreate(argv, prompter) {
253
264
  enableConnectionFilter: cleanedData.enableConnectionFilter,
254
265
  enableLtree: cleanedData.enableLtree,
255
266
  enableLlm: cleanedData.enableLlm,
267
+ enableRealtime: cleanedData.enableRealtime,
256
268
  options: cleanedData.options,
257
269
  },
258
270
  select: {
@@ -267,6 +279,7 @@ async function handleCreate(argv, prompter) {
267
279
  enableConnectionFilter: true,
268
280
  enableLtree: true,
269
281
  enableLlm: true,
282
+ enableRealtime: true,
270
283
  options: true,
271
284
  },
272
285
  })
@@ -359,6 +372,13 @@ async function handleUpdate(argv, prompter) {
359
372
  required: false,
360
373
  skipPrompt: true,
361
374
  },
375
+ {
376
+ type: 'boolean',
377
+ name: 'enableRealtime',
378
+ message: 'enableRealtime',
379
+ required: false,
380
+ skipPrompt: true,
381
+ },
362
382
  {
363
383
  type: 'json',
364
384
  name: 'options',
@@ -386,6 +406,7 @@ async function handleUpdate(argv, prompter) {
386
406
  enableConnectionFilter: cleanedData.enableConnectionFilter,
387
407
  enableLtree: cleanedData.enableLtree,
388
408
  enableLlm: cleanedData.enableLlm,
409
+ enableRealtime: cleanedData.enableRealtime,
389
410
  options: cleanedData.options,
390
411
  },
391
412
  select: {
@@ -400,6 +421,7 @@ async function handleUpdate(argv, prompter) {
400
421
  enableConnectionFilter: true,
401
422
  enableLtree: true,
402
423
  enableLlm: true,
424
+ enableRealtime: true,
403
425
  options: true,
404
426
  },
405
427
  })
@@ -0,0 +1,8 @@
1
+ /**
2
+ * CLI command for mutation provisionCheckConstraint
3
+ * @generated by @constructive-io/graphql-codegen
4
+ * DO NOT EDIT - changes will be overwritten
5
+ */
6
+ import { CLIOptions, Inquirerer } from 'inquirerer';
7
+ declare const _default: (argv: Partial<Record<string, unknown>>, prompter: Inquirerer, _options: CLIOptions) => Promise<void>;
8
+ export default _default;
@@ -0,0 +1,34 @@
1
+ import { getClient } from '../executor';
2
+ import { unflattenDotNotation, buildSelectFromPaths } from '../utils';
3
+ export default async (argv, prompter, _options) => {
4
+ try {
5
+ if (argv.help || argv.h) {
6
+ console.log('provision-check-constraint - Creates a check constraint on a table from a $type + data blueprint definition. Supports: CheckOneOf (enum validation via = ANY(ARRAY[...])), CheckGreaterThan (single-column > value or cross-column), CheckLessThan (single-column < value or cross-column), CheckNotEqual (cross-column inequality). Builds AST expressions via ast_helpers and inserts into metaschema_public.check_constraint. Graceful: skips if a constraint with the same name already exists.\n\nUsage: provision-check-constraint [OPTIONS]\n');
7
+ process.exit(0);
8
+ }
9
+ const answers = await prompter.prompt(argv, [
10
+ {
11
+ type: 'text',
12
+ name: 'input',
13
+ message: 'The exclusive input argument for this mutation. An object type, make sure to see documentation for this object\u2019s fields.',
14
+ required: true,
15
+ },
16
+ ]);
17
+ const client = getClient();
18
+ const parsedAnswers = unflattenDotNotation(answers);
19
+ const selectFields = buildSelectFromPaths(argv.select ?? 'clientMutationId');
20
+ const result = await client.mutation
21
+ .provisionCheckConstraint(parsedAnswers, {
22
+ select: selectFields,
23
+ })
24
+ .execute();
25
+ console.log(JSON.stringify(result, null, 2));
26
+ }
27
+ catch (error) {
28
+ console.error('Failed: provisionCheckConstraint');
29
+ if (error instanceof Error) {
30
+ console.error(error.message);
31
+ }
32
+ process.exit(1);
33
+ }
34
+ };
@@ -203,6 +203,7 @@ import copyTemplateToBlueprintCmd from './commands/copy-template-to-blueprint';
203
203
  import provisionSpatialRelationCmd from './commands/provision-spatial-relation';
204
204
  import bootstrapUserCmd from './commands/bootstrap-user';
205
205
  import setFieldOrderCmd from './commands/set-field-order';
206
+ import provisionCheckConstraintCmd from './commands/provision-check-constraint';
206
207
  import provisionUniqueConstraintCmd from './commands/provision-unique-constraint';
207
208
  import provisionFullTextSearchCmd from './commands/provision-full-text-search';
208
209
  import provisionIndexCmd from './commands/provision-index';
@@ -425,6 +426,7 @@ const createCommandMap = () => ({
425
426
  'provision-spatial-relation': provisionSpatialRelationCmd,
426
427
  'bootstrap-user': bootstrapUserCmd,
427
428
  'set-field-order': setFieldOrderCmd,
429
+ 'provision-check-constraint': provisionCheckConstraintCmd,
428
430
  'provision-unique-constraint': provisionUniqueConstraintCmd,
429
431
  'provision-full-text-search': provisionFullTextSearchCmd,
430
432
  'provision-index': provisionIndexCmd,
@@ -448,7 +450,7 @@ const createCommandMap = () => ({
448
450
  'provision-table': provisionTableCmd,
449
451
  'provision-bucket': provisionBucketCmd,
450
452
  });
451
- const usage = "\ncsdk <command>\n\nCommands:\n context Manage API contexts\n auth Manage authentication\n org-get-managers-record orgGetManagersRecord CRUD operations\n org-get-subordinates-record orgGetSubordinatesRecord CRUD operations\n get-all-record getAllRecord CRUD operations\n app-permission appPermission CRUD operations\n org-permission orgPermission CRUD operations\n object object CRUD operations\n app-level-requirement appLevelRequirement CRUD operations\n database database CRUD operations\n schema schema CRUD operations\n table table CRUD operations\n check-constraint checkConstraint CRUD operations\n field field CRUD operations\n spatial-relation spatialRelation CRUD operations\n partition partition CRUD operations\n foreign-key-constraint foreignKeyConstraint CRUD operations\n full-text-search fullTextSearch CRUD operations\n index index CRUD operations\n policy policy CRUD operations\n primary-key-constraint primaryKeyConstraint CRUD operations\n table-grant tableGrant CRUD operations\n trigger trigger CRUD operations\n unique-constraint uniqueConstraint CRUD operations\n view view CRUD operations\n view-table viewTable CRUD operations\n view-grant viewGrant CRUD operations\n view-rule viewRule CRUD operations\n embedding-chunk embeddingChunk CRUD operations\n secure-table-provision secureTableProvision CRUD operations\n relation-provision relationProvision CRUD operations\n session-secrets-module sessionSecretsModule CRUD operations\n identity-providers-module identityProvidersModule CRUD operations\n realtime-module realtimeModule CRUD operations\n schema-grant schemaGrant CRUD operations\n default-privilege defaultPrivilege CRUD operations\n enum enum CRUD operations\n function function CRUD operations\n api-schema apiSchema CRUD operations\n api-module apiModule CRUD operations\n domain domain CRUD operations\n site-metadatum siteMetadatum CRUD operations\n site-module siteModule CRUD operations\n site-theme siteTheme CRUD operations\n cors-setting corsSetting CRUD operations\n trigger-function triggerFunction CRUD operations\n database-transfer databaseTransfer CRUD operations\n api api CRUD operations\n site site CRUD operations\n app app CRUD operations\n api-setting apiSetting CRUD operations\n connected-accounts-module connectedAccountsModule CRUD operations\n crypto-addresses-module cryptoAddressesModule CRUD operations\n crypto-auth-module cryptoAuthModule CRUD operations\n default-ids-module defaultIdsModule CRUD operations\n denormalized-table-field denormalizedTableField CRUD operations\n emails-module emailsModule CRUD operations\n encrypted-secrets-module encryptedSecretsModule CRUD operations\n invites-module invitesModule CRUD operations\n levels-module levelsModule CRUD operations\n limits-module limitsModule CRUD operations\n membership-types-module membershipTypesModule CRUD operations\n memberships-module membershipsModule CRUD operations\n permissions-module permissionsModule CRUD operations\n phone-numbers-module phoneNumbersModule CRUD operations\n profiles-module profilesModule CRUD operations\n secrets-module secretsModule CRUD operations\n sessions-module sessionsModule CRUD operations\n user-auth-module userAuthModule CRUD operations\n users-module usersModule CRUD operations\n blueprint blueprint CRUD operations\n blueprint-template blueprintTemplate CRUD operations\n blueprint-construction blueprintConstruction CRUD operations\n storage-module storageModule CRUD operations\n entity-type-provision entityTypeProvision CRUD operations\n webauthn-credentials-module webauthnCredentialsModule CRUD operations\n webauthn-auth-module webauthnAuthModule CRUD operations\n notifications-module notificationsModule CRUD operations\n database-provision-module databaseProvisionModule CRUD operations\n app-admin-grant appAdminGrant CRUD operations\n app-owner-grant appOwnerGrant CRUD operations\n app-grant appGrant CRUD operations\n org-membership orgMembership CRUD operations\n org-member orgMember CRUD operations\n org-admin-grant orgAdminGrant CRUD operations\n org-owner-grant orgOwnerGrant CRUD operations\n org-member-profile orgMemberProfile CRUD operations\n org-grant orgGrant CRUD operations\n org-chart-edge orgChartEdge CRUD operations\n org-chart-edge-grant orgChartEdgeGrant CRUD operations\n org-permission-default orgPermissionDefault CRUD operations\n app-limit appLimit CRUD operations\n app-limit-credit appLimitCredit CRUD operations\n app-limit-credit-code-item appLimitCreditCodeItem CRUD operations\n app-limit-credit-redemption appLimitCreditRedemption CRUD operations\n org-limit orgLimit CRUD operations\n org-limit-credit orgLimitCredit CRUD operations\n org-limit-aggregate orgLimitAggregate CRUD operations\n app-step appStep CRUD operations\n app-achievement appAchievement CRUD operations\n app-level appLevel CRUD operations\n email email CRUD operations\n phone-number phoneNumber CRUD operations\n crypto-address cryptoAddress CRUD operations\n webauthn-credential webauthnCredential CRUD operations\n app-invite appInvite CRUD operations\n app-claimed-invite appClaimedInvite CRUD operations\n org-invite orgInvite CRUD operations\n org-claimed-invite orgClaimedInvite CRUD operations\n audit-log auditLog CRUD operations\n agent-thread agentThread CRUD operations\n agent-message agentMessage CRUD operations\n agent-task agentTask CRUD operations\n role-type roleType CRUD operations\n identity-provider identityProvider CRUD operations\n ref ref CRUD operations\n store store CRUD operations\n app-permission-default appPermissionDefault CRUD operations\n app-limit-credit-code appLimitCreditCode CRUD operations\n app-limit-caps-default appLimitCapsDefault CRUD operations\n org-limit-caps-default orgLimitCapsDefault CRUD operations\n app-limit-cap appLimitCap CRUD operations\n org-limit-cap orgLimitCap CRUD operations\n membership-type membershipType CRUD operations\n migrate-file migrateFile CRUD operations\n devices-module devicesModule CRUD operations\n node-type-registry nodeTypeRegistry CRUD operations\n app-limit-default appLimitDefault CRUD operations\n org-limit-default orgLimitDefault CRUD operations\n user-connected-account userConnectedAccount CRUD operations\n commit commit CRUD operations\n pubkey-setting pubkeySetting CRUD operations\n rate-limits-module rateLimitsModule CRUD operations\n usage-snapshot usageSnapshot CRUD operations\n app-membership-default appMembershipDefault CRUD operations\n org-membership-default orgMembershipDefault CRUD operations\n rls-setting rlsSetting CRUD operations\n app-limit-event appLimitEvent CRUD operations\n org-limit-event orgLimitEvent CRUD operations\n rls-module rlsModule CRUD operations\n database-setting databaseSetting CRUD operations\n plans-module plansModule CRUD operations\n sql-action sqlAction CRUD operations\n billing-module billingModule CRUD operations\n ast-migration astMigration CRUD operations\n user user CRUD operations\n org-membership-setting orgMembershipSetting CRUD operations\n webauthn-setting webauthnSetting CRUD operations\n app-membership appMembership CRUD operations\n billing-provider-module billingProviderModule CRUD operations\n hierarchy-module hierarchyModule CRUD operations\n current-user-id currentUserId\n current-user-agent currentUserAgent\n current-ip-address currentIpAddress\n require-step-up requireStepUp\n app-permissions-get-padded-mask appPermissionsGetPaddedMask\n org-permissions-get-padded-mask orgPermissionsGetPaddedMask\n steps-achieved stepsAchieved\n rev-parse revParse\n resolve-blueprint-field Resolves a field_name within a given table_id to a field_id. Throws if no match is found. Used by construct_blueprint to translate user-authored field names (e.g. \"location\") into field UUIDs for downstream provisioning procedures. table_id must already be resolved (via resolve_blueprint_table) before calling this.\n org-is-manager-of orgIsManagerOf\n app-permissions-get-mask appPermissionsGetMask\n org-permissions-get-mask orgPermissionsGetMask\n resolve-blueprint-table Resolves a table_name (with optional schema_name) to a table_id. Resolution order: (1) if schema_name provided, exact lookup via metaschema_public.schema.name + metaschema_public.table; (2) check local table_map (tables created in current blueprint); (3) search metaschema_public.table by name across all schemas; (4) if multiple matches, throw ambiguous error asking for schema_name; (5) if no match, throw not-found error.\n app-permissions-get-mask-by-names appPermissionsGetMaskByNames\n org-permissions-get-mask-by-names orgPermissionsGetMaskByNames\n app-permissions-get-by-mask Reads and enables pagination through a set of `AppPermission`.\n org-permissions-get-by-mask Reads and enables pagination through a set of `OrgPermission`.\n get-all-objects-from-root Reads and enables pagination through a set of `Object`.\n get-path-objects-from-root Reads and enables pagination through a set of `Object`.\n get-object-at-path getObjectAtPath\n steps-required Reads and enables pagination through a set of `AppLevelRequirement`.\n current-user currentUser\n send-account-deletion-email sendAccountDeletionEmail\n sign-out signOut\n accept-database-transfer acceptDatabaseTransfer\n cancel-database-transfer cancelDatabaseTransfer\n reject-database-transfer rejectDatabaseTransfer\n disconnect-account disconnectAccount\n revoke-api-key revokeApiKey\n revoke-session revokeSession\n verify-password verifyPassword\n verify-totp verifyTotp\n submit-app-invite-code submitAppInviteCode\n submit-org-invite-code submitOrgInviteCode\n check-password checkPassword\n confirm-delete-account confirmDeleteAccount\n set-password setPassword\n verify-email verifyEmail\n freeze-objects freezeObjects\n init-empty-repo initEmptyRepo\n construct-blueprint Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Six phases: (0) entity_type_provision for each membership_type entry \u2014 provisions entity tables, membership modules, and security, (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints are deferred), (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level indexes/fts/unique_constraints are deferred to phases 3-5 so they can reference columns created by relations in phase 2. Returns the construction record ID on success, NULL on failure.\n provision-new-user provisionNewUser\n reset-password resetPassword\n remove-node-at-path removeNodeAtPath\n copy-template-to-blueprint Creates a new blueprint by copying a template definition. Checks visibility: owners can always copy their own templates, others require public visibility. Increments the template copy_count. Returns the new blueprint ID.\n provision-spatial-relation Idempotent provisioner for metaschema_public.spatial_relation. Inserts a row declaring a spatial predicate between two geometry/geography columns (owner and target). Called from construct_blueprint when a relation entry has $type=RelationSpatial. Graceful: re-running with the same (source_table_id, name) returns the existing id without modifying the row. Operator whitelist and st_dwithin \u2194 param_name pairing are enforced by the spatial_relation table CHECKs. Both fields must already exist \u2014 this is a metadata-only insert.\n bootstrap-user bootstrapUser\n set-field-order setFieldOrder\n provision-unique-constraint Creates a unique constraint on a table. Accepts a jsonb definition with columns (array of field names). Graceful: skips if the exact same unique constraint already exists.\n provision-full-text-search Creates a full-text search configuration on a table. Accepts a jsonb definition with field (tsvector column name) and sources (array of {field, weight, lang}). Graceful: skips if FTS config already exists for the same (table_id, field_id). Returns the fts_id.\n provision-index Creates an index on a table. Accepts a jsonb definition with columns (array of names or single column string), access_method (default BTREE), is_unique, op_classes, options, and name (auto-generated if omitted). Graceful: skips if an index with the same (table_id, field_ids, access_method) already exists. Returns the index_id.\n set-data-at-path setDataAtPath\n set-props-and-commit setPropsAndCommit\n provision-database-with-user provisionDatabaseWithUser\n insert-node-at-path insertNodeAtPath\n update-node-at-path updateNodeAtPath\n set-and-commit setAndCommit\n provision-relation Composable relation provisioning: creates FK fields, indexes, unique constraints, and junction tables depending on the relation_type. Supports RelationBelongsTo, RelationHasOne, RelationHasMany, and RelationManyToMany. ManyToMany uses provision_table() internally for junction table creation with full node/grant/policy support. All operations are graceful (skip existing). Returns (out_field_id, out_junction_table_id, out_source_field_id, out_target_field_id).\n apply-rls applyRls\n sign-in-cross-origin signInCrossOrigin\n create-user-database Creates a new user database with all required modules, permissions, and RLS policies.\n\nParameters:\n - database_name: Name for the new database (required)\n - owner_id: UUID of the owner user (required)\n - include_invites: Include invite system (default: true)\n - include_groups: Include group-level memberships (default: false)\n - include_levels: Include levels/achievements (default: false)\n - bitlen: Bit length for permission masks (default: 64)\n - tokens_expiration: Token expiration interval (default: 30 days)\n\nReturns the database_id UUID of the newly created database.\n\nExample usage:\n SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid);\n SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid, true, true); -- with invites and groups\n\n extend-token-expires extendTokenExpires\n create-api-key createApiKey\n send-verification-email sendVerificationEmail\n forgot-password forgotPassword\n sign-up signUp\n request-cross-origin-token requestCrossOriginToken\n sign-in signIn\n provision-table Composable table provisioning: creates or finds a table, then creates fields (so Data* modules can reference them), applies N nodes (Data* modules), enables RLS, creates grants, creates N policies, and optionally creates table-level indexes/full_text_searches/unique_constraints. All operations are graceful (skip existing). Accepts multiple nodes and multiple policies per call, unlike secure_table_provision which is limited to one of each. Returns (out_table_id, out_fields).\n provision-bucket Provision an S3 bucket for a logical bucket in the database.\nReads the bucket config via RLS, then creates and configures\nthe S3 bucket with the appropriate privacy policies, CORS rules,\nand lifecycle settings.\n\n --help, -h Show this help message\n --version, -v Show version\n";
453
+ const usage = "\ncsdk <command>\n\nCommands:\n context Manage API contexts\n auth Manage authentication\n org-get-managers-record orgGetManagersRecord CRUD operations\n org-get-subordinates-record orgGetSubordinatesRecord CRUD operations\n get-all-record getAllRecord CRUD operations\n app-permission appPermission CRUD operations\n org-permission orgPermission CRUD operations\n object object CRUD operations\n app-level-requirement appLevelRequirement CRUD operations\n database database CRUD operations\n schema schema CRUD operations\n table table CRUD operations\n check-constraint checkConstraint CRUD operations\n field field CRUD operations\n spatial-relation spatialRelation CRUD operations\n partition partition CRUD operations\n foreign-key-constraint foreignKeyConstraint CRUD operations\n full-text-search fullTextSearch CRUD operations\n index index CRUD operations\n policy policy CRUD operations\n primary-key-constraint primaryKeyConstraint CRUD operations\n table-grant tableGrant CRUD operations\n trigger trigger CRUD operations\n unique-constraint uniqueConstraint CRUD operations\n view view CRUD operations\n view-table viewTable CRUD operations\n view-grant viewGrant CRUD operations\n view-rule viewRule CRUD operations\n embedding-chunk embeddingChunk CRUD operations\n secure-table-provision secureTableProvision CRUD operations\n relation-provision relationProvision CRUD operations\n session-secrets-module sessionSecretsModule CRUD operations\n identity-providers-module identityProvidersModule CRUD operations\n realtime-module realtimeModule CRUD operations\n schema-grant schemaGrant CRUD operations\n default-privilege defaultPrivilege CRUD operations\n enum enum CRUD operations\n function function CRUD operations\n api-schema apiSchema CRUD operations\n api-module apiModule CRUD operations\n domain domain CRUD operations\n site-metadatum siteMetadatum CRUD operations\n site-module siteModule CRUD operations\n site-theme siteTheme CRUD operations\n cors-setting corsSetting CRUD operations\n trigger-function triggerFunction CRUD operations\n database-transfer databaseTransfer CRUD operations\n api api CRUD operations\n site site CRUD operations\n app app CRUD operations\n api-setting apiSetting CRUD operations\n connected-accounts-module connectedAccountsModule CRUD operations\n crypto-addresses-module cryptoAddressesModule CRUD operations\n crypto-auth-module cryptoAuthModule CRUD operations\n default-ids-module defaultIdsModule CRUD operations\n denormalized-table-field denormalizedTableField CRUD operations\n emails-module emailsModule CRUD operations\n encrypted-secrets-module encryptedSecretsModule CRUD operations\n invites-module invitesModule CRUD operations\n levels-module levelsModule CRUD operations\n limits-module limitsModule CRUD operations\n membership-types-module membershipTypesModule CRUD operations\n memberships-module membershipsModule CRUD operations\n permissions-module permissionsModule CRUD operations\n phone-numbers-module phoneNumbersModule CRUD operations\n profiles-module profilesModule CRUD operations\n secrets-module secretsModule CRUD operations\n sessions-module sessionsModule CRUD operations\n user-auth-module userAuthModule CRUD operations\n users-module usersModule CRUD operations\n blueprint blueprint CRUD operations\n blueprint-template blueprintTemplate CRUD operations\n blueprint-construction blueprintConstruction CRUD operations\n storage-module storageModule CRUD operations\n entity-type-provision entityTypeProvision CRUD operations\n webauthn-credentials-module webauthnCredentialsModule CRUD operations\n webauthn-auth-module webauthnAuthModule CRUD operations\n notifications-module notificationsModule CRUD operations\n database-provision-module databaseProvisionModule CRUD operations\n app-admin-grant appAdminGrant CRUD operations\n app-owner-grant appOwnerGrant CRUD operations\n app-grant appGrant CRUD operations\n org-membership orgMembership CRUD operations\n org-member orgMember CRUD operations\n org-admin-grant orgAdminGrant CRUD operations\n org-owner-grant orgOwnerGrant CRUD operations\n org-member-profile orgMemberProfile CRUD operations\n org-grant orgGrant CRUD operations\n org-chart-edge orgChartEdge CRUD operations\n org-chart-edge-grant orgChartEdgeGrant CRUD operations\n org-permission-default orgPermissionDefault CRUD operations\n app-limit appLimit CRUD operations\n app-limit-credit appLimitCredit CRUD operations\n app-limit-credit-code-item appLimitCreditCodeItem CRUD operations\n app-limit-credit-redemption appLimitCreditRedemption CRUD operations\n org-limit orgLimit CRUD operations\n org-limit-credit orgLimitCredit CRUD operations\n org-limit-aggregate orgLimitAggregate CRUD operations\n app-step appStep CRUD operations\n app-achievement appAchievement CRUD operations\n app-level appLevel CRUD operations\n email email CRUD operations\n phone-number phoneNumber CRUD operations\n crypto-address cryptoAddress CRUD operations\n webauthn-credential webauthnCredential CRUD operations\n app-invite appInvite CRUD operations\n app-claimed-invite appClaimedInvite CRUD operations\n org-invite orgInvite CRUD operations\n org-claimed-invite orgClaimedInvite CRUD operations\n audit-log auditLog CRUD operations\n agent-thread agentThread CRUD operations\n agent-message agentMessage CRUD operations\n agent-task agentTask CRUD operations\n role-type roleType CRUD operations\n identity-provider identityProvider CRUD operations\n ref ref CRUD operations\n store store CRUD operations\n app-permission-default appPermissionDefault CRUD operations\n app-limit-credit-code appLimitCreditCode CRUD operations\n app-limit-caps-default appLimitCapsDefault CRUD operations\n org-limit-caps-default orgLimitCapsDefault CRUD operations\n app-limit-cap appLimitCap CRUD operations\n org-limit-cap orgLimitCap CRUD operations\n membership-type membershipType CRUD operations\n migrate-file migrateFile CRUD operations\n devices-module devicesModule CRUD operations\n node-type-registry nodeTypeRegistry CRUD operations\n app-limit-default appLimitDefault CRUD operations\n org-limit-default orgLimitDefault CRUD operations\n user-connected-account userConnectedAccount CRUD operations\n commit commit CRUD operations\n pubkey-setting pubkeySetting CRUD operations\n rate-limits-module rateLimitsModule CRUD operations\n usage-snapshot usageSnapshot CRUD operations\n app-membership-default appMembershipDefault CRUD operations\n org-membership-default orgMembershipDefault CRUD operations\n rls-setting rlsSetting CRUD operations\n app-limit-event appLimitEvent CRUD operations\n org-limit-event orgLimitEvent CRUD operations\n rls-module rlsModule CRUD operations\n database-setting databaseSetting CRUD operations\n plans-module plansModule CRUD operations\n sql-action sqlAction CRUD operations\n billing-module billingModule CRUD operations\n ast-migration astMigration CRUD operations\n user user CRUD operations\n org-membership-setting orgMembershipSetting CRUD operations\n webauthn-setting webauthnSetting CRUD operations\n app-membership appMembership CRUD operations\n billing-provider-module billingProviderModule CRUD operations\n hierarchy-module hierarchyModule CRUD operations\n current-user-id currentUserId\n current-user-agent currentUserAgent\n current-ip-address currentIpAddress\n require-step-up requireStepUp\n app-permissions-get-padded-mask appPermissionsGetPaddedMask\n org-permissions-get-padded-mask orgPermissionsGetPaddedMask\n steps-achieved stepsAchieved\n rev-parse revParse\n resolve-blueprint-field Resolves a field_name within a given table_id to a field_id. Throws if no match is found. Used by construct_blueprint to translate user-authored field names (e.g. \"location\") into field UUIDs for downstream provisioning procedures. table_id must already be resolved (via resolve_blueprint_table) before calling this.\n org-is-manager-of orgIsManagerOf\n app-permissions-get-mask appPermissionsGetMask\n org-permissions-get-mask orgPermissionsGetMask\n resolve-blueprint-table Resolves a table_name (with optional schema_name) to a table_id. Resolution order: (1) if schema_name provided, exact lookup via metaschema_public.schema.name + metaschema_public.table; (2) check local table_map (tables created in current blueprint); (3) search metaschema_public.table by name across all schemas; (4) if multiple matches, throw ambiguous error asking for schema_name; (5) if no match, throw not-found error.\n app-permissions-get-mask-by-names appPermissionsGetMaskByNames\n org-permissions-get-mask-by-names orgPermissionsGetMaskByNames\n app-permissions-get-by-mask Reads and enables pagination through a set of `AppPermission`.\n org-permissions-get-by-mask Reads and enables pagination through a set of `OrgPermission`.\n get-all-objects-from-root Reads and enables pagination through a set of `Object`.\n get-path-objects-from-root Reads and enables pagination through a set of `Object`.\n get-object-at-path getObjectAtPath\n steps-required Reads and enables pagination through a set of `AppLevelRequirement`.\n current-user currentUser\n send-account-deletion-email sendAccountDeletionEmail\n sign-out signOut\n accept-database-transfer acceptDatabaseTransfer\n cancel-database-transfer cancelDatabaseTransfer\n reject-database-transfer rejectDatabaseTransfer\n disconnect-account disconnectAccount\n revoke-api-key revokeApiKey\n revoke-session revokeSession\n verify-password verifyPassword\n verify-totp verifyTotp\n submit-app-invite-code submitAppInviteCode\n submit-org-invite-code submitOrgInviteCode\n check-password checkPassword\n confirm-delete-account confirmDeleteAccount\n set-password setPassword\n verify-email verifyEmail\n freeze-objects freezeObjects\n init-empty-repo initEmptyRepo\n construct-blueprint Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Seven phases: (0) entity_type_provision for each membership_type entry \u2014 provisions entity tables, membership modules, and security, (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred), (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID on success, NULL on failure.\n provision-new-user provisionNewUser\n reset-password resetPassword\n remove-node-at-path removeNodeAtPath\n copy-template-to-blueprint Creates a new blueprint by copying a template definition. Checks visibility: owners can always copy their own templates, others require public visibility. Increments the template copy_count. Returns the new blueprint ID.\n provision-spatial-relation Idempotent provisioner for metaschema_public.spatial_relation. Inserts a row declaring a spatial predicate between two geometry/geography columns (owner and target). Called from construct_blueprint when a relation entry has $type=RelationSpatial. Graceful: re-running with the same (source_table_id, name) returns the existing id without modifying the row. Operator whitelist and st_dwithin \u2194 param_name pairing are enforced by the spatial_relation table CHECKs. Both fields must already exist \u2014 this is a metadata-only insert.\n bootstrap-user bootstrapUser\n set-field-order setFieldOrder\n provision-check-constraint Creates a check constraint on a table from a $type + data blueprint definition. Supports: CheckOneOf (enum validation via = ANY(ARRAY[...])), CheckGreaterThan (single-column > value or cross-column), CheckLessThan (single-column < value or cross-column), CheckNotEqual (cross-column inequality). Builds AST expressions via ast_helpers and inserts into metaschema_public.check_constraint. Graceful: skips if a constraint with the same name already exists.\n provision-unique-constraint Creates a unique constraint on a table. Accepts a jsonb definition with columns (array of field names). Graceful: skips if the exact same unique constraint already exists.\n provision-full-text-search Creates a full-text search configuration on a table. Accepts a jsonb definition with field (tsvector column name) and sources (array of {field, weight, lang}). Graceful: skips if FTS config already exists for the same (table_id, field_id). Returns the fts_id.\n provision-index Creates an index on a table. Accepts a jsonb definition with columns (array of names or single column string), access_method (default BTREE), is_unique, op_classes, options, and name (auto-generated if omitted). Graceful: skips if an index with the same (table_id, field_ids, access_method) already exists. Returns the index_id.\n set-data-at-path setDataAtPath\n set-props-and-commit setPropsAndCommit\n provision-database-with-user provisionDatabaseWithUser\n insert-node-at-path insertNodeAtPath\n update-node-at-path updateNodeAtPath\n set-and-commit setAndCommit\n provision-relation Composable relation provisioning: creates FK fields, indexes, unique constraints, and junction tables depending on the relation_type. Supports RelationBelongsTo, RelationHasOne, RelationHasMany, and RelationManyToMany. ManyToMany uses provision_table() internally for junction table creation with full node/grant/policy support. All operations are graceful (skip existing). Returns (out_field_id, out_junction_table_id, out_source_field_id, out_target_field_id).\n apply-rls applyRls\n sign-in-cross-origin signInCrossOrigin\n create-user-database Creates a new user database with all required modules, permissions, and RLS policies.\n\nParameters:\n - database_name: Name for the new database (required)\n - owner_id: UUID of the owner user (required)\n - include_invites: Include invite system (default: true)\n - include_groups: Include group-level memberships (default: false)\n - include_levels: Include levels/achievements (default: false)\n - bitlen: Bit length for permission masks (default: 64)\n - tokens_expiration: Token expiration interval (default: 30 days)\n\nReturns the database_id UUID of the newly created database.\n\nExample usage:\n SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid);\n SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid, true, true); -- with invites and groups\n\n extend-token-expires extendTokenExpires\n create-api-key createApiKey\n send-verification-email sendVerificationEmail\n forgot-password forgotPassword\n sign-up signUp\n request-cross-origin-token requestCrossOriginToken\n sign-in signIn\n provision-table Composable table provisioning: creates or finds a table, then creates fields (so Data* modules can reference them), applies N nodes (Data* modules), enables RLS, creates grants, creates N policies, and optionally creates table-level indexes/full_text_searches/unique_constraints. All operations are graceful (skip existing). Accepts multiple nodes and multiple policies per call, unlike secure_table_provision which is limited to one of each. Returns (out_table_id, out_fields).\n provision-bucket Provision an S3 bucket for a logical bucket in the database.\nReads the bucket config via RLS, then creates and configures\nthe S3 bucket with the appropriate privacy policies, CORS rules,\nand lifecycle settings.\n\n --help, -h Show this help message\n --version, -v Show version\n";
452
454
  export const commands = async (argv, prompter, options) => {
453
455
  if (argv.help || argv.h) {
454
456
  console.log(usage);
@@ -392,6 +392,11 @@ export declare function getClient(contextName?: string): {
392
392
  } & import("..").StrictSelect<S, import("../orm/input-types").SetFieldOrderPayloadSelect>) => import("..").QueryBuilder<{
393
393
  setFieldOrder: import("..").InferSelectResult<import("../orm/input-types").SetFieldOrderPayload, S> | null;
394
394
  }>;
395
+ provisionCheckConstraint: <S extends import("../orm/input-types").ProvisionCheckConstraintPayloadSelect>(args: import("../orm/mutation").ProvisionCheckConstraintVariables, options: {
396
+ select: S;
397
+ } & import("..").StrictSelect<S, import("../orm/input-types").ProvisionCheckConstraintPayloadSelect>) => import("..").QueryBuilder<{
398
+ provisionCheckConstraint: import("..").InferSelectResult<import("../orm/input-types").ProvisionCheckConstraintPayload, S> | null;
399
+ }>;
395
400
  provisionUniqueConstraint: <S extends import("../orm/input-types").ProvisionUniqueConstraintPayloadSelect>(args: import("../orm/mutation").ProvisionUniqueConstraintVariables, options: {
396
401
  select: S;
397
402
  } & import("..").StrictSelect<S, import("../orm/input-types").ProvisionUniqueConstraintPayloadSelect>) => import("..").QueryBuilder<{
@@ -16,7 +16,7 @@ export class FetchAdapter {
16
16
  constructor(endpoint, headers, fetchFn) {
17
17
  this.endpoint = endpoint;
18
18
  this.headers = headers ?? {};
19
- this.fetchFn = fetchFn ?? createFetch();
19
+ this.fetchFn = (fetchFn ?? createFetch()).bind(globalThis);
20
20
  }
21
21
  async execute(document, variables) {
22
22
  const response = await this.fetchFn(this.endpoint, {
@@ -572,6 +572,11 @@ export declare function createClient(config: OrmClientConfig): {
572
572
  } & import("./select-types").StrictSelect<S, import("./input-types").SetFieldOrderPayloadSelect>) => import("./query-builder").QueryBuilder<{
573
573
  setFieldOrder: import("./select-types").InferSelectResult<import("./input-types").SetFieldOrderPayload, S> | null;
574
574
  }>;
575
+ provisionCheckConstraint: <S extends import("./input-types").ProvisionCheckConstraintPayloadSelect>(args: import("./mutation").ProvisionCheckConstraintVariables, options: {
576
+ select: S;
577
+ } & import("./select-types").StrictSelect<S, import("./input-types").ProvisionCheckConstraintPayloadSelect>) => import("./query-builder").QueryBuilder<{
578
+ provisionCheckConstraint: import("./select-types").InferSelectResult<import("./input-types").ProvisionCheckConstraintPayload, S> | null;
579
+ }>;
575
580
  provisionUniqueConstraint: <S extends import("./input-types").ProvisionUniqueConstraintPayloadSelect>(args: import("./mutation").ProvisionUniqueConstraintVariables, options: {
576
581
  select: S;
577
582
  } & import("./select-types").StrictSelect<S, import("./input-types").ProvisionUniqueConstraintPayloadSelect>) => import("./query-builder").QueryBuilder<{
@@ -1039,6 +1039,8 @@ export interface ApiSetting {
1039
1039
  enableLtree?: boolean | null;
1040
1040
  /** Override: enable LLM/AI integration features (NULL = inherit from database_settings) */
1041
1041
  enableLlm?: boolean | null;
1042
+ /** Override: enable realtime subscriptions (NULL = inherit from database_settings) */
1043
+ enableRealtime?: boolean | null;
1042
1044
  /** Extensible JSON for additional per-API settings that do not have dedicated columns */
1043
1045
  options?: Record<string, unknown> | null;
1044
1046
  }
@@ -2661,6 +2663,8 @@ export interface DatabaseSetting {
2661
2663
  enableLtree?: boolean | null;
2662
2664
  /** Enable LLM/AI integration features in the GraphQL API */
2663
2665
  enableLlm?: boolean | null;
2666
+ /** Enable realtime subscriptions (cursor-tracked change delivery) in the GraphQL API */
2667
+ enableRealtime?: boolean | null;
2664
2668
  /** Extensible JSON for additional settings that do not have dedicated columns */
2665
2669
  options?: Record<string, unknown> | null;
2666
2670
  }
@@ -5580,6 +5584,7 @@ export type ApiSettingSelect = {
5580
5584
  enableConnectionFilter?: boolean;
5581
5585
  enableLtree?: boolean;
5582
5586
  enableLlm?: boolean;
5587
+ enableRealtime?: boolean;
5583
5588
  options?: boolean;
5584
5589
  api?: {
5585
5590
  select: ApiSelect;
@@ -7480,6 +7485,7 @@ export type DatabaseSettingSelect = {
7480
7485
  enableConnectionFilter?: boolean;
7481
7486
  enableLtree?: boolean;
7482
7487
  enableLlm?: boolean;
7488
+ enableRealtime?: boolean;
7483
7489
  options?: boolean;
7484
7490
  database?: {
7485
7491
  select: DatabaseSelect;
@@ -10222,6 +10228,8 @@ export interface ApiSettingFilter {
10222
10228
  enableLtree?: BooleanFilter;
10223
10229
  /** Filter by the object’s `enableLlm` field. */
10224
10230
  enableLlm?: BooleanFilter;
10231
+ /** Filter by the object’s `enableRealtime` field. */
10232
+ enableRealtime?: BooleanFilter;
10225
10233
  /** Filter by the object’s `options` field. */
10226
10234
  options?: JSONFilter;
10227
10235
  /** Checks for all expressions in this list. */
@@ -13358,6 +13366,8 @@ export interface DatabaseSettingFilter {
13358
13366
  enableLtree?: BooleanFilter;
13359
13367
  /** Filter by the object’s `enableLlm` field. */
13360
13368
  enableLlm?: BooleanFilter;
13369
+ /** Filter by the object’s `enableRealtime` field. */
13370
+ enableRealtime?: BooleanFilter;
13361
13371
  /** Filter by the object’s `options` field. */
13362
13372
  options?: JSONFilter;
13363
13373
  /** Checks for all expressions in this list. */
@@ -14168,7 +14178,7 @@ export type DatabaseTransferOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_K
14168
14178
  export type ApiOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'DBNAME_ASC' | 'DBNAME_DESC' | 'ROLE_NAME_ASC' | 'ROLE_NAME_DESC' | 'ANON_ROLE_ASC' | 'ANON_ROLE_DESC' | 'IS_PUBLIC_ASC' | 'IS_PUBLIC_DESC';
14169
14179
  export type SiteOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'TITLE_ASC' | 'TITLE_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' | 'OG_IMAGE_ASC' | 'OG_IMAGE_DESC' | 'FAVICON_ASC' | 'FAVICON_DESC' | 'APPLE_TOUCH_ICON_ASC' | 'APPLE_TOUCH_ICON_DESC' | 'LOGO_ASC' | 'LOGO_DESC' | 'DBNAME_ASC' | 'DBNAME_DESC';
14170
14180
  export type AppOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'SITE_ID_ASC' | 'SITE_ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'APP_IMAGE_ASC' | 'APP_IMAGE_DESC' | 'APP_STORE_LINK_ASC' | 'APP_STORE_LINK_DESC' | 'APP_STORE_ID_ASC' | 'APP_STORE_ID_DESC' | 'APP_ID_PREFIX_ASC' | 'APP_ID_PREFIX_DESC' | 'PLAY_STORE_LINK_ASC' | 'PLAY_STORE_LINK_DESC';
14171
- export type ApiSettingOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'API_ID_ASC' | 'API_ID_DESC' | 'ENABLE_AGGREGATES_ASC' | 'ENABLE_AGGREGATES_DESC' | 'ENABLE_POSTGIS_ASC' | 'ENABLE_POSTGIS_DESC' | 'ENABLE_SEARCH_ASC' | 'ENABLE_SEARCH_DESC' | 'ENABLE_DIRECT_UPLOADS_ASC' | 'ENABLE_DIRECT_UPLOADS_DESC' | 'ENABLE_PRESIGNED_UPLOADS_ASC' | 'ENABLE_PRESIGNED_UPLOADS_DESC' | 'ENABLE_MANY_TO_MANY_ASC' | 'ENABLE_MANY_TO_MANY_DESC' | 'ENABLE_CONNECTION_FILTER_ASC' | 'ENABLE_CONNECTION_FILTER_DESC' | 'ENABLE_LTREE_ASC' | 'ENABLE_LTREE_DESC' | 'ENABLE_LLM_ASC' | 'ENABLE_LLM_DESC' | 'OPTIONS_ASC' | 'OPTIONS_DESC';
14181
+ export type ApiSettingOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'API_ID_ASC' | 'API_ID_DESC' | 'ENABLE_AGGREGATES_ASC' | 'ENABLE_AGGREGATES_DESC' | 'ENABLE_POSTGIS_ASC' | 'ENABLE_POSTGIS_DESC' | 'ENABLE_SEARCH_ASC' | 'ENABLE_SEARCH_DESC' | 'ENABLE_DIRECT_UPLOADS_ASC' | 'ENABLE_DIRECT_UPLOADS_DESC' | 'ENABLE_PRESIGNED_UPLOADS_ASC' | 'ENABLE_PRESIGNED_UPLOADS_DESC' | 'ENABLE_MANY_TO_MANY_ASC' | 'ENABLE_MANY_TO_MANY_DESC' | 'ENABLE_CONNECTION_FILTER_ASC' | 'ENABLE_CONNECTION_FILTER_DESC' | 'ENABLE_LTREE_ASC' | 'ENABLE_LTREE_DESC' | 'ENABLE_LLM_ASC' | 'ENABLE_LLM_DESC' | 'ENABLE_REALTIME_ASC' | 'ENABLE_REALTIME_DESC' | 'OPTIONS_ASC' | 'OPTIONS_DESC';
14172
14182
  export type ConnectedAccountsModuleOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' | 'PRIVATE_SCHEMA_ID_DESC' | 'TABLE_ID_ASC' | 'TABLE_ID_DESC' | 'OWNER_TABLE_ID_ASC' | 'OWNER_TABLE_ID_DESC' | 'TABLE_NAME_ASC' | 'TABLE_NAME_DESC';
14173
14183
  export type CryptoAddressesModuleOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' | 'PRIVATE_SCHEMA_ID_DESC' | 'TABLE_ID_ASC' | 'TABLE_ID_DESC' | 'OWNER_TABLE_ID_ASC' | 'OWNER_TABLE_ID_DESC' | 'TABLE_NAME_ASC' | 'TABLE_NAME_DESC' | 'CRYPTO_NETWORK_ASC' | 'CRYPTO_NETWORK_DESC';
14174
14184
  export type CryptoAuthModuleOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'USERS_TABLE_ID_ASC' | 'USERS_TABLE_ID_DESC' | 'SECRETS_TABLE_ID_ASC' | 'SECRETS_TABLE_ID_DESC' | 'SESSIONS_TABLE_ID_ASC' | 'SESSIONS_TABLE_ID_DESC' | 'SESSION_CREDENTIALS_TABLE_ID_ASC' | 'SESSION_CREDENTIALS_TABLE_ID_DESC' | 'ADDRESSES_TABLE_ID_ASC' | 'ADDRESSES_TABLE_ID_DESC' | 'USER_FIELD_ASC' | 'USER_FIELD_DESC' | 'CRYPTO_NETWORK_ASC' | 'CRYPTO_NETWORK_DESC' | 'SIGN_IN_REQUEST_CHALLENGE_ASC' | 'SIGN_IN_REQUEST_CHALLENGE_DESC' | 'SIGN_IN_RECORD_FAILURE_ASC' | 'SIGN_IN_RECORD_FAILURE_DESC' | 'SIGN_UP_WITH_KEY_ASC' | 'SIGN_UP_WITH_KEY_DESC' | 'SIGN_IN_WITH_CHALLENGE_ASC' | 'SIGN_IN_WITH_CHALLENGE_DESC';
@@ -14258,7 +14268,7 @@ export type RlsSettingOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DES
14258
14268
  export type AppLimitEventOrderBy = 'NATURAL' | 'NAME_ASC' | 'NAME_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' | 'EVENT_TYPE_ASC' | 'EVENT_TYPE_DESC' | 'DELTA_ASC' | 'DELTA_DESC' | 'NUM_BEFORE_ASC' | 'NUM_BEFORE_DESC' | 'NUM_AFTER_ASC' | 'NUM_AFTER_DESC' | 'MAX_AT_EVENT_ASC' | 'MAX_AT_EVENT_DESC' | 'REASON_ASC' | 'REASON_DESC';
14259
14269
  export type OrgLimitEventOrderBy = 'NATURAL' | 'NAME_ASC' | 'NAME_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' | 'EVENT_TYPE_ASC' | 'EVENT_TYPE_DESC' | 'DELTA_ASC' | 'DELTA_DESC' | 'NUM_BEFORE_ASC' | 'NUM_BEFORE_DESC' | 'NUM_AFTER_ASC' | 'NUM_AFTER_DESC' | 'MAX_AT_EVENT_ASC' | 'MAX_AT_EVENT_DESC' | 'REASON_ASC' | 'REASON_DESC';
14260
14270
  export type RlsModuleOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' | 'PRIVATE_SCHEMA_ID_DESC' | 'SESSION_CREDENTIALS_TABLE_ID_ASC' | 'SESSION_CREDENTIALS_TABLE_ID_DESC' | 'SESSIONS_TABLE_ID_ASC' | 'SESSIONS_TABLE_ID_DESC' | 'USERS_TABLE_ID_ASC' | 'USERS_TABLE_ID_DESC' | 'AUTHENTICATE_ASC' | 'AUTHENTICATE_DESC' | 'AUTHENTICATE_STRICT_ASC' | 'AUTHENTICATE_STRICT_DESC' | 'CURRENT_ROLE_ASC' | 'CURRENT_ROLE_DESC' | 'CURRENT_ROLE_ID_ASC' | 'CURRENT_ROLE_ID_DESC';
14261
- export type DatabaseSettingOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'ENABLE_AGGREGATES_ASC' | 'ENABLE_AGGREGATES_DESC' | 'ENABLE_POSTGIS_ASC' | 'ENABLE_POSTGIS_DESC' | 'ENABLE_SEARCH_ASC' | 'ENABLE_SEARCH_DESC' | 'ENABLE_DIRECT_UPLOADS_ASC' | 'ENABLE_DIRECT_UPLOADS_DESC' | 'ENABLE_PRESIGNED_UPLOADS_ASC' | 'ENABLE_PRESIGNED_UPLOADS_DESC' | 'ENABLE_MANY_TO_MANY_ASC' | 'ENABLE_MANY_TO_MANY_DESC' | 'ENABLE_CONNECTION_FILTER_ASC' | 'ENABLE_CONNECTION_FILTER_DESC' | 'ENABLE_LTREE_ASC' | 'ENABLE_LTREE_DESC' | 'ENABLE_LLM_ASC' | 'ENABLE_LLM_DESC' | 'OPTIONS_ASC' | 'OPTIONS_DESC';
14271
+ export type DatabaseSettingOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'ENABLE_AGGREGATES_ASC' | 'ENABLE_AGGREGATES_DESC' | 'ENABLE_POSTGIS_ASC' | 'ENABLE_POSTGIS_DESC' | 'ENABLE_SEARCH_ASC' | 'ENABLE_SEARCH_DESC' | 'ENABLE_DIRECT_UPLOADS_ASC' | 'ENABLE_DIRECT_UPLOADS_DESC' | 'ENABLE_PRESIGNED_UPLOADS_ASC' | 'ENABLE_PRESIGNED_UPLOADS_DESC' | 'ENABLE_MANY_TO_MANY_ASC' | 'ENABLE_MANY_TO_MANY_DESC' | 'ENABLE_CONNECTION_FILTER_ASC' | 'ENABLE_CONNECTION_FILTER_DESC' | 'ENABLE_LTREE_ASC' | 'ENABLE_LTREE_DESC' | 'ENABLE_LLM_ASC' | 'ENABLE_LLM_DESC' | 'ENABLE_REALTIME_ASC' | 'ENABLE_REALTIME_DESC' | 'OPTIONS_ASC' | 'OPTIONS_DESC';
14262
14272
  export type PlansModuleOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' | 'PRIVATE_SCHEMA_ID_DESC' | 'PLANS_TABLE_ID_ASC' | 'PLANS_TABLE_ID_DESC' | 'PLANS_TABLE_NAME_ASC' | 'PLANS_TABLE_NAME_DESC' | 'PLAN_LIMITS_TABLE_ID_ASC' | 'PLAN_LIMITS_TABLE_ID_DESC' | 'PLAN_LIMITS_TABLE_NAME_ASC' | 'PLAN_LIMITS_TABLE_NAME_DESC' | 'PLAN_PRICING_TABLE_ID_ASC' | 'PLAN_PRICING_TABLE_ID_DESC' | 'PLAN_OVERRIDES_TABLE_ID_ASC' | 'PLAN_OVERRIDES_TABLE_ID_DESC' | 'APPLY_PLAN_FUNCTION_ASC' | 'APPLY_PLAN_FUNCTION_DESC' | 'APPLY_PLAN_AGGREGATE_FUNCTION_ASC' | 'APPLY_PLAN_AGGREGATE_FUNCTION_DESC' | 'PREFIX_ASC' | 'PREFIX_DESC';
14263
14273
  export type SqlActionOrderBy = 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'DEPLOY_ASC' | 'DEPLOY_DESC' | 'DEPS_ASC' | 'DEPS_DESC' | 'PAYLOAD_ASC' | 'PAYLOAD_DESC' | 'CONTENT_ASC' | 'CONTENT_DESC' | 'REVERT_ASC' | 'REVERT_DESC' | 'VERIFY_ASC' | 'VERIFY_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'ACTION_ASC' | 'ACTION_DESC' | 'ACTION_ID_ASC' | 'ACTION_ID_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC';
14264
14274
  export type BillingModuleOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' | 'PRIVATE_SCHEMA_ID_DESC' | 'METERS_TABLE_ID_ASC' | 'METERS_TABLE_ID_DESC' | 'METERS_TABLE_NAME_ASC' | 'METERS_TABLE_NAME_DESC' | 'PLAN_SUBSCRIPTIONS_TABLE_ID_ASC' | 'PLAN_SUBSCRIPTIONS_TABLE_ID_DESC' | 'PLAN_SUBSCRIPTIONS_TABLE_NAME_ASC' | 'PLAN_SUBSCRIPTIONS_TABLE_NAME_DESC' | 'LEDGER_TABLE_ID_ASC' | 'LEDGER_TABLE_ID_DESC' | 'LEDGER_TABLE_NAME_ASC' | 'LEDGER_TABLE_NAME_DESC' | 'BALANCES_TABLE_ID_ASC' | 'BALANCES_TABLE_ID_DESC' | 'BALANCES_TABLE_NAME_ASC' | 'BALANCES_TABLE_NAME_DESC' | 'RECORD_USAGE_FUNCTION_ASC' | 'RECORD_USAGE_FUNCTION_DESC' | 'PREFIX_ASC' | 'PREFIX_DESC';
@@ -15817,6 +15827,7 @@ export interface CreateApiSettingInput {
15817
15827
  enableConnectionFilter?: boolean;
15818
15828
  enableLtree?: boolean;
15819
15829
  enableLlm?: boolean;
15830
+ enableRealtime?: boolean;
15820
15831
  options?: Record<string, unknown>;
15821
15832
  };
15822
15833
  }
@@ -15832,6 +15843,7 @@ export interface ApiSettingPatch {
15832
15843
  enableConnectionFilter?: boolean | null;
15833
15844
  enableLtree?: boolean | null;
15834
15845
  enableLlm?: boolean | null;
15846
+ enableRealtime?: boolean | null;
15835
15847
  options?: Record<string, unknown> | null;
15836
15848
  }
15837
15849
  export interface UpdateApiSettingInput {
@@ -18698,6 +18710,7 @@ export interface CreateDatabaseSettingInput {
18698
18710
  enableConnectionFilter?: boolean;
18699
18711
  enableLtree?: boolean;
18700
18712
  enableLlm?: boolean;
18713
+ enableRealtime?: boolean;
18701
18714
  options?: Record<string, unknown>;
18702
18715
  };
18703
18716
  }
@@ -18712,6 +18725,7 @@ export interface DatabaseSettingPatch {
18712
18725
  enableConnectionFilter?: boolean | null;
18713
18726
  enableLtree?: boolean | null;
18714
18727
  enableLlm?: boolean | null;
18728
+ enableRealtime?: boolean | null;
18715
18729
  options?: Record<string, unknown> | null;
18716
18730
  }
18717
18731
  export interface UpdateDatabaseSettingInput {
@@ -19273,6 +19287,12 @@ export interface SetFieldOrderInput {
19273
19287
  clientMutationId?: string;
19274
19288
  fieldIds?: string[];
19275
19289
  }
19290
+ export interface ProvisionCheckConstraintInput {
19291
+ clientMutationId?: string;
19292
+ databaseId?: string;
19293
+ tableId?: string;
19294
+ definition?: Record<string, unknown>;
19295
+ }
19276
19296
  export interface ProvisionUniqueConstraintInput {
19277
19297
  clientMutationId?: string;
19278
19298
  databaseId?: string;
@@ -22912,6 +22932,8 @@ export interface ApiSettingFilter {
22912
22932
  enableLtree?: BooleanFilter;
22913
22933
  /** Filter by the object’s `enableLlm` field. */
22914
22934
  enableLlm?: BooleanFilter;
22935
+ /** Filter by the object’s `enableRealtime` field. */
22936
+ enableRealtime?: BooleanFilter;
22915
22937
  /** Filter by the object’s `options` field. */
22916
22938
  options?: JSONFilter;
22917
22939
  /** Checks for all expressions in this list. */
@@ -26746,6 +26768,8 @@ export interface DatabaseSettingFilter {
26746
26768
  enableLtree?: BooleanFilter;
26747
26769
  /** Filter by the object’s `enableLlm` field. */
26748
26770
  enableLlm?: BooleanFilter;
26771
+ /** Filter by the object’s `enableRealtime` field. */
26772
+ enableRealtime?: BooleanFilter;
26749
26773
  /** Filter by the object’s `options` field. */
26750
26774
  options?: JSONFilter;
26751
26775
  /** Checks for all expressions in this list. */
@@ -27784,6 +27808,12 @@ export interface SetFieldOrderPayload {
27784
27808
  export type SetFieldOrderPayloadSelect = {
27785
27809
  clientMutationId?: boolean;
27786
27810
  };
27811
+ export interface ProvisionCheckConstraintPayload {
27812
+ clientMutationId?: string | null;
27813
+ }
27814
+ export type ProvisionCheckConstraintPayloadSelect = {
27815
+ clientMutationId?: boolean;
27816
+ };
27787
27817
  export interface ProvisionUniqueConstraintPayload {
27788
27818
  clientMutationId?: string | null;
27789
27819
  }