diff --git a/.agents/skills/cli-public/SKILL.md b/.agents/skills/cli-public/SKILL.md index a0e852598..aae01ffca 100644 --- a/.agents/skills/cli-public/SKILL.md +++ b/.agents/skills/cli-public/SKILL.md @@ -194,9 +194,9 @@ See the `references/` directory for detailed per-entity API documentation: - [app-limit-event](references/app-limit-event.md) - [org-limit-event](references/org-limit-event.md) - [rls-module](references/rls-module.md) -- [database-setting](references/database-setting.md) - [plans-module](references/plans-module.md) - [sql-action](references/sql-action.md) +- [database-setting](references/database-setting.md) - [billing-module](references/billing-module.md) - [ast-migration](references/ast-migration.md) - [user](references/user.md) diff --git a/.agents/skills/cli-public/references/api-setting.md b/.agents/skills/cli-public/references/api-setting.md index 767471a60..d9e264060 100644 --- a/.agents/skills/cli-public/references/api-setting.md +++ b/.agents/skills/cli-public/references/api-setting.md @@ -12,8 +12,8 @@ csdk api-setting list --where.. --orderBy csdk api-setting list --limit 10 --after csdk api-setting find-first --where.. csdk api-setting get --id -csdk api-setting create --databaseId --apiId [--enableAggregates ] [--enablePostgis ] [--enableSearch ] [--enableDirectUploads ] [--enablePresignedUploads ] [--enableManyToMany ] [--enableConnectionFilter ] [--enableLtree ] [--enableLlm ] [--enableRealtime ] [--options ] -csdk api-setting update --id [--databaseId ] [--apiId ] [--enableAggregates ] [--enablePostgis ] [--enableSearch ] [--enableDirectUploads ] [--enablePresignedUploads ] [--enableManyToMany ] [--enableConnectionFilter ] [--enableLtree ] [--enableLlm ] [--enableRealtime ] [--options ] +csdk api-setting create --databaseId --apiId [--enableAggregates ] [--enablePostgis ] [--enableSearch ] [--enableDirectUploads ] [--enablePresignedUploads ] [--enableManyToMany ] [--enableConnectionFilter ] [--enableLtree ] [--enableLlm ] [--enableRealtime ] [--enableBulk ] [--options ] +csdk api-setting update --id [--databaseId ] [--apiId ] [--enableAggregates ] [--enablePostgis ] [--enableSearch ] [--enableDirectUploads ] [--enablePresignedUploads ] [--enableManyToMany ] [--enableConnectionFilter ] [--enableLtree ] [--enableLlm ] [--enableRealtime ] [--enableBulk ] [--options ] csdk api-setting delete --id ``` @@ -58,7 +58,7 @@ csdk api-setting list --where.id.equalTo --orderBy ID_ASC ### Create a apiSetting ```bash -csdk api-setting create --databaseId --apiId [--enableAggregates ] [--enablePostgis ] [--enableSearch ] [--enableDirectUploads ] [--enablePresignedUploads ] [--enableManyToMany ] [--enableConnectionFilter ] [--enableLtree ] [--enableLlm ] [--enableRealtime ] [--options ] +csdk api-setting create --databaseId --apiId [--enableAggregates ] [--enablePostgis ] [--enableSearch ] [--enableDirectUploads ] [--enablePresignedUploads ] [--enableManyToMany ] [--enableConnectionFilter ] [--enableLtree ] [--enableLlm ] [--enableRealtime ] [--enableBulk ] [--options ] ``` ### Get a apiSetting by id diff --git a/.agents/skills/cli-public/references/database-setting.md b/.agents/skills/cli-public/references/database-setting.md index 8671d75fe..5ef0ca99e 100644 --- a/.agents/skills/cli-public/references/database-setting.md +++ b/.agents/skills/cli-public/references/database-setting.md @@ -12,8 +12,8 @@ csdk database-setting list --where.. --orderBy csdk database-setting list --limit 10 --after csdk database-setting find-first --where.. csdk database-setting get --id -csdk database-setting create --databaseId [--enableAggregates ] [--enablePostgis ] [--enableSearch ] [--enableDirectUploads ] [--enablePresignedUploads ] [--enableManyToMany ] [--enableConnectionFilter ] [--enableLtree ] [--enableLlm ] [--enableRealtime ] [--options ] -csdk database-setting update --id [--databaseId ] [--enableAggregates ] [--enablePostgis ] [--enableSearch ] [--enableDirectUploads ] [--enablePresignedUploads ] [--enableManyToMany ] [--enableConnectionFilter ] [--enableLtree ] [--enableLlm ] [--enableRealtime ] [--options ] +csdk database-setting create --databaseId [--enableAggregates ] [--enablePostgis ] [--enableSearch ] [--enableDirectUploads ] [--enablePresignedUploads ] [--enableManyToMany ] [--enableConnectionFilter ] [--enableLtree ] [--enableLlm ] [--enableRealtime ] [--enableBulk ] [--options ] +csdk database-setting update --id [--databaseId ] [--enableAggregates ] [--enablePostgis ] [--enableSearch ] [--enableDirectUploads ] [--enablePresignedUploads ] [--enableManyToMany ] [--enableConnectionFilter ] [--enableLtree ] [--enableLlm ] [--enableRealtime ] [--enableBulk ] [--options ] csdk database-setting delete --id ``` @@ -58,7 +58,7 @@ csdk database-setting list --where.id.equalTo --orderBy ID_ASC ### Create a databaseSetting ```bash -csdk database-setting create --databaseId [--enableAggregates ] [--enablePostgis ] [--enableSearch ] [--enableDirectUploads ] [--enablePresignedUploads ] [--enableManyToMany ] [--enableConnectionFilter ] [--enableLtree ] [--enableLlm ] [--enableRealtime ] [--options ] +csdk database-setting create --databaseId [--enableAggregates ] [--enablePostgis ] [--enableSearch ] [--enableDirectUploads ] [--enablePresignedUploads ] [--enableManyToMany ] [--enableConnectionFilter ] [--enableLtree ] [--enableLlm ] [--enableRealtime ] [--enableBulk ] [--options ] ``` ### Get a databaseSetting by id diff --git a/.agents/skills/hooks-public/SKILL.md b/.agents/skills/hooks-public/SKILL.md index a73f6625e..15463f839 100644 --- a/.agents/skills/hooks-public/SKILL.md +++ b/.agents/skills/hooks-public/SKILL.md @@ -175,9 +175,9 @@ See the `references/` directory for detailed per-entity API documentation: - [app-limit-event](references/app-limit-event.md) - [org-limit-event](references/org-limit-event.md) - [rls-module](references/rls-module.md) -- [database-setting](references/database-setting.md) - [plans-module](references/plans-module.md) - [sql-action](references/sql-action.md) +- [database-setting](references/database-setting.md) - [billing-module](references/billing-module.md) - [ast-migration](references/ast-migration.md) - [user](references/user.md) diff --git a/.agents/skills/hooks-public/references/api-setting.md b/.agents/skills/hooks-public/references/api-setting.md index bd7865fe0..aa3763b2b 100644 --- a/.agents/skills/hooks-public/references/api-setting.md +++ b/.agents/skills/hooks-public/references/api-setting.md @@ -7,8 +7,8 @@ Per-API feature flag overrides; NULL columns inherit from database_settings, exp ## Usage ```typescript -useApiSettingsQuery({ selection: { fields: { id: true, databaseId: true, apiId: true, enableAggregates: true, enablePostgis: true, enableSearch: true, enableDirectUploads: true, enablePresignedUploads: true, enableManyToMany: true, enableConnectionFilter: true, enableLtree: true, enableLlm: true, enableRealtime: true, options: true } } }) -useApiSettingQuery({ id: '', selection: { fields: { id: true, databaseId: true, apiId: true, enableAggregates: true, enablePostgis: true, enableSearch: true, enableDirectUploads: true, enablePresignedUploads: true, enableManyToMany: true, enableConnectionFilter: true, enableLtree: true, enableLlm: true, enableRealtime: true, options: true } } }) +useApiSettingsQuery({ selection: { fields: { id: true, databaseId: true, apiId: true, enableAggregates: true, enablePostgis: true, enableSearch: true, enableDirectUploads: true, enablePresignedUploads: true, enableManyToMany: true, enableConnectionFilter: true, enableLtree: true, enableLlm: true, enableRealtime: true, enableBulk: true, options: true } } }) +useApiSettingQuery({ id: '', selection: { fields: { id: true, databaseId: true, apiId: true, enableAggregates: true, enablePostgis: true, enableSearch: true, enableDirectUploads: true, enablePresignedUploads: true, enableManyToMany: true, enableConnectionFilter: true, enableLtree: true, enableLlm: true, enableRealtime: true, enableBulk: true, options: true } } }) useCreateApiSettingMutation({ selection: { fields: { id: true } } }) useUpdateApiSettingMutation({ selection: { fields: { id: true } } }) useDeleteApiSettingMutation({}) @@ -20,7 +20,7 @@ useDeleteApiSettingMutation({}) ```typescript const { data, isLoading } = useApiSettingsQuery({ - selection: { fields: { id: true, databaseId: true, apiId: true, enableAggregates: true, enablePostgis: true, enableSearch: true, enableDirectUploads: true, enablePresignedUploads: true, enableManyToMany: true, enableConnectionFilter: true, enableLtree: true, enableLlm: true, enableRealtime: true, options: true } }, + selection: { fields: { id: true, databaseId: true, apiId: true, enableAggregates: true, enablePostgis: true, enableSearch: true, enableDirectUploads: true, enablePresignedUploads: true, enableManyToMany: true, enableConnectionFilter: true, enableLtree: true, enableLlm: true, enableRealtime: true, enableBulk: true, options: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useApiSettingsQuery({ const { mutate } = useCreateApiSettingMutation({ selection: { fields: { id: true } }, }); -mutate({ databaseId: '', apiId: '', enableAggregates: '', enablePostgis: '', enableSearch: '', enableDirectUploads: '', enablePresignedUploads: '', enableManyToMany: '', enableConnectionFilter: '', enableLtree: '', enableLlm: '', enableRealtime: '', options: '' }); +mutate({ databaseId: '', apiId: '', enableAggregates: '', enablePostgis: '', enableSearch: '', enableDirectUploads: '', enablePresignedUploads: '', enableManyToMany: '', enableConnectionFilter: '', enableLtree: '', enableLlm: '', enableRealtime: '', enableBulk: '', options: '' }); ``` diff --git a/.agents/skills/hooks-public/references/database-setting.md b/.agents/skills/hooks-public/references/database-setting.md index 0500059cf..6d9c9317d 100644 --- a/.agents/skills/hooks-public/references/database-setting.md +++ b/.agents/skills/hooks-public/references/database-setting.md @@ -7,8 +7,8 @@ Database-wide feature flags and settings; controls which platform features are a ## Usage ```typescript -useDatabaseSettingsQuery({ selection: { fields: { id: true, databaseId: true, enableAggregates: true, enablePostgis: true, enableSearch: true, enableDirectUploads: true, enablePresignedUploads: true, enableManyToMany: true, enableConnectionFilter: true, enableLtree: true, enableLlm: true, enableRealtime: true, options: true } } }) -useDatabaseSettingQuery({ id: '', selection: { fields: { id: true, databaseId: true, enableAggregates: true, enablePostgis: true, enableSearch: true, enableDirectUploads: true, enablePresignedUploads: true, enableManyToMany: true, enableConnectionFilter: true, enableLtree: true, enableLlm: true, enableRealtime: true, options: true } } }) +useDatabaseSettingsQuery({ selection: { fields: { id: true, databaseId: true, enableAggregates: true, enablePostgis: true, enableSearch: true, enableDirectUploads: true, enablePresignedUploads: true, enableManyToMany: true, enableConnectionFilter: true, enableLtree: true, enableLlm: true, enableRealtime: true, enableBulk: true, options: true } } }) +useDatabaseSettingQuery({ id: '', selection: { fields: { id: true, databaseId: true, enableAggregates: true, enablePostgis: true, enableSearch: true, enableDirectUploads: true, enablePresignedUploads: true, enableManyToMany: true, enableConnectionFilter: true, enableLtree: true, enableLlm: true, enableRealtime: true, enableBulk: true, options: true } } }) useCreateDatabaseSettingMutation({ selection: { fields: { id: true } } }) useUpdateDatabaseSettingMutation({ selection: { fields: { id: true } } }) useDeleteDatabaseSettingMutation({}) @@ -20,7 +20,7 @@ useDeleteDatabaseSettingMutation({}) ```typescript const { data, isLoading } = useDatabaseSettingsQuery({ - selection: { fields: { id: true, databaseId: true, enableAggregates: true, enablePostgis: true, enableSearch: true, enableDirectUploads: true, enablePresignedUploads: true, enableManyToMany: true, enableConnectionFilter: true, enableLtree: true, enableLlm: true, enableRealtime: true, options: true } }, + selection: { fields: { id: true, databaseId: true, enableAggregates: true, enablePostgis: true, enableSearch: true, enableDirectUploads: true, enablePresignedUploads: true, enableManyToMany: true, enableConnectionFilter: true, enableLtree: true, enableLlm: true, enableRealtime: true, enableBulk: true, options: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useDatabaseSettingsQuery({ const { mutate } = useCreateDatabaseSettingMutation({ selection: { fields: { id: true } }, }); -mutate({ databaseId: '', enableAggregates: '', enablePostgis: '', enableSearch: '', enableDirectUploads: '', enablePresignedUploads: '', enableManyToMany: '', enableConnectionFilter: '', enableLtree: '', enableLlm: '', enableRealtime: '', options: '' }); +mutate({ databaseId: '', enableAggregates: '', enablePostgis: '', enableSearch: '', enableDirectUploads: '', enablePresignedUploads: '', enableManyToMany: '', enableConnectionFilter: '', enableLtree: '', enableLlm: '', enableRealtime: '', enableBulk: '', options: '' }); ``` diff --git a/.agents/skills/orm-public/SKILL.md b/.agents/skills/orm-public/SKILL.md index 72f313417..adea474af 100644 --- a/.agents/skills/orm-public/SKILL.md +++ b/.agents/skills/orm-public/SKILL.md @@ -175,9 +175,9 @@ See the `references/` directory for detailed per-entity API documentation: - [app-limit-event](references/app-limit-event.md) - [org-limit-event](references/org-limit-event.md) - [rls-module](references/rls-module.md) -- [database-setting](references/database-setting.md) - [plans-module](references/plans-module.md) - [sql-action](references/sql-action.md) +- [database-setting](references/database-setting.md) - [billing-module](references/billing-module.md) - [ast-migration](references/ast-migration.md) - [user](references/user.md) diff --git a/.agents/skills/orm-public/references/api-setting.md b/.agents/skills/orm-public/references/api-setting.md index 7dca78e67..8f2426f57 100644 --- a/.agents/skills/orm-public/references/api-setting.md +++ b/.agents/skills/orm-public/references/api-setting.md @@ -9,7 +9,7 @@ Per-API feature flag overrides; NULL columns inherit from database_settings, exp ```typescript db.apiSetting.findMany({ select: { id: true } }).execute() db.apiSetting.findOne({ id: '', select: { id: true } }).execute() -db.apiSetting.create({ data: { databaseId: '', apiId: '', enableAggregates: '', enablePostgis: '', enableSearch: '', enableDirectUploads: '', enablePresignedUploads: '', enableManyToMany: '', enableConnectionFilter: '', enableLtree: '', enableLlm: '', enableRealtime: '', options: '' }, select: { id: true } }).execute() +db.apiSetting.create({ data: { databaseId: '', apiId: '', enableAggregates: '', enablePostgis: '', enableSearch: '', enableDirectUploads: '', enablePresignedUploads: '', enableManyToMany: '', enableConnectionFilter: '', enableLtree: '', enableLlm: '', enableRealtime: '', enableBulk: '', options: '' }, select: { id: true } }).execute() db.apiSetting.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() db.apiSetting.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.apiSetting.findMany({ ```typescript const item = await db.apiSetting.create({ - data: { databaseId: '', apiId: '', enableAggregates: '', enablePostgis: '', enableSearch: '', enableDirectUploads: '', enablePresignedUploads: '', enableManyToMany: '', enableConnectionFilter: '', enableLtree: '', enableLlm: '', enableRealtime: '', options: '' }, + data: { databaseId: '', apiId: '', enableAggregates: '', enablePostgis: '', enableSearch: '', enableDirectUploads: '', enablePresignedUploads: '', enableManyToMany: '', enableConnectionFilter: '', enableLtree: '', enableLlm: '', enableRealtime: '', enableBulk: '', options: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-public/references/database-setting.md b/.agents/skills/orm-public/references/database-setting.md index f91559e3a..abfe867ad 100644 --- a/.agents/skills/orm-public/references/database-setting.md +++ b/.agents/skills/orm-public/references/database-setting.md @@ -9,7 +9,7 @@ Database-wide feature flags and settings; controls which platform features are a ```typescript db.databaseSetting.findMany({ select: { id: true } }).execute() db.databaseSetting.findOne({ id: '', select: { id: true } }).execute() -db.databaseSetting.create({ data: { databaseId: '', enableAggregates: '', enablePostgis: '', enableSearch: '', enableDirectUploads: '', enablePresignedUploads: '', enableManyToMany: '', enableConnectionFilter: '', enableLtree: '', enableLlm: '', enableRealtime: '', options: '' }, select: { id: true } }).execute() +db.databaseSetting.create({ data: { databaseId: '', enableAggregates: '', enablePostgis: '', enableSearch: '', enableDirectUploads: '', enablePresignedUploads: '', enableManyToMany: '', enableConnectionFilter: '', enableLtree: '', enableLlm: '', enableRealtime: '', enableBulk: '', options: '' }, select: { id: true } }).execute() db.databaseSetting.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() db.databaseSetting.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.databaseSetting.findMany({ ```typescript const item = await db.databaseSetting.create({ - data: { databaseId: '', enableAggregates: '', enablePostgis: '', enableSearch: '', enableDirectUploads: '', enablePresignedUploads: '', enableManyToMany: '', enableConnectionFilter: '', enableLtree: '', enableLlm: '', enableRealtime: '', options: '' }, + data: { databaseId: '', enableAggregates: '', enablePostgis: '', enableSearch: '', enableDirectUploads: '', enablePresignedUploads: '', enableManyToMany: '', enableConnectionFilter: '', enableLtree: '', enableLlm: '', enableRealtime: '', enableBulk: '', options: '' }, select: { id: true } }).execute(); ``` diff --git a/sdk/constructive-cli/src/public/cli/README.md b/sdk/constructive-cli/src/public/cli/README.md index 3ceed1927..ede29bfbd 100644 --- a/sdk/constructive-cli/src/public/cli/README.md +++ b/sdk/constructive-cli/src/public/cli/README.md @@ -164,9 +164,9 @@ csdk auth set-token | `app-limit-event` | appLimitEvent CRUD operations | | `org-limit-event` | orgLimitEvent CRUD operations | | `rls-module` | rlsModule CRUD operations | -| `database-setting` | databaseSetting CRUD operations | | `plans-module` | plansModule CRUD operations | | `sql-action` | sqlAction CRUD operations | +| `database-setting` | databaseSetting CRUD operations | | `billing-module` | billingModule CRUD operations | | `ast-migration` | astMigration CRUD operations | | `user` | user CRUD operations | @@ -1801,10 +1801,11 @@ CRUD operations for ApiSetting records. | `enableLtree` | Boolean | | `enableLlm` | Boolean | | `enableRealtime` | Boolean | +| `enableBulk` | Boolean | | `options` | JSON | **Required create fields:** `databaseId`, `apiId` -**Optional create fields (backend defaults):** `enableAggregates`, `enablePostgis`, `enableSearch`, `enableDirectUploads`, `enablePresignedUploads`, `enableManyToMany`, `enableConnectionFilter`, `enableLtree`, `enableLlm`, `enableRealtime`, `options` +**Optional create fields (backend defaults):** `enableAggregates`, `enablePostgis`, `enableSearch`, `enableDirectUploads`, `enablePresignedUploads`, `enableManyToMany`, `enableConnectionFilter`, `enableLtree`, `enableLlm`, `enableRealtime`, `enableBulk`, `options` ### `connected-accounts-module` @@ -4520,40 +4521,6 @@ CRUD operations for RlsModule records. **Required create fields:** `databaseId` **Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `sessionCredentialsTableId`, `sessionsTableId`, `usersTableId`, `authenticate`, `authenticateStrict`, `currentRole`, `currentRoleId` -### `database-setting` - -CRUD operations for DatabaseSetting records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all databaseSetting records | -| `find-first` | Find first matching databaseSetting record | -| `get` | Get a databaseSetting by id | -| `create` | Create a new databaseSetting | -| `update` | Update an existing databaseSetting | -| `delete` | Delete a databaseSetting | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `databaseId` | UUID | -| `enableAggregates` | Boolean | -| `enablePostgis` | Boolean | -| `enableSearch` | Boolean | -| `enableDirectUploads` | Boolean | -| `enablePresignedUploads` | Boolean | -| `enableManyToMany` | Boolean | -| `enableConnectionFilter` | Boolean | -| `enableLtree` | Boolean | -| `enableLlm` | Boolean | -| `enableRealtime` | Boolean | -| `options` | JSON | - -**Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `enableAggregates`, `enablePostgis`, `enableSearch`, `enableDirectUploads`, `enablePresignedUploads`, `enableManyToMany`, `enableConnectionFilter`, `enableLtree`, `enableLlm`, `enableRealtime`, `options` - ### `plans-module` CRUD operations for PlansModule records. @@ -4621,6 +4588,41 @@ CRUD operations for SqlAction records. **Optional create fields (backend defaults):** `name`, `databaseId`, `deploy`, `deps`, `payload`, `content`, `revert`, `verify`, `action`, `actionId`, `actorId` +### `database-setting` + +CRUD operations for DatabaseSetting records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all databaseSetting records | +| `find-first` | Find first matching databaseSetting record | +| `get` | Get a databaseSetting by id | +| `create` | Create a new databaseSetting | +| `update` | Update an existing databaseSetting | +| `delete` | Delete a databaseSetting | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `enableAggregates` | Boolean | +| `enablePostgis` | Boolean | +| `enableSearch` | Boolean | +| `enableDirectUploads` | Boolean | +| `enablePresignedUploads` | Boolean | +| `enableManyToMany` | Boolean | +| `enableConnectionFilter` | Boolean | +| `enableLtree` | Boolean | +| `enableLlm` | Boolean | +| `enableRealtime` | Boolean | +| `enableBulk` | Boolean | +| `options` | JSON | + +**Required create fields:** `databaseId` +**Optional create fields (backend defaults):** `enableAggregates`, `enablePostgis`, `enableSearch`, `enableDirectUploads`, `enablePresignedUploads`, `enableManyToMany`, `enableConnectionFilter`, `enableLtree`, `enableLlm`, `enableRealtime`, `enableBulk`, `options` + ### `billing-module` CRUD operations for BillingModule records. diff --git a/sdk/constructive-cli/src/public/cli/commands.ts b/sdk/constructive-cli/src/public/cli/commands.ts index 3d9d468c5..d8246db1c 100644 --- a/sdk/constructive-cli/src/public/cli/commands.ts +++ b/sdk/constructive-cli/src/public/cli/commands.ts @@ -144,9 +144,9 @@ import rlsSettingCmd from './commands/rls-setting'; import appLimitEventCmd from './commands/app-limit-event'; import orgLimitEventCmd from './commands/org-limit-event'; import rlsModuleCmd from './commands/rls-module'; -import databaseSettingCmd from './commands/database-setting'; import plansModuleCmd from './commands/plans-module'; import sqlActionCmd from './commands/sql-action'; +import databaseSettingCmd from './commands/database-setting'; import billingModuleCmd from './commands/billing-module'; import astMigrationCmd from './commands/ast-migration'; import userCmd from './commands/user'; @@ -374,9 +374,9 @@ const createCommandMap: () => Record< 'app-limit-event': appLimitEventCmd, 'org-limit-event': orgLimitEventCmd, 'rls-module': rlsModuleCmd, - 'database-setting': databaseSettingCmd, 'plans-module': plansModuleCmd, 'sql-action': sqlActionCmd, + 'database-setting': databaseSettingCmd, 'billing-module': billingModuleCmd, 'ast-migration': astMigrationCmd, user: userCmd, @@ -458,7 +458,7 @@ const createCommandMap: () => Record< 'provision-bucket': provisionBucketCmd, }); const usage = - "\ncsdk \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"; + "\ncsdk \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 plans-module plansModule CRUD operations\n sql-action sqlAction CRUD operations\n database-setting databaseSetting 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"; export const commands = async ( argv: Partial>, prompter: Inquirerer, diff --git a/sdk/constructive-cli/src/public/cli/commands/api-setting.ts b/sdk/constructive-cli/src/public/cli/commands/api-setting.ts index b983358f9..983e94c57 100644 --- a/sdk/constructive-cli/src/public/cli/commands/api-setting.ts +++ b/sdk/constructive-cli/src/public/cli/commands/api-setting.ts @@ -29,6 +29,7 @@ const fieldSchema: FieldSchema = { enableLtree: 'boolean', enableLlm: 'boolean', enableRealtime: 'boolean', + enableBulk: 'boolean', options: 'json', }; const usage = @@ -95,6 +96,7 @@ async function handleList(argv: Partial>, _prompter: Inq enableLtree: true, enableLlm: true, enableRealtime: true, + enableBulk: true, options: true, }; const findManyArgs = parseFindManyArgs< @@ -129,6 +131,7 @@ async function handleFindFirst(argv: Partial>, _prompter enableLtree: true, enableLlm: true, enableRealtime: true, + enableBulk: true, options: true, }; const findFirstArgs = parseFindFirstArgs< @@ -175,6 +178,7 @@ async function handleGet(argv: Partial>, prompter: Inqui enableLtree: true, enableLlm: true, enableRealtime: true, + enableBulk: true, options: true, }, }) @@ -273,6 +277,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'boolean', + name: 'enableBulk', + message: 'enableBulk', + required: false, + skipPrompt: true, + }, { type: 'json', name: 'options', @@ -299,6 +310,7 @@ async function handleCreate(argv: Partial>, prompter: In enableLtree: cleanedData.enableLtree, enableLlm: cleanedData.enableLlm, enableRealtime: cleanedData.enableRealtime, + enableBulk: cleanedData.enableBulk, options: cleanedData.options, }, select: { @@ -315,6 +327,7 @@ async function handleCreate(argv: Partial>, prompter: In enableLtree: true, enableLlm: true, enableRealtime: true, + enableBulk: true, options: true, }, }) @@ -419,6 +432,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'boolean', + name: 'enableBulk', + message: 'enableBulk', + required: false, + skipPrompt: true, + }, { type: 'json', name: 'options', @@ -448,6 +468,7 @@ async function handleUpdate(argv: Partial>, prompter: In enableLtree: cleanedData.enableLtree, enableLlm: cleanedData.enableLlm, enableRealtime: cleanedData.enableRealtime, + enableBulk: cleanedData.enableBulk, options: cleanedData.options, }, select: { @@ -464,6 +485,7 @@ async function handleUpdate(argv: Partial>, prompter: In enableLtree: true, enableLlm: true, enableRealtime: true, + enableBulk: true, options: true, }, }) diff --git a/sdk/constructive-cli/src/public/cli/commands/database-setting.ts b/sdk/constructive-cli/src/public/cli/commands/database-setting.ts index f0e156359..1aad61b23 100644 --- a/sdk/constructive-cli/src/public/cli/commands/database-setting.ts +++ b/sdk/constructive-cli/src/public/cli/commands/database-setting.ts @@ -28,6 +28,7 @@ const fieldSchema: FieldSchema = { enableLtree: 'boolean', enableLlm: 'boolean', enableRealtime: 'boolean', + enableBulk: 'boolean', options: 'json', }; const usage = @@ -93,6 +94,7 @@ async function handleList(argv: Partial>, _prompter: Inq enableLtree: true, enableLlm: true, enableRealtime: true, + enableBulk: true, options: true, }; const findManyArgs = parseFindManyArgs< @@ -126,6 +128,7 @@ async function handleFindFirst(argv: Partial>, _prompter enableLtree: true, enableLlm: true, enableRealtime: true, + enableBulk: true, options: true, }; const findFirstArgs = parseFindFirstArgs< @@ -171,6 +174,7 @@ async function handleGet(argv: Partial>, prompter: Inqui enableLtree: true, enableLlm: true, enableRealtime: true, + enableBulk: true, options: true, }, }) @@ -263,6 +267,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'boolean', + name: 'enableBulk', + message: 'enableBulk', + required: false, + skipPrompt: true, + }, { type: 'json', name: 'options', @@ -291,6 +302,7 @@ async function handleCreate(argv: Partial>, prompter: In enableLtree: cleanedData.enableLtree, enableLlm: cleanedData.enableLlm, enableRealtime: cleanedData.enableRealtime, + enableBulk: cleanedData.enableBulk, options: cleanedData.options, }, select: { @@ -306,6 +318,7 @@ async function handleCreate(argv: Partial>, prompter: In enableLtree: true, enableLlm: true, enableRealtime: true, + enableBulk: true, options: true, }, }) @@ -404,6 +417,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'boolean', + name: 'enableBulk', + message: 'enableBulk', + required: false, + skipPrompt: true, + }, { type: 'json', name: 'options', @@ -432,6 +452,7 @@ async function handleUpdate(argv: Partial>, prompter: In enableLtree: cleanedData.enableLtree, enableLlm: cleanedData.enableLlm, enableRealtime: cleanedData.enableRealtime, + enableBulk: cleanedData.enableBulk, options: cleanedData.options, }, select: { @@ -447,6 +468,7 @@ async function handleUpdate(argv: Partial>, prompter: In enableLtree: true, enableLlm: true, enableRealtime: true, + enableBulk: true, options: true, }, }) diff --git a/sdk/constructive-cli/src/public/orm/README.md b/sdk/constructive-cli/src/public/orm/README.md index dcb1cd177..a35827cdf 100644 --- a/sdk/constructive-cli/src/public/orm/README.md +++ b/sdk/constructive-cli/src/public/orm/README.md @@ -159,9 +159,9 @@ const db = createClient({ | `appLimitEvent` | findMany, findOne, create, update, delete | | `orgLimitEvent` | findMany, findOne, create, update, delete | | `rlsModule` | findMany, findOne, create, update, delete | -| `databaseSetting` | findMany, findOne, create, update, delete | | `plansModule` | findMany, findOne, create, update, delete | | `sqlAction` | findMany, findOne, create, update, delete | +| `databaseSetting` | findMany, findOne, create, update, delete | | `billingModule` | findMany, findOne, create, update, delete | | `astMigration` | findMany, findOne, create, update, delete | | `user` | findMany, findOne, create, update, delete | @@ -2005,19 +2005,20 @@ CRUD operations for ApiSetting records. | `enableLtree` | Boolean | Yes | | `enableLlm` | Boolean | Yes | | `enableRealtime` | Boolean | Yes | +| `enableBulk` | Boolean | Yes | | `options` | JSON | Yes | **Operations:** ```typescript // List all apiSetting records -const items = await db.apiSetting.findMany({ select: { id: true, databaseId: true, apiId: true, enableAggregates: true, enablePostgis: true, enableSearch: true, enableDirectUploads: true, enablePresignedUploads: true, enableManyToMany: true, enableConnectionFilter: true, enableLtree: true, enableLlm: true, enableRealtime: true, options: true } }).execute(); +const items = await db.apiSetting.findMany({ select: { id: true, databaseId: true, apiId: true, enableAggregates: true, enablePostgis: true, enableSearch: true, enableDirectUploads: true, enablePresignedUploads: true, enableManyToMany: true, enableConnectionFilter: true, enableLtree: true, enableLlm: true, enableRealtime: true, enableBulk: true, options: true } }).execute(); // Get one by id -const item = await db.apiSetting.findOne({ id: '', select: { id: true, databaseId: true, apiId: true, enableAggregates: true, enablePostgis: true, enableSearch: true, enableDirectUploads: true, enablePresignedUploads: true, enableManyToMany: true, enableConnectionFilter: true, enableLtree: true, enableLlm: true, enableRealtime: true, options: true } }).execute(); +const item = await db.apiSetting.findOne({ id: '', select: { id: true, databaseId: true, apiId: true, enableAggregates: true, enablePostgis: true, enableSearch: true, enableDirectUploads: true, enablePresignedUploads: true, enableManyToMany: true, enableConnectionFilter: true, enableLtree: true, enableLlm: true, enableRealtime: true, enableBulk: true, options: true } }).execute(); // Create -const created = await db.apiSetting.create({ data: { databaseId: '', apiId: '', enableAggregates: '', enablePostgis: '', enableSearch: '', enableDirectUploads: '', enablePresignedUploads: '', enableManyToMany: '', enableConnectionFilter: '', enableLtree: '', enableLlm: '', enableRealtime: '', options: '' }, select: { id: true } }).execute(); +const created = await db.apiSetting.create({ data: { databaseId: '', apiId: '', enableAggregates: '', enablePostgis: '', enableSearch: '', enableDirectUploads: '', enablePresignedUploads: '', enableManyToMany: '', enableConnectionFilter: '', enableLtree: '', enableLlm: '', enableRealtime: '', enableBulk: '', options: '' }, select: { id: true } }).execute(); // Update const updated = await db.apiSetting.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -5375,47 +5376,6 @@ const updated = await db.rlsModule.update({ where: { id: '' }, data: { dat const deleted = await db.rlsModule.delete({ where: { id: '' } }).execute(); ``` -### `db.databaseSetting` - -CRUD operations for DatabaseSetting records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `enableAggregates` | Boolean | Yes | -| `enablePostgis` | Boolean | Yes | -| `enableSearch` | Boolean | Yes | -| `enableDirectUploads` | Boolean | Yes | -| `enablePresignedUploads` | Boolean | Yes | -| `enableManyToMany` | Boolean | Yes | -| `enableConnectionFilter` | Boolean | Yes | -| `enableLtree` | Boolean | Yes | -| `enableLlm` | Boolean | Yes | -| `enableRealtime` | Boolean | Yes | -| `options` | JSON | Yes | - -**Operations:** - -```typescript -// List all databaseSetting records -const items = await db.databaseSetting.findMany({ select: { id: true, databaseId: true, enableAggregates: true, enablePostgis: true, enableSearch: true, enableDirectUploads: true, enablePresignedUploads: true, enableManyToMany: true, enableConnectionFilter: true, enableLtree: true, enableLlm: true, enableRealtime: true, options: true } }).execute(); - -// Get one by id -const item = await db.databaseSetting.findOne({ id: '', select: { id: true, databaseId: true, enableAggregates: true, enablePostgis: true, enableSearch: true, enableDirectUploads: true, enablePresignedUploads: true, enableManyToMany: true, enableConnectionFilter: true, enableLtree: true, enableLlm: true, enableRealtime: true, options: true } }).execute(); - -// Create -const created = await db.databaseSetting.create({ data: { databaseId: '', enableAggregates: '', enablePostgis: '', enableSearch: '', enableDirectUploads: '', enablePresignedUploads: '', enableManyToMany: '', enableConnectionFilter: '', enableLtree: '', enableLlm: '', enableRealtime: '', options: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.databaseSetting.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.databaseSetting.delete({ where: { id: '' } }).execute(); -``` - ### `db.plansModule` CRUD operations for PlansModule records. @@ -5498,6 +5458,48 @@ const updated = await db.sqlAction.update({ where: { id: '' }, data: { name const deleted = await db.sqlAction.delete({ where: { id: '' } }).execute(); ``` +### `db.databaseSetting` + +CRUD operations for DatabaseSetting records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `enableAggregates` | Boolean | Yes | +| `enablePostgis` | Boolean | Yes | +| `enableSearch` | Boolean | Yes | +| `enableDirectUploads` | Boolean | Yes | +| `enablePresignedUploads` | Boolean | Yes | +| `enableManyToMany` | Boolean | Yes | +| `enableConnectionFilter` | Boolean | Yes | +| `enableLtree` | Boolean | Yes | +| `enableLlm` | Boolean | Yes | +| `enableRealtime` | Boolean | Yes | +| `enableBulk` | Boolean | Yes | +| `options` | JSON | Yes | + +**Operations:** + +```typescript +// List all databaseSetting records +const items = await db.databaseSetting.findMany({ select: { id: true, databaseId: true, enableAggregates: true, enablePostgis: true, enableSearch: true, enableDirectUploads: true, enablePresignedUploads: true, enableManyToMany: true, enableConnectionFilter: true, enableLtree: true, enableLlm: true, enableRealtime: true, enableBulk: true, options: true } }).execute(); + +// Get one by id +const item = await db.databaseSetting.findOne({ id: '', select: { id: true, databaseId: true, enableAggregates: true, enablePostgis: true, enableSearch: true, enableDirectUploads: true, enablePresignedUploads: true, enableManyToMany: true, enableConnectionFilter: true, enableLtree: true, enableLlm: true, enableRealtime: true, enableBulk: true, options: true } }).execute(); + +// Create +const created = await db.databaseSetting.create({ data: { databaseId: '', enableAggregates: '', enablePostgis: '', enableSearch: '', enableDirectUploads: '', enablePresignedUploads: '', enableManyToMany: '', enableConnectionFilter: '', enableLtree: '', enableLlm: '', enableRealtime: '', enableBulk: '', options: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.databaseSetting.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.databaseSetting.delete({ where: { id: '' } }).execute(); +``` + ### `db.billingModule` CRUD operations for BillingModule records. diff --git a/sdk/constructive-cli/src/public/orm/index.ts b/sdk/constructive-cli/src/public/orm/index.ts index de91fbfc2..9ea5cc6a5 100644 --- a/sdk/constructive-cli/src/public/orm/index.ts +++ b/sdk/constructive-cli/src/public/orm/index.ts @@ -143,9 +143,9 @@ import { RlsSettingModel } from './models/rlsSetting'; import { AppLimitEventModel } from './models/appLimitEvent'; import { OrgLimitEventModel } from './models/orgLimitEvent'; import { RlsModuleModel } from './models/rlsModule'; -import { DatabaseSettingModel } from './models/databaseSetting'; import { PlansModuleModel } from './models/plansModule'; import { SqlActionModel } from './models/sqlAction'; +import { DatabaseSettingModel } from './models/databaseSetting'; import { BillingModuleModel } from './models/billingModule'; import { AstMigrationModel } from './models/astMigration'; import { UserModel } from './models/user'; @@ -328,9 +328,9 @@ export function createClient(config: OrmClientConfig) { appLimitEvent: new AppLimitEventModel(client), orgLimitEvent: new OrgLimitEventModel(client), rlsModule: new RlsModuleModel(client), - databaseSetting: new DatabaseSettingModel(client), plansModule: new PlansModuleModel(client), sqlAction: new SqlActionModel(client), + databaseSetting: new DatabaseSettingModel(client), billingModule: new BillingModuleModel(client), astMigration: new AstMigrationModel(client), user: new UserModel(client), diff --git a/sdk/constructive-cli/src/public/orm/input-types.ts b/sdk/constructive-cli/src/public/orm/input-types.ts index c0bb01544..505058774 100644 --- a/sdk/constructive-cli/src/public/orm/input-types.ts +++ b/sdk/constructive-cli/src/public/orm/input-types.ts @@ -1045,6 +1045,8 @@ export interface ApiSetting { enableLlm?: boolean | null; /** Override: enable realtime subscriptions (NULL = inherit from database_settings) */ enableRealtime?: boolean | null; + /** Override: enable bulk mutations (NULL = inherit from database_settings) */ + enableBulk?: boolean | null; /** Extensible JSON for additional per-API settings that do not have dedicated columns */ options?: Record | null; } @@ -2645,35 +2647,6 @@ export interface RlsModule { currentRole?: string | null; currentRoleId?: string | null; } -/** Database-wide feature flags and settings; controls which platform features are available to all APIs in this database */ -export interface DatabaseSetting { - /** Unique identifier for this settings record */ - id: string; - /** Reference to the metaschema database these settings apply to */ - databaseId?: string | null; - /** Enable aggregate queries (sum, avg, min, max, etc.) in the GraphQL API */ - enableAggregates?: boolean | null; - /** Enable PostGIS spatial types and operators in the GraphQL API */ - enablePostgis?: boolean | null; - /** Enable unified search (tsvector, BM25, pg_trgm, pgvector) in the GraphQL API */ - enableSearch?: boolean | null; - /** Enable direct (multipart) file upload mutations in the GraphQL API */ - enableDirectUploads?: boolean | null; - /** Enable presigned URL upload flow for S3/MinIO storage */ - enablePresignedUploads?: boolean | null; - /** Enable many-to-many relationship queries in the GraphQL API */ - enableManyToMany?: boolean | null; - /** Enable connection filter (where argument) in the GraphQL API */ - enableConnectionFilter?: boolean | null; - /** Enable ltree hierarchical data type support in the GraphQL API */ - enableLtree?: boolean | null; - /** Enable LLM/AI integration features in the GraphQL API */ - enableLlm?: boolean | null; - /** Enable realtime subscriptions (cursor-tracked change delivery) in the GraphQL API */ - enableRealtime?: boolean | null; - /** Extensible JSON for additional settings that do not have dedicated columns */ - options?: Record | null; -} export interface PlansModule { id: string; databaseId?: string | null; @@ -2704,6 +2677,37 @@ export interface SqlAction { actionId?: string | null; actorId?: string | null; } +/** Database-wide feature flags and settings; controls which platform features are available to all APIs in this database */ +export interface DatabaseSetting { + /** Unique identifier for this settings record */ + id: string; + /** Reference to the metaschema database these settings apply to */ + databaseId?: string | null; + /** Enable aggregate queries (sum, avg, min, max, etc.) in the GraphQL API */ + enableAggregates?: boolean | null; + /** Enable PostGIS spatial types and operators in the GraphQL API */ + enablePostgis?: boolean | null; + /** Enable unified search (tsvector, BM25, pg_trgm, pgvector) in the GraphQL API */ + enableSearch?: boolean | null; + /** Enable direct (multipart) file upload mutations in the GraphQL API */ + enableDirectUploads?: boolean | null; + /** Enable presigned URL upload flow for S3/MinIO storage */ + enablePresignedUploads?: boolean | null; + /** Enable many-to-many relationship queries in the GraphQL API */ + enableManyToMany?: boolean | null; + /** Enable connection filter (where argument) in the GraphQL API */ + enableConnectionFilter?: boolean | null; + /** Enable ltree hierarchical data type support in the GraphQL API */ + enableLtree?: boolean | null; + /** Enable LLM/AI integration features in the GraphQL API */ + enableLlm?: boolean | null; + /** Enable realtime subscriptions (cursor-tracked change delivery) in the GraphQL API */ + enableRealtime?: boolean | null; + /** Enable bulk mutation operations (insert, upsert, update, delete) in the GraphQL API */ + enableBulk?: boolean | null; + /** Extensible JSON for additional settings that do not have dedicated columns */ + options?: Record | null; +} export interface BillingModule { id: string; databaseId?: string | null; @@ -3659,9 +3663,6 @@ export interface RlsModuleRelations { sessionsTable?: Table | null; usersTable?: Table | null; } -export interface DatabaseSettingRelations { - database?: Database | null; -} export interface PlansModuleRelations { database?: Database | null; planLimitsTable?: Table | null; @@ -3672,6 +3673,9 @@ export interface PlansModuleRelations { schema?: Schema | null; } export interface SqlActionRelations {} +export interface DatabaseSettingRelations { + database?: Database | null; +} export interface BillingModuleRelations { balancesTable?: Table | null; database?: Database | null; @@ -3948,9 +3952,9 @@ export type RlsSettingWithRelations = RlsSetting & RlsSettingRelations; export type AppLimitEventWithRelations = AppLimitEvent & AppLimitEventRelations; export type OrgLimitEventWithRelations = OrgLimitEvent & OrgLimitEventRelations; export type RlsModuleWithRelations = RlsModule & RlsModuleRelations; -export type DatabaseSettingWithRelations = DatabaseSetting & DatabaseSettingRelations; export type PlansModuleWithRelations = PlansModule & PlansModuleRelations; export type SqlActionWithRelations = SqlAction & SqlActionRelations; +export type DatabaseSettingWithRelations = DatabaseSetting & DatabaseSettingRelations; export type BillingModuleWithRelations = BillingModule & BillingModuleRelations; export type AstMigrationWithRelations = AstMigration & AstMigrationRelations; export type UserWithRelations = User & UserRelations; @@ -5592,6 +5596,7 @@ export type ApiSettingSelect = { enableLtree?: boolean; enableLlm?: boolean; enableRealtime?: boolean; + enableBulk?: boolean; options?: boolean; api?: { select: ApiSelect; @@ -7481,24 +7486,6 @@ export type RlsModuleSelect = { select: TableSelect; }; }; -export type DatabaseSettingSelect = { - id?: boolean; - databaseId?: boolean; - enableAggregates?: boolean; - enablePostgis?: boolean; - enableSearch?: boolean; - enableDirectUploads?: boolean; - enablePresignedUploads?: boolean; - enableManyToMany?: boolean; - enableConnectionFilter?: boolean; - enableLtree?: boolean; - enableLlm?: boolean; - enableRealtime?: boolean; - options?: boolean; - database?: { - select: DatabaseSelect; - }; -}; export type PlansModuleSelect = { id?: boolean; databaseId?: boolean; @@ -7550,6 +7537,25 @@ export type SqlActionSelect = { actionId?: boolean; actorId?: boolean; }; +export type DatabaseSettingSelect = { + id?: boolean; + databaseId?: boolean; + enableAggregates?: boolean; + enablePostgis?: boolean; + enableSearch?: boolean; + enableDirectUploads?: boolean; + enablePresignedUploads?: boolean; + enableManyToMany?: boolean; + enableConnectionFilter?: boolean; + enableLtree?: boolean; + enableLlm?: boolean; + enableRealtime?: boolean; + enableBulk?: boolean; + options?: boolean; + database?: { + select: DatabaseSelect; + }; +}; export type BillingModuleSelect = { id?: boolean; databaseId?: boolean; @@ -10239,6 +10245,8 @@ export interface ApiSettingFilter { enableLlm?: BooleanFilter; /** Filter by the object’s `enableRealtime` field. */ enableRealtime?: BooleanFilter; + /** Filter by the object’s `enableBulk` field. */ + enableBulk?: BooleanFilter; /** Filter by the object’s `options` field. */ options?: JSONFilter; /** Checks for all expressions in this list. */ @@ -13354,42 +13362,6 @@ export interface RlsModuleFilter { /** Filter by the object’s `usersTable` relation. */ usersTable?: TableFilter; } -export interface DatabaseSettingFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `enableAggregates` field. */ - enableAggregates?: BooleanFilter; - /** Filter by the object’s `enablePostgis` field. */ - enablePostgis?: BooleanFilter; - /** Filter by the object’s `enableSearch` field. */ - enableSearch?: BooleanFilter; - /** Filter by the object’s `enableDirectUploads` field. */ - enableDirectUploads?: BooleanFilter; - /** Filter by the object’s `enablePresignedUploads` field. */ - enablePresignedUploads?: BooleanFilter; - /** Filter by the object’s `enableManyToMany` field. */ - enableManyToMany?: BooleanFilter; - /** Filter by the object’s `enableConnectionFilter` field. */ - enableConnectionFilter?: BooleanFilter; - /** Filter by the object’s `enableLtree` field. */ - enableLtree?: BooleanFilter; - /** Filter by the object’s `enableLlm` field. */ - enableLlm?: BooleanFilter; - /** Filter by the object’s `enableRealtime` field. */ - enableRealtime?: BooleanFilter; - /** Filter by the object’s `options` field. */ - options?: JSONFilter; - /** Checks for all expressions in this list. */ - and?: DatabaseSettingFilter[]; - /** Checks for any expressions in this list. */ - or?: DatabaseSettingFilter[]; - /** Negates the expression. */ - not?: DatabaseSettingFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; -} export interface PlansModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -13474,6 +13446,44 @@ export interface SqlActionFilter { /** Negates the expression. */ not?: SqlActionFilter; } +export interface DatabaseSettingFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `enableAggregates` field. */ + enableAggregates?: BooleanFilter; + /** Filter by the object’s `enablePostgis` field. */ + enablePostgis?: BooleanFilter; + /** Filter by the object’s `enableSearch` field. */ + enableSearch?: BooleanFilter; + /** Filter by the object’s `enableDirectUploads` field. */ + enableDirectUploads?: BooleanFilter; + /** Filter by the object’s `enablePresignedUploads` field. */ + enablePresignedUploads?: BooleanFilter; + /** Filter by the object’s `enableManyToMany` field. */ + enableManyToMany?: BooleanFilter; + /** Filter by the object’s `enableConnectionFilter` field. */ + enableConnectionFilter?: BooleanFilter; + /** Filter by the object’s `enableLtree` field. */ + enableLtree?: BooleanFilter; + /** Filter by the object’s `enableLlm` field. */ + enableLlm?: BooleanFilter; + /** Filter by the object’s `enableRealtime` field. */ + enableRealtime?: BooleanFilter; + /** Filter by the object’s `enableBulk` field. */ + enableBulk?: BooleanFilter; + /** Filter by the object’s `options` field. */ + options?: JSONFilter; + /** Checks for all expressions in this list. */ + and?: DatabaseSettingFilter[]; + /** Checks for any expressions in this list. */ + or?: DatabaseSettingFilter[]; + /** Negates the expression. */ + not?: DatabaseSettingFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; +} export interface BillingModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -15296,6 +15306,8 @@ export type ApiSettingOrderBy = | 'ENABLE_LLM_DESC' | 'ENABLE_REALTIME_ASC' | 'ENABLE_REALTIME_DESC' + | 'ENABLE_BULK_ASC' + | 'ENABLE_BULK_DESC' | 'OPTIONS_ASC' | 'OPTIONS_DESC'; export type ConnectedAccountsModuleOrderBy = @@ -17358,36 +17370,6 @@ export type RlsModuleOrderBy = | 'CURRENT_ROLE_DESC' | 'CURRENT_ROLE_ID_ASC' | 'CURRENT_ROLE_ID_DESC'; -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'; export type PlansModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -17446,6 +17428,38 @@ export type SqlActionOrderBy = | 'ACTION_ID_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC'; +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' + | 'ENABLE_BULK_ASC' + | 'ENABLE_BULK_DESC' + | 'OPTIONS_ASC' + | 'OPTIONS_DESC'; export type BillingModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -19278,6 +19292,7 @@ export interface CreateApiSettingInput { enableLtree?: boolean; enableLlm?: boolean; enableRealtime?: boolean; + enableBulk?: boolean; options?: Record; }; } @@ -19294,6 +19309,7 @@ export interface ApiSettingPatch { enableLtree?: boolean | null; enableLlm?: boolean | null; enableRealtime?: boolean | null; + enableBulk?: boolean | null; options?: Record | null; } export interface UpdateApiSettingInput { @@ -22149,46 +22165,6 @@ export interface DeleteRlsModuleInput { clientMutationId?: string; id: string; } -export interface CreateDatabaseSettingInput { - clientMutationId?: string; - databaseSetting: { - databaseId: string; - enableAggregates?: boolean; - enablePostgis?: boolean; - enableSearch?: boolean; - enableDirectUploads?: boolean; - enablePresignedUploads?: boolean; - enableManyToMany?: boolean; - enableConnectionFilter?: boolean; - enableLtree?: boolean; - enableLlm?: boolean; - enableRealtime?: boolean; - options?: Record; - }; -} -export interface DatabaseSettingPatch { - databaseId?: string | null; - enableAggregates?: boolean | null; - enablePostgis?: boolean | null; - enableSearch?: boolean | null; - enableDirectUploads?: boolean | null; - enablePresignedUploads?: boolean | null; - enableManyToMany?: boolean | null; - enableConnectionFilter?: boolean | null; - enableLtree?: boolean | null; - enableLlm?: boolean | null; - enableRealtime?: boolean | null; - options?: Record | null; -} -export interface UpdateDatabaseSettingInput { - clientMutationId?: string; - id: string; - databaseSettingPatch: DatabaseSettingPatch; -} -export interface DeleteDatabaseSettingInput { - clientMutationId?: string; - id: string; -} export interface CreatePlansModuleInput { clientMutationId?: string; plansModule: { @@ -22267,6 +22243,48 @@ export interface DeleteSqlActionInput { clientMutationId?: string; id: number; } +export interface CreateDatabaseSettingInput { + clientMutationId?: string; + databaseSetting: { + databaseId: string; + enableAggregates?: boolean; + enablePostgis?: boolean; + enableSearch?: boolean; + enableDirectUploads?: boolean; + enablePresignedUploads?: boolean; + enableManyToMany?: boolean; + enableConnectionFilter?: boolean; + enableLtree?: boolean; + enableLlm?: boolean; + enableRealtime?: boolean; + enableBulk?: boolean; + options?: Record; + }; +} +export interface DatabaseSettingPatch { + databaseId?: string | null; + enableAggregates?: boolean | null; + enablePostgis?: boolean | null; + enableSearch?: boolean | null; + enableDirectUploads?: boolean | null; + enablePresignedUploads?: boolean | null; + enableManyToMany?: boolean | null; + enableConnectionFilter?: boolean | null; + enableLtree?: boolean | null; + enableLlm?: boolean | null; + enableRealtime?: boolean | null; + enableBulk?: boolean | null; + options?: Record | null; +} +export interface UpdateDatabaseSettingInput { + clientMutationId?: string; + id: string; + databaseSettingPatch: DatabaseSettingPatch; +} +export interface DeleteDatabaseSettingInput { + clientMutationId?: string; + id: string; +} export interface CreateBillingModuleInput { clientMutationId?: string; billingModule: { @@ -26604,6 +26622,8 @@ export interface ApiSettingFilter { enableLlm?: BooleanFilter; /** Filter by the object’s `enableRealtime` field. */ enableRealtime?: BooleanFilter; + /** Filter by the object’s `enableBulk` field. */ + enableBulk?: BooleanFilter; /** Filter by the object’s `options` field. */ options?: JSONFilter; /** Checks for all expressions in this list. */ @@ -30442,6 +30462,8 @@ export interface DatabaseSettingFilter { enableLlm?: BooleanFilter; /** Filter by the object’s `enableRealtime` field. */ enableRealtime?: BooleanFilter; + /** Filter by the object’s `enableBulk` field. */ + enableBulk?: BooleanFilter; /** Filter by the object’s `options` field. */ options?: JSONFilter; /** Checks for all expressions in this list. */ @@ -37592,51 +37614,6 @@ export type DeleteRlsModulePayloadSelect = { select: RlsModuleEdgeSelect; }; }; -export interface CreateDatabaseSettingPayload { - clientMutationId?: string | null; - /** The `DatabaseSetting` that was created by this mutation. */ - databaseSetting?: DatabaseSetting | null; - databaseSettingEdge?: DatabaseSettingEdge | null; -} -export type CreateDatabaseSettingPayloadSelect = { - clientMutationId?: boolean; - databaseSetting?: { - select: DatabaseSettingSelect; - }; - databaseSettingEdge?: { - select: DatabaseSettingEdgeSelect; - }; -}; -export interface UpdateDatabaseSettingPayload { - clientMutationId?: string | null; - /** The `DatabaseSetting` that was updated by this mutation. */ - databaseSetting?: DatabaseSetting | null; - databaseSettingEdge?: DatabaseSettingEdge | null; -} -export type UpdateDatabaseSettingPayloadSelect = { - clientMutationId?: boolean; - databaseSetting?: { - select: DatabaseSettingSelect; - }; - databaseSettingEdge?: { - select: DatabaseSettingEdgeSelect; - }; -}; -export interface DeleteDatabaseSettingPayload { - clientMutationId?: string | null; - /** The `DatabaseSetting` that was deleted by this mutation. */ - databaseSetting?: DatabaseSetting | null; - databaseSettingEdge?: DatabaseSettingEdge | null; -} -export type DeleteDatabaseSettingPayloadSelect = { - clientMutationId?: boolean; - databaseSetting?: { - select: DatabaseSettingSelect; - }; - databaseSettingEdge?: { - select: DatabaseSettingEdgeSelect; - }; -}; export interface CreatePlansModulePayload { clientMutationId?: string | null; /** The `PlansModule` that was created by this mutation. */ @@ -37693,6 +37670,51 @@ export type CreateSqlActionPayloadSelect = { select: SqlActionSelect; }; }; +export interface CreateDatabaseSettingPayload { + clientMutationId?: string | null; + /** The `DatabaseSetting` that was created by this mutation. */ + databaseSetting?: DatabaseSetting | null; + databaseSettingEdge?: DatabaseSettingEdge | null; +} +export type CreateDatabaseSettingPayloadSelect = { + clientMutationId?: boolean; + databaseSetting?: { + select: DatabaseSettingSelect; + }; + databaseSettingEdge?: { + select: DatabaseSettingEdgeSelect; + }; +}; +export interface UpdateDatabaseSettingPayload { + clientMutationId?: string | null; + /** The `DatabaseSetting` that was updated by this mutation. */ + databaseSetting?: DatabaseSetting | null; + databaseSettingEdge?: DatabaseSettingEdge | null; +} +export type UpdateDatabaseSettingPayloadSelect = { + clientMutationId?: boolean; + databaseSetting?: { + select: DatabaseSettingSelect; + }; + databaseSettingEdge?: { + select: DatabaseSettingEdgeSelect; + }; +}; +export interface DeleteDatabaseSettingPayload { + clientMutationId?: string | null; + /** The `DatabaseSetting` that was deleted by this mutation. */ + databaseSetting?: DatabaseSetting | null; + databaseSettingEdge?: DatabaseSettingEdge | null; +} +export type DeleteDatabaseSettingPayloadSelect = { + clientMutationId?: boolean; + databaseSetting?: { + select: DatabaseSettingSelect; + }; + databaseSettingEdge?: { + select: DatabaseSettingEdgeSelect; + }; +}; export interface CreateBillingModulePayload { clientMutationId?: string | null; /** The `BillingModule` that was created by this mutation. */ @@ -39716,18 +39738,6 @@ export type RlsModuleEdgeSelect = { select: RlsModuleSelect; }; }; -/** A `DatabaseSetting` edge in the connection. */ -export interface DatabaseSettingEdge { - cursor?: string | null; - /** The `DatabaseSetting` at the end of the edge. */ - node?: DatabaseSetting | null; -} -export type DatabaseSettingEdgeSelect = { - cursor?: boolean; - node?: { - select: DatabaseSettingSelect; - }; -}; /** A `PlansModule` edge in the connection. */ export interface PlansModuleEdge { cursor?: string | null; @@ -39740,6 +39750,18 @@ export type PlansModuleEdgeSelect = { select: PlansModuleSelect; }; }; +/** A `DatabaseSetting` edge in the connection. */ +export interface DatabaseSettingEdge { + cursor?: string | null; + /** The `DatabaseSetting` at the end of the edge. */ + node?: DatabaseSetting | null; +} +export type DatabaseSettingEdgeSelect = { + cursor?: boolean; + node?: { + select: DatabaseSettingSelect; + }; +}; /** A `BillingModule` edge in the connection. */ export interface BillingModuleEdge { cursor?: string | null; diff --git a/sdk/constructive-cli/src/public/orm/models/index.ts b/sdk/constructive-cli/src/public/orm/models/index.ts index 39d973318..7a6c287de 100644 --- a/sdk/constructive-cli/src/public/orm/models/index.ts +++ b/sdk/constructive-cli/src/public/orm/models/index.ts @@ -141,9 +141,9 @@ export { RlsSettingModel } from './rlsSetting'; export { AppLimitEventModel } from './appLimitEvent'; export { OrgLimitEventModel } from './orgLimitEvent'; export { RlsModuleModel } from './rlsModule'; -export { DatabaseSettingModel } from './databaseSetting'; export { PlansModuleModel } from './plansModule'; export { SqlActionModel } from './sqlAction'; +export { DatabaseSettingModel } from './databaseSetting'; export { BillingModuleModel } from './billingModule'; export { AstMigrationModel } from './astMigration'; export { UserModel } from './user'; diff --git a/sdk/constructive-react/src/public/hooks/README.md b/sdk/constructive-react/src/public/hooks/README.md index 1eea9e43e..a750468dc 100644 --- a/sdk/constructive-react/src/public/hooks/README.md +++ b/sdk/constructive-react/src/public/hooks/README.md @@ -774,11 +774,6 @@ function App() { | `useCreateRlsModuleMutation` | Mutation | Create a rlsModule | | `useUpdateRlsModuleMutation` | Mutation | Update a rlsModule | | `useDeleteRlsModuleMutation` | Mutation | Delete a rlsModule | -| `useDatabaseSettingsQuery` | Query | Database-wide feature flags and settings; controls which platform features are available to all APIs in this database | -| `useDatabaseSettingQuery` | Query | Database-wide feature flags and settings; controls which platform features are available to all APIs in this database | -| `useCreateDatabaseSettingMutation` | Mutation | Database-wide feature flags and settings; controls which platform features are available to all APIs in this database | -| `useUpdateDatabaseSettingMutation` | Mutation | Database-wide feature flags and settings; controls which platform features are available to all APIs in this database | -| `useDeleteDatabaseSettingMutation` | Mutation | Database-wide feature flags and settings; controls which platform features are available to all APIs in this database | | `usePlansModulesQuery` | Query | List all plansModules | | `usePlansModuleQuery` | Query | Get one plansModule | | `useCreatePlansModuleMutation` | Mutation | Create a plansModule | @@ -789,6 +784,11 @@ function App() { | `useCreateSqlActionMutation` | Mutation | Create a sqlAction | | `useUpdateSqlActionMutation` | Mutation | Update a sqlAction | | `useDeleteSqlActionMutation` | Mutation | Delete a sqlAction | +| `useDatabaseSettingsQuery` | Query | Database-wide feature flags and settings; controls which platform features are available to all APIs in this database | +| `useDatabaseSettingQuery` | Query | Database-wide feature flags and settings; controls which platform features are available to all APIs in this database | +| `useCreateDatabaseSettingMutation` | Mutation | Database-wide feature flags and settings; controls which platform features are available to all APIs in this database | +| `useUpdateDatabaseSettingMutation` | Mutation | Database-wide feature flags and settings; controls which platform features are available to all APIs in this database | +| `useDeleteDatabaseSettingMutation` | Mutation | Database-wide feature flags and settings; controls which platform features are available to all APIs in this database | | `useBillingModulesQuery` | Query | List all billingModules | | `useBillingModuleQuery` | Query | Get one billingModule | | `useCreateBillingModuleMutation` | Mutation | Create a billingModule | @@ -1917,20 +1917,20 @@ create({ databaseId: '', siteId: '', name: '', appImage: '', - selection: { fields: { id: true, databaseId: true, apiId: true, enableAggregates: true, enablePostgis: true, enableSearch: true, enableDirectUploads: true, enablePresignedUploads: true, enableManyToMany: true, enableConnectionFilter: true, enableLtree: true, enableLlm: true, enableRealtime: true, options: true } }, + selection: { fields: { id: true, databaseId: true, apiId: true, enableAggregates: true, enablePostgis: true, enableSearch: true, enableDirectUploads: true, enablePresignedUploads: true, enableManyToMany: true, enableConnectionFilter: true, enableLtree: true, enableLlm: true, enableRealtime: true, enableBulk: true, options: true } }, }); // Create a apiSetting const { mutate: create } = useCreateApiSettingMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', apiId: '', enableAggregates: '', enablePostgis: '', enableSearch: '', enableDirectUploads: '', enablePresignedUploads: '', enableManyToMany: '', enableConnectionFilter: '', enableLtree: '', enableLlm: '', enableRealtime: '', options: '' }); +create({ databaseId: '', apiId: '', enableAggregates: '', enablePostgis: '', enableSearch: '', enableDirectUploads: '', enablePresignedUploads: '', enableManyToMany: '', enableConnectionFilter: '', enableLtree: '', enableLlm: '', enableRealtime: '', enableBulk: '', options: '' }); ``` ### ConnectedAccountsModule @@ -3784,27 +3784,6 @@ const { mutate: create } = useCreateRlsModuleMutation({ create({ databaseId: '', schemaId: '', privateSchemaId: '', sessionCredentialsTableId: '', sessionsTableId: '', usersTableId: '', authenticate: '', authenticateStrict: '', currentRole: '', currentRoleId: '' }); ``` -### DatabaseSetting - -```typescript -// List all databaseSettings -const { data, isLoading } = useDatabaseSettingsQuery({ - selection: { fields: { id: true, databaseId: true, enableAggregates: true, enablePostgis: true, enableSearch: true, enableDirectUploads: true, enablePresignedUploads: true, enableManyToMany: true, enableConnectionFilter: true, enableLtree: true, enableLlm: true, enableRealtime: true, options: true } }, -}); - -// Get one databaseSetting -const { data: item } = useDatabaseSettingQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, enableAggregates: true, enablePostgis: true, enableSearch: true, enableDirectUploads: true, enablePresignedUploads: true, enableManyToMany: true, enableConnectionFilter: true, enableLtree: true, enableLlm: true, enableRealtime: true, options: true } }, -}); - -// Create a databaseSetting -const { mutate: create } = useCreateDatabaseSettingMutation({ - selection: { fields: { id: true } }, -}); -create({ databaseId: '', enableAggregates: '', enablePostgis: '', enableSearch: '', enableDirectUploads: '', enablePresignedUploads: '', enableManyToMany: '', enableConnectionFilter: '', enableLtree: '', enableLlm: '', enableRealtime: '', options: '' }); -``` - ### PlansModule ```typescript @@ -3847,6 +3826,27 @@ const { mutate: create } = useCreateSqlActionMutation({ create({ name: '', databaseId: '', deploy: '', deps: '', payload: '', content: '', revert: '', verify: '', action: '', actionId: '', actorId: '' }); ``` +### DatabaseSetting + +```typescript +// List all databaseSettings +const { data, isLoading } = useDatabaseSettingsQuery({ + selection: { fields: { id: true, databaseId: true, enableAggregates: true, enablePostgis: true, enableSearch: true, enableDirectUploads: true, enablePresignedUploads: true, enableManyToMany: true, enableConnectionFilter: true, enableLtree: true, enableLlm: true, enableRealtime: true, enableBulk: true, options: true } }, +}); + +// Get one databaseSetting +const { data: item } = useDatabaseSettingQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, enableAggregates: true, enablePostgis: true, enableSearch: true, enableDirectUploads: true, enablePresignedUploads: true, enableManyToMany: true, enableConnectionFilter: true, enableLtree: true, enableLlm: true, enableRealtime: true, enableBulk: true, options: true } }, +}); + +// Create a databaseSetting +const { mutate: create } = useCreateDatabaseSettingMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', enableAggregates: '', enablePostgis: '', enableSearch: '', enableDirectUploads: '', enablePresignedUploads: '', enableManyToMany: '', enableConnectionFilter: '', enableLtree: '', enableLlm: '', enableRealtime: '', enableBulk: '', options: '' }); +``` + ### BillingModule ```typescript diff --git a/sdk/constructive-react/src/public/hooks/index.ts b/sdk/constructive-react/src/public/hooks/index.ts index 419ca7dfd..b66623ba2 100644 --- a/sdk/constructive-react/src/public/hooks/index.ts +++ b/sdk/constructive-react/src/public/hooks/index.ts @@ -2,7 +2,7 @@ * GraphQL SDK * @generated by @constructive-io/graphql-codegen * - * Tables: OrgGetManagersRecord, OrgGetSubordinatesRecord, GetAllRecord, AppPermission, OrgPermission, Object, AppLevelRequirement, Database, Schema, Table, CheckConstraint, Field, SpatialRelation, Partition, ForeignKeyConstraint, FullTextSearch, Index, Policy, PrimaryKeyConstraint, TableGrant, Trigger, UniqueConstraint, View, ViewTable, ViewGrant, ViewRule, EmbeddingChunk, SecureTableProvision, RelationProvision, SessionSecretsModule, IdentityProvidersModule, RealtimeModule, SchemaGrant, DefaultPrivilege, Enum, Function, ApiSchema, ApiModule, Domain, SiteMetadatum, SiteModule, SiteTheme, CorsSetting, TriggerFunction, DatabaseTransfer, Api, Site, App, ApiSetting, ConnectedAccountsModule, CryptoAddressesModule, CryptoAuthModule, DefaultIdsModule, DenormalizedTableField, EmailsModule, EncryptedSecretsModule, InvitesModule, LevelsModule, LimitsModule, MembershipTypesModule, MembershipsModule, PermissionsModule, PhoneNumbersModule, ProfilesModule, SecretsModule, SessionsModule, UserAuthModule, UsersModule, Blueprint, BlueprintTemplate, BlueprintConstruction, StorageModule, EntityTypeProvision, WebauthnCredentialsModule, WebauthnAuthModule, NotificationsModule, DatabaseProvisionModule, AppAdminGrant, AppOwnerGrant, AppGrant, OrgMembership, OrgMember, OrgAdminGrant, OrgOwnerGrant, OrgMemberProfile, OrgGrant, OrgChartEdge, OrgChartEdgeGrant, OrgPermissionDefault, AppLimit, AppLimitCredit, AppLimitCreditCodeItem, AppLimitCreditRedemption, OrgLimit, OrgLimitCredit, OrgLimitAggregate, AppStep, AppAchievement, AppLevel, Email, PhoneNumber, CryptoAddress, WebauthnCredential, AppInvite, AppClaimedInvite, OrgInvite, OrgClaimedInvite, AuditLog, AgentThread, AgentMessage, AgentTask, RoleType, IdentityProvider, Ref, Store, AppPermissionDefault, AppLimitCreditCode, AppLimitCapsDefault, OrgLimitCapsDefault, AppLimitCap, OrgLimitCap, MembershipType, MigrateFile, DevicesModule, NodeTypeRegistry, AppLimitDefault, OrgLimitDefault, UserConnectedAccount, Commit, PubkeySetting, RateLimitsModule, UsageSnapshot, AppMembershipDefault, OrgMembershipDefault, RlsSetting, AppLimitEvent, OrgLimitEvent, RlsModule, DatabaseSetting, PlansModule, SqlAction, BillingModule, AstMigration, User, OrgMembershipSetting, WebauthnSetting, AppMembership, BillingProviderModule, HierarchyModule + * Tables: OrgGetManagersRecord, OrgGetSubordinatesRecord, GetAllRecord, AppPermission, OrgPermission, Object, AppLevelRequirement, Database, Schema, Table, CheckConstraint, Field, SpatialRelation, Partition, ForeignKeyConstraint, FullTextSearch, Index, Policy, PrimaryKeyConstraint, TableGrant, Trigger, UniqueConstraint, View, ViewTable, ViewGrant, ViewRule, EmbeddingChunk, SecureTableProvision, RelationProvision, SessionSecretsModule, IdentityProvidersModule, RealtimeModule, SchemaGrant, DefaultPrivilege, Enum, Function, ApiSchema, ApiModule, Domain, SiteMetadatum, SiteModule, SiteTheme, CorsSetting, TriggerFunction, DatabaseTransfer, Api, Site, App, ApiSetting, ConnectedAccountsModule, CryptoAddressesModule, CryptoAuthModule, DefaultIdsModule, DenormalizedTableField, EmailsModule, EncryptedSecretsModule, InvitesModule, LevelsModule, LimitsModule, MembershipTypesModule, MembershipsModule, PermissionsModule, PhoneNumbersModule, ProfilesModule, SecretsModule, SessionsModule, UserAuthModule, UsersModule, Blueprint, BlueprintTemplate, BlueprintConstruction, StorageModule, EntityTypeProvision, WebauthnCredentialsModule, WebauthnAuthModule, NotificationsModule, DatabaseProvisionModule, AppAdminGrant, AppOwnerGrant, AppGrant, OrgMembership, OrgMember, OrgAdminGrant, OrgOwnerGrant, OrgMemberProfile, OrgGrant, OrgChartEdge, OrgChartEdgeGrant, OrgPermissionDefault, AppLimit, AppLimitCredit, AppLimitCreditCodeItem, AppLimitCreditRedemption, OrgLimit, OrgLimitCredit, OrgLimitAggregate, AppStep, AppAchievement, AppLevel, Email, PhoneNumber, CryptoAddress, WebauthnCredential, AppInvite, AppClaimedInvite, OrgInvite, OrgClaimedInvite, AuditLog, AgentThread, AgentMessage, AgentTask, RoleType, IdentityProvider, Ref, Store, AppPermissionDefault, AppLimitCreditCode, AppLimitCapsDefault, OrgLimitCapsDefault, AppLimitCap, OrgLimitCap, MembershipType, MigrateFile, DevicesModule, NodeTypeRegistry, AppLimitDefault, OrgLimitDefault, UserConnectedAccount, Commit, PubkeySetting, RateLimitsModule, UsageSnapshot, AppMembershipDefault, OrgMembershipDefault, RlsSetting, AppLimitEvent, OrgLimitEvent, RlsModule, PlansModule, SqlAction, DatabaseSetting, BillingModule, AstMigration, User, OrgMembershipSetting, WebauthnSetting, AppMembership, BillingProviderModule, HierarchyModule * * Usage: * diff --git a/sdk/constructive-react/src/public/hooks/invalidation.ts b/sdk/constructive-react/src/public/hooks/invalidation.ts index 1715d076a..f837f1f63 100644 --- a/sdk/constructive-react/src/public/hooks/invalidation.ts +++ b/sdk/constructive-react/src/public/hooks/invalidation.ts @@ -153,9 +153,9 @@ import { appLimitEventKeys, orgLimitEventKeys, rlsModuleKeys, - databaseSettingKeys, plansModuleKeys, sqlActionKeys, + databaseSettingKeys, billingModuleKeys, astMigrationKeys, userKeys, @@ -2447,23 +2447,6 @@ export const invalidate = { queryKey: rlsModuleKeys.detail(id), }), }, - /** Invalidate databaseSetting queries */ databaseSetting: { - /** Invalidate all databaseSetting queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: databaseSettingKeys.all, - }), - /** Invalidate databaseSetting list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: databaseSettingKeys.lists(), - }), - /** Invalidate a specific databaseSetting */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: databaseSettingKeys.detail(id), - }), - }, /** Invalidate plansModule queries */ plansModule: { /** Invalidate all plansModule queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -2498,6 +2481,23 @@ export const invalidate = { queryKey: sqlActionKeys.detail(id), }), }, + /** Invalidate databaseSetting queries */ databaseSetting: { + /** Invalidate all databaseSetting queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: databaseSettingKeys.all, + }), + /** Invalidate databaseSetting list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: databaseSettingKeys.lists(), + }), + /** Invalidate a specific databaseSetting */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: databaseSettingKeys.detail(id), + }), + }, /** Invalidate billingModule queries */ billingModule: { /** Invalidate all billingModule queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -3628,14 +3628,6 @@ export const remove = { queryKey: rlsModuleKeys.detail(id), }); }, - /** Remove databaseSetting from cache */ databaseSetting: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: databaseSettingKeys.detail(id), - }); - }, /** Remove plansModule from cache */ plansModule: ( queryClient: QueryClient, id: string | number @@ -3649,6 +3641,14 @@ export const remove = { queryKey: sqlActionKeys.detail(id), }); }, + /** Remove databaseSetting from cache */ databaseSetting: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: databaseSettingKeys.detail(id), + }); + }, /** Remove billingModule from cache */ billingModule: ( queryClient: QueryClient, id: string | number diff --git a/sdk/constructive-react/src/public/hooks/mutation-keys.ts b/sdk/constructive-react/src/public/hooks/mutation-keys.ts index 8ef40d210..208822e01 100644 --- a/sdk/constructive-react/src/public/hooks/mutation-keys.ts +++ b/sdk/constructive-react/src/public/hooks/mutation-keys.ts @@ -1252,15 +1252,6 @@ export const rlsModuleMutationKeys = { /** Delete rlsModule mutation key */ delete: (id: string | number) => ['mutation', 'rlsmodule', 'delete', id] as const, } as const; -export const databaseSettingMutationKeys = { - /** All databaseSetting mutation keys */ all: ['mutation', 'databasesetting'] as const, - /** Create databaseSetting mutation key */ create: () => - ['mutation', 'databasesetting', 'create'] as const, - /** Update databaseSetting mutation key */ update: (id: string | number) => - ['mutation', 'databasesetting', 'update', id] as const, - /** Delete databaseSetting mutation key */ delete: (id: string | number) => - ['mutation', 'databasesetting', 'delete', id] as const, -} as const; export const plansModuleMutationKeys = { /** All plansModule mutation keys */ all: ['mutation', 'plansmodule'] as const, /** Create plansModule mutation key */ create: () => @@ -1278,6 +1269,15 @@ export const sqlActionMutationKeys = { /** Delete sqlAction mutation key */ delete: (id: string | number) => ['mutation', 'sqlaction', 'delete', id] as const, } as const; +export const databaseSettingMutationKeys = { + /** All databaseSetting mutation keys */ all: ['mutation', 'databasesetting'] as const, + /** Create databaseSetting mutation key */ create: () => + ['mutation', 'databasesetting', 'create'] as const, + /** Update databaseSetting mutation key */ update: (id: string | number) => + ['mutation', 'databasesetting', 'update', id] as const, + /** Delete databaseSetting mutation key */ delete: (id: string | number) => + ['mutation', 'databasesetting', 'delete', id] as const, +} as const; export const billingModuleMutationKeys = { /** All billingModule mutation keys */ all: ['mutation', 'billingmodule'] as const, /** Create billingModule mutation key */ create: () => @@ -1722,9 +1722,9 @@ export const mutationKeys = { appLimitEvent: appLimitEventMutationKeys, orgLimitEvent: orgLimitEventMutationKeys, rlsModule: rlsModuleMutationKeys, - databaseSetting: databaseSettingMutationKeys, plansModule: plansModuleMutationKeys, sqlAction: sqlActionMutationKeys, + databaseSetting: databaseSettingMutationKeys, billingModule: billingModuleMutationKeys, astMigration: astMigrationMutationKeys, user: userMutationKeys, diff --git a/sdk/constructive-react/src/public/hooks/mutations/index.ts b/sdk/constructive-react/src/public/hooks/mutations/index.ts index 272ddbf1a..63aa9ff9c 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/index.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/index.ts @@ -401,13 +401,13 @@ export * from './useCreateOrgLimitEventMutation'; export * from './useCreateRlsModuleMutation'; export * from './useUpdateRlsModuleMutation'; export * from './useDeleteRlsModuleMutation'; -export * from './useCreateDatabaseSettingMutation'; -export * from './useUpdateDatabaseSettingMutation'; -export * from './useDeleteDatabaseSettingMutation'; export * from './useCreatePlansModuleMutation'; export * from './useUpdatePlansModuleMutation'; export * from './useDeletePlansModuleMutation'; export * from './useCreateSqlActionMutation'; +export * from './useCreateDatabaseSettingMutation'; +export * from './useUpdateDatabaseSettingMutation'; +export * from './useDeleteDatabaseSettingMutation'; export * from './useCreateBillingModuleMutation'; export * from './useUpdateBillingModuleMutation'; export * from './useDeleteBillingModuleMutation'; diff --git a/sdk/constructive-react/src/public/hooks/queries/index.ts b/sdk/constructive-react/src/public/hooks/queries/index.ts index 415640e41..9e48424a5 100644 --- a/sdk/constructive-react/src/public/hooks/queries/index.ts +++ b/sdk/constructive-react/src/public/hooks/queries/index.ts @@ -273,12 +273,12 @@ export * from './useAppLimitEventsQuery'; export * from './useOrgLimitEventsQuery'; export * from './useRlsModulesQuery'; export * from './useRlsModuleQuery'; -export * from './useDatabaseSettingsQuery'; -export * from './useDatabaseSettingQuery'; export * from './usePlansModulesQuery'; export * from './usePlansModuleQuery'; export * from './useSqlActionsQuery'; export * from './useSqlActionQuery'; +export * from './useDatabaseSettingsQuery'; +export * from './useDatabaseSettingQuery'; export * from './useBillingModulesQuery'; export * from './useBillingModuleQuery'; export * from './useAstMigrationsQuery'; diff --git a/sdk/constructive-react/src/public/hooks/query-keys.ts b/sdk/constructive-react/src/public/hooks/query-keys.ts index af0266486..ce186a002 100644 --- a/sdk/constructive-react/src/public/hooks/query-keys.ts +++ b/sdk/constructive-react/src/public/hooks/query-keys.ts @@ -1261,15 +1261,6 @@ export const rlsModuleKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...rlsModuleKeys.details(), id] as const, } as const; -export const databaseSettingKeys = { - /** All databaseSetting queries */ all: ['databasesetting'] as const, - /** List query keys */ lists: () => [...databaseSettingKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...databaseSettingKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...databaseSettingKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...databaseSettingKeys.details(), id] as const, -} as const; export const plansModuleKeys = { /** All plansModule queries */ all: ['plansmodule'] as const, /** List query keys */ lists: () => [...plansModuleKeys.all, 'list'] as const, @@ -1288,6 +1279,15 @@ export const sqlActionKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...sqlActionKeys.details(), id] as const, } as const; +export const databaseSettingKeys = { + /** All databaseSetting queries */ all: ['databasesetting'] as const, + /** List query keys */ lists: () => [...databaseSettingKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...databaseSettingKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...databaseSettingKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...databaseSettingKeys.details(), id] as const, +} as const; export const billingModuleKeys = { /** All billingModule queries */ all: ['billingmodule'] as const, /** List query keys */ lists: () => [...billingModuleKeys.all, 'list'] as const, @@ -1571,9 +1571,9 @@ export const queryKeys = { appLimitEvent: appLimitEventKeys, orgLimitEvent: orgLimitEventKeys, rlsModule: rlsModuleKeys, - databaseSetting: databaseSettingKeys, plansModule: plansModuleKeys, sqlAction: sqlActionKeys, + databaseSetting: databaseSettingKeys, billingModule: billingModuleKeys, astMigration: astMigrationKeys, user: userKeys, diff --git a/sdk/constructive-react/src/public/orm/README.md b/sdk/constructive-react/src/public/orm/README.md index dcb1cd177..a35827cdf 100644 --- a/sdk/constructive-react/src/public/orm/README.md +++ b/sdk/constructive-react/src/public/orm/README.md @@ -159,9 +159,9 @@ const db = createClient({ | `appLimitEvent` | findMany, findOne, create, update, delete | | `orgLimitEvent` | findMany, findOne, create, update, delete | | `rlsModule` | findMany, findOne, create, update, delete | -| `databaseSetting` | findMany, findOne, create, update, delete | | `plansModule` | findMany, findOne, create, update, delete | | `sqlAction` | findMany, findOne, create, update, delete | +| `databaseSetting` | findMany, findOne, create, update, delete | | `billingModule` | findMany, findOne, create, update, delete | | `astMigration` | findMany, findOne, create, update, delete | | `user` | findMany, findOne, create, update, delete | @@ -2005,19 +2005,20 @@ CRUD operations for ApiSetting records. | `enableLtree` | Boolean | Yes | | `enableLlm` | Boolean | Yes | | `enableRealtime` | Boolean | Yes | +| `enableBulk` | Boolean | Yes | | `options` | JSON | Yes | **Operations:** ```typescript // List all apiSetting records -const items = await db.apiSetting.findMany({ select: { id: true, databaseId: true, apiId: true, enableAggregates: true, enablePostgis: true, enableSearch: true, enableDirectUploads: true, enablePresignedUploads: true, enableManyToMany: true, enableConnectionFilter: true, enableLtree: true, enableLlm: true, enableRealtime: true, options: true } }).execute(); +const items = await db.apiSetting.findMany({ select: { id: true, databaseId: true, apiId: true, enableAggregates: true, enablePostgis: true, enableSearch: true, enableDirectUploads: true, enablePresignedUploads: true, enableManyToMany: true, enableConnectionFilter: true, enableLtree: true, enableLlm: true, enableRealtime: true, enableBulk: true, options: true } }).execute(); // Get one by id -const item = await db.apiSetting.findOne({ id: '', select: { id: true, databaseId: true, apiId: true, enableAggregates: true, enablePostgis: true, enableSearch: true, enableDirectUploads: true, enablePresignedUploads: true, enableManyToMany: true, enableConnectionFilter: true, enableLtree: true, enableLlm: true, enableRealtime: true, options: true } }).execute(); +const item = await db.apiSetting.findOne({ id: '', select: { id: true, databaseId: true, apiId: true, enableAggregates: true, enablePostgis: true, enableSearch: true, enableDirectUploads: true, enablePresignedUploads: true, enableManyToMany: true, enableConnectionFilter: true, enableLtree: true, enableLlm: true, enableRealtime: true, enableBulk: true, options: true } }).execute(); // Create -const created = await db.apiSetting.create({ data: { databaseId: '', apiId: '', enableAggregates: '', enablePostgis: '', enableSearch: '', enableDirectUploads: '', enablePresignedUploads: '', enableManyToMany: '', enableConnectionFilter: '', enableLtree: '', enableLlm: '', enableRealtime: '', options: '' }, select: { id: true } }).execute(); +const created = await db.apiSetting.create({ data: { databaseId: '', apiId: '', enableAggregates: '', enablePostgis: '', enableSearch: '', enableDirectUploads: '', enablePresignedUploads: '', enableManyToMany: '', enableConnectionFilter: '', enableLtree: '', enableLlm: '', enableRealtime: '', enableBulk: '', options: '' }, select: { id: true } }).execute(); // Update const updated = await db.apiSetting.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -5375,47 +5376,6 @@ const updated = await db.rlsModule.update({ where: { id: '' }, data: { dat const deleted = await db.rlsModule.delete({ where: { id: '' } }).execute(); ``` -### `db.databaseSetting` - -CRUD operations for DatabaseSetting records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `enableAggregates` | Boolean | Yes | -| `enablePostgis` | Boolean | Yes | -| `enableSearch` | Boolean | Yes | -| `enableDirectUploads` | Boolean | Yes | -| `enablePresignedUploads` | Boolean | Yes | -| `enableManyToMany` | Boolean | Yes | -| `enableConnectionFilter` | Boolean | Yes | -| `enableLtree` | Boolean | Yes | -| `enableLlm` | Boolean | Yes | -| `enableRealtime` | Boolean | Yes | -| `options` | JSON | Yes | - -**Operations:** - -```typescript -// List all databaseSetting records -const items = await db.databaseSetting.findMany({ select: { id: true, databaseId: true, enableAggregates: true, enablePostgis: true, enableSearch: true, enableDirectUploads: true, enablePresignedUploads: true, enableManyToMany: true, enableConnectionFilter: true, enableLtree: true, enableLlm: true, enableRealtime: true, options: true } }).execute(); - -// Get one by id -const item = await db.databaseSetting.findOne({ id: '', select: { id: true, databaseId: true, enableAggregates: true, enablePostgis: true, enableSearch: true, enableDirectUploads: true, enablePresignedUploads: true, enableManyToMany: true, enableConnectionFilter: true, enableLtree: true, enableLlm: true, enableRealtime: true, options: true } }).execute(); - -// Create -const created = await db.databaseSetting.create({ data: { databaseId: '', enableAggregates: '', enablePostgis: '', enableSearch: '', enableDirectUploads: '', enablePresignedUploads: '', enableManyToMany: '', enableConnectionFilter: '', enableLtree: '', enableLlm: '', enableRealtime: '', options: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.databaseSetting.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.databaseSetting.delete({ where: { id: '' } }).execute(); -``` - ### `db.plansModule` CRUD operations for PlansModule records. @@ -5498,6 +5458,48 @@ const updated = await db.sqlAction.update({ where: { id: '' }, data: { name const deleted = await db.sqlAction.delete({ where: { id: '' } }).execute(); ``` +### `db.databaseSetting` + +CRUD operations for DatabaseSetting records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `enableAggregates` | Boolean | Yes | +| `enablePostgis` | Boolean | Yes | +| `enableSearch` | Boolean | Yes | +| `enableDirectUploads` | Boolean | Yes | +| `enablePresignedUploads` | Boolean | Yes | +| `enableManyToMany` | Boolean | Yes | +| `enableConnectionFilter` | Boolean | Yes | +| `enableLtree` | Boolean | Yes | +| `enableLlm` | Boolean | Yes | +| `enableRealtime` | Boolean | Yes | +| `enableBulk` | Boolean | Yes | +| `options` | JSON | Yes | + +**Operations:** + +```typescript +// List all databaseSetting records +const items = await db.databaseSetting.findMany({ select: { id: true, databaseId: true, enableAggregates: true, enablePostgis: true, enableSearch: true, enableDirectUploads: true, enablePresignedUploads: true, enableManyToMany: true, enableConnectionFilter: true, enableLtree: true, enableLlm: true, enableRealtime: true, enableBulk: true, options: true } }).execute(); + +// Get one by id +const item = await db.databaseSetting.findOne({ id: '', select: { id: true, databaseId: true, enableAggregates: true, enablePostgis: true, enableSearch: true, enableDirectUploads: true, enablePresignedUploads: true, enableManyToMany: true, enableConnectionFilter: true, enableLtree: true, enableLlm: true, enableRealtime: true, enableBulk: true, options: true } }).execute(); + +// Create +const created = await db.databaseSetting.create({ data: { databaseId: '', enableAggregates: '', enablePostgis: '', enableSearch: '', enableDirectUploads: '', enablePresignedUploads: '', enableManyToMany: '', enableConnectionFilter: '', enableLtree: '', enableLlm: '', enableRealtime: '', enableBulk: '', options: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.databaseSetting.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.databaseSetting.delete({ where: { id: '' } }).execute(); +``` + ### `db.billingModule` CRUD operations for BillingModule records. diff --git a/sdk/constructive-react/src/public/orm/index.ts b/sdk/constructive-react/src/public/orm/index.ts index af693d845..b6c0d9b3e 100644 --- a/sdk/constructive-react/src/public/orm/index.ts +++ b/sdk/constructive-react/src/public/orm/index.ts @@ -143,9 +143,9 @@ import { RlsSettingModel } from './models/rlsSetting'; import { AppLimitEventModel } from './models/appLimitEvent'; import { OrgLimitEventModel } from './models/orgLimitEvent'; import { RlsModuleModel } from './models/rlsModule'; -import { DatabaseSettingModel } from './models/databaseSetting'; import { PlansModuleModel } from './models/plansModule'; import { SqlActionModel } from './models/sqlAction'; +import { DatabaseSettingModel } from './models/databaseSetting'; import { BillingModuleModel } from './models/billingModule'; import { AstMigrationModel } from './models/astMigration'; import { UserModel } from './models/user'; @@ -327,9 +327,9 @@ export function createClient(config: OrmClientConfig) { appLimitEvent: new AppLimitEventModel(client), orgLimitEvent: new OrgLimitEventModel(client), rlsModule: new RlsModuleModel(client), - databaseSetting: new DatabaseSettingModel(client), plansModule: new PlansModuleModel(client), sqlAction: new SqlActionModel(client), + databaseSetting: new DatabaseSettingModel(client), billingModule: new BillingModuleModel(client), astMigration: new AstMigrationModel(client), user: new UserModel(client), diff --git a/sdk/constructive-react/src/public/orm/input-types.ts b/sdk/constructive-react/src/public/orm/input-types.ts index c0bb01544..505058774 100644 --- a/sdk/constructive-react/src/public/orm/input-types.ts +++ b/sdk/constructive-react/src/public/orm/input-types.ts @@ -1045,6 +1045,8 @@ export interface ApiSetting { enableLlm?: boolean | null; /** Override: enable realtime subscriptions (NULL = inherit from database_settings) */ enableRealtime?: boolean | null; + /** Override: enable bulk mutations (NULL = inherit from database_settings) */ + enableBulk?: boolean | null; /** Extensible JSON for additional per-API settings that do not have dedicated columns */ options?: Record | null; } @@ -2645,35 +2647,6 @@ export interface RlsModule { currentRole?: string | null; currentRoleId?: string | null; } -/** Database-wide feature flags and settings; controls which platform features are available to all APIs in this database */ -export interface DatabaseSetting { - /** Unique identifier for this settings record */ - id: string; - /** Reference to the metaschema database these settings apply to */ - databaseId?: string | null; - /** Enable aggregate queries (sum, avg, min, max, etc.) in the GraphQL API */ - enableAggregates?: boolean | null; - /** Enable PostGIS spatial types and operators in the GraphQL API */ - enablePostgis?: boolean | null; - /** Enable unified search (tsvector, BM25, pg_trgm, pgvector) in the GraphQL API */ - enableSearch?: boolean | null; - /** Enable direct (multipart) file upload mutations in the GraphQL API */ - enableDirectUploads?: boolean | null; - /** Enable presigned URL upload flow for S3/MinIO storage */ - enablePresignedUploads?: boolean | null; - /** Enable many-to-many relationship queries in the GraphQL API */ - enableManyToMany?: boolean | null; - /** Enable connection filter (where argument) in the GraphQL API */ - enableConnectionFilter?: boolean | null; - /** Enable ltree hierarchical data type support in the GraphQL API */ - enableLtree?: boolean | null; - /** Enable LLM/AI integration features in the GraphQL API */ - enableLlm?: boolean | null; - /** Enable realtime subscriptions (cursor-tracked change delivery) in the GraphQL API */ - enableRealtime?: boolean | null; - /** Extensible JSON for additional settings that do not have dedicated columns */ - options?: Record | null; -} export interface PlansModule { id: string; databaseId?: string | null; @@ -2704,6 +2677,37 @@ export interface SqlAction { actionId?: string | null; actorId?: string | null; } +/** Database-wide feature flags and settings; controls which platform features are available to all APIs in this database */ +export interface DatabaseSetting { + /** Unique identifier for this settings record */ + id: string; + /** Reference to the metaschema database these settings apply to */ + databaseId?: string | null; + /** Enable aggregate queries (sum, avg, min, max, etc.) in the GraphQL API */ + enableAggregates?: boolean | null; + /** Enable PostGIS spatial types and operators in the GraphQL API */ + enablePostgis?: boolean | null; + /** Enable unified search (tsvector, BM25, pg_trgm, pgvector) in the GraphQL API */ + enableSearch?: boolean | null; + /** Enable direct (multipart) file upload mutations in the GraphQL API */ + enableDirectUploads?: boolean | null; + /** Enable presigned URL upload flow for S3/MinIO storage */ + enablePresignedUploads?: boolean | null; + /** Enable many-to-many relationship queries in the GraphQL API */ + enableManyToMany?: boolean | null; + /** Enable connection filter (where argument) in the GraphQL API */ + enableConnectionFilter?: boolean | null; + /** Enable ltree hierarchical data type support in the GraphQL API */ + enableLtree?: boolean | null; + /** Enable LLM/AI integration features in the GraphQL API */ + enableLlm?: boolean | null; + /** Enable realtime subscriptions (cursor-tracked change delivery) in the GraphQL API */ + enableRealtime?: boolean | null; + /** Enable bulk mutation operations (insert, upsert, update, delete) in the GraphQL API */ + enableBulk?: boolean | null; + /** Extensible JSON for additional settings that do not have dedicated columns */ + options?: Record | null; +} export interface BillingModule { id: string; databaseId?: string | null; @@ -3659,9 +3663,6 @@ export interface RlsModuleRelations { sessionsTable?: Table | null; usersTable?: Table | null; } -export interface DatabaseSettingRelations { - database?: Database | null; -} export interface PlansModuleRelations { database?: Database | null; planLimitsTable?: Table | null; @@ -3672,6 +3673,9 @@ export interface PlansModuleRelations { schema?: Schema | null; } export interface SqlActionRelations {} +export interface DatabaseSettingRelations { + database?: Database | null; +} export interface BillingModuleRelations { balancesTable?: Table | null; database?: Database | null; @@ -3948,9 +3952,9 @@ export type RlsSettingWithRelations = RlsSetting & RlsSettingRelations; export type AppLimitEventWithRelations = AppLimitEvent & AppLimitEventRelations; export type OrgLimitEventWithRelations = OrgLimitEvent & OrgLimitEventRelations; export type RlsModuleWithRelations = RlsModule & RlsModuleRelations; -export type DatabaseSettingWithRelations = DatabaseSetting & DatabaseSettingRelations; export type PlansModuleWithRelations = PlansModule & PlansModuleRelations; export type SqlActionWithRelations = SqlAction & SqlActionRelations; +export type DatabaseSettingWithRelations = DatabaseSetting & DatabaseSettingRelations; export type BillingModuleWithRelations = BillingModule & BillingModuleRelations; export type AstMigrationWithRelations = AstMigration & AstMigrationRelations; export type UserWithRelations = User & UserRelations; @@ -5592,6 +5596,7 @@ export type ApiSettingSelect = { enableLtree?: boolean; enableLlm?: boolean; enableRealtime?: boolean; + enableBulk?: boolean; options?: boolean; api?: { select: ApiSelect; @@ -7481,24 +7486,6 @@ export type RlsModuleSelect = { select: TableSelect; }; }; -export type DatabaseSettingSelect = { - id?: boolean; - databaseId?: boolean; - enableAggregates?: boolean; - enablePostgis?: boolean; - enableSearch?: boolean; - enableDirectUploads?: boolean; - enablePresignedUploads?: boolean; - enableManyToMany?: boolean; - enableConnectionFilter?: boolean; - enableLtree?: boolean; - enableLlm?: boolean; - enableRealtime?: boolean; - options?: boolean; - database?: { - select: DatabaseSelect; - }; -}; export type PlansModuleSelect = { id?: boolean; databaseId?: boolean; @@ -7550,6 +7537,25 @@ export type SqlActionSelect = { actionId?: boolean; actorId?: boolean; }; +export type DatabaseSettingSelect = { + id?: boolean; + databaseId?: boolean; + enableAggregates?: boolean; + enablePostgis?: boolean; + enableSearch?: boolean; + enableDirectUploads?: boolean; + enablePresignedUploads?: boolean; + enableManyToMany?: boolean; + enableConnectionFilter?: boolean; + enableLtree?: boolean; + enableLlm?: boolean; + enableRealtime?: boolean; + enableBulk?: boolean; + options?: boolean; + database?: { + select: DatabaseSelect; + }; +}; export type BillingModuleSelect = { id?: boolean; databaseId?: boolean; @@ -10239,6 +10245,8 @@ export interface ApiSettingFilter { enableLlm?: BooleanFilter; /** Filter by the object’s `enableRealtime` field. */ enableRealtime?: BooleanFilter; + /** Filter by the object’s `enableBulk` field. */ + enableBulk?: BooleanFilter; /** Filter by the object’s `options` field. */ options?: JSONFilter; /** Checks for all expressions in this list. */ @@ -13354,42 +13362,6 @@ export interface RlsModuleFilter { /** Filter by the object’s `usersTable` relation. */ usersTable?: TableFilter; } -export interface DatabaseSettingFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `enableAggregates` field. */ - enableAggregates?: BooleanFilter; - /** Filter by the object’s `enablePostgis` field. */ - enablePostgis?: BooleanFilter; - /** Filter by the object’s `enableSearch` field. */ - enableSearch?: BooleanFilter; - /** Filter by the object’s `enableDirectUploads` field. */ - enableDirectUploads?: BooleanFilter; - /** Filter by the object’s `enablePresignedUploads` field. */ - enablePresignedUploads?: BooleanFilter; - /** Filter by the object’s `enableManyToMany` field. */ - enableManyToMany?: BooleanFilter; - /** Filter by the object’s `enableConnectionFilter` field. */ - enableConnectionFilter?: BooleanFilter; - /** Filter by the object’s `enableLtree` field. */ - enableLtree?: BooleanFilter; - /** Filter by the object’s `enableLlm` field. */ - enableLlm?: BooleanFilter; - /** Filter by the object’s `enableRealtime` field. */ - enableRealtime?: BooleanFilter; - /** Filter by the object’s `options` field. */ - options?: JSONFilter; - /** Checks for all expressions in this list. */ - and?: DatabaseSettingFilter[]; - /** Checks for any expressions in this list. */ - or?: DatabaseSettingFilter[]; - /** Negates the expression. */ - not?: DatabaseSettingFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; -} export interface PlansModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -13474,6 +13446,44 @@ export interface SqlActionFilter { /** Negates the expression. */ not?: SqlActionFilter; } +export interface DatabaseSettingFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `enableAggregates` field. */ + enableAggregates?: BooleanFilter; + /** Filter by the object’s `enablePostgis` field. */ + enablePostgis?: BooleanFilter; + /** Filter by the object’s `enableSearch` field. */ + enableSearch?: BooleanFilter; + /** Filter by the object’s `enableDirectUploads` field. */ + enableDirectUploads?: BooleanFilter; + /** Filter by the object’s `enablePresignedUploads` field. */ + enablePresignedUploads?: BooleanFilter; + /** Filter by the object’s `enableManyToMany` field. */ + enableManyToMany?: BooleanFilter; + /** Filter by the object’s `enableConnectionFilter` field. */ + enableConnectionFilter?: BooleanFilter; + /** Filter by the object’s `enableLtree` field. */ + enableLtree?: BooleanFilter; + /** Filter by the object’s `enableLlm` field. */ + enableLlm?: BooleanFilter; + /** Filter by the object’s `enableRealtime` field. */ + enableRealtime?: BooleanFilter; + /** Filter by the object’s `enableBulk` field. */ + enableBulk?: BooleanFilter; + /** Filter by the object’s `options` field. */ + options?: JSONFilter; + /** Checks for all expressions in this list. */ + and?: DatabaseSettingFilter[]; + /** Checks for any expressions in this list. */ + or?: DatabaseSettingFilter[]; + /** Negates the expression. */ + not?: DatabaseSettingFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; +} export interface BillingModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -15296,6 +15306,8 @@ export type ApiSettingOrderBy = | 'ENABLE_LLM_DESC' | 'ENABLE_REALTIME_ASC' | 'ENABLE_REALTIME_DESC' + | 'ENABLE_BULK_ASC' + | 'ENABLE_BULK_DESC' | 'OPTIONS_ASC' | 'OPTIONS_DESC'; export type ConnectedAccountsModuleOrderBy = @@ -17358,36 +17370,6 @@ export type RlsModuleOrderBy = | 'CURRENT_ROLE_DESC' | 'CURRENT_ROLE_ID_ASC' | 'CURRENT_ROLE_ID_DESC'; -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'; export type PlansModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -17446,6 +17428,38 @@ export type SqlActionOrderBy = | 'ACTION_ID_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC'; +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' + | 'ENABLE_BULK_ASC' + | 'ENABLE_BULK_DESC' + | 'OPTIONS_ASC' + | 'OPTIONS_DESC'; export type BillingModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -19278,6 +19292,7 @@ export interface CreateApiSettingInput { enableLtree?: boolean; enableLlm?: boolean; enableRealtime?: boolean; + enableBulk?: boolean; options?: Record; }; } @@ -19294,6 +19309,7 @@ export interface ApiSettingPatch { enableLtree?: boolean | null; enableLlm?: boolean | null; enableRealtime?: boolean | null; + enableBulk?: boolean | null; options?: Record | null; } export interface UpdateApiSettingInput { @@ -22149,46 +22165,6 @@ export interface DeleteRlsModuleInput { clientMutationId?: string; id: string; } -export interface CreateDatabaseSettingInput { - clientMutationId?: string; - databaseSetting: { - databaseId: string; - enableAggregates?: boolean; - enablePostgis?: boolean; - enableSearch?: boolean; - enableDirectUploads?: boolean; - enablePresignedUploads?: boolean; - enableManyToMany?: boolean; - enableConnectionFilter?: boolean; - enableLtree?: boolean; - enableLlm?: boolean; - enableRealtime?: boolean; - options?: Record; - }; -} -export interface DatabaseSettingPatch { - databaseId?: string | null; - enableAggregates?: boolean | null; - enablePostgis?: boolean | null; - enableSearch?: boolean | null; - enableDirectUploads?: boolean | null; - enablePresignedUploads?: boolean | null; - enableManyToMany?: boolean | null; - enableConnectionFilter?: boolean | null; - enableLtree?: boolean | null; - enableLlm?: boolean | null; - enableRealtime?: boolean | null; - options?: Record | null; -} -export interface UpdateDatabaseSettingInput { - clientMutationId?: string; - id: string; - databaseSettingPatch: DatabaseSettingPatch; -} -export interface DeleteDatabaseSettingInput { - clientMutationId?: string; - id: string; -} export interface CreatePlansModuleInput { clientMutationId?: string; plansModule: { @@ -22267,6 +22243,48 @@ export interface DeleteSqlActionInput { clientMutationId?: string; id: number; } +export interface CreateDatabaseSettingInput { + clientMutationId?: string; + databaseSetting: { + databaseId: string; + enableAggregates?: boolean; + enablePostgis?: boolean; + enableSearch?: boolean; + enableDirectUploads?: boolean; + enablePresignedUploads?: boolean; + enableManyToMany?: boolean; + enableConnectionFilter?: boolean; + enableLtree?: boolean; + enableLlm?: boolean; + enableRealtime?: boolean; + enableBulk?: boolean; + options?: Record; + }; +} +export interface DatabaseSettingPatch { + databaseId?: string | null; + enableAggregates?: boolean | null; + enablePostgis?: boolean | null; + enableSearch?: boolean | null; + enableDirectUploads?: boolean | null; + enablePresignedUploads?: boolean | null; + enableManyToMany?: boolean | null; + enableConnectionFilter?: boolean | null; + enableLtree?: boolean | null; + enableLlm?: boolean | null; + enableRealtime?: boolean | null; + enableBulk?: boolean | null; + options?: Record | null; +} +export interface UpdateDatabaseSettingInput { + clientMutationId?: string; + id: string; + databaseSettingPatch: DatabaseSettingPatch; +} +export interface DeleteDatabaseSettingInput { + clientMutationId?: string; + id: string; +} export interface CreateBillingModuleInput { clientMutationId?: string; billingModule: { @@ -26604,6 +26622,8 @@ export interface ApiSettingFilter { enableLlm?: BooleanFilter; /** Filter by the object’s `enableRealtime` field. */ enableRealtime?: BooleanFilter; + /** Filter by the object’s `enableBulk` field. */ + enableBulk?: BooleanFilter; /** Filter by the object’s `options` field. */ options?: JSONFilter; /** Checks for all expressions in this list. */ @@ -30442,6 +30462,8 @@ export interface DatabaseSettingFilter { enableLlm?: BooleanFilter; /** Filter by the object’s `enableRealtime` field. */ enableRealtime?: BooleanFilter; + /** Filter by the object’s `enableBulk` field. */ + enableBulk?: BooleanFilter; /** Filter by the object’s `options` field. */ options?: JSONFilter; /** Checks for all expressions in this list. */ @@ -37592,51 +37614,6 @@ export type DeleteRlsModulePayloadSelect = { select: RlsModuleEdgeSelect; }; }; -export interface CreateDatabaseSettingPayload { - clientMutationId?: string | null; - /** The `DatabaseSetting` that was created by this mutation. */ - databaseSetting?: DatabaseSetting | null; - databaseSettingEdge?: DatabaseSettingEdge | null; -} -export type CreateDatabaseSettingPayloadSelect = { - clientMutationId?: boolean; - databaseSetting?: { - select: DatabaseSettingSelect; - }; - databaseSettingEdge?: { - select: DatabaseSettingEdgeSelect; - }; -}; -export interface UpdateDatabaseSettingPayload { - clientMutationId?: string | null; - /** The `DatabaseSetting` that was updated by this mutation. */ - databaseSetting?: DatabaseSetting | null; - databaseSettingEdge?: DatabaseSettingEdge | null; -} -export type UpdateDatabaseSettingPayloadSelect = { - clientMutationId?: boolean; - databaseSetting?: { - select: DatabaseSettingSelect; - }; - databaseSettingEdge?: { - select: DatabaseSettingEdgeSelect; - }; -}; -export interface DeleteDatabaseSettingPayload { - clientMutationId?: string | null; - /** The `DatabaseSetting` that was deleted by this mutation. */ - databaseSetting?: DatabaseSetting | null; - databaseSettingEdge?: DatabaseSettingEdge | null; -} -export type DeleteDatabaseSettingPayloadSelect = { - clientMutationId?: boolean; - databaseSetting?: { - select: DatabaseSettingSelect; - }; - databaseSettingEdge?: { - select: DatabaseSettingEdgeSelect; - }; -}; export interface CreatePlansModulePayload { clientMutationId?: string | null; /** The `PlansModule` that was created by this mutation. */ @@ -37693,6 +37670,51 @@ export type CreateSqlActionPayloadSelect = { select: SqlActionSelect; }; }; +export interface CreateDatabaseSettingPayload { + clientMutationId?: string | null; + /** The `DatabaseSetting` that was created by this mutation. */ + databaseSetting?: DatabaseSetting | null; + databaseSettingEdge?: DatabaseSettingEdge | null; +} +export type CreateDatabaseSettingPayloadSelect = { + clientMutationId?: boolean; + databaseSetting?: { + select: DatabaseSettingSelect; + }; + databaseSettingEdge?: { + select: DatabaseSettingEdgeSelect; + }; +}; +export interface UpdateDatabaseSettingPayload { + clientMutationId?: string | null; + /** The `DatabaseSetting` that was updated by this mutation. */ + databaseSetting?: DatabaseSetting | null; + databaseSettingEdge?: DatabaseSettingEdge | null; +} +export type UpdateDatabaseSettingPayloadSelect = { + clientMutationId?: boolean; + databaseSetting?: { + select: DatabaseSettingSelect; + }; + databaseSettingEdge?: { + select: DatabaseSettingEdgeSelect; + }; +}; +export interface DeleteDatabaseSettingPayload { + clientMutationId?: string | null; + /** The `DatabaseSetting` that was deleted by this mutation. */ + databaseSetting?: DatabaseSetting | null; + databaseSettingEdge?: DatabaseSettingEdge | null; +} +export type DeleteDatabaseSettingPayloadSelect = { + clientMutationId?: boolean; + databaseSetting?: { + select: DatabaseSettingSelect; + }; + databaseSettingEdge?: { + select: DatabaseSettingEdgeSelect; + }; +}; export interface CreateBillingModulePayload { clientMutationId?: string | null; /** The `BillingModule` that was created by this mutation. */ @@ -39716,18 +39738,6 @@ export type RlsModuleEdgeSelect = { select: RlsModuleSelect; }; }; -/** A `DatabaseSetting` edge in the connection. */ -export interface DatabaseSettingEdge { - cursor?: string | null; - /** The `DatabaseSetting` at the end of the edge. */ - node?: DatabaseSetting | null; -} -export type DatabaseSettingEdgeSelect = { - cursor?: boolean; - node?: { - select: DatabaseSettingSelect; - }; -}; /** A `PlansModule` edge in the connection. */ export interface PlansModuleEdge { cursor?: string | null; @@ -39740,6 +39750,18 @@ export type PlansModuleEdgeSelect = { select: PlansModuleSelect; }; }; +/** A `DatabaseSetting` edge in the connection. */ +export interface DatabaseSettingEdge { + cursor?: string | null; + /** The `DatabaseSetting` at the end of the edge. */ + node?: DatabaseSetting | null; +} +export type DatabaseSettingEdgeSelect = { + cursor?: boolean; + node?: { + select: DatabaseSettingSelect; + }; +}; /** A `BillingModule` edge in the connection. */ export interface BillingModuleEdge { cursor?: string | null; diff --git a/sdk/constructive-react/src/public/orm/models/index.ts b/sdk/constructive-react/src/public/orm/models/index.ts index 39d973318..7a6c287de 100644 --- a/sdk/constructive-react/src/public/orm/models/index.ts +++ b/sdk/constructive-react/src/public/orm/models/index.ts @@ -141,9 +141,9 @@ export { RlsSettingModel } from './rlsSetting'; export { AppLimitEventModel } from './appLimitEvent'; export { OrgLimitEventModel } from './orgLimitEvent'; export { RlsModuleModel } from './rlsModule'; -export { DatabaseSettingModel } from './databaseSetting'; export { PlansModuleModel } from './plansModule'; export { SqlActionModel } from './sqlAction'; +export { DatabaseSettingModel } from './databaseSetting'; export { BillingModuleModel } from './billingModule'; export { AstMigrationModel } from './astMigration'; export { UserModel } from './user'; diff --git a/sdk/constructive-react/src/public/schema-types.ts b/sdk/constructive-react/src/public/schema-types.ts index 88cb9aa31..33c7c13c6 100644 --- a/sdk/constructive-react/src/public/schema-types.ts +++ b/sdk/constructive-react/src/public/schema-types.ts @@ -1266,6 +1266,8 @@ export type ApiSettingOrderBy = | 'ENABLE_LLM_DESC' | 'ENABLE_REALTIME_ASC' | 'ENABLE_REALTIME_DESC' + | 'ENABLE_BULK_ASC' + | 'ENABLE_BULK_DESC' | 'OPTIONS_ASC' | 'OPTIONS_DESC'; /** Methods to use when ordering `ConnectedAccountsModule`. */ @@ -3508,37 +3510,6 @@ export type RlsModuleOrderBy = | 'CURRENT_ROLE_DESC' | 'CURRENT_ROLE_ID_ASC' | 'CURRENT_ROLE_ID_DESC'; -/** Methods to use when ordering `DatabaseSetting`. */ -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'; /** Methods to use when ordering `PlansModule`. */ export type PlansModuleOrderBy = | 'NATURAL' @@ -3599,6 +3570,39 @@ export type SqlActionOrderBy = | 'ACTION_ID_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC'; +/** Methods to use when ordering `DatabaseSetting`. */ +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' + | 'ENABLE_BULK_ASC' + | 'ENABLE_BULK_DESC' + | 'OPTIONS_ASC' + | 'OPTIONS_DESC'; /** Methods to use when ordering `BillingModule`. */ export type BillingModuleOrderBy = | 'NATURAL' @@ -8684,6 +8688,8 @@ export interface ApiSettingFilter { enableLlm?: BooleanFilter; /** Filter by the object’s `enableRealtime` field. */ enableRealtime?: BooleanFilter; + /** Filter by the object’s `enableBulk` field. */ + enableBulk?: BooleanFilter; /** Filter by the object’s `options` field. */ options?: JSONFilter; /** Checks for all expressions in this list. */ @@ -9132,6 +9138,8 @@ export interface DatabaseSettingFilter { enableLlm?: BooleanFilter; /** Filter by the object’s `enableRealtime` field. */ enableRealtime?: BooleanFilter; + /** Filter by the object’s `enableBulk` field. */ + enableBulk?: BooleanFilter; /** Filter by the object’s `options` field. */ options?: JSONFilter; /** Checks for all expressions in this list. */ @@ -13973,40 +13981,6 @@ export interface RealtimeModuleInput { partitionInterval?: string; notifyChannel?: string; } -export interface CreateDatabaseSettingInput { - clientMutationId?: string; - /** The `DatabaseSetting` to be created by this mutation. */ - databaseSetting: DatabaseSettingInput; -} -/** An input for mutations affecting `DatabaseSetting` */ -export interface DatabaseSettingInput { - /** Unique identifier for this settings record */ - id?: string; - /** Reference to the metaschema database these settings apply to */ - databaseId: string; - /** Enable aggregate queries (sum, avg, min, max, etc.) in the GraphQL API */ - enableAggregates?: boolean; - /** Enable PostGIS spatial types and operators in the GraphQL API */ - enablePostgis?: boolean; - /** Enable unified search (tsvector, BM25, pg_trgm, pgvector) in the GraphQL API */ - enableSearch?: boolean; - /** Enable direct (multipart) file upload mutations in the GraphQL API */ - enableDirectUploads?: boolean; - /** Enable presigned URL upload flow for S3/MinIO storage */ - enablePresignedUploads?: boolean; - /** Enable many-to-many relationship queries in the GraphQL API */ - enableManyToMany?: boolean; - /** Enable connection filter (where argument) in the GraphQL API */ - enableConnectionFilter?: boolean; - /** Enable ltree hierarchical data type support in the GraphQL API */ - enableLtree?: boolean; - /** Enable LLM/AI integration features in the GraphQL API */ - enableLlm?: boolean; - /** Enable realtime subscriptions (cursor-tracked change delivery) in the GraphQL API */ - enableRealtime?: boolean; - /** Extensible JSON for additional settings that do not have dedicated columns */ - options?: unknown; -} export interface CreatePlansModuleInput { clientMutationId?: string; /** The `PlansModule` to be created by this mutation. */ @@ -14127,40 +14101,40 @@ export interface DatabaseTransferInput { updatedAt?: string; completedAt?: string; } -export interface CreateApiSettingInput { +export interface CreateDatabaseSettingInput { clientMutationId?: string; - /** The `ApiSetting` to be created by this mutation. */ - apiSetting: ApiSettingInput; + /** The `DatabaseSetting` to be created by this mutation. */ + databaseSetting: DatabaseSettingInput; } -/** An input for mutations affecting `ApiSetting` */ -export interface ApiSettingInput { - /** Unique identifier for this API settings record */ +/** An input for mutations affecting `DatabaseSetting` */ +export interface DatabaseSettingInput { + /** Unique identifier for this settings record */ id?: string; - /** Reference to the metaschema database */ + /** Reference to the metaschema database these settings apply to */ databaseId: string; - /** API these settings override for */ - apiId: string; - /** Override: enable aggregate queries (NULL = inherit from database_settings) */ + /** Enable aggregate queries (sum, avg, min, max, etc.) in the GraphQL API */ enableAggregates?: boolean; - /** Override: enable PostGIS spatial types (NULL = inherit from database_settings) */ + /** Enable PostGIS spatial types and operators in the GraphQL API */ enablePostgis?: boolean; - /** Override: enable unified search (NULL = inherit from database_settings) */ + /** Enable unified search (tsvector, BM25, pg_trgm, pgvector) in the GraphQL API */ enableSearch?: boolean; - /** Override: enable direct (multipart) file uploads (NULL = inherit from database_settings) */ + /** Enable direct (multipart) file upload mutations in the GraphQL API */ enableDirectUploads?: boolean; - /** Override: enable presigned URL upload flow (NULL = inherit from database_settings) */ + /** Enable presigned URL upload flow for S3/MinIO storage */ enablePresignedUploads?: boolean; - /** Override: enable many-to-many relationships (NULL = inherit from database_settings) */ + /** Enable many-to-many relationship queries in the GraphQL API */ enableManyToMany?: boolean; - /** Override: enable connection filter (NULL = inherit from database_settings) */ + /** Enable connection filter (where argument) in the GraphQL API */ enableConnectionFilter?: boolean; - /** Override: enable ltree hierarchical data type (NULL = inherit from database_settings) */ + /** Enable ltree hierarchical data type support in the GraphQL API */ enableLtree?: boolean; - /** Override: enable LLM/AI integration features (NULL = inherit from database_settings) */ + /** Enable LLM/AI integration features in the GraphQL API */ enableLlm?: boolean; - /** Override: enable realtime subscriptions (NULL = inherit from database_settings) */ + /** Enable realtime subscriptions (cursor-tracked change delivery) in the GraphQL API */ enableRealtime?: boolean; - /** Extensible JSON for additional per-API settings that do not have dedicated columns */ + /** Enable bulk mutation operations (insert, upsert, update, delete) in the GraphQL API */ + enableBulk?: boolean; + /** Extensible JSON for additional settings that do not have dedicated columns */ options?: unknown; } export interface CreateBillingModuleInput { @@ -14372,6 +14346,44 @@ export interface AstMigrationInput { actionId?: string; actorId?: string; } +export interface CreateApiSettingInput { + clientMutationId?: string; + /** The `ApiSetting` to be created by this mutation. */ + apiSetting: ApiSettingInput; +} +/** An input for mutations affecting `ApiSetting` */ +export interface ApiSettingInput { + /** Unique identifier for this API settings record */ + id?: string; + /** Reference to the metaschema database */ + databaseId: string; + /** API these settings override for */ + apiId: string; + /** Override: enable aggregate queries (NULL = inherit from database_settings) */ + enableAggregates?: boolean; + /** Override: enable PostGIS spatial types (NULL = inherit from database_settings) */ + enablePostgis?: boolean; + /** Override: enable unified search (NULL = inherit from database_settings) */ + enableSearch?: boolean; + /** Override: enable direct (multipart) file uploads (NULL = inherit from database_settings) */ + enableDirectUploads?: boolean; + /** Override: enable presigned URL upload flow (NULL = inherit from database_settings) */ + enablePresignedUploads?: boolean; + /** Override: enable many-to-many relationships (NULL = inherit from database_settings) */ + enableManyToMany?: boolean; + /** Override: enable connection filter (NULL = inherit from database_settings) */ + enableConnectionFilter?: boolean; + /** Override: enable ltree hierarchical data type (NULL = inherit from database_settings) */ + enableLtree?: boolean; + /** Override: enable LLM/AI integration features (NULL = inherit from database_settings) */ + enableLlm?: boolean; + /** Override: enable realtime subscriptions (NULL = inherit from database_settings) */ + enableRealtime?: boolean; + /** Override: enable bulk mutations (NULL = inherit from database_settings) */ + enableBulk?: boolean; + /** Extensible JSON for additional per-API settings that do not have dedicated columns */ + options?: unknown; +} export interface CreateEnumInput { clientMutationId?: string; /** The `Enum` to be created by this mutation. */ @@ -17395,42 +17407,6 @@ export interface RealtimeModulePatch { partitionInterval?: string; notifyChannel?: string; } -export interface UpdateDatabaseSettingInput { - clientMutationId?: string; - /** Unique identifier for this settings record */ - id: string; - /** An object where the defined keys will be set on the `DatabaseSetting` being updated. */ - databaseSettingPatch: DatabaseSettingPatch; -} -/** Represents an update to a `DatabaseSetting`. Fields that are set will be updated. */ -export interface DatabaseSettingPatch { - /** Unique identifier for this settings record */ - id?: string; - /** Reference to the metaschema database these settings apply to */ - databaseId?: string; - /** Enable aggregate queries (sum, avg, min, max, etc.) in the GraphQL API */ - enableAggregates?: boolean; - /** Enable PostGIS spatial types and operators in the GraphQL API */ - enablePostgis?: boolean; - /** Enable unified search (tsvector, BM25, pg_trgm, pgvector) in the GraphQL API */ - enableSearch?: boolean; - /** Enable direct (multipart) file upload mutations in the GraphQL API */ - enableDirectUploads?: boolean; - /** Enable presigned URL upload flow for S3/MinIO storage */ - enablePresignedUploads?: boolean; - /** Enable many-to-many relationship queries in the GraphQL API */ - enableManyToMany?: boolean; - /** Enable connection filter (where argument) in the GraphQL API */ - enableConnectionFilter?: boolean; - /** Enable ltree hierarchical data type support in the GraphQL API */ - enableLtree?: boolean; - /** Enable LLM/AI integration features in the GraphQL API */ - enableLlm?: boolean; - /** Enable realtime subscriptions (cursor-tracked change delivery) in the GraphQL API */ - enableRealtime?: boolean; - /** Extensible JSON for additional settings that do not have dedicated columns */ - options?: unknown; -} export interface UpdatePlansModuleInput { clientMutationId?: string; id: string; @@ -17536,42 +17512,42 @@ export interface DatabaseTransferPatch { updatedAt?: string; completedAt?: string; } -export interface UpdateApiSettingInput { +export interface UpdateDatabaseSettingInput { clientMutationId?: string; - /** Unique identifier for this API settings record */ + /** Unique identifier for this settings record */ id: string; - /** An object where the defined keys will be set on the `ApiSetting` being updated. */ - apiSettingPatch: ApiSettingPatch; + /** An object where the defined keys will be set on the `DatabaseSetting` being updated. */ + databaseSettingPatch: DatabaseSettingPatch; } -/** Represents an update to a `ApiSetting`. Fields that are set will be updated. */ -export interface ApiSettingPatch { - /** Unique identifier for this API settings record */ +/** Represents an update to a `DatabaseSetting`. Fields that are set will be updated. */ +export interface DatabaseSettingPatch { + /** Unique identifier for this settings record */ id?: string; - /** Reference to the metaschema database */ + /** Reference to the metaschema database these settings apply to */ databaseId?: string; - /** API these settings override for */ - apiId?: string; - /** Override: enable aggregate queries (NULL = inherit from database_settings) */ + /** Enable aggregate queries (sum, avg, min, max, etc.) in the GraphQL API */ enableAggregates?: boolean; - /** Override: enable PostGIS spatial types (NULL = inherit from database_settings) */ + /** Enable PostGIS spatial types and operators in the GraphQL API */ enablePostgis?: boolean; - /** Override: enable unified search (NULL = inherit from database_settings) */ + /** Enable unified search (tsvector, BM25, pg_trgm, pgvector) in the GraphQL API */ enableSearch?: boolean; - /** Override: enable direct (multipart) file uploads (NULL = inherit from database_settings) */ + /** Enable direct (multipart) file upload mutations in the GraphQL API */ enableDirectUploads?: boolean; - /** Override: enable presigned URL upload flow (NULL = inherit from database_settings) */ + /** Enable presigned URL upload flow for S3/MinIO storage */ enablePresignedUploads?: boolean; - /** Override: enable many-to-many relationships (NULL = inherit from database_settings) */ + /** Enable many-to-many relationship queries in the GraphQL API */ enableManyToMany?: boolean; - /** Override: enable connection filter (NULL = inherit from database_settings) */ + /** Enable connection filter (where argument) in the GraphQL API */ enableConnectionFilter?: boolean; - /** Override: enable ltree hierarchical data type (NULL = inherit from database_settings) */ + /** Enable ltree hierarchical data type support in the GraphQL API */ enableLtree?: boolean; - /** Override: enable LLM/AI integration features (NULL = inherit from database_settings) */ + /** Enable LLM/AI integration features in the GraphQL API */ enableLlm?: boolean; - /** Override: enable realtime subscriptions (NULL = inherit from database_settings) */ + /** Enable realtime subscriptions (cursor-tracked change delivery) in the GraphQL API */ enableRealtime?: boolean; - /** Extensible JSON for additional per-API settings that do not have dedicated columns */ + /** Enable bulk mutation operations (insert, upsert, update, delete) in the GraphQL API */ + enableBulk?: boolean; + /** Extensible JSON for additional settings that do not have dedicated columns */ options?: unknown; } export interface UpdateBillingModuleInput { @@ -17770,6 +17746,46 @@ export interface OrgLimitPatch { periodCredits?: string; entityId?: string; } +export interface UpdateApiSettingInput { + clientMutationId?: string; + /** Unique identifier for this API settings record */ + id: string; + /** An object where the defined keys will be set on the `ApiSetting` being updated. */ + apiSettingPatch: ApiSettingPatch; +} +/** Represents an update to a `ApiSetting`. Fields that are set will be updated. */ +export interface ApiSettingPatch { + /** Unique identifier for this API settings record */ + id?: string; + /** Reference to the metaschema database */ + databaseId?: string; + /** API these settings override for */ + apiId?: string; + /** Override: enable aggregate queries (NULL = inherit from database_settings) */ + enableAggregates?: boolean; + /** Override: enable PostGIS spatial types (NULL = inherit from database_settings) */ + enablePostgis?: boolean; + /** Override: enable unified search (NULL = inherit from database_settings) */ + enableSearch?: boolean; + /** Override: enable direct (multipart) file uploads (NULL = inherit from database_settings) */ + enableDirectUploads?: boolean; + /** Override: enable presigned URL upload flow (NULL = inherit from database_settings) */ + enablePresignedUploads?: boolean; + /** Override: enable many-to-many relationships (NULL = inherit from database_settings) */ + enableManyToMany?: boolean; + /** Override: enable connection filter (NULL = inherit from database_settings) */ + enableConnectionFilter?: boolean; + /** Override: enable ltree hierarchical data type (NULL = inherit from database_settings) */ + enableLtree?: boolean; + /** Override: enable LLM/AI integration features (NULL = inherit from database_settings) */ + enableLlm?: boolean; + /** Override: enable realtime subscriptions (NULL = inherit from database_settings) */ + enableRealtime?: boolean; + /** Override: enable bulk mutations (NULL = inherit from database_settings) */ + enableBulk?: boolean; + /** Extensible JSON for additional per-API settings that do not have dedicated columns */ + options?: unknown; +} export interface UpdateEnumInput { clientMutationId?: string; id: string; @@ -19563,11 +19579,6 @@ export interface DeleteRealtimeModuleInput { clientMutationId?: string; id: string; } -export interface DeleteDatabaseSettingInput { - clientMutationId?: string; - /** Unique identifier for this settings record */ - id: string; -} export interface DeletePlansModuleInput { clientMutationId?: string; id: string; @@ -19584,9 +19595,9 @@ export interface DeleteDatabaseTransferInput { clientMutationId?: string; id: string; } -export interface DeleteApiSettingInput { +export interface DeleteDatabaseSettingInput { clientMutationId?: string; - /** Unique identifier for this API settings record */ + /** Unique identifier for this settings record */ id: string; } export interface DeleteBillingModuleInput { @@ -19618,6 +19629,11 @@ export interface DeleteOrgLimitInput { clientMutationId?: string; id: string; } +export interface DeleteApiSettingInput { + clientMutationId?: string; + /** Unique identifier for this API settings record */ + id: string; +} export interface DeleteEnumInput { clientMutationId?: string; id: string; @@ -20457,13 +20473,6 @@ export interface RealtimeModuleConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `DatabaseSetting` values. */ -export interface DatabaseSettingConnection { - nodes: DatabaseSetting[]; - edges: DatabaseSettingEdge[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `PlansModule` values. */ export interface PlansModuleConnection { nodes: PlansModule[]; @@ -20499,10 +20508,10 @@ export interface DatabaseTransferConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `ApiSetting` values. */ -export interface ApiSettingConnection { - nodes: ApiSetting[]; - edges: ApiSettingEdge[]; +/** A connection to a list of `DatabaseSetting` values. */ +export interface DatabaseSettingConnection { + nodes: DatabaseSetting[]; + edges: DatabaseSettingEdge[]; pageInfo: PageInfo; totalCount: number; } @@ -20562,6 +20571,13 @@ export interface AstMigrationConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `ApiSetting` values. */ +export interface ApiSettingConnection { + nodes: ApiSetting[]; + edges: ApiSettingEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `Enum` values. */ export interface EnumConnection { nodes: Enum[]; @@ -21568,12 +21584,6 @@ export interface CreateRealtimeModulePayload { realtimeModule?: RealtimeModule | null; realtimeModuleEdge?: RealtimeModuleEdge | null; } -export interface CreateDatabaseSettingPayload { - clientMutationId?: string | null; - /** The `DatabaseSetting` that was created by this mutation. */ - databaseSetting?: DatabaseSetting | null; - databaseSettingEdge?: DatabaseSettingEdge | null; -} export interface CreatePlansModulePayload { clientMutationId?: string | null; /** The `PlansModule` that was created by this mutation. */ @@ -21603,11 +21613,11 @@ export interface CreateDatabaseTransferPayload { databaseTransfer?: DatabaseTransfer | null; databaseTransferEdge?: DatabaseTransferEdge | null; } -export interface CreateApiSettingPayload { +export interface CreateDatabaseSettingPayload { clientMutationId?: string | null; - /** The `ApiSetting` that was created by this mutation. */ - apiSetting?: ApiSetting | null; - apiSettingEdge?: ApiSettingEdge | null; + /** The `DatabaseSetting` that was created by this mutation. */ + databaseSetting?: DatabaseSetting | null; + databaseSettingEdge?: DatabaseSettingEdge | null; } export interface CreateBillingModulePayload { clientMutationId?: string | null; @@ -21656,6 +21666,12 @@ export interface CreateAstMigrationPayload { /** The `AstMigration` that was created by this mutation. */ astMigration?: AstMigration | null; } +export interface CreateApiSettingPayload { + clientMutationId?: string | null; + /** The `ApiSetting` that was created by this mutation. */ + apiSetting?: ApiSetting | null; + apiSettingEdge?: ApiSettingEdge | null; +} export interface CreateEnumPayload { clientMutationId?: string | null; /** The `Enum` that was created by this mutation. */ @@ -22412,12 +22428,6 @@ export interface UpdateRealtimeModulePayload { realtimeModule?: RealtimeModule | null; realtimeModuleEdge?: RealtimeModuleEdge | null; } -export interface UpdateDatabaseSettingPayload { - clientMutationId?: string | null; - /** The `DatabaseSetting` that was updated by this mutation. */ - databaseSetting?: DatabaseSetting | null; - databaseSettingEdge?: DatabaseSettingEdge | null; -} export interface UpdatePlansModulePayload { clientMutationId?: string | null; /** The `PlansModule` that was updated by this mutation. */ @@ -22442,11 +22452,11 @@ export interface UpdateDatabaseTransferPayload { databaseTransfer?: DatabaseTransfer | null; databaseTransferEdge?: DatabaseTransferEdge | null; } -export interface UpdateApiSettingPayload { +export interface UpdateDatabaseSettingPayload { clientMutationId?: string | null; - /** The `ApiSetting` that was updated by this mutation. */ - apiSetting?: ApiSetting | null; - apiSettingEdge?: ApiSettingEdge | null; + /** The `DatabaseSetting` that was updated by this mutation. */ + databaseSetting?: DatabaseSetting | null; + databaseSettingEdge?: DatabaseSettingEdge | null; } export interface UpdateBillingModulePayload { clientMutationId?: string | null; @@ -22490,6 +22500,12 @@ export interface UpdateOrgLimitPayload { orgLimit?: OrgLimit | null; orgLimitEdge?: OrgLimitEdge | null; } +export interface UpdateApiSettingPayload { + clientMutationId?: string | null; + /** The `ApiSetting` that was updated by this mutation. */ + apiSetting?: ApiSetting | null; + apiSettingEdge?: ApiSettingEdge | null; +} export interface UpdateEnumPayload { clientMutationId?: string | null; /** The `Enum` that was updated by this mutation. */ @@ -23246,12 +23262,6 @@ export interface DeleteRealtimeModulePayload { realtimeModule?: RealtimeModule | null; realtimeModuleEdge?: RealtimeModuleEdge | null; } -export interface DeleteDatabaseSettingPayload { - clientMutationId?: string | null; - /** The `DatabaseSetting` that was deleted by this mutation. */ - databaseSetting?: DatabaseSetting | null; - databaseSettingEdge?: DatabaseSettingEdge | null; -} export interface DeletePlansModulePayload { clientMutationId?: string | null; /** The `PlansModule` that was deleted by this mutation. */ @@ -23276,11 +23286,11 @@ export interface DeleteDatabaseTransferPayload { databaseTransfer?: DatabaseTransfer | null; databaseTransferEdge?: DatabaseTransferEdge | null; } -export interface DeleteApiSettingPayload { +export interface DeleteDatabaseSettingPayload { clientMutationId?: string | null; - /** The `ApiSetting` that was deleted by this mutation. */ - apiSetting?: ApiSetting | null; - apiSettingEdge?: ApiSettingEdge | null; + /** The `DatabaseSetting` that was deleted by this mutation. */ + databaseSetting?: DatabaseSetting | null; + databaseSettingEdge?: DatabaseSettingEdge | null; } export interface DeleteBillingModulePayload { clientMutationId?: string | null; @@ -23324,6 +23334,12 @@ export interface DeleteOrgLimitPayload { orgLimit?: OrgLimit | null; orgLimitEdge?: OrgLimitEdge | null; } +export interface DeleteApiSettingPayload { + clientMutationId?: string | null; + /** The `ApiSetting` that was deleted by this mutation. */ + apiSetting?: ApiSetting | null; + apiSettingEdge?: ApiSettingEdge | null; +} export interface DeleteEnumPayload { clientMutationId?: string | null; /** The `Enum` that was deleted by this mutation. */ @@ -24153,12 +24169,6 @@ export interface RealtimeModuleEdge { /** The `RealtimeModule` at the end of the edge. */ node?: RealtimeModule | null; } -/** A `DatabaseSetting` edge in the connection. */ -export interface DatabaseSettingEdge { - cursor?: string | null; - /** The `DatabaseSetting` at the end of the edge. */ - node?: DatabaseSetting | null; -} /** A `PlansModule` edge in the connection. */ export interface PlansModuleEdge { cursor?: string | null; @@ -24189,11 +24199,11 @@ export interface DatabaseTransferEdge { /** The `DatabaseTransfer` at the end of the edge. */ node?: DatabaseTransfer | null; } -/** A `ApiSetting` edge in the connection. */ -export interface ApiSettingEdge { +/** A `DatabaseSetting` edge in the connection. */ +export interface DatabaseSettingEdge { cursor?: string | null; - /** The `ApiSetting` at the end of the edge. */ - node?: ApiSetting | null; + /** The `DatabaseSetting` at the end of the edge. */ + node?: DatabaseSetting | null; } /** A `BillingModule` edge in the connection. */ export interface BillingModuleEdge { @@ -24243,6 +24253,12 @@ export interface AstMigrationEdge { /** The `AstMigration` at the end of the edge. */ node?: AstMigration | null; } +/** A `ApiSetting` edge in the connection. */ +export interface ApiSettingEdge { + cursor?: string | null; + /** The `ApiSetting` at the end of the edge. */ + node?: ApiSetting | null; +} /** A `Enum` edge in the connection. */ export interface EnumEdge { cursor?: string | null; diff --git a/sdk/constructive-react/src/public/types.ts b/sdk/constructive-react/src/public/types.ts index 6d2cb92ef..65cf54e09 100644 --- a/sdk/constructive-react/src/public/types.ts +++ b/sdk/constructive-react/src/public/types.ts @@ -589,6 +589,7 @@ export interface ApiSetting { enableLtree: boolean | null; enableLlm: boolean | null; enableRealtime: boolean | null; + enableBulk: boolean | null; options: unknown | null; } export interface ConnectedAccountsModule { @@ -1626,21 +1627,6 @@ export interface RlsModule { currentRole: string | null; currentRoleId: string | null; } -export interface DatabaseSetting { - id: string | null; - databaseId: string | null; - enableAggregates: boolean | null; - enablePostgis: boolean | null; - enableSearch: boolean | null; - enableDirectUploads: boolean | null; - enablePresignedUploads: boolean | null; - enableManyToMany: boolean | null; - enableConnectionFilter: boolean | null; - enableLtree: boolean | null; - enableLlm: boolean | null; - enableRealtime: boolean | null; - options: unknown | null; -} export interface PlansModule { id: string | null; databaseId: string | null; @@ -1671,6 +1657,22 @@ export interface SqlAction { actionId: string | null; actorId: string | null; } +export interface DatabaseSetting { + id: string | null; + databaseId: string | null; + enableAggregates: boolean | null; + enablePostgis: boolean | null; + enableSearch: boolean | null; + enableDirectUploads: boolean | null; + enablePresignedUploads: boolean | null; + enableManyToMany: boolean | null; + enableConnectionFilter: boolean | null; + enableLtree: boolean | null; + enableLlm: boolean | null; + enableRealtime: boolean | null; + enableBulk: boolean | null; + options: unknown | null; +} export interface BillingModule { id: string | null; databaseId: string | null; diff --git a/sdk/constructive-sdk/schemas/public.graphql b/sdk/constructive-sdk/schemas/public.graphql index f0d35bb8f..859b755cb 100644 --- a/sdk/constructive-sdk/schemas/public.graphql +++ b/sdk/constructive-sdk/schemas/public.graphql @@ -2885,35 +2885,6 @@ type Query { orderBy: [RealtimeModuleOrderBy!] = [PRIMARY_KEY_ASC] ): RealtimeModuleConnection - """Reads and enables pagination through a set of `DatabaseSetting`.""" - databaseSettings( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: Int - - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int - - """Read all values in the set before (above) this cursor.""" - before: Cursor - - """Read all values in the set after (below) this cursor.""" - after: Cursor - - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: DatabaseSettingFilter - - """The method to use when ordering `DatabaseSetting`.""" - orderBy: [DatabaseSettingOrderBy!] = [PRIMARY_KEY_ASC] - ): DatabaseSettingConnection - """Reads and enables pagination through a set of `PlansModule`.""" plansModules( """Only read the first `n` values of the set.""" @@ -3059,8 +3030,8 @@ type Query { orderBy: [DatabaseTransferOrderBy!] = [PRIMARY_KEY_ASC] ): DatabaseTransferConnection - """Reads and enables pagination through a set of `ApiSetting`.""" - apiSettings( + """Reads and enables pagination through a set of `DatabaseSetting`.""" + databaseSettings( """Only read the first `n` values of the set.""" first: Int @@ -3082,11 +3053,11 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: ApiSettingFilter + where: DatabaseSettingFilter - """The method to use when ordering `ApiSetting`.""" - orderBy: [ApiSettingOrderBy!] = [PRIMARY_KEY_ASC] - ): ApiSettingConnection + """The method to use when ordering `DatabaseSetting`.""" + orderBy: [DatabaseSettingOrderBy!] = [PRIMARY_KEY_ASC] + ): DatabaseSettingConnection """Reads and enables pagination through a set of `BillingModule`.""" billingModules( @@ -3322,6 +3293,35 @@ type Query { orderBy: [AstMigrationOrderBy!] = [NATURAL] ): AstMigrationConnection + """Reads and enables pagination through a set of `ApiSetting`.""" + apiSettings( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: ApiSettingFilter + + """The method to use when ordering `ApiSetting`.""" + orderBy: [ApiSettingOrderBy!] = [PRIMARY_KEY_ASC] + ): ApiSettingConnection + """Reads and enables pagination through a set of `Enum`.""" enums( """Only read the first `n` values of the set.""" @@ -17891,6 +17891,9 @@ input ApiSettingFilter { """Filter by the object’s `enableRealtime` field.""" enableRealtime: BooleanFilter + """Filter by the object’s `enableBulk` field.""" + enableBulk: BooleanFilter + """Filter by the object’s `options` field.""" options: JSONFilter @@ -18583,6 +18586,9 @@ input DatabaseSettingFilter { """Filter by the object’s `enableRealtime` field.""" enableRealtime: BooleanFilter + """Filter by the object’s `enableBulk` field.""" + enableBulk: BooleanFilter + """Filter by the object’s `options` field.""" options: JSONFilter @@ -25532,6 +25538,11 @@ type ApiSetting { """ enableRealtime: Boolean + """ + Override: enable bulk mutations (NULL = inherit from database_settings) + """ + enableBulk: Boolean + """ Extensible JSON for additional per-API settings that do not have dedicated columns """ @@ -25996,6 +26007,11 @@ type DatabaseSetting { """ enableRealtime: Boolean! + """ + Enable bulk mutation operations (insert, upsert, update, delete) in the GraphQL API + """ + enableBulk: Boolean! + """ Extensible JSON for additional settings that do not have dedicated columns """ @@ -26062,6 +26078,8 @@ enum ApiSettingOrderBy { ENABLE_LLM_DESC ENABLE_REALTIME_ASC ENABLE_REALTIME_DESC + ENABLE_BULK_ASC + ENABLE_BULK_DESC OPTIONS_ASC OPTIONS_DESC } @@ -35546,6 +35564,188 @@ enum RlsModuleOrderBy { CURRENT_ROLE_ID_DESC } +"""A connection to a list of `PlansModule` values.""" +type PlansModuleConnection { + """A list of `PlansModule` objects.""" + nodes: [PlansModule]! + + """ + A list of edges which contains the `PlansModule` and cursor to aid in pagination. + """ + edges: [PlansModuleEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `PlansModule` you could get from the connection.""" + totalCount: Int! +} + +"""A `PlansModule` edge in the connection.""" +type PlansModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `PlansModule` at the end of the edge.""" + node: PlansModule +} + +"""Methods to use when ordering `PlansModule`.""" +enum 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 +} + +"""A connection to a list of `SqlAction` values.""" +type SqlActionConnection { + """A list of `SqlAction` objects.""" + nodes: [SqlAction]! + + """ + A list of edges which contains the `SqlAction` and cursor to aid in pagination. + """ + edges: [SqlActionEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `SqlAction` you could get from the connection.""" + totalCount: Int! +} + +type SqlAction { + id: Int + name: String + databaseId: UUID + deploy: String + deps: [String] + payload: JSON + content: String + revert: String + verify: String + createdAt: Datetime + action: String + actionId: UUID + actorId: UUID +} + +"""A `SqlAction` edge in the connection.""" +type SqlActionEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `SqlAction` at the end of the edge.""" + node: SqlAction +} + +""" +A filter to be used against `SqlAction` object types. All fields are combined with a logical ‘and.’ +""" +input SqlActionFilter { + """Filter by the object’s `id` field.""" + id: IntFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `deploy` field.""" + deploy: StringFilter + + """Filter by the object’s `deps` field.""" + deps: StringListFilter + + """Filter by the object’s `content` field.""" + content: StringFilter + + """Filter by the object’s `revert` field.""" + revert: StringFilter + + """Filter by the object’s `verify` field.""" + verify: StringFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `action` field.""" + action: StringFilter + + """Filter by the object’s `actionId` field.""" + actionId: UUIDFilter + + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter + + """Checks for all expressions in this list.""" + and: [SqlActionFilter!] + + """Checks for any expressions in this list.""" + or: [SqlActionFilter!] + + """Negates the expression.""" + not: SqlActionFilter +} + +"""Methods to use when ordering `SqlAction`.""" +enum 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 +} + """A connection to a list of `DatabaseSetting` values.""" type DatabaseSettingConnection { """A list of `DatabaseSetting` objects.""" @@ -35603,192 +35803,12 @@ enum DatabaseSettingOrderBy { ENABLE_LLM_DESC ENABLE_REALTIME_ASC ENABLE_REALTIME_DESC + ENABLE_BULK_ASC + ENABLE_BULK_DESC OPTIONS_ASC OPTIONS_DESC } -"""A connection to a list of `PlansModule` values.""" -type PlansModuleConnection { - """A list of `PlansModule` objects.""" - nodes: [PlansModule]! - - """ - A list of edges which contains the `PlansModule` and cursor to aid in pagination. - """ - edges: [PlansModuleEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `PlansModule` you could get from the connection.""" - totalCount: Int! -} - -"""A `PlansModule` edge in the connection.""" -type PlansModuleEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `PlansModule` at the end of the edge.""" - node: PlansModule -} - -"""Methods to use when ordering `PlansModule`.""" -enum 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 -} - -"""A connection to a list of `SqlAction` values.""" -type SqlActionConnection { - """A list of `SqlAction` objects.""" - nodes: [SqlAction]! - - """ - A list of edges which contains the `SqlAction` and cursor to aid in pagination. - """ - edges: [SqlActionEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `SqlAction` you could get from the connection.""" - totalCount: Int! -} - -type SqlAction { - id: Int - name: String - databaseId: UUID - deploy: String - deps: [String] - payload: JSON - content: String - revert: String - verify: String - createdAt: Datetime - action: String - actionId: UUID - actorId: UUID -} - -"""A `SqlAction` edge in the connection.""" -type SqlActionEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `SqlAction` at the end of the edge.""" - node: SqlAction -} - -""" -A filter to be used against `SqlAction` object types. All fields are combined with a logical ‘and.’ -""" -input SqlActionFilter { - """Filter by the object’s `id` field.""" - id: IntFilter - - """Filter by the object’s `name` field.""" - name: StringFilter - - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter - - """Filter by the object’s `deploy` field.""" - deploy: StringFilter - - """Filter by the object’s `deps` field.""" - deps: StringListFilter - - """Filter by the object’s `content` field.""" - content: StringFilter - - """Filter by the object’s `revert` field.""" - revert: StringFilter - - """Filter by the object’s `verify` field.""" - verify: StringFilter - - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter - - """Filter by the object’s `action` field.""" - action: StringFilter - - """Filter by the object’s `actionId` field.""" - actionId: UUIDFilter - - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter - - """Checks for all expressions in this list.""" - and: [SqlActionFilter!] - - """Checks for any expressions in this list.""" - or: [SqlActionFilter!] - - """Negates the expression.""" - not: SqlActionFilter -} - -"""Methods to use when ordering `SqlAction`.""" -enum 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 -} - """A connection to a list of `BillingModule` values.""" type BillingModuleConnection { """A list of `BillingModule` objects.""" @@ -37605,14 +37625,6 @@ type Mutation { input: CreateRealtimeModuleInput! ): CreateRealtimeModulePayload - """Creates a single `DatabaseSetting`.""" - createDatabaseSetting( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateDatabaseSettingInput! - ): CreateDatabaseSettingPayload - """Creates a single `PlansModule`.""" createPlansModule( """ @@ -37653,13 +37665,13 @@ type Mutation { input: CreateDatabaseTransferInput! ): CreateDatabaseTransferPayload - """Creates a single `ApiSetting`.""" - createApiSetting( + """Creates a single `DatabaseSetting`.""" + createDatabaseSetting( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateApiSettingInput! - ): CreateApiSettingPayload + input: CreateDatabaseSettingInput! + ): CreateDatabaseSettingPayload """Creates a single `BillingModule`.""" createBillingModule( @@ -37725,6 +37737,14 @@ type Mutation { input: CreateAstMigrationInput! ): CreateAstMigrationPayload + """Creates a single `ApiSetting`.""" + createApiSetting( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateApiSettingInput! + ): CreateApiSettingPayload + """Creates a single `Enum`.""" createEnum( """ @@ -38763,14 +38783,6 @@ type Mutation { input: UpdateRealtimeModuleInput! ): UpdateRealtimeModulePayload - """Updates a single `DatabaseSetting` using a unique key and a patch.""" - updateDatabaseSetting( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateDatabaseSettingInput! - ): UpdateDatabaseSettingPayload - """Updates a single `PlansModule` using a unique key and a patch.""" updatePlansModule( """ @@ -38803,13 +38815,13 @@ type Mutation { input: UpdateDatabaseTransferInput! ): UpdateDatabaseTransferPayload - """Updates a single `ApiSetting` using a unique key and a patch.""" - updateApiSetting( + """Updates a single `DatabaseSetting` using a unique key and a patch.""" + updateDatabaseSetting( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateApiSettingInput! - ): UpdateApiSettingPayload + input: UpdateDatabaseSettingInput! + ): UpdateDatabaseSettingPayload """Updates a single `BillingModule` using a unique key and a patch.""" updateBillingModule( @@ -38871,6 +38883,14 @@ type Mutation { input: UpdateOrgLimitInput! ): UpdateOrgLimitPayload + """Updates a single `ApiSetting` using a unique key and a patch.""" + updateApiSetting( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateApiSettingInput! + ): UpdateApiSettingPayload + """Updates a single `Enum` using a unique key and a patch.""" updateEnum( """ @@ -39887,14 +39907,6 @@ type Mutation { input: DeleteRealtimeModuleInput! ): DeleteRealtimeModulePayload - """Deletes a single `DatabaseSetting` using a unique key.""" - deleteDatabaseSetting( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteDatabaseSettingInput! - ): DeleteDatabaseSettingPayload - """Deletes a single `PlansModule` using a unique key.""" deletePlansModule( """ @@ -39927,13 +39939,13 @@ type Mutation { input: DeleteDatabaseTransferInput! ): DeleteDatabaseTransferPayload - """Deletes a single `ApiSetting` using a unique key.""" - deleteApiSetting( + """Deletes a single `DatabaseSetting` using a unique key.""" + deleteDatabaseSetting( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteApiSettingInput! - ): DeleteApiSettingPayload + input: DeleteDatabaseSettingInput! + ): DeleteDatabaseSettingPayload """Deletes a single `BillingModule` using a unique key.""" deleteBillingModule( @@ -39991,6 +40003,14 @@ type Mutation { input: DeleteOrgLimitInput! ): DeleteOrgLimitPayload + """Deletes a single `ApiSetting` using a unique key.""" + deleteApiSetting( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteApiSettingInput! + ): DeleteApiSettingPayload + """Deletes a single `Enum` using a unique key.""" deleteEnum( """ @@ -46572,89 +46592,6 @@ input RealtimeModuleInput { notifyChannel: String } -"""The output of our create `DatabaseSetting` mutation.""" -type CreateDatabaseSettingPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `DatabaseSetting` that was created by this mutation.""" - databaseSetting: DatabaseSetting - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `DatabaseSetting`. May be used by Relay 1.""" - databaseSettingEdge( - """The method to use when ordering `DatabaseSetting`.""" - orderBy: [DatabaseSettingOrderBy!]! = [PRIMARY_KEY_ASC] - ): DatabaseSettingEdge -} - -"""All input for the create `DatabaseSetting` mutation.""" -input CreateDatabaseSettingInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `DatabaseSetting` to be created by this mutation.""" - databaseSetting: DatabaseSettingInput! -} - -"""An input for mutations affecting `DatabaseSetting`""" -input DatabaseSettingInput { - """Unique identifier for this settings record""" - id: UUID - - """Reference to the metaschema database these settings apply to""" - databaseId: UUID! - - """Enable aggregate queries (sum, avg, min, max, etc.) in the GraphQL API""" - enableAggregates: Boolean - - """Enable PostGIS spatial types and operators in the GraphQL API""" - enablePostgis: Boolean - - """ - Enable unified search (tsvector, BM25, pg_trgm, pgvector) in the GraphQL API - """ - enableSearch: Boolean - - """Enable direct (multipart) file upload mutations in the GraphQL API""" - enableDirectUploads: Boolean - - """Enable presigned URL upload flow for S3/MinIO storage""" - enablePresignedUploads: Boolean - - """Enable many-to-many relationship queries in the GraphQL API""" - enableManyToMany: Boolean - - """Enable connection filter (where argument) in the GraphQL API""" - enableConnectionFilter: Boolean - - """Enable ltree hierarchical data type support in the GraphQL API""" - enableLtree: Boolean - - """Enable LLM/AI integration features in the GraphQL API""" - enableLlm: Boolean - - """ - Enable realtime subscriptions (cursor-tracked change delivery) in the GraphQL API - """ - enableRealtime: Boolean - - """ - Extensible JSON for additional settings that do not have dedicated columns - """ - options: JSON -} - """The output of our create `PlansModule` mutation.""" type CreatePlansModulePayload { """ @@ -46956,104 +46893,90 @@ input DatabaseTransferInput { completedAt: Datetime } -"""The output of our create `ApiSetting` mutation.""" -type CreateApiSettingPayload { +"""The output of our create `DatabaseSetting` mutation.""" +type CreateDatabaseSettingPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `ApiSetting` that was created by this mutation.""" - apiSetting: ApiSetting + """The `DatabaseSetting` that was created by this mutation.""" + databaseSetting: DatabaseSetting """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `ApiSetting`. May be used by Relay 1.""" - apiSettingEdge( - """The method to use when ordering `ApiSetting`.""" - orderBy: [ApiSettingOrderBy!]! = [PRIMARY_KEY_ASC] - ): ApiSettingEdge + """An edge for our `DatabaseSetting`. May be used by Relay 1.""" + databaseSettingEdge( + """The method to use when ordering `DatabaseSetting`.""" + orderBy: [DatabaseSettingOrderBy!]! = [PRIMARY_KEY_ASC] + ): DatabaseSettingEdge } -"""All input for the create `ApiSetting` mutation.""" -input CreateApiSettingInput { +"""All input for the create `DatabaseSetting` mutation.""" +input CreateDatabaseSettingInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `ApiSetting` to be created by this mutation.""" - apiSetting: ApiSettingInput! + """The `DatabaseSetting` to be created by this mutation.""" + databaseSetting: DatabaseSettingInput! } -"""An input for mutations affecting `ApiSetting`""" -input ApiSettingInput { - """Unique identifier for this API settings record""" +"""An input for mutations affecting `DatabaseSetting`""" +input DatabaseSettingInput { + """Unique identifier for this settings record""" id: UUID - """Reference to the metaschema database""" + """Reference to the metaschema database these settings apply to""" databaseId: UUID! - """API these settings override for""" - apiId: UUID! - - """ - Override: enable aggregate queries (NULL = inherit from database_settings) - """ + """Enable aggregate queries (sum, avg, min, max, etc.) in the GraphQL API""" enableAggregates: Boolean - """ - Override: enable PostGIS spatial types (NULL = inherit from database_settings) - """ + """Enable PostGIS spatial types and operators in the GraphQL API""" enablePostgis: Boolean """ - Override: enable unified search (NULL = inherit from database_settings) + Enable unified search (tsvector, BM25, pg_trgm, pgvector) in the GraphQL API """ enableSearch: Boolean - """ - Override: enable direct (multipart) file uploads (NULL = inherit from database_settings) - """ + """Enable direct (multipart) file upload mutations in the GraphQL API""" enableDirectUploads: Boolean - """ - Override: enable presigned URL upload flow (NULL = inherit from database_settings) - """ + """Enable presigned URL upload flow for S3/MinIO storage""" enablePresignedUploads: Boolean - """ - Override: enable many-to-many relationships (NULL = inherit from database_settings) - """ + """Enable many-to-many relationship queries in the GraphQL API""" enableManyToMany: Boolean - """ - Override: enable connection filter (NULL = inherit from database_settings) - """ + """Enable connection filter (where argument) in the GraphQL API""" enableConnectionFilter: Boolean - """ - Override: enable ltree hierarchical data type (NULL = inherit from database_settings) - """ + """Enable ltree hierarchical data type support in the GraphQL API""" enableLtree: Boolean - """ - Override: enable LLM/AI integration features (NULL = inherit from database_settings) - """ + """Enable LLM/AI integration features in the GraphQL API""" enableLlm: Boolean """ - Override: enable realtime subscriptions (NULL = inherit from database_settings) + Enable realtime subscriptions (cursor-tracked change delivery) in the GraphQL API """ enableRealtime: Boolean """ - Extensible JSON for additional per-API settings that do not have dedicated columns + Enable bulk mutation operations (insert, upsert, update, delete) in the GraphQL API + """ + enableBulk: Boolean + + """ + Extensible JSON for additional settings that do not have dedicated columns """ options: JSON } @@ -47593,6 +47516,113 @@ input AstMigrationInput { actorId: UUID } +"""The output of our create `ApiSetting` mutation.""" +type CreateApiSettingPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `ApiSetting` that was created by this mutation.""" + apiSetting: ApiSetting + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `ApiSetting`. May be used by Relay 1.""" + apiSettingEdge( + """The method to use when ordering `ApiSetting`.""" + orderBy: [ApiSettingOrderBy!]! = [PRIMARY_KEY_ASC] + ): ApiSettingEdge +} + +"""All input for the create `ApiSetting` mutation.""" +input CreateApiSettingInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `ApiSetting` to be created by this mutation.""" + apiSetting: ApiSettingInput! +} + +"""An input for mutations affecting `ApiSetting`""" +input ApiSettingInput { + """Unique identifier for this API settings record""" + id: UUID + + """Reference to the metaschema database""" + databaseId: UUID! + + """API these settings override for""" + apiId: UUID! + + """ + Override: enable aggregate queries (NULL = inherit from database_settings) + """ + enableAggregates: Boolean + + """ + Override: enable PostGIS spatial types (NULL = inherit from database_settings) + """ + enablePostgis: Boolean + + """ + Override: enable unified search (NULL = inherit from database_settings) + """ + enableSearch: Boolean + + """ + Override: enable direct (multipart) file uploads (NULL = inherit from database_settings) + """ + enableDirectUploads: Boolean + + """ + Override: enable presigned URL upload flow (NULL = inherit from database_settings) + """ + enablePresignedUploads: Boolean + + """ + Override: enable many-to-many relationships (NULL = inherit from database_settings) + """ + enableManyToMany: Boolean + + """ + Override: enable connection filter (NULL = inherit from database_settings) + """ + enableConnectionFilter: Boolean + + """ + Override: enable ltree hierarchical data type (NULL = inherit from database_settings) + """ + enableLtree: Boolean + + """ + Override: enable LLM/AI integration features (NULL = inherit from database_settings) + """ + enableLlm: Boolean + + """ + Override: enable realtime subscriptions (NULL = inherit from database_settings) + """ + enableRealtime: Boolean + + """ + Override: enable bulk mutations (NULL = inherit from database_settings) + """ + enableBulk: Boolean + + """ + Extensible JSON for additional per-API settings that do not have dedicated columns + """ + options: JSON +} + """The output of our create `Enum` mutation.""" type CreateEnumPayload { """ @@ -55550,96 +55580,6 @@ input RealtimeModulePatch { notifyChannel: String } -"""The output of our update `DatabaseSetting` mutation.""" -type UpdateDatabaseSettingPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `DatabaseSetting` that was updated by this mutation.""" - databaseSetting: DatabaseSetting - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `DatabaseSetting`. May be used by Relay 1.""" - databaseSettingEdge( - """The method to use when ordering `DatabaseSetting`.""" - orderBy: [DatabaseSettingOrderBy!]! = [PRIMARY_KEY_ASC] - ): DatabaseSettingEdge -} - -"""All input for the `updateDatabaseSetting` mutation.""" -input UpdateDatabaseSettingInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """Unique identifier for this settings record""" - id: UUID! - - """ - An object where the defined keys will be set on the `DatabaseSetting` being updated. - """ - databaseSettingPatch: DatabaseSettingPatch! -} - -""" -Represents an update to a `DatabaseSetting`. Fields that are set will be updated. -""" -input DatabaseSettingPatch { - """Unique identifier for this settings record""" - id: UUID - - """Reference to the metaschema database these settings apply to""" - databaseId: UUID - - """Enable aggregate queries (sum, avg, min, max, etc.) in the GraphQL API""" - enableAggregates: Boolean - - """Enable PostGIS spatial types and operators in the GraphQL API""" - enablePostgis: Boolean - - """ - Enable unified search (tsvector, BM25, pg_trgm, pgvector) in the GraphQL API - """ - enableSearch: Boolean - - """Enable direct (multipart) file upload mutations in the GraphQL API""" - enableDirectUploads: Boolean - - """Enable presigned URL upload flow for S3/MinIO storage""" - enablePresignedUploads: Boolean - - """Enable many-to-many relationship queries in the GraphQL API""" - enableManyToMany: Boolean - - """Enable connection filter (where argument) in the GraphQL API""" - enableConnectionFilter: Boolean - - """Enable ltree hierarchical data type support in the GraphQL API""" - enableLtree: Boolean - - """Enable LLM/AI integration features in the GraphQL API""" - enableLlm: Boolean - - """ - Enable realtime subscriptions (cursor-tracked change delivery) in the GraphQL API - """ - enableRealtime: Boolean - - """ - Extensible JSON for additional settings that do not have dedicated columns - """ - options: JSON -} - """The output of our update `PlansModule` mutation.""" type UpdatePlansModulePayload { """ @@ -55918,111 +55858,97 @@ input DatabaseTransferPatch { completedAt: Datetime } -"""The output of our update `ApiSetting` mutation.""" -type UpdateApiSettingPayload { +"""The output of our update `DatabaseSetting` mutation.""" +type UpdateDatabaseSettingPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `ApiSetting` that was updated by this mutation.""" - apiSetting: ApiSetting + """The `DatabaseSetting` that was updated by this mutation.""" + databaseSetting: DatabaseSetting """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `ApiSetting`. May be used by Relay 1.""" - apiSettingEdge( - """The method to use when ordering `ApiSetting`.""" - orderBy: [ApiSettingOrderBy!]! = [PRIMARY_KEY_ASC] - ): ApiSettingEdge + """An edge for our `DatabaseSetting`. May be used by Relay 1.""" + databaseSettingEdge( + """The method to use when ordering `DatabaseSetting`.""" + orderBy: [DatabaseSettingOrderBy!]! = [PRIMARY_KEY_ASC] + ): DatabaseSettingEdge } -"""All input for the `updateApiSetting` mutation.""" -input UpdateApiSettingInput { +"""All input for the `updateDatabaseSetting` mutation.""" +input UpdateDatabaseSettingInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """Unique identifier for this API settings record""" + """Unique identifier for this settings record""" id: UUID! """ - An object where the defined keys will be set on the `ApiSetting` being updated. + An object where the defined keys will be set on the `DatabaseSetting` being updated. """ - apiSettingPatch: ApiSettingPatch! + databaseSettingPatch: DatabaseSettingPatch! } """ -Represents an update to a `ApiSetting`. Fields that are set will be updated. +Represents an update to a `DatabaseSetting`. Fields that are set will be updated. """ -input ApiSettingPatch { - """Unique identifier for this API settings record""" +input DatabaseSettingPatch { + """Unique identifier for this settings record""" id: UUID - """Reference to the metaschema database""" + """Reference to the metaschema database these settings apply to""" databaseId: UUID - """API these settings override for""" - apiId: UUID - - """ - Override: enable aggregate queries (NULL = inherit from database_settings) - """ + """Enable aggregate queries (sum, avg, min, max, etc.) in the GraphQL API""" enableAggregates: Boolean - """ - Override: enable PostGIS spatial types (NULL = inherit from database_settings) - """ + """Enable PostGIS spatial types and operators in the GraphQL API""" enablePostgis: Boolean """ - Override: enable unified search (NULL = inherit from database_settings) + Enable unified search (tsvector, BM25, pg_trgm, pgvector) in the GraphQL API """ enableSearch: Boolean - """ - Override: enable direct (multipart) file uploads (NULL = inherit from database_settings) - """ + """Enable direct (multipart) file upload mutations in the GraphQL API""" enableDirectUploads: Boolean - """ - Override: enable presigned URL upload flow (NULL = inherit from database_settings) - """ + """Enable presigned URL upload flow for S3/MinIO storage""" enablePresignedUploads: Boolean - """ - Override: enable many-to-many relationships (NULL = inherit from database_settings) - """ + """Enable many-to-many relationship queries in the GraphQL API""" enableManyToMany: Boolean - """ - Override: enable connection filter (NULL = inherit from database_settings) - """ + """Enable connection filter (where argument) in the GraphQL API""" enableConnectionFilter: Boolean - """ - Override: enable ltree hierarchical data type (NULL = inherit from database_settings) - """ + """Enable ltree hierarchical data type support in the GraphQL API""" enableLtree: Boolean - """ - Override: enable LLM/AI integration features (NULL = inherit from database_settings) - """ + """Enable LLM/AI integration features in the GraphQL API""" enableLlm: Boolean """ - Override: enable realtime subscriptions (NULL = inherit from database_settings) + Enable realtime subscriptions (cursor-tracked change delivery) in the GraphQL API """ enableRealtime: Boolean """ - Extensible JSON for additional per-API settings that do not have dedicated columns + Enable bulk mutation operations (insert, upsert, update, delete) in the GraphQL API + """ + enableBulk: Boolean + + """ + Extensible JSON for additional settings that do not have dedicated columns """ options: JSON } @@ -56553,6 +56479,120 @@ input OrgLimitPatch { entityId: UUID } +"""The output of our update `ApiSetting` mutation.""" +type UpdateApiSettingPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `ApiSetting` that was updated by this mutation.""" + apiSetting: ApiSetting + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `ApiSetting`. May be used by Relay 1.""" + apiSettingEdge( + """The method to use when ordering `ApiSetting`.""" + orderBy: [ApiSettingOrderBy!]! = [PRIMARY_KEY_ASC] + ): ApiSettingEdge +} + +"""All input for the `updateApiSetting` mutation.""" +input UpdateApiSettingInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """Unique identifier for this API settings record""" + id: UUID! + + """ + An object where the defined keys will be set on the `ApiSetting` being updated. + """ + apiSettingPatch: ApiSettingPatch! +} + +""" +Represents an update to a `ApiSetting`. Fields that are set will be updated. +""" +input ApiSettingPatch { + """Unique identifier for this API settings record""" + id: UUID + + """Reference to the metaschema database""" + databaseId: UUID + + """API these settings override for""" + apiId: UUID + + """ + Override: enable aggregate queries (NULL = inherit from database_settings) + """ + enableAggregates: Boolean + + """ + Override: enable PostGIS spatial types (NULL = inherit from database_settings) + """ + enablePostgis: Boolean + + """ + Override: enable unified search (NULL = inherit from database_settings) + """ + enableSearch: Boolean + + """ + Override: enable direct (multipart) file uploads (NULL = inherit from database_settings) + """ + enableDirectUploads: Boolean + + """ + Override: enable presigned URL upload flow (NULL = inherit from database_settings) + """ + enablePresignedUploads: Boolean + + """ + Override: enable many-to-many relationships (NULL = inherit from database_settings) + """ + enableManyToMany: Boolean + + """ + Override: enable connection filter (NULL = inherit from database_settings) + """ + enableConnectionFilter: Boolean + + """ + Override: enable ltree hierarchical data type (NULL = inherit from database_settings) + """ + enableLtree: Boolean + + """ + Override: enable LLM/AI integration features (NULL = inherit from database_settings) + """ + enableLlm: Boolean + + """ + Override: enable realtime subscriptions (NULL = inherit from database_settings) + """ + enableRealtime: Boolean + + """ + Override: enable bulk mutations (NULL = inherit from database_settings) + """ + enableBulk: Boolean + + """ + Extensible JSON for additional per-API settings that do not have dedicated columns + """ + options: JSON +} + """The output of our update `Enum` mutation.""" type UpdateEnumPayload { """ @@ -62532,41 +62572,6 @@ input DeleteRealtimeModuleInput { id: UUID! } -"""The output of our delete `DatabaseSetting` mutation.""" -type DeleteDatabaseSettingPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `DatabaseSetting` that was deleted by this mutation.""" - databaseSetting: DatabaseSetting - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `DatabaseSetting`. May be used by Relay 1.""" - databaseSettingEdge( - """The method to use when ordering `DatabaseSetting`.""" - orderBy: [DatabaseSettingOrderBy!]! = [PRIMARY_KEY_ASC] - ): DatabaseSettingEdge -} - -"""All input for the `deleteDatabaseSetting` mutation.""" -input DeleteDatabaseSettingInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """Unique identifier for this settings record""" - id: UUID! -} - """The output of our delete `PlansModule` mutation.""" type DeletePlansModulePayload { """ @@ -62699,38 +62704,38 @@ input DeleteDatabaseTransferInput { id: UUID! } -"""The output of our delete `ApiSetting` mutation.""" -type DeleteApiSettingPayload { +"""The output of our delete `DatabaseSetting` mutation.""" +type DeleteDatabaseSettingPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `ApiSetting` that was deleted by this mutation.""" - apiSetting: ApiSetting + """The `DatabaseSetting` that was deleted by this mutation.""" + databaseSetting: DatabaseSetting """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `ApiSetting`. May be used by Relay 1.""" - apiSettingEdge( - """The method to use when ordering `ApiSetting`.""" - orderBy: [ApiSettingOrderBy!]! = [PRIMARY_KEY_ASC] - ): ApiSettingEdge + """An edge for our `DatabaseSetting`. May be used by Relay 1.""" + databaseSettingEdge( + """The method to use when ordering `DatabaseSetting`.""" + orderBy: [DatabaseSettingOrderBy!]! = [PRIMARY_KEY_ASC] + ): DatabaseSettingEdge } -"""All input for the `deleteApiSetting` mutation.""" -input DeleteApiSettingInput { +"""All input for the `deleteDatabaseSetting` mutation.""" +input DeleteDatabaseSettingInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """Unique identifier for this API settings record""" + """Unique identifier for this settings record""" id: UUID! } @@ -62967,6 +62972,41 @@ input DeleteOrgLimitInput { id: UUID! } +"""The output of our delete `ApiSetting` mutation.""" +type DeleteApiSettingPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `ApiSetting` that was deleted by this mutation.""" + apiSetting: ApiSetting + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `ApiSetting`. May be used by Relay 1.""" + apiSettingEdge( + """The method to use when ordering `ApiSetting`.""" + orderBy: [ApiSettingOrderBy!]! = [PRIMARY_KEY_ASC] + ): ApiSettingEdge +} + +"""All input for the `deleteApiSetting` mutation.""" +input DeleteApiSettingInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """Unique identifier for this API settings record""" + id: UUID! +} + """The output of our delete `Enum` mutation.""" type DeleteEnumPayload { """ diff --git a/sdk/constructive-sdk/src/public/orm/README.md b/sdk/constructive-sdk/src/public/orm/README.md index dcb1cd177..a35827cdf 100644 --- a/sdk/constructive-sdk/src/public/orm/README.md +++ b/sdk/constructive-sdk/src/public/orm/README.md @@ -159,9 +159,9 @@ const db = createClient({ | `appLimitEvent` | findMany, findOne, create, update, delete | | `orgLimitEvent` | findMany, findOne, create, update, delete | | `rlsModule` | findMany, findOne, create, update, delete | -| `databaseSetting` | findMany, findOne, create, update, delete | | `plansModule` | findMany, findOne, create, update, delete | | `sqlAction` | findMany, findOne, create, update, delete | +| `databaseSetting` | findMany, findOne, create, update, delete | | `billingModule` | findMany, findOne, create, update, delete | | `astMigration` | findMany, findOne, create, update, delete | | `user` | findMany, findOne, create, update, delete | @@ -2005,19 +2005,20 @@ CRUD operations for ApiSetting records. | `enableLtree` | Boolean | Yes | | `enableLlm` | Boolean | Yes | | `enableRealtime` | Boolean | Yes | +| `enableBulk` | Boolean | Yes | | `options` | JSON | Yes | **Operations:** ```typescript // List all apiSetting records -const items = await db.apiSetting.findMany({ select: { id: true, databaseId: true, apiId: true, enableAggregates: true, enablePostgis: true, enableSearch: true, enableDirectUploads: true, enablePresignedUploads: true, enableManyToMany: true, enableConnectionFilter: true, enableLtree: true, enableLlm: true, enableRealtime: true, options: true } }).execute(); +const items = await db.apiSetting.findMany({ select: { id: true, databaseId: true, apiId: true, enableAggregates: true, enablePostgis: true, enableSearch: true, enableDirectUploads: true, enablePresignedUploads: true, enableManyToMany: true, enableConnectionFilter: true, enableLtree: true, enableLlm: true, enableRealtime: true, enableBulk: true, options: true } }).execute(); // Get one by id -const item = await db.apiSetting.findOne({ id: '', select: { id: true, databaseId: true, apiId: true, enableAggregates: true, enablePostgis: true, enableSearch: true, enableDirectUploads: true, enablePresignedUploads: true, enableManyToMany: true, enableConnectionFilter: true, enableLtree: true, enableLlm: true, enableRealtime: true, options: true } }).execute(); +const item = await db.apiSetting.findOne({ id: '', select: { id: true, databaseId: true, apiId: true, enableAggregates: true, enablePostgis: true, enableSearch: true, enableDirectUploads: true, enablePresignedUploads: true, enableManyToMany: true, enableConnectionFilter: true, enableLtree: true, enableLlm: true, enableRealtime: true, enableBulk: true, options: true } }).execute(); // Create -const created = await db.apiSetting.create({ data: { databaseId: '', apiId: '', enableAggregates: '', enablePostgis: '', enableSearch: '', enableDirectUploads: '', enablePresignedUploads: '', enableManyToMany: '', enableConnectionFilter: '', enableLtree: '', enableLlm: '', enableRealtime: '', options: '' }, select: { id: true } }).execute(); +const created = await db.apiSetting.create({ data: { databaseId: '', apiId: '', enableAggregates: '', enablePostgis: '', enableSearch: '', enableDirectUploads: '', enablePresignedUploads: '', enableManyToMany: '', enableConnectionFilter: '', enableLtree: '', enableLlm: '', enableRealtime: '', enableBulk: '', options: '' }, select: { id: true } }).execute(); // Update const updated = await db.apiSetting.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -5375,47 +5376,6 @@ const updated = await db.rlsModule.update({ where: { id: '' }, data: { dat const deleted = await db.rlsModule.delete({ where: { id: '' } }).execute(); ``` -### `db.databaseSetting` - -CRUD operations for DatabaseSetting records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `enableAggregates` | Boolean | Yes | -| `enablePostgis` | Boolean | Yes | -| `enableSearch` | Boolean | Yes | -| `enableDirectUploads` | Boolean | Yes | -| `enablePresignedUploads` | Boolean | Yes | -| `enableManyToMany` | Boolean | Yes | -| `enableConnectionFilter` | Boolean | Yes | -| `enableLtree` | Boolean | Yes | -| `enableLlm` | Boolean | Yes | -| `enableRealtime` | Boolean | Yes | -| `options` | JSON | Yes | - -**Operations:** - -```typescript -// List all databaseSetting records -const items = await db.databaseSetting.findMany({ select: { id: true, databaseId: true, enableAggregates: true, enablePostgis: true, enableSearch: true, enableDirectUploads: true, enablePresignedUploads: true, enableManyToMany: true, enableConnectionFilter: true, enableLtree: true, enableLlm: true, enableRealtime: true, options: true } }).execute(); - -// Get one by id -const item = await db.databaseSetting.findOne({ id: '', select: { id: true, databaseId: true, enableAggregates: true, enablePostgis: true, enableSearch: true, enableDirectUploads: true, enablePresignedUploads: true, enableManyToMany: true, enableConnectionFilter: true, enableLtree: true, enableLlm: true, enableRealtime: true, options: true } }).execute(); - -// Create -const created = await db.databaseSetting.create({ data: { databaseId: '', enableAggregates: '', enablePostgis: '', enableSearch: '', enableDirectUploads: '', enablePresignedUploads: '', enableManyToMany: '', enableConnectionFilter: '', enableLtree: '', enableLlm: '', enableRealtime: '', options: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.databaseSetting.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.databaseSetting.delete({ where: { id: '' } }).execute(); -``` - ### `db.plansModule` CRUD operations for PlansModule records. @@ -5498,6 +5458,48 @@ const updated = await db.sqlAction.update({ where: { id: '' }, data: { name const deleted = await db.sqlAction.delete({ where: { id: '' } }).execute(); ``` +### `db.databaseSetting` + +CRUD operations for DatabaseSetting records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `enableAggregates` | Boolean | Yes | +| `enablePostgis` | Boolean | Yes | +| `enableSearch` | Boolean | Yes | +| `enableDirectUploads` | Boolean | Yes | +| `enablePresignedUploads` | Boolean | Yes | +| `enableManyToMany` | Boolean | Yes | +| `enableConnectionFilter` | Boolean | Yes | +| `enableLtree` | Boolean | Yes | +| `enableLlm` | Boolean | Yes | +| `enableRealtime` | Boolean | Yes | +| `enableBulk` | Boolean | Yes | +| `options` | JSON | Yes | + +**Operations:** + +```typescript +// List all databaseSetting records +const items = await db.databaseSetting.findMany({ select: { id: true, databaseId: true, enableAggregates: true, enablePostgis: true, enableSearch: true, enableDirectUploads: true, enablePresignedUploads: true, enableManyToMany: true, enableConnectionFilter: true, enableLtree: true, enableLlm: true, enableRealtime: true, enableBulk: true, options: true } }).execute(); + +// Get one by id +const item = await db.databaseSetting.findOne({ id: '', select: { id: true, databaseId: true, enableAggregates: true, enablePostgis: true, enableSearch: true, enableDirectUploads: true, enablePresignedUploads: true, enableManyToMany: true, enableConnectionFilter: true, enableLtree: true, enableLlm: true, enableRealtime: true, enableBulk: true, options: true } }).execute(); + +// Create +const created = await db.databaseSetting.create({ data: { databaseId: '', enableAggregates: '', enablePostgis: '', enableSearch: '', enableDirectUploads: '', enablePresignedUploads: '', enableManyToMany: '', enableConnectionFilter: '', enableLtree: '', enableLlm: '', enableRealtime: '', enableBulk: '', options: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.databaseSetting.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.databaseSetting.delete({ where: { id: '' } }).execute(); +``` + ### `db.billingModule` CRUD operations for BillingModule records. diff --git a/sdk/constructive-sdk/src/public/orm/index.ts b/sdk/constructive-sdk/src/public/orm/index.ts index af693d845..b6c0d9b3e 100644 --- a/sdk/constructive-sdk/src/public/orm/index.ts +++ b/sdk/constructive-sdk/src/public/orm/index.ts @@ -143,9 +143,9 @@ import { RlsSettingModel } from './models/rlsSetting'; import { AppLimitEventModel } from './models/appLimitEvent'; import { OrgLimitEventModel } from './models/orgLimitEvent'; import { RlsModuleModel } from './models/rlsModule'; -import { DatabaseSettingModel } from './models/databaseSetting'; import { PlansModuleModel } from './models/plansModule'; import { SqlActionModel } from './models/sqlAction'; +import { DatabaseSettingModel } from './models/databaseSetting'; import { BillingModuleModel } from './models/billingModule'; import { AstMigrationModel } from './models/astMigration'; import { UserModel } from './models/user'; @@ -327,9 +327,9 @@ export function createClient(config: OrmClientConfig) { appLimitEvent: new AppLimitEventModel(client), orgLimitEvent: new OrgLimitEventModel(client), rlsModule: new RlsModuleModel(client), - databaseSetting: new DatabaseSettingModel(client), plansModule: new PlansModuleModel(client), sqlAction: new SqlActionModel(client), + databaseSetting: new DatabaseSettingModel(client), billingModule: new BillingModuleModel(client), astMigration: new AstMigrationModel(client), user: new UserModel(client), diff --git a/sdk/constructive-sdk/src/public/orm/input-types.ts b/sdk/constructive-sdk/src/public/orm/input-types.ts index c0bb01544..505058774 100644 --- a/sdk/constructive-sdk/src/public/orm/input-types.ts +++ b/sdk/constructive-sdk/src/public/orm/input-types.ts @@ -1045,6 +1045,8 @@ export interface ApiSetting { enableLlm?: boolean | null; /** Override: enable realtime subscriptions (NULL = inherit from database_settings) */ enableRealtime?: boolean | null; + /** Override: enable bulk mutations (NULL = inherit from database_settings) */ + enableBulk?: boolean | null; /** Extensible JSON for additional per-API settings that do not have dedicated columns */ options?: Record | null; } @@ -2645,35 +2647,6 @@ export interface RlsModule { currentRole?: string | null; currentRoleId?: string | null; } -/** Database-wide feature flags and settings; controls which platform features are available to all APIs in this database */ -export interface DatabaseSetting { - /** Unique identifier for this settings record */ - id: string; - /** Reference to the metaschema database these settings apply to */ - databaseId?: string | null; - /** Enable aggregate queries (sum, avg, min, max, etc.) in the GraphQL API */ - enableAggregates?: boolean | null; - /** Enable PostGIS spatial types and operators in the GraphQL API */ - enablePostgis?: boolean | null; - /** Enable unified search (tsvector, BM25, pg_trgm, pgvector) in the GraphQL API */ - enableSearch?: boolean | null; - /** Enable direct (multipart) file upload mutations in the GraphQL API */ - enableDirectUploads?: boolean | null; - /** Enable presigned URL upload flow for S3/MinIO storage */ - enablePresignedUploads?: boolean | null; - /** Enable many-to-many relationship queries in the GraphQL API */ - enableManyToMany?: boolean | null; - /** Enable connection filter (where argument) in the GraphQL API */ - enableConnectionFilter?: boolean | null; - /** Enable ltree hierarchical data type support in the GraphQL API */ - enableLtree?: boolean | null; - /** Enable LLM/AI integration features in the GraphQL API */ - enableLlm?: boolean | null; - /** Enable realtime subscriptions (cursor-tracked change delivery) in the GraphQL API */ - enableRealtime?: boolean | null; - /** Extensible JSON for additional settings that do not have dedicated columns */ - options?: Record | null; -} export interface PlansModule { id: string; databaseId?: string | null; @@ -2704,6 +2677,37 @@ export interface SqlAction { actionId?: string | null; actorId?: string | null; } +/** Database-wide feature flags and settings; controls which platform features are available to all APIs in this database */ +export interface DatabaseSetting { + /** Unique identifier for this settings record */ + id: string; + /** Reference to the metaschema database these settings apply to */ + databaseId?: string | null; + /** Enable aggregate queries (sum, avg, min, max, etc.) in the GraphQL API */ + enableAggregates?: boolean | null; + /** Enable PostGIS spatial types and operators in the GraphQL API */ + enablePostgis?: boolean | null; + /** Enable unified search (tsvector, BM25, pg_trgm, pgvector) in the GraphQL API */ + enableSearch?: boolean | null; + /** Enable direct (multipart) file upload mutations in the GraphQL API */ + enableDirectUploads?: boolean | null; + /** Enable presigned URL upload flow for S3/MinIO storage */ + enablePresignedUploads?: boolean | null; + /** Enable many-to-many relationship queries in the GraphQL API */ + enableManyToMany?: boolean | null; + /** Enable connection filter (where argument) in the GraphQL API */ + enableConnectionFilter?: boolean | null; + /** Enable ltree hierarchical data type support in the GraphQL API */ + enableLtree?: boolean | null; + /** Enable LLM/AI integration features in the GraphQL API */ + enableLlm?: boolean | null; + /** Enable realtime subscriptions (cursor-tracked change delivery) in the GraphQL API */ + enableRealtime?: boolean | null; + /** Enable bulk mutation operations (insert, upsert, update, delete) in the GraphQL API */ + enableBulk?: boolean | null; + /** Extensible JSON for additional settings that do not have dedicated columns */ + options?: Record | null; +} export interface BillingModule { id: string; databaseId?: string | null; @@ -3659,9 +3663,6 @@ export interface RlsModuleRelations { sessionsTable?: Table | null; usersTable?: Table | null; } -export interface DatabaseSettingRelations { - database?: Database | null; -} export interface PlansModuleRelations { database?: Database | null; planLimitsTable?: Table | null; @@ -3672,6 +3673,9 @@ export interface PlansModuleRelations { schema?: Schema | null; } export interface SqlActionRelations {} +export interface DatabaseSettingRelations { + database?: Database | null; +} export interface BillingModuleRelations { balancesTable?: Table | null; database?: Database | null; @@ -3948,9 +3952,9 @@ export type RlsSettingWithRelations = RlsSetting & RlsSettingRelations; export type AppLimitEventWithRelations = AppLimitEvent & AppLimitEventRelations; export type OrgLimitEventWithRelations = OrgLimitEvent & OrgLimitEventRelations; export type RlsModuleWithRelations = RlsModule & RlsModuleRelations; -export type DatabaseSettingWithRelations = DatabaseSetting & DatabaseSettingRelations; export type PlansModuleWithRelations = PlansModule & PlansModuleRelations; export type SqlActionWithRelations = SqlAction & SqlActionRelations; +export type DatabaseSettingWithRelations = DatabaseSetting & DatabaseSettingRelations; export type BillingModuleWithRelations = BillingModule & BillingModuleRelations; export type AstMigrationWithRelations = AstMigration & AstMigrationRelations; export type UserWithRelations = User & UserRelations; @@ -5592,6 +5596,7 @@ export type ApiSettingSelect = { enableLtree?: boolean; enableLlm?: boolean; enableRealtime?: boolean; + enableBulk?: boolean; options?: boolean; api?: { select: ApiSelect; @@ -7481,24 +7486,6 @@ export type RlsModuleSelect = { select: TableSelect; }; }; -export type DatabaseSettingSelect = { - id?: boolean; - databaseId?: boolean; - enableAggregates?: boolean; - enablePostgis?: boolean; - enableSearch?: boolean; - enableDirectUploads?: boolean; - enablePresignedUploads?: boolean; - enableManyToMany?: boolean; - enableConnectionFilter?: boolean; - enableLtree?: boolean; - enableLlm?: boolean; - enableRealtime?: boolean; - options?: boolean; - database?: { - select: DatabaseSelect; - }; -}; export type PlansModuleSelect = { id?: boolean; databaseId?: boolean; @@ -7550,6 +7537,25 @@ export type SqlActionSelect = { actionId?: boolean; actorId?: boolean; }; +export type DatabaseSettingSelect = { + id?: boolean; + databaseId?: boolean; + enableAggregates?: boolean; + enablePostgis?: boolean; + enableSearch?: boolean; + enableDirectUploads?: boolean; + enablePresignedUploads?: boolean; + enableManyToMany?: boolean; + enableConnectionFilter?: boolean; + enableLtree?: boolean; + enableLlm?: boolean; + enableRealtime?: boolean; + enableBulk?: boolean; + options?: boolean; + database?: { + select: DatabaseSelect; + }; +}; export type BillingModuleSelect = { id?: boolean; databaseId?: boolean; @@ -10239,6 +10245,8 @@ export interface ApiSettingFilter { enableLlm?: BooleanFilter; /** Filter by the object’s `enableRealtime` field. */ enableRealtime?: BooleanFilter; + /** Filter by the object’s `enableBulk` field. */ + enableBulk?: BooleanFilter; /** Filter by the object’s `options` field. */ options?: JSONFilter; /** Checks for all expressions in this list. */ @@ -13354,42 +13362,6 @@ export interface RlsModuleFilter { /** Filter by the object’s `usersTable` relation. */ usersTable?: TableFilter; } -export interface DatabaseSettingFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `enableAggregates` field. */ - enableAggregates?: BooleanFilter; - /** Filter by the object’s `enablePostgis` field. */ - enablePostgis?: BooleanFilter; - /** Filter by the object’s `enableSearch` field. */ - enableSearch?: BooleanFilter; - /** Filter by the object’s `enableDirectUploads` field. */ - enableDirectUploads?: BooleanFilter; - /** Filter by the object’s `enablePresignedUploads` field. */ - enablePresignedUploads?: BooleanFilter; - /** Filter by the object’s `enableManyToMany` field. */ - enableManyToMany?: BooleanFilter; - /** Filter by the object’s `enableConnectionFilter` field. */ - enableConnectionFilter?: BooleanFilter; - /** Filter by the object’s `enableLtree` field. */ - enableLtree?: BooleanFilter; - /** Filter by the object’s `enableLlm` field. */ - enableLlm?: BooleanFilter; - /** Filter by the object’s `enableRealtime` field. */ - enableRealtime?: BooleanFilter; - /** Filter by the object’s `options` field. */ - options?: JSONFilter; - /** Checks for all expressions in this list. */ - and?: DatabaseSettingFilter[]; - /** Checks for any expressions in this list. */ - or?: DatabaseSettingFilter[]; - /** Negates the expression. */ - not?: DatabaseSettingFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; -} export interface PlansModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -13474,6 +13446,44 @@ export interface SqlActionFilter { /** Negates the expression. */ not?: SqlActionFilter; } +export interface DatabaseSettingFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `enableAggregates` field. */ + enableAggregates?: BooleanFilter; + /** Filter by the object’s `enablePostgis` field. */ + enablePostgis?: BooleanFilter; + /** Filter by the object’s `enableSearch` field. */ + enableSearch?: BooleanFilter; + /** Filter by the object’s `enableDirectUploads` field. */ + enableDirectUploads?: BooleanFilter; + /** Filter by the object’s `enablePresignedUploads` field. */ + enablePresignedUploads?: BooleanFilter; + /** Filter by the object’s `enableManyToMany` field. */ + enableManyToMany?: BooleanFilter; + /** Filter by the object’s `enableConnectionFilter` field. */ + enableConnectionFilter?: BooleanFilter; + /** Filter by the object’s `enableLtree` field. */ + enableLtree?: BooleanFilter; + /** Filter by the object’s `enableLlm` field. */ + enableLlm?: BooleanFilter; + /** Filter by the object’s `enableRealtime` field. */ + enableRealtime?: BooleanFilter; + /** Filter by the object’s `enableBulk` field. */ + enableBulk?: BooleanFilter; + /** Filter by the object’s `options` field. */ + options?: JSONFilter; + /** Checks for all expressions in this list. */ + and?: DatabaseSettingFilter[]; + /** Checks for any expressions in this list. */ + or?: DatabaseSettingFilter[]; + /** Negates the expression. */ + not?: DatabaseSettingFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; +} export interface BillingModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -15296,6 +15306,8 @@ export type ApiSettingOrderBy = | 'ENABLE_LLM_DESC' | 'ENABLE_REALTIME_ASC' | 'ENABLE_REALTIME_DESC' + | 'ENABLE_BULK_ASC' + | 'ENABLE_BULK_DESC' | 'OPTIONS_ASC' | 'OPTIONS_DESC'; export type ConnectedAccountsModuleOrderBy = @@ -17358,36 +17370,6 @@ export type RlsModuleOrderBy = | 'CURRENT_ROLE_DESC' | 'CURRENT_ROLE_ID_ASC' | 'CURRENT_ROLE_ID_DESC'; -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'; export type PlansModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -17446,6 +17428,38 @@ export type SqlActionOrderBy = | 'ACTION_ID_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC'; +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' + | 'ENABLE_BULK_ASC' + | 'ENABLE_BULK_DESC' + | 'OPTIONS_ASC' + | 'OPTIONS_DESC'; export type BillingModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -19278,6 +19292,7 @@ export interface CreateApiSettingInput { enableLtree?: boolean; enableLlm?: boolean; enableRealtime?: boolean; + enableBulk?: boolean; options?: Record; }; } @@ -19294,6 +19309,7 @@ export interface ApiSettingPatch { enableLtree?: boolean | null; enableLlm?: boolean | null; enableRealtime?: boolean | null; + enableBulk?: boolean | null; options?: Record | null; } export interface UpdateApiSettingInput { @@ -22149,46 +22165,6 @@ export interface DeleteRlsModuleInput { clientMutationId?: string; id: string; } -export interface CreateDatabaseSettingInput { - clientMutationId?: string; - databaseSetting: { - databaseId: string; - enableAggregates?: boolean; - enablePostgis?: boolean; - enableSearch?: boolean; - enableDirectUploads?: boolean; - enablePresignedUploads?: boolean; - enableManyToMany?: boolean; - enableConnectionFilter?: boolean; - enableLtree?: boolean; - enableLlm?: boolean; - enableRealtime?: boolean; - options?: Record; - }; -} -export interface DatabaseSettingPatch { - databaseId?: string | null; - enableAggregates?: boolean | null; - enablePostgis?: boolean | null; - enableSearch?: boolean | null; - enableDirectUploads?: boolean | null; - enablePresignedUploads?: boolean | null; - enableManyToMany?: boolean | null; - enableConnectionFilter?: boolean | null; - enableLtree?: boolean | null; - enableLlm?: boolean | null; - enableRealtime?: boolean | null; - options?: Record | null; -} -export interface UpdateDatabaseSettingInput { - clientMutationId?: string; - id: string; - databaseSettingPatch: DatabaseSettingPatch; -} -export interface DeleteDatabaseSettingInput { - clientMutationId?: string; - id: string; -} export interface CreatePlansModuleInput { clientMutationId?: string; plansModule: { @@ -22267,6 +22243,48 @@ export interface DeleteSqlActionInput { clientMutationId?: string; id: number; } +export interface CreateDatabaseSettingInput { + clientMutationId?: string; + databaseSetting: { + databaseId: string; + enableAggregates?: boolean; + enablePostgis?: boolean; + enableSearch?: boolean; + enableDirectUploads?: boolean; + enablePresignedUploads?: boolean; + enableManyToMany?: boolean; + enableConnectionFilter?: boolean; + enableLtree?: boolean; + enableLlm?: boolean; + enableRealtime?: boolean; + enableBulk?: boolean; + options?: Record; + }; +} +export interface DatabaseSettingPatch { + databaseId?: string | null; + enableAggregates?: boolean | null; + enablePostgis?: boolean | null; + enableSearch?: boolean | null; + enableDirectUploads?: boolean | null; + enablePresignedUploads?: boolean | null; + enableManyToMany?: boolean | null; + enableConnectionFilter?: boolean | null; + enableLtree?: boolean | null; + enableLlm?: boolean | null; + enableRealtime?: boolean | null; + enableBulk?: boolean | null; + options?: Record | null; +} +export interface UpdateDatabaseSettingInput { + clientMutationId?: string; + id: string; + databaseSettingPatch: DatabaseSettingPatch; +} +export interface DeleteDatabaseSettingInput { + clientMutationId?: string; + id: string; +} export interface CreateBillingModuleInput { clientMutationId?: string; billingModule: { @@ -26604,6 +26622,8 @@ export interface ApiSettingFilter { enableLlm?: BooleanFilter; /** Filter by the object’s `enableRealtime` field. */ enableRealtime?: BooleanFilter; + /** Filter by the object’s `enableBulk` field. */ + enableBulk?: BooleanFilter; /** Filter by the object’s `options` field. */ options?: JSONFilter; /** Checks for all expressions in this list. */ @@ -30442,6 +30462,8 @@ export interface DatabaseSettingFilter { enableLlm?: BooleanFilter; /** Filter by the object’s `enableRealtime` field. */ enableRealtime?: BooleanFilter; + /** Filter by the object’s `enableBulk` field. */ + enableBulk?: BooleanFilter; /** Filter by the object’s `options` field. */ options?: JSONFilter; /** Checks for all expressions in this list. */ @@ -37592,51 +37614,6 @@ export type DeleteRlsModulePayloadSelect = { select: RlsModuleEdgeSelect; }; }; -export interface CreateDatabaseSettingPayload { - clientMutationId?: string | null; - /** The `DatabaseSetting` that was created by this mutation. */ - databaseSetting?: DatabaseSetting | null; - databaseSettingEdge?: DatabaseSettingEdge | null; -} -export type CreateDatabaseSettingPayloadSelect = { - clientMutationId?: boolean; - databaseSetting?: { - select: DatabaseSettingSelect; - }; - databaseSettingEdge?: { - select: DatabaseSettingEdgeSelect; - }; -}; -export interface UpdateDatabaseSettingPayload { - clientMutationId?: string | null; - /** The `DatabaseSetting` that was updated by this mutation. */ - databaseSetting?: DatabaseSetting | null; - databaseSettingEdge?: DatabaseSettingEdge | null; -} -export type UpdateDatabaseSettingPayloadSelect = { - clientMutationId?: boolean; - databaseSetting?: { - select: DatabaseSettingSelect; - }; - databaseSettingEdge?: { - select: DatabaseSettingEdgeSelect; - }; -}; -export interface DeleteDatabaseSettingPayload { - clientMutationId?: string | null; - /** The `DatabaseSetting` that was deleted by this mutation. */ - databaseSetting?: DatabaseSetting | null; - databaseSettingEdge?: DatabaseSettingEdge | null; -} -export type DeleteDatabaseSettingPayloadSelect = { - clientMutationId?: boolean; - databaseSetting?: { - select: DatabaseSettingSelect; - }; - databaseSettingEdge?: { - select: DatabaseSettingEdgeSelect; - }; -}; export interface CreatePlansModulePayload { clientMutationId?: string | null; /** The `PlansModule` that was created by this mutation. */ @@ -37693,6 +37670,51 @@ export type CreateSqlActionPayloadSelect = { select: SqlActionSelect; }; }; +export interface CreateDatabaseSettingPayload { + clientMutationId?: string | null; + /** The `DatabaseSetting` that was created by this mutation. */ + databaseSetting?: DatabaseSetting | null; + databaseSettingEdge?: DatabaseSettingEdge | null; +} +export type CreateDatabaseSettingPayloadSelect = { + clientMutationId?: boolean; + databaseSetting?: { + select: DatabaseSettingSelect; + }; + databaseSettingEdge?: { + select: DatabaseSettingEdgeSelect; + }; +}; +export interface UpdateDatabaseSettingPayload { + clientMutationId?: string | null; + /** The `DatabaseSetting` that was updated by this mutation. */ + databaseSetting?: DatabaseSetting | null; + databaseSettingEdge?: DatabaseSettingEdge | null; +} +export type UpdateDatabaseSettingPayloadSelect = { + clientMutationId?: boolean; + databaseSetting?: { + select: DatabaseSettingSelect; + }; + databaseSettingEdge?: { + select: DatabaseSettingEdgeSelect; + }; +}; +export interface DeleteDatabaseSettingPayload { + clientMutationId?: string | null; + /** The `DatabaseSetting` that was deleted by this mutation. */ + databaseSetting?: DatabaseSetting | null; + databaseSettingEdge?: DatabaseSettingEdge | null; +} +export type DeleteDatabaseSettingPayloadSelect = { + clientMutationId?: boolean; + databaseSetting?: { + select: DatabaseSettingSelect; + }; + databaseSettingEdge?: { + select: DatabaseSettingEdgeSelect; + }; +}; export interface CreateBillingModulePayload { clientMutationId?: string | null; /** The `BillingModule` that was created by this mutation. */ @@ -39716,18 +39738,6 @@ export type RlsModuleEdgeSelect = { select: RlsModuleSelect; }; }; -/** A `DatabaseSetting` edge in the connection. */ -export interface DatabaseSettingEdge { - cursor?: string | null; - /** The `DatabaseSetting` at the end of the edge. */ - node?: DatabaseSetting | null; -} -export type DatabaseSettingEdgeSelect = { - cursor?: boolean; - node?: { - select: DatabaseSettingSelect; - }; -}; /** A `PlansModule` edge in the connection. */ export interface PlansModuleEdge { cursor?: string | null; @@ -39740,6 +39750,18 @@ export type PlansModuleEdgeSelect = { select: PlansModuleSelect; }; }; +/** A `DatabaseSetting` edge in the connection. */ +export interface DatabaseSettingEdge { + cursor?: string | null; + /** The `DatabaseSetting` at the end of the edge. */ + node?: DatabaseSetting | null; +} +export type DatabaseSettingEdgeSelect = { + cursor?: boolean; + node?: { + select: DatabaseSettingSelect; + }; +}; /** A `BillingModule` edge in the connection. */ export interface BillingModuleEdge { cursor?: string | null; diff --git a/sdk/constructive-sdk/src/public/orm/models/index.ts b/sdk/constructive-sdk/src/public/orm/models/index.ts index 39d973318..7a6c287de 100644 --- a/sdk/constructive-sdk/src/public/orm/models/index.ts +++ b/sdk/constructive-sdk/src/public/orm/models/index.ts @@ -141,9 +141,9 @@ export { RlsSettingModel } from './rlsSetting'; export { AppLimitEventModel } from './appLimitEvent'; export { OrgLimitEventModel } from './orgLimitEvent'; export { RlsModuleModel } from './rlsModule'; -export { DatabaseSettingModel } from './databaseSetting'; export { PlansModuleModel } from './plansModule'; export { SqlActionModel } from './sqlAction'; +export { DatabaseSettingModel } from './databaseSetting'; export { BillingModuleModel } from './billingModule'; export { AstMigrationModel } from './astMigration'; export { UserModel } from './user';