diff --git a/sdk/constructive-cli/README.md b/sdk/constructive-cli/README.md index 016f5d828..122660ef5 100644 --- a/sdk/constructive-cli/README.md +++ b/sdk/constructive-cli/README.md @@ -4,14 +4,6 @@

-

- - - - - -

- ## APIs diff --git a/sdk/constructive-cli/src/admin/cli/README.md b/sdk/constructive-cli/src/admin/cli/README.md index 6881aca24..681c5ed19 100644 --- a/sdk/constructive-cli/src/admin/cli/README.md +++ b/sdk/constructive-cli/src/admin/cli/README.md @@ -176,10 +176,7 @@ CRUD operations for AppPermission records. | `bitnum` | Int | | `bitstr` | BitString | | `description` | String | -| `descriptionTrgmSimilarity` | Float | -| `searchScore` | Float | -**Required create fields:** `descriptionTrgmSimilarity`, `searchScore` **Optional create fields (backend defaults):** `name`, `bitnum`, `bitstr`, `description` ### `org-permission` @@ -203,10 +200,7 @@ CRUD operations for OrgPermission records. | `bitnum` | Int | | `bitstr` | BitString | | `description` | String | -| `descriptionTrgmSimilarity` | Float | -| `searchScore` | Float | -**Required create fields:** `descriptionTrgmSimilarity`, `searchScore` **Optional create fields (backend defaults):** `name`, `bitnum`, `bitstr`, `description` ### `app-level-requirement` @@ -233,10 +227,8 @@ CRUD operations for AppLevelRequirement records. | `priority` | Int | | `createdAt` | Datetime | | `updatedAt` | Datetime | -| `descriptionTrgmSimilarity` | Float | -| `searchScore` | Float | -**Required create fields:** `name`, `level`, `descriptionTrgmSimilarity`, `searchScore` +**Required create fields:** `name`, `level` **Optional create fields (backend defaults):** `description`, `requiredCount`, `priority` ### `org-member` @@ -484,11 +476,9 @@ CRUD operations for OrgChartEdgeGrant records. | `positionTitle` | String | | `positionLevel` | Int | | `createdAt` | Datetime | -| `positionTitleTrgmSimilarity` | Float | -| `searchScore` | Float | -**Required create fields:** `entityId`, `childId`, `grantorId`, `positionTitleTrgmSimilarity`, `searchScore` -**Optional create fields (backend defaults):** `parentId`, `isGrant`, `positionTitle`, `positionLevel` +**Required create fields:** `entityId`, `childId` +**Optional create fields (backend defaults):** `parentId`, `grantorId`, `isGrant`, `positionTitle`, `positionLevel` ### `membership-type` @@ -510,11 +500,8 @@ CRUD operations for MembershipType records. | `name` | String | | `description` | String | | `prefix` | String | -| `descriptionTrgmSimilarity` | Float | -| `prefixTrgmSimilarity` | Float | -| `searchScore` | Float | -**Required create fields:** `name`, `description`, `prefix`, `descriptionTrgmSimilarity`, `prefixTrgmSimilarity`, `searchScore` +**Required create fields:** `name`, `description`, `prefix` ### `app-limit` @@ -776,10 +763,8 @@ CRUD operations for OrgChartEdge records. | `parentId` | UUID | | `positionTitle` | String | | `positionLevel` | Int | -| `positionTitleTrgmSimilarity` | Float | -| `searchScore` | Float | -**Required create fields:** `entityId`, `childId`, `positionTitleTrgmSimilarity`, `searchScore` +**Required create fields:** `entityId`, `childId` **Optional create fields (backend defaults):** `parentId`, `positionTitle`, `positionLevel` ### `org-membership-default` @@ -911,10 +896,7 @@ CRUD operations for Invite records. | `expiresAt` | Datetime | | `createdAt` | Datetime | | `updatedAt` | Datetime | -| `inviteTokenTrgmSimilarity` | Float | -| `searchScore` | Float | -**Required create fields:** `inviteTokenTrgmSimilarity`, `searchScore` **Optional create fields (backend defaults):** `email`, `senderId`, `inviteToken`, `inviteValid`, `inviteLimit`, `inviteCount`, `multiple`, `data`, `expiresAt` ### `app-level` @@ -940,10 +922,8 @@ CRUD operations for AppLevel records. | `ownerId` | UUID | | `createdAt` | Datetime | | `updatedAt` | Datetime | -| `descriptionTrgmSimilarity` | Float | -| `searchScore` | Float | -**Required create fields:** `name`, `descriptionTrgmSimilarity`, `searchScore` +**Required create fields:** `name` **Optional create fields (backend defaults):** `description`, `image`, `ownerId` ### `org-invite` @@ -976,10 +956,8 @@ CRUD operations for OrgInvite records. | `createdAt` | Datetime | | `updatedAt` | Datetime | | `entityId` | UUID | -| `inviteTokenTrgmSimilarity` | Float | -| `searchScore` | Float | -**Required create fields:** `entityId`, `inviteTokenTrgmSimilarity`, `searchScore` +**Required create fields:** `entityId` **Optional create fields (backend defaults):** `email`, `senderId`, `receiverId`, `inviteToken`, `inviteValid`, `inviteLimit`, `inviteCount`, `multiple`, `data`, `expiresAt` ## Custom Operations diff --git a/sdk/constructive-cli/src/admin/cli/commands/app-level-requirement.ts b/sdk/constructive-cli/src/admin/cli/commands/app-level-requirement.ts index f41f9c940..1e6781802 100644 --- a/sdk/constructive-cli/src/admin/cli/commands/app-level-requirement.ts +++ b/sdk/constructive-cli/src/admin/cli/commands/app-level-requirement.ts @@ -20,8 +20,6 @@ const fieldSchema: FieldSchema = { priority: 'int', createdAt: 'string', updatedAt: 'string', - descriptionTrgmSimilarity: 'float', - searchScore: 'float', }; const usage = '\napp-level-requirement \n\nCommands:\n list List all appLevelRequirement records\n get Get a appLevelRequirement by ID\n create Create a new appLevelRequirement\n update Update an existing appLevelRequirement\n delete Delete a appLevelRequirement\n\n --help, -h Show this help message\n'; diff --git a/sdk/constructive-cli/src/admin/cli/commands/app-level.ts b/sdk/constructive-cli/src/admin/cli/commands/app-level.ts index c21b85d0a..346ad0c7f 100644 --- a/sdk/constructive-cli/src/admin/cli/commands/app-level.ts +++ b/sdk/constructive-cli/src/admin/cli/commands/app-level.ts @@ -16,8 +16,6 @@ const fieldSchema: FieldSchema = { ownerId: 'uuid', createdAt: 'string', updatedAt: 'string', - descriptionTrgmSimilarity: 'float', - searchScore: 'float', }; const usage = '\napp-level \n\nCommands:\n list List all appLevel records\n get Get a appLevel by ID\n create Create a new appLevel\n update Update an existing appLevel\n delete Delete a appLevel\n\n --help, -h Show this help message\n'; diff --git a/sdk/constructive-cli/src/admin/cli/commands/app-permission.ts b/sdk/constructive-cli/src/admin/cli/commands/app-permission.ts index 652e5a821..61f8849ca 100644 --- a/sdk/constructive-cli/src/admin/cli/commands/app-permission.ts +++ b/sdk/constructive-cli/src/admin/cli/commands/app-permission.ts @@ -14,8 +14,6 @@ const fieldSchema: FieldSchema = { bitnum: 'int', bitstr: 'string', description: 'string', - descriptionTrgmSimilarity: 'float', - searchScore: 'float', }; const usage = '\napp-permission \n\nCommands:\n list List all appPermission records\n get Get a appPermission by ID\n create Create a new appPermission\n update Update an existing appPermission\n delete Delete a appPermission\n\n --help, -h Show this help message\n'; diff --git a/sdk/constructive-cli/src/admin/cli/commands/invite.ts b/sdk/constructive-cli/src/admin/cli/commands/invite.ts index e70bc595b..7d243bdd3 100644 --- a/sdk/constructive-cli/src/admin/cli/commands/invite.ts +++ b/sdk/constructive-cli/src/admin/cli/commands/invite.ts @@ -21,8 +21,6 @@ const fieldSchema: FieldSchema = { expiresAt: 'string', createdAt: 'string', updatedAt: 'string', - inviteTokenTrgmSimilarity: 'float', - searchScore: 'float', }; const usage = '\ninvite \n\nCommands:\n list List all invite records\n get Get a invite by ID\n create Create a new invite\n update Update an existing invite\n delete Delete a invite\n\n --help, -h Show this help message\n'; diff --git a/sdk/constructive-cli/src/admin/cli/commands/membership-type.ts b/sdk/constructive-cli/src/admin/cli/commands/membership-type.ts index a8c9714c4..118aade21 100644 --- a/sdk/constructive-cli/src/admin/cli/commands/membership-type.ts +++ b/sdk/constructive-cli/src/admin/cli/commands/membership-type.ts @@ -13,9 +13,6 @@ const fieldSchema: FieldSchema = { name: 'string', description: 'string', prefix: 'string', - descriptionTrgmSimilarity: 'float', - prefixTrgmSimilarity: 'float', - searchScore: 'float', }; const usage = '\nmembership-type \n\nCommands:\n list List all membershipType records\n get Get a membershipType by ID\n create Create a new membershipType\n update Update an existing membershipType\n delete Delete a membershipType\n\n --help, -h Show this help message\n'; diff --git a/sdk/constructive-cli/src/admin/cli/commands/org-chart-edge-grant.ts b/sdk/constructive-cli/src/admin/cli/commands/org-chart-edge-grant.ts index 4f16e2d0f..fc388684a 100644 --- a/sdk/constructive-cli/src/admin/cli/commands/org-chart-edge-grant.ts +++ b/sdk/constructive-cli/src/admin/cli/commands/org-chart-edge-grant.ts @@ -18,8 +18,6 @@ const fieldSchema: FieldSchema = { positionTitle: 'string', positionLevel: 'int', createdAt: 'string', - positionTitleTrgmSimilarity: 'float', - searchScore: 'float', }; const usage = '\norg-chart-edge-grant \n\nCommands:\n list List all orgChartEdgeGrant records\n get Get a orgChartEdgeGrant by ID\n create Create a new orgChartEdgeGrant\n update Update an existing orgChartEdgeGrant\n delete Delete a orgChartEdgeGrant\n\n --help, -h Show this help message\n'; @@ -156,7 +154,8 @@ async function handleCreate(argv: Partial>, prompter: In type: 'text', name: 'grantorId', message: 'grantorId', - required: true, + required: false, + skipPrompt: true, }, { type: 'boolean', @@ -252,6 +251,7 @@ async function handleUpdate(argv: Partial>, prompter: In name: 'grantorId', message: 'grantorId', required: false, + skipPrompt: true, }, { type: 'boolean', diff --git a/sdk/constructive-cli/src/admin/cli/commands/org-chart-edge.ts b/sdk/constructive-cli/src/admin/cli/commands/org-chart-edge.ts index 98f69b143..72fa13a5e 100644 --- a/sdk/constructive-cli/src/admin/cli/commands/org-chart-edge.ts +++ b/sdk/constructive-cli/src/admin/cli/commands/org-chart-edge.ts @@ -17,8 +17,6 @@ const fieldSchema: FieldSchema = { parentId: 'uuid', positionTitle: 'string', positionLevel: 'int', - positionTitleTrgmSimilarity: 'float', - searchScore: 'float', }; const usage = '\norg-chart-edge \n\nCommands:\n list List all orgChartEdge records\n get Get a orgChartEdge by ID\n create Create a new orgChartEdge\n update Update an existing orgChartEdge\n delete Delete a orgChartEdge\n\n --help, -h Show this help message\n'; diff --git a/sdk/constructive-cli/src/admin/cli/commands/org-invite.ts b/sdk/constructive-cli/src/admin/cli/commands/org-invite.ts index ce3056594..9b512b138 100644 --- a/sdk/constructive-cli/src/admin/cli/commands/org-invite.ts +++ b/sdk/constructive-cli/src/admin/cli/commands/org-invite.ts @@ -23,8 +23,6 @@ const fieldSchema: FieldSchema = { createdAt: 'string', updatedAt: 'string', entityId: 'uuid', - inviteTokenTrgmSimilarity: 'float', - searchScore: 'float', }; const usage = '\norg-invite \n\nCommands:\n list List all orgInvite records\n get Get a orgInvite by ID\n create Create a new orgInvite\n update Update an existing orgInvite\n delete Delete a orgInvite\n\n --help, -h Show this help message\n'; diff --git a/sdk/constructive-cli/src/admin/cli/commands/org-permission.ts b/sdk/constructive-cli/src/admin/cli/commands/org-permission.ts index a07b31182..91a56140e 100644 --- a/sdk/constructive-cli/src/admin/cli/commands/org-permission.ts +++ b/sdk/constructive-cli/src/admin/cli/commands/org-permission.ts @@ -14,8 +14,6 @@ const fieldSchema: FieldSchema = { bitnum: 'int', bitstr: 'string', description: 'string', - descriptionTrgmSimilarity: 'float', - searchScore: 'float', }; const usage = '\norg-permission \n\nCommands:\n list List all orgPermission records\n get Get a orgPermission by ID\n create Create a new orgPermission\n update Update an existing orgPermission\n delete Delete a orgPermission\n\n --help, -h Show this help message\n'; diff --git a/sdk/constructive-cli/src/admin/orm/README.md b/sdk/constructive-cli/src/admin/orm/README.md index 74e966fea..c52770a50 100644 --- a/sdk/constructive-cli/src/admin/orm/README.md +++ b/sdk/constructive-cli/src/admin/orm/README.md @@ -74,16 +74,16 @@ CRUD operations for OrgGetManagersRecord records. const items = await db.orgGetManagersRecord.findMany({ select: { userId: true, depth: true } }).execute(); // Get one by id -const item = await db.orgGetManagersRecord.findOne({ id: '', select: { userId: true, depth: true } }).execute(); +const item = await db.orgGetManagersRecord.findOne({ id: '', select: { userId: true, depth: true } }).execute(); // Create -const created = await db.orgGetManagersRecord.create({ data: { userId: '', depth: '' }, select: { id: true } }).execute(); +const created = await db.orgGetManagersRecord.create({ data: { userId: '', depth: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgGetManagersRecord.update({ where: { id: '' }, data: { userId: '' }, select: { id: true } }).execute(); +const updated = await db.orgGetManagersRecord.update({ where: { id: '' }, data: { userId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgGetManagersRecord.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgGetManagersRecord.delete({ where: { id: '' } }).execute(); ``` ### `db.orgGetSubordinatesRecord` @@ -104,16 +104,16 @@ CRUD operations for OrgGetSubordinatesRecord records. const items = await db.orgGetSubordinatesRecord.findMany({ select: { userId: true, depth: true } }).execute(); // Get one by id -const item = await db.orgGetSubordinatesRecord.findOne({ id: '', select: { userId: true, depth: true } }).execute(); +const item = await db.orgGetSubordinatesRecord.findOne({ id: '', select: { userId: true, depth: true } }).execute(); // Create -const created = await db.orgGetSubordinatesRecord.create({ data: { userId: '', depth: '' }, select: { id: true } }).execute(); +const created = await db.orgGetSubordinatesRecord.create({ data: { userId: '', depth: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgGetSubordinatesRecord.update({ where: { id: '' }, data: { userId: '' }, select: { id: true } }).execute(); +const updated = await db.orgGetSubordinatesRecord.update({ where: { id: '' }, data: { userId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgGetSubordinatesRecord.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgGetSubordinatesRecord.delete({ where: { id: '' } }).execute(); ``` ### `db.appPermission` @@ -129,26 +129,24 @@ CRUD operations for AppPermission records. | `bitnum` | Int | Yes | | `bitstr` | BitString | Yes | | `description` | String | Yes | -| `descriptionTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all appPermission records -const items = await db.appPermission.findMany({ select: { id: true, name: true, bitnum: true, bitstr: true, description: true, descriptionTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.appPermission.findMany({ select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); // Get one by id -const item = await db.appPermission.findOne({ id: '', select: { id: true, name: true, bitnum: true, bitstr: true, description: true, descriptionTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.appPermission.findOne({ id: '', select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); // Create -const created = await db.appPermission.create({ data: { name: '', bitnum: '', bitstr: '', description: '', descriptionTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.appPermission.create({ data: { name: '', bitnum: '', bitstr: '', description: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appPermission.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.appPermission.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appPermission.delete({ where: { id: '' } }).execute(); +const deleted = await db.appPermission.delete({ where: { id: '' } }).execute(); ``` ### `db.orgPermission` @@ -164,26 +162,24 @@ CRUD operations for OrgPermission records. | `bitnum` | Int | Yes | | `bitstr` | BitString | Yes | | `description` | String | Yes | -| `descriptionTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all orgPermission records -const items = await db.orgPermission.findMany({ select: { id: true, name: true, bitnum: true, bitstr: true, description: true, descriptionTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.orgPermission.findMany({ select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); // Get one by id -const item = await db.orgPermission.findOne({ id: '', select: { id: true, name: true, bitnum: true, bitstr: true, description: true, descriptionTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.orgPermission.findOne({ id: '', select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); // Create -const created = await db.orgPermission.create({ data: { name: '', bitnum: '', bitstr: '', description: '', descriptionTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.orgPermission.create({ data: { name: '', bitnum: '', bitstr: '', description: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgPermission.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.orgPermission.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgPermission.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgPermission.delete({ where: { id: '' } }).execute(); ``` ### `db.appLevelRequirement` @@ -202,26 +198,24 @@ CRUD operations for AppLevelRequirement records. | `priority` | Int | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `descriptionTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all appLevelRequirement records -const items = await db.appLevelRequirement.findMany({ select: { id: true, name: true, level: true, description: true, requiredCount: true, priority: true, createdAt: true, updatedAt: true, descriptionTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.appLevelRequirement.findMany({ select: { id: true, name: true, level: true, description: true, requiredCount: true, priority: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.appLevelRequirement.findOne({ id: '', select: { id: true, name: true, level: true, description: true, requiredCount: true, priority: true, createdAt: true, updatedAt: true, descriptionTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.appLevelRequirement.findOne({ id: '', select: { id: true, name: true, level: true, description: true, requiredCount: true, priority: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.appLevelRequirement.create({ data: { name: '', level: '', description: '', requiredCount: '', priority: '', descriptionTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.appLevelRequirement.create({ data: { name: '', level: '', description: '', requiredCount: '', priority: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appLevelRequirement.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.appLevelRequirement.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appLevelRequirement.delete({ where: { id: '' } }).execute(); +const deleted = await db.appLevelRequirement.delete({ where: { id: '' } }).execute(); ``` ### `db.orgMember` @@ -244,16 +238,16 @@ CRUD operations for OrgMember records. const items = await db.orgMember.findMany({ select: { id: true, isAdmin: true, actorId: true, entityId: true } }).execute(); // Get one by id -const item = await db.orgMember.findOne({ id: '', select: { id: true, isAdmin: true, actorId: true, entityId: true } }).execute(); +const item = await db.orgMember.findOne({ id: '', select: { id: true, isAdmin: true, actorId: true, entityId: true } }).execute(); // Create -const created = await db.orgMember.create({ data: { isAdmin: '', actorId: '', entityId: '' }, select: { id: true } }).execute(); +const created = await db.orgMember.create({ data: { isAdmin: '', actorId: '', entityId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgMember.update({ where: { id: '' }, data: { isAdmin: '' }, select: { id: true } }).execute(); +const updated = await db.orgMember.update({ where: { id: '' }, data: { isAdmin: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgMember.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgMember.delete({ where: { id: '' } }).execute(); ``` ### `db.appPermissionDefault` @@ -274,16 +268,16 @@ CRUD operations for AppPermissionDefault records. const items = await db.appPermissionDefault.findMany({ select: { id: true, permissions: true } }).execute(); // Get one by id -const item = await db.appPermissionDefault.findOne({ id: '', select: { id: true, permissions: true } }).execute(); +const item = await db.appPermissionDefault.findOne({ id: '', select: { id: true, permissions: true } }).execute(); // Create -const created = await db.appPermissionDefault.create({ data: { permissions: '' }, select: { id: true } }).execute(); +const created = await db.appPermissionDefault.create({ data: { permissions: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appPermissionDefault.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); +const updated = await db.appPermissionDefault.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appPermissionDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.appPermissionDefault.delete({ where: { id: '' } }).execute(); ``` ### `db.orgPermissionDefault` @@ -305,16 +299,16 @@ CRUD operations for OrgPermissionDefault records. const items = await db.orgPermissionDefault.findMany({ select: { id: true, permissions: true, entityId: true } }).execute(); // Get one by id -const item = await db.orgPermissionDefault.findOne({ id: '', select: { id: true, permissions: true, entityId: true } }).execute(); +const item = await db.orgPermissionDefault.findOne({ id: '', select: { id: true, permissions: true, entityId: true } }).execute(); // Create -const created = await db.orgPermissionDefault.create({ data: { permissions: '', entityId: '' }, select: { id: true } }).execute(); +const created = await db.orgPermissionDefault.create({ data: { permissions: '', entityId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgPermissionDefault.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); +const updated = await db.orgPermissionDefault.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgPermissionDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgPermissionDefault.delete({ where: { id: '' } }).execute(); ``` ### `db.appAdminGrant` @@ -339,16 +333,16 @@ CRUD operations for AppAdminGrant records. const items = await db.appAdminGrant.findMany({ select: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.appAdminGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.appAdminGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.appAdminGrant.create({ data: { isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute(); +const created = await db.appAdminGrant.create({ data: { isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appAdminGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); +const updated = await db.appAdminGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appAdminGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.appAdminGrant.delete({ where: { id: '' } }).execute(); ``` ### `db.appOwnerGrant` @@ -373,16 +367,16 @@ CRUD operations for AppOwnerGrant records. const items = await db.appOwnerGrant.findMany({ select: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.appOwnerGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.appOwnerGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.appOwnerGrant.create({ data: { isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute(); +const created = await db.appOwnerGrant.create({ data: { isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appOwnerGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); +const updated = await db.appOwnerGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appOwnerGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.appOwnerGrant.delete({ where: { id: '' } }).execute(); ``` ### `db.orgAdminGrant` @@ -408,16 +402,16 @@ CRUD operations for OrgAdminGrant records. const items = await db.orgAdminGrant.findMany({ select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.orgAdminGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.orgAdminGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.orgAdminGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); +const created = await db.orgAdminGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgAdminGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); +const updated = await db.orgAdminGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgAdminGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgAdminGrant.delete({ where: { id: '' } }).execute(); ``` ### `db.orgOwnerGrant` @@ -443,16 +437,16 @@ CRUD operations for OrgOwnerGrant records. const items = await db.orgOwnerGrant.findMany({ select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.orgOwnerGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.orgOwnerGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.orgOwnerGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); +const created = await db.orgOwnerGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgOwnerGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); +const updated = await db.orgOwnerGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgOwnerGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgOwnerGrant.delete({ where: { id: '' } }).execute(); ``` ### `db.appLimitDefault` @@ -474,16 +468,16 @@ CRUD operations for AppLimitDefault records. const items = await db.appLimitDefault.findMany({ select: { id: true, name: true, max: true } }).execute(); // Get one by id -const item = await db.appLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true } }).execute(); +const item = await db.appLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true } }).execute(); // Create -const created = await db.appLimitDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute(); +const created = await db.appLimitDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.appLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appLimitDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.appLimitDefault.delete({ where: { id: '' } }).execute(); ``` ### `db.orgLimitDefault` @@ -505,16 +499,16 @@ CRUD operations for OrgLimitDefault records. const items = await db.orgLimitDefault.findMany({ select: { id: true, name: true, max: true } }).execute(); // Get one by id -const item = await db.orgLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true } }).execute(); +const item = await db.orgLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true } }).execute(); // Create -const created = await db.orgLimitDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute(); +const created = await db.orgLimitDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.orgLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgLimitDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgLimitDefault.delete({ where: { id: '' } }).execute(); ``` ### `db.orgChartEdgeGrant` @@ -534,26 +528,24 @@ CRUD operations for OrgChartEdgeGrant records. | `positionTitle` | String | Yes | | `positionLevel` | Int | Yes | | `createdAt` | Datetime | No | -| `positionTitleTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all orgChartEdgeGrant records -const items = await db.orgChartEdgeGrant.findMany({ select: { id: true, entityId: true, childId: true, parentId: true, grantorId: true, isGrant: true, positionTitle: true, positionLevel: true, createdAt: true, positionTitleTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.orgChartEdgeGrant.findMany({ select: { id: true, entityId: true, childId: true, parentId: true, grantorId: true, isGrant: true, positionTitle: true, positionLevel: true, createdAt: true } }).execute(); // Get one by id -const item = await db.orgChartEdgeGrant.findOne({ id: '', select: { id: true, entityId: true, childId: true, parentId: true, grantorId: true, isGrant: true, positionTitle: true, positionLevel: true, createdAt: true, positionTitleTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.orgChartEdgeGrant.findOne({ id: '', select: { id: true, entityId: true, childId: true, parentId: true, grantorId: true, isGrant: true, positionTitle: true, positionLevel: true, createdAt: true } }).execute(); // Create -const created = await db.orgChartEdgeGrant.create({ data: { entityId: '', childId: '', parentId: '', grantorId: '', isGrant: '', positionTitle: '', positionLevel: '', positionTitleTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.orgChartEdgeGrant.create({ data: { entityId: '', childId: '', parentId: '', grantorId: '', isGrant: '', positionTitle: '', positionLevel: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgChartEdgeGrant.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); +const updated = await db.orgChartEdgeGrant.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgChartEdgeGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgChartEdgeGrant.delete({ where: { id: '' } }).execute(); ``` ### `db.membershipType` @@ -568,27 +560,24 @@ CRUD operations for MembershipType records. | `name` | String | Yes | | `description` | String | Yes | | `prefix` | String | Yes | -| `descriptionTrgmSimilarity` | Float | Yes | -| `prefixTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all membershipType records -const items = await db.membershipType.findMany({ select: { id: true, name: true, description: true, prefix: true, descriptionTrgmSimilarity: true, prefixTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.membershipType.findMany({ select: { id: true, name: true, description: true, prefix: true } }).execute(); // Get one by id -const item = await db.membershipType.findOne({ id: '', select: { id: true, name: true, description: true, prefix: true, descriptionTrgmSimilarity: true, prefixTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.membershipType.findOne({ id: '', select: { id: true, name: true, description: true, prefix: true } }).execute(); // Create -const created = await db.membershipType.create({ data: { name: '', description: '', prefix: '', descriptionTrgmSimilarity: '', prefixTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.membershipType.create({ data: { name: '', description: '', prefix: '' }, select: { id: true } }).execute(); // Update -const updated = await db.membershipType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.membershipType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.membershipType.delete({ where: { id: '' } }).execute(); +const deleted = await db.membershipType.delete({ where: { id: '' } }).execute(); ``` ### `db.appLimit` @@ -612,16 +601,16 @@ CRUD operations for AppLimit records. const items = await db.appLimit.findMany({ select: { id: true, name: true, actorId: true, num: true, max: true } }).execute(); // Get one by id -const item = await db.appLimit.findOne({ id: '', select: { id: true, name: true, actorId: true, num: true, max: true } }).execute(); +const item = await db.appLimit.findOne({ id: '', select: { id: true, name: true, actorId: true, num: true, max: true } }).execute(); // Create -const created = await db.appLimit.create({ data: { name: '', actorId: '', num: '', max: '' }, select: { id: true } }).execute(); +const created = await db.appLimit.create({ data: { name: '', actorId: '', num: '', max: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appLimit.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.appLimit.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appLimit.delete({ where: { id: '' } }).execute(); +const deleted = await db.appLimit.delete({ where: { id: '' } }).execute(); ``` ### `db.appAchievement` @@ -646,16 +635,16 @@ CRUD operations for AppAchievement records. const items = await db.appAchievement.findMany({ select: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.appAchievement.findOne({ id: '', select: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.appAchievement.findOne({ id: '', select: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.appAchievement.create({ data: { actorId: '', name: '', count: '' }, select: { id: true } }).execute(); +const created = await db.appAchievement.create({ data: { actorId: '', name: '', count: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appAchievement.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); +const updated = await db.appAchievement.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appAchievement.delete({ where: { id: '' } }).execute(); +const deleted = await db.appAchievement.delete({ where: { id: '' } }).execute(); ``` ### `db.appStep` @@ -680,16 +669,16 @@ CRUD operations for AppStep records. const items = await db.appStep.findMany({ select: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.appStep.findOne({ id: '', select: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.appStep.findOne({ id: '', select: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.appStep.create({ data: { actorId: '', name: '', count: '' }, select: { id: true } }).execute(); +const created = await db.appStep.create({ data: { actorId: '', name: '', count: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appStep.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); +const updated = await db.appStep.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appStep.delete({ where: { id: '' } }).execute(); +const deleted = await db.appStep.delete({ where: { id: '' } }).execute(); ``` ### `db.claimedInvite` @@ -714,16 +703,16 @@ CRUD operations for ClaimedInvite records. const items = await db.claimedInvite.findMany({ select: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.claimedInvite.findOne({ id: '', select: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.claimedInvite.findOne({ id: '', select: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.claimedInvite.create({ data: { data: '', senderId: '', receiverId: '' }, select: { id: true } }).execute(); +const created = await db.claimedInvite.create({ data: { data: '', senderId: '', receiverId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.claimedInvite.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); +const updated = await db.claimedInvite.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.claimedInvite.delete({ where: { id: '' } }).execute(); +const deleted = await db.claimedInvite.delete({ where: { id: '' } }).execute(); ``` ### `db.appGrant` @@ -749,16 +738,16 @@ CRUD operations for AppGrant records. const items = await db.appGrant.findMany({ select: { id: true, permissions: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.appGrant.findOne({ id: '', select: { id: true, permissions: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.appGrant.findOne({ id: '', select: { id: true, permissions: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.appGrant.create({ data: { permissions: '', isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute(); +const created = await db.appGrant.create({ data: { permissions: '', isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appGrant.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); +const updated = await db.appGrant.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.appGrant.delete({ where: { id: '' } }).execute(); ``` ### `db.appMembershipDefault` @@ -784,16 +773,16 @@ CRUD operations for AppMembershipDefault records. const items = await db.appMembershipDefault.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }).execute(); // Get one by id -const item = await db.appMembershipDefault.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }).execute(); +const item = await db.appMembershipDefault.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }).execute(); // Create -const created = await db.appMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isVerified: '' }, select: { id: true } }).execute(); +const created = await db.appMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isVerified: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); +const updated = await db.appMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appMembershipDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.appMembershipDefault.delete({ where: { id: '' } }).execute(); ``` ### `db.orgLimit` @@ -818,16 +807,16 @@ CRUD operations for OrgLimit records. const items = await db.orgLimit.findMany({ select: { id: true, name: true, actorId: true, num: true, max: true, entityId: true } }).execute(); // Get one by id -const item = await db.orgLimit.findOne({ id: '', select: { id: true, name: true, actorId: true, num: true, max: true, entityId: true } }).execute(); +const item = await db.orgLimit.findOne({ id: '', select: { id: true, name: true, actorId: true, num: true, max: true, entityId: true } }).execute(); // Create -const created = await db.orgLimit.create({ data: { name: '', actorId: '', num: '', max: '', entityId: '' }, select: { id: true } }).execute(); +const created = await db.orgLimit.create({ data: { name: '', actorId: '', num: '', max: '', entityId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgLimit.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.orgLimit.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgLimit.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgLimit.delete({ where: { id: '' } }).execute(); ``` ### `db.orgClaimedInvite` @@ -853,16 +842,16 @@ CRUD operations for OrgClaimedInvite records. const items = await db.orgClaimedInvite.findMany({ select: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true, entityId: true } }).execute(); // Get one by id -const item = await db.orgClaimedInvite.findOne({ id: '', select: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true, entityId: true } }).execute(); +const item = await db.orgClaimedInvite.findOne({ id: '', select: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true, entityId: true } }).execute(); // Create -const created = await db.orgClaimedInvite.create({ data: { data: '', senderId: '', receiverId: '', entityId: '' }, select: { id: true } }).execute(); +const created = await db.orgClaimedInvite.create({ data: { data: '', senderId: '', receiverId: '', entityId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgClaimedInvite.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); +const updated = await db.orgClaimedInvite.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgClaimedInvite.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgClaimedInvite.delete({ where: { id: '' } }).execute(); ``` ### `db.orgGrant` @@ -889,16 +878,16 @@ CRUD operations for OrgGrant records. const items = await db.orgGrant.findMany({ select: { id: true, permissions: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.orgGrant.findOne({ id: '', select: { id: true, permissions: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.orgGrant.findOne({ id: '', select: { id: true, permissions: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.orgGrant.create({ data: { permissions: '', isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); +const created = await db.orgGrant.create({ data: { permissions: '', isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgGrant.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); +const updated = await db.orgGrant.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgGrant.delete({ where: { id: '' } }).execute(); ``` ### `db.orgChartEdge` @@ -917,26 +906,24 @@ CRUD operations for OrgChartEdge records. | `parentId` | UUID | Yes | | `positionTitle` | String | Yes | | `positionLevel` | Int | Yes | -| `positionTitleTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all orgChartEdge records -const items = await db.orgChartEdge.findMany({ select: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true, positionTitleTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.orgChartEdge.findMany({ select: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true } }).execute(); // Get one by id -const item = await db.orgChartEdge.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true, positionTitleTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.orgChartEdge.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true } }).execute(); // Create -const created = await db.orgChartEdge.create({ data: { entityId: '', childId: '', parentId: '', positionTitle: '', positionLevel: '', positionTitleTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.orgChartEdge.create({ data: { entityId: '', childId: '', parentId: '', positionTitle: '', positionLevel: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgChartEdge.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); +const updated = await db.orgChartEdge.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgChartEdge.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgChartEdge.delete({ where: { id: '' } }).execute(); ``` ### `db.orgMembershipDefault` @@ -964,16 +951,16 @@ CRUD operations for OrgMembershipDefault records. const items = await db.orgMembershipDefault.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true, deleteMemberCascadeGroups: true, createGroupsCascadeMembers: true } }).execute(); // Get one by id -const item = await db.orgMembershipDefault.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true, deleteMemberCascadeGroups: true, createGroupsCascadeMembers: true } }).execute(); +const item = await db.orgMembershipDefault.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true, deleteMemberCascadeGroups: true, createGroupsCascadeMembers: true } }).execute(); // Create -const created = await db.orgMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', entityId: '', deleteMemberCascadeGroups: '', createGroupsCascadeMembers: '' }, select: { id: true } }).execute(); +const created = await db.orgMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', entityId: '', deleteMemberCascadeGroups: '', createGroupsCascadeMembers: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); +const updated = await db.orgMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgMembershipDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgMembershipDefault.delete({ where: { id: '' } }).execute(); ``` ### `db.appMembership` @@ -1008,16 +995,16 @@ CRUD operations for AppMembership records. const items = await db.appMembership.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }).execute(); // Get one by id -const item = await db.appMembership.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }).execute(); +const item = await db.appMembership.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }).execute(); // Create -const created = await db.appMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', profileId: '' }, select: { id: true } }).execute(); +const created = await db.appMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', profileId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); +const updated = await db.appMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appMembership.delete({ where: { id: '' } }).execute(); +const deleted = await db.appMembership.delete({ where: { id: '' } }).execute(); ``` ### `db.orgMembership` @@ -1052,16 +1039,16 @@ CRUD operations for OrgMembership records. const items = await db.orgMembership.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, profileId: true } }).execute(); // Get one by id -const item = await db.orgMembership.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, profileId: true } }).execute(); +const item = await db.orgMembership.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, profileId: true } }).execute(); // Create -const created = await db.orgMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '', profileId: '' }, select: { id: true } }).execute(); +const created = await db.orgMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '', profileId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); +const updated = await db.orgMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgMembership.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgMembership.delete({ where: { id: '' } }).execute(); ``` ### `db.invite` @@ -1084,26 +1071,24 @@ CRUD operations for Invite records. | `expiresAt` | Datetime | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `inviteTokenTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all invite records -const items = await db.invite.findMany({ select: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true, inviteTokenTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.invite.findMany({ select: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.invite.findOne({ id: '', select: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true, inviteTokenTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.invite.findOne({ id: '', select: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.invite.create({ data: { email: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '', inviteTokenTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.invite.create({ data: { email: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '' }, select: { id: true } }).execute(); // Update -const updated = await db.invite.update({ where: { id: '' }, data: { email: '' }, select: { id: true } }).execute(); +const updated = await db.invite.update({ where: { id: '' }, data: { email: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.invite.delete({ where: { id: '' } }).execute(); +const deleted = await db.invite.delete({ where: { id: '' } }).execute(); ``` ### `db.appLevel` @@ -1121,26 +1106,24 @@ CRUD operations for AppLevel records. | `ownerId` | UUID | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `descriptionTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all appLevel records -const items = await db.appLevel.findMany({ select: { id: true, name: true, description: true, image: true, ownerId: true, createdAt: true, updatedAt: true, descriptionTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.appLevel.findMany({ select: { id: true, name: true, description: true, image: true, ownerId: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.appLevel.findOne({ id: '', select: { id: true, name: true, description: true, image: true, ownerId: true, createdAt: true, updatedAt: true, descriptionTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.appLevel.findOne({ id: '', select: { id: true, name: true, description: true, image: true, ownerId: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.appLevel.create({ data: { name: '', description: '', image: '', ownerId: '', descriptionTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.appLevel.create({ data: { name: '', description: '', image: '', ownerId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appLevel.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.appLevel.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appLevel.delete({ where: { id: '' } }).execute(); +const deleted = await db.appLevel.delete({ where: { id: '' } }).execute(); ``` ### `db.orgInvite` @@ -1165,26 +1148,24 @@ CRUD operations for OrgInvite records. | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | | `entityId` | UUID | Yes | -| `inviteTokenTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all orgInvite records -const items = await db.orgInvite.findMany({ select: { id: true, email: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true, inviteTokenTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.orgInvite.findMany({ select: { id: true, email: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true } }).execute(); // Get one by id -const item = await db.orgInvite.findOne({ id: '', select: { id: true, email: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true, inviteTokenTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.orgInvite.findOne({ id: '', select: { id: true, email: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true } }).execute(); // Create -const created = await db.orgInvite.create({ data: { email: '', senderId: '', receiverId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '', entityId: '', inviteTokenTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.orgInvite.create({ data: { email: '', senderId: '', receiverId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '', entityId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgInvite.update({ where: { id: '' }, data: { email: '' }, select: { id: true } }).execute(); +const updated = await db.orgInvite.update({ where: { id: '' }, data: { email: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgInvite.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgInvite.delete({ where: { id: '' } }).execute(); ``` ## Custom Operations @@ -1201,7 +1182,7 @@ appPermissionsGetPaddedMask | `mask` | BitString | ```typescript -const result = await db.query.appPermissionsGetPaddedMask({ mask: '' }).execute(); +const result = await db.query.appPermissionsGetPaddedMask({ mask: '' }).execute(); ``` ### `db.query.orgPermissionsGetPaddedMask` @@ -1216,7 +1197,7 @@ orgPermissionsGetPaddedMask | `mask` | BitString | ```typescript -const result = await db.query.orgPermissionsGetPaddedMask({ mask: '' }).execute(); +const result = await db.query.orgPermissionsGetPaddedMask({ mask: '' }).execute(); ``` ### `db.query.orgIsManagerOf` @@ -1234,7 +1215,7 @@ orgIsManagerOf | `pMaxDepth` | Int | ```typescript -const result = await db.query.orgIsManagerOf({ pEntityId: '', pManagerId: '', pUserId: '', pMaxDepth: '' }).execute(); +const result = await db.query.orgIsManagerOf({ pEntityId: '', pManagerId: '', pUserId: '', pMaxDepth: '' }).execute(); ``` ### `db.query.appPermissionsGetMask` @@ -1249,7 +1230,7 @@ appPermissionsGetMask | `ids` | [UUID] | ```typescript -const result = await db.query.appPermissionsGetMask({ ids: '' }).execute(); +const result = await db.query.appPermissionsGetMask({ ids: '' }).execute(); ``` ### `db.query.orgPermissionsGetMask` @@ -1264,7 +1245,7 @@ orgPermissionsGetMask | `ids` | [UUID] | ```typescript -const result = await db.query.orgPermissionsGetMask({ ids: '' }).execute(); +const result = await db.query.orgPermissionsGetMask({ ids: '' }).execute(); ``` ### `db.query.stepsAchieved` @@ -1280,7 +1261,7 @@ stepsAchieved | `vroleId` | UUID | ```typescript -const result = await db.query.stepsAchieved({ vlevel: '', vroleId: '' }).execute(); +const result = await db.query.stepsAchieved({ vlevel: '', vroleId: '' }).execute(); ``` ### `db.query.appPermissionsGetMaskByNames` @@ -1295,7 +1276,7 @@ appPermissionsGetMaskByNames | `names` | [String] | ```typescript -const result = await db.query.appPermissionsGetMaskByNames({ names: '' }).execute(); +const result = await db.query.appPermissionsGetMaskByNames({ names: '' }).execute(); ``` ### `db.query.orgPermissionsGetMaskByNames` @@ -1310,7 +1291,7 @@ orgPermissionsGetMaskByNames | `names` | [String] | ```typescript -const result = await db.query.orgPermissionsGetMaskByNames({ names: '' }).execute(); +const result = await db.query.orgPermissionsGetMaskByNames({ names: '' }).execute(); ``` ### `db.query.appPermissionsGetByMask` @@ -1328,7 +1309,7 @@ Reads and enables pagination through a set of `AppPermission`. | `after` | Cursor | ```typescript -const result = await db.query.appPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute(); +const result = await db.query.appPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute(); ``` ### `db.query.orgPermissionsGetByMask` @@ -1346,7 +1327,7 @@ Reads and enables pagination through a set of `OrgPermission`. | `after` | Cursor | ```typescript -const result = await db.query.orgPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute(); +const result = await db.query.orgPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute(); ``` ### `db.query.stepsRequired` @@ -1365,7 +1346,7 @@ Reads and enables pagination through a set of `AppLevelRequirement`. | `after` | Cursor | ```typescript -const result = await db.query.stepsRequired({ vlevel: '', vroleId: '', first: '', offset: '', after: '' }).execute(); +const result = await db.query.stepsRequired({ vlevel: '', vroleId: '', first: '', offset: '', after: '' }).execute(); ``` ### `db.mutation.submitInviteCode` @@ -1380,7 +1361,7 @@ submitInviteCode | `input` | SubmitInviteCodeInput (required) | ```typescript -const result = await db.mutation.submitInviteCode({ input: '' }).execute(); +const result = await db.mutation.submitInviteCode({ input: { token: '' } }).execute(); ``` ### `db.mutation.submitOrgInviteCode` @@ -1395,7 +1376,7 @@ submitOrgInviteCode | `input` | SubmitOrgInviteCodeInput (required) | ```typescript -const result = await db.mutation.submitOrgInviteCode({ input: '' }).execute(); +const result = await db.mutation.submitOrgInviteCode({ input: { token: '' } }).execute(); ``` --- diff --git a/sdk/constructive-cli/src/admin/orm/input-types.ts b/sdk/constructive-cli/src/admin/orm/input-types.ts index 7948bd36c..9189f9381 100644 --- a/sdk/constructive-cli/src/admin/orm/input-types.ts +++ b/sdk/constructive-cli/src/admin/orm/input-types.ts @@ -253,10 +253,6 @@ export interface AppPermission { bitstr?: string | null; /** Human-readable description of what this permission allows */ description?: string | null; - /** TRGM similarity when searching `description`. Returns null when no trgm search filter is active. */ - descriptionTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } /** Defines available permissions as named bits within a bitmask, used by the RBAC system for access control */ export interface OrgPermission { @@ -269,10 +265,6 @@ export interface OrgPermission { bitstr?: string | null; /** Human-readable description of what this permission allows */ description?: string | null; - /** TRGM similarity when searching `description`. Returns null when no trgm search filter is active. */ - descriptionTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } /** Defines the specific requirements that must be met to achieve a level */ export interface AppLevelRequirement { @@ -289,10 +281,6 @@ export interface AppLevelRequirement { priority?: number | null; createdAt?: string | null; updatedAt?: string | null; - /** TRGM similarity when searching `description`. Returns null when no trgm search filter is active. */ - descriptionTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } /** Simplified view of active members in an entity, used for listing who belongs to an org or group */ export interface OrgMember { @@ -391,7 +379,7 @@ export interface OrgChartEdgeGrant { childId?: string | null; /** User ID of the manager being assigned; NULL for top-level positions */ parentId?: string | null; - /** User ID of the admin who performed this grant or revocation */ + /** User ID of the admin who performed this grant or revocation; NULL if grantor was deleted */ grantorId?: string | null; /** TRUE to add/update the edge, FALSE to remove it */ isGrant?: boolean | null; @@ -401,10 +389,6 @@ export interface OrgChartEdgeGrant { positionLevel?: number | null; /** Timestamp when this grant or revocation was recorded */ createdAt?: string | null; - /** TRGM similarity when searching `positionTitle`. Returns null when no trgm search filter is active. */ - positionTitleTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } /** Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) */ export interface MembershipType { @@ -416,12 +400,6 @@ export interface MembershipType { description?: string | null; /** Short prefix used to namespace tables and functions for this membership scope */ prefix?: string | null; - /** TRGM similarity when searching `description`. Returns null when no trgm search filter is active. */ - descriptionTrgmSimilarity?: number | null; - /** TRGM similarity when searching `prefix`. Returns null when no trgm search filter is active. */ - prefixTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } /** Tracks per-actor usage counts against configurable maximum limits */ export interface AppLimit { @@ -550,10 +528,6 @@ export interface OrgChartEdge { positionTitle?: string | null; /** Numeric seniority level for this position (higher = more senior) */ positionLevel?: number | null; - /** TRGM similarity when searching `positionTitle`. Returns null when no trgm search filter is active. */ - positionTitleTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } /** Default membership settings per entity, controlling initial approval and verification state for new members */ export interface OrgMembershipDefault { @@ -652,10 +626,6 @@ export interface Invite { expiresAt?: string | null; createdAt?: string | null; updatedAt?: string | null; - /** TRGM similarity when searching `inviteToken`. Returns null when no trgm search filter is active. */ - inviteTokenTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } /** Defines available levels that users can achieve by completing requirements */ export interface AppLevel { @@ -670,10 +640,6 @@ export interface AppLevel { ownerId?: string | null; createdAt?: string | null; updatedAt?: string | null; - /** TRGM similarity when searching `description`. Returns null when no trgm search filter is active. */ - descriptionTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } /** Invitation records sent to prospective members via email, with token-based redemption and expiration */ export interface OrgInvite { @@ -701,10 +667,6 @@ export interface OrgInvite { createdAt?: string | null; updatedAt?: string | null; entityId?: string | null; - /** TRGM similarity when searching `inviteToken`. Returns null when no trgm search filter is active. */ - inviteTokenTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } // ============ Relation Helper Types ============ export interface ConnectionResult { @@ -805,8 +767,6 @@ export type AppPermissionSelect = { bitnum?: boolean; bitstr?: boolean; description?: boolean; - descriptionTrgmSimilarity?: boolean; - searchScore?: boolean; }; export type OrgPermissionSelect = { id?: boolean; @@ -814,8 +774,6 @@ export type OrgPermissionSelect = { bitnum?: boolean; bitstr?: boolean; description?: boolean; - descriptionTrgmSimilarity?: boolean; - searchScore?: boolean; }; export type AppLevelRequirementSelect = { id?: boolean; @@ -826,8 +784,6 @@ export type AppLevelRequirementSelect = { priority?: boolean; createdAt?: boolean; updatedAt?: boolean; - descriptionTrgmSimilarity?: boolean; - searchScore?: boolean; }; export type OrgMemberSelect = { id?: boolean; @@ -898,17 +854,12 @@ export type OrgChartEdgeGrantSelect = { positionTitle?: boolean; positionLevel?: boolean; createdAt?: boolean; - positionTitleTrgmSimilarity?: boolean; - searchScore?: boolean; }; export type MembershipTypeSelect = { id?: boolean; name?: boolean; description?: boolean; prefix?: boolean; - descriptionTrgmSimilarity?: boolean; - prefixTrgmSimilarity?: boolean; - searchScore?: boolean; }; export type AppLimitSelect = { id?: boolean; @@ -995,8 +946,6 @@ export type OrgChartEdgeSelect = { parentId?: boolean; positionTitle?: boolean; positionLevel?: boolean; - positionTitleTrgmSimilarity?: boolean; - searchScore?: boolean; }; export type OrgMembershipDefaultSelect = { id?: boolean; @@ -1058,8 +1007,6 @@ export type InviteSelect = { expiresAt?: boolean; createdAt?: boolean; updatedAt?: boolean; - inviteTokenTrgmSimilarity?: boolean; - searchScore?: boolean; }; export type AppLevelSelect = { id?: boolean; @@ -1069,8 +1016,6 @@ export type AppLevelSelect = { ownerId?: boolean; createdAt?: boolean; updatedAt?: boolean; - descriptionTrgmSimilarity?: boolean; - searchScore?: boolean; }; export type OrgInviteSelect = { id?: boolean; @@ -1087,8 +1032,6 @@ export type OrgInviteSelect = { createdAt?: boolean; updatedAt?: boolean; entityId?: boolean; - inviteTokenTrgmSimilarity?: boolean; - searchScore?: boolean; }; // ============ Table Filter Types ============ export interface OrgGetManagersRecordFilter { @@ -1111,8 +1054,6 @@ export interface AppPermissionFilter { bitnum?: IntFilter; bitstr?: BitStringFilter; description?: StringFilter; - descriptionTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: AppPermissionFilter[]; or?: AppPermissionFilter[]; not?: AppPermissionFilter; @@ -1123,8 +1064,6 @@ export interface OrgPermissionFilter { bitnum?: IntFilter; bitstr?: BitStringFilter; description?: StringFilter; - descriptionTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: OrgPermissionFilter[]; or?: OrgPermissionFilter[]; not?: OrgPermissionFilter; @@ -1138,8 +1077,6 @@ export interface AppLevelRequirementFilter { priority?: IntFilter; createdAt?: DatetimeFilter; updatedAt?: DatetimeFilter; - descriptionTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: AppLevelRequirementFilter[]; or?: AppLevelRequirementFilter[]; not?: AppLevelRequirementFilter; @@ -1240,8 +1177,6 @@ export interface OrgChartEdgeGrantFilter { positionTitle?: StringFilter; positionLevel?: IntFilter; createdAt?: DatetimeFilter; - positionTitleTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: OrgChartEdgeGrantFilter[]; or?: OrgChartEdgeGrantFilter[]; not?: OrgChartEdgeGrantFilter; @@ -1251,9 +1186,6 @@ export interface MembershipTypeFilter { name?: StringFilter; description?: StringFilter; prefix?: StringFilter; - descriptionTrgmSimilarity?: FloatFilter; - prefixTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: MembershipTypeFilter[]; or?: MembershipTypeFilter[]; not?: MembershipTypeFilter; @@ -1370,8 +1302,6 @@ export interface OrgChartEdgeFilter { parentId?: UUIDFilter; positionTitle?: StringFilter; positionLevel?: IntFilter; - positionTitleTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: OrgChartEdgeFilter[]; or?: OrgChartEdgeFilter[]; not?: OrgChartEdgeFilter; @@ -1445,8 +1375,6 @@ export interface InviteFilter { expiresAt?: DatetimeFilter; createdAt?: DatetimeFilter; updatedAt?: DatetimeFilter; - inviteTokenTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: InviteFilter[]; or?: InviteFilter[]; not?: InviteFilter; @@ -1459,8 +1387,6 @@ export interface AppLevelFilter { ownerId?: UUIDFilter; createdAt?: DatetimeFilter; updatedAt?: DatetimeFilter; - descriptionTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: AppLevelFilter[]; or?: AppLevelFilter[]; not?: AppLevelFilter; @@ -1480,8 +1406,6 @@ export interface OrgInviteFilter { createdAt?: DatetimeFilter; updatedAt?: DatetimeFilter; entityId?: UUIDFilter; - inviteTokenTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: OrgInviteFilter[]; or?: OrgInviteFilter[]; not?: OrgInviteFilter; @@ -1504,69 +1428,45 @@ export type OrgGetSubordinatesRecordsOrderBy = | 'DEPTH_ASC' | 'DEPTH_DESC'; export type AppPermissionOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'BITNUM_ASC' - | 'BITNUM_DESC' - | 'BITSTR_ASC' - | 'BITSTR_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'DESCRIPTION_TRGM_SIMILARITY_ASC' - | 'DESCRIPTION_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'BITNUM_DESC'; export type OrgPermissionOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'BITNUM_ASC' - | 'BITNUM_DESC' - | 'BITSTR_ASC' - | 'BITSTR_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'DESCRIPTION_TRGM_SIMILARITY_ASC' - | 'DESCRIPTION_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'BITNUM_DESC'; export type AppLevelRequirementOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'LEVEL_ASC' | 'LEVEL_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'REQUIRED_COUNT_ASC' - | 'REQUIRED_COUNT_DESC' | 'PRIORITY_ASC' | 'PRIORITY_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'DESCRIPTION_TRGM_SIMILARITY_ASC' - | 'DESCRIPTION_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'UPDATED_AT_DESC'; export type OrgMemberOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'IS_ADMIN_ASC' @@ -1576,31 +1476,25 @@ export type OrgMemberOrderBy = | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC'; export type AppPermissionDefaultOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' - | 'ID_DESC' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC'; + | 'ID_DESC'; export type OrgPermissionDefaultOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC'; export type AppAdminGrantOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'GRANTOR_ID_ASC' @@ -1610,13 +1504,11 @@ export type AppAdminGrantOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; export type AppOwnerGrantOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'GRANTOR_ID_ASC' @@ -1626,13 +1518,11 @@ export type AppOwnerGrantOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; export type OrgAdminGrantOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'ENTITY_ID_ASC' @@ -1644,13 +1534,11 @@ export type OrgAdminGrantOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; export type OrgOwnerGrantOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'ENTITY_ID_ASC' @@ -1662,29 +1550,25 @@ export type OrgOwnerGrantOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; export type AppLimitDefaultOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' - | 'NAME_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; + | 'NAME_DESC'; export type OrgLimitDefaultOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' - | 'NAME_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; + | 'NAME_DESC'; export type OrgChartEdgeGrantOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'ENTITY_ID_ASC' @@ -1694,91 +1578,59 @@ export type OrgChartEdgeGrantOrderBy = | 'PARENT_ID_ASC' | 'PARENT_ID_DESC' | 'GRANTOR_ID_ASC' - | 'GRANTOR_ID_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' - | 'POSITION_TITLE_ASC' - | 'POSITION_TITLE_DESC' - | 'POSITION_LEVEL_ASC' - | 'POSITION_LEVEL_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'POSITION_TITLE_TRGM_SIMILARITY_ASC' - | 'POSITION_TITLE_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'GRANTOR_ID_DESC'; export type MembershipTypeOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' - | 'NAME_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'DESCRIPTION_TRGM_SIMILARITY_ASC' - | 'DESCRIPTION_TRGM_SIMILARITY_DESC' - | 'PREFIX_TRGM_SIMILARITY_ASC' - | 'PREFIX_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'NAME_DESC'; export type AppLimitOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'NUM_ASC' - | 'NUM_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; + | 'ACTOR_ID_DESC'; export type AppAchievementOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'COUNT_ASC' - | 'COUNT_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; export type AppStepOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'COUNT_ASC' - | 'COUNT_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; export type ClaimedInviteOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' - | 'DATA_ASC' - | 'DATA_DESC' | 'SENDER_ID_ASC' | 'SENDER_ID_DESC' | 'RECEIVER_ID_ASC' @@ -1788,15 +1640,11 @@ export type ClaimedInviteOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; export type AppGrantOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'GRANTOR_ID_ASC' @@ -1806,9 +1654,9 @@ export type AppGrantOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; export type AppMembershipDefaultOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'CREATED_AT_ASC' @@ -1818,35 +1666,25 @@ export type AppMembershipDefaultOrderBy = | 'CREATED_BY_ASC' | 'CREATED_BY_DESC' | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'IS_APPROVED_ASC' - | 'IS_APPROVED_DESC' - | 'IS_VERIFIED_ASC' - | 'IS_VERIFIED_DESC'; + | 'UPDATED_BY_DESC'; export type OrgLimitOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' - | 'NUM_ASC' - | 'NUM_DESC' - | 'MAX_ASC' - | 'MAX_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC'; export type OrgClaimedInviteOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' - | 'DATA_ASC' - | 'DATA_DESC' | 'SENDER_ID_ASC' | 'SENDER_ID_DESC' | 'RECEIVER_ID_ASC' @@ -1858,15 +1696,11 @@ export type OrgClaimedInviteOrderBy = | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC'; export type OrgGrantOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'ENTITY_ID_ASC' @@ -1878,9 +1712,9 @@ export type OrgGrantOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; export type OrgChartEdgeOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'CREATED_AT_ASC' @@ -1892,19 +1726,11 @@ export type OrgChartEdgeOrderBy = | 'CHILD_ID_ASC' | 'CHILD_ID_DESC' | 'PARENT_ID_ASC' - | 'PARENT_ID_DESC' - | 'POSITION_TITLE_ASC' - | 'POSITION_TITLE_DESC' - | 'POSITION_LEVEL_ASC' - | 'POSITION_LEVEL_DESC' - | 'POSITION_TITLE_TRGM_SIMILARITY_ASC' - | 'POSITION_TITLE_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'PARENT_ID_DESC'; export type OrgMembershipDefaultOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'CREATED_AT_ASC' @@ -1915,18 +1741,12 @@ export type OrgMembershipDefaultOrderBy = | 'CREATED_BY_DESC' | 'UPDATED_BY_ASC' | 'UPDATED_BY_DESC' - | 'IS_APPROVED_ASC' - | 'IS_APPROVED_DESC' | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'DELETE_MEMBER_CASCADE_GROUPS_ASC' - | 'DELETE_MEMBER_CASCADE_GROUPS_DESC' - | 'CREATE_GROUPS_CASCADE_MEMBERS_ASC' - | 'CREATE_GROUPS_CASCADE_MEMBERS_DESC'; + | 'ENTITY_ID_DESC'; export type AppMembershipOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'CREATED_AT_ASC' @@ -1937,32 +1757,18 @@ export type AppMembershipOrderBy = | 'CREATED_BY_DESC' | 'UPDATED_BY_ASC' | 'UPDATED_BY_DESC' - | 'IS_APPROVED_ASC' - | 'IS_APPROVED_DESC' - | 'IS_BANNED_ASC' - | 'IS_BANNED_DESC' - | 'IS_DISABLED_ASC' - | 'IS_DISABLED_DESC' - | 'IS_VERIFIED_ASC' - | 'IS_VERIFIED_DESC' - | 'IS_ACTIVE_ASC' - | 'IS_ACTIVE_DESC' | 'IS_OWNER_ASC' | 'IS_OWNER_DESC' | 'IS_ADMIN_ASC' | 'IS_ADMIN_DESC' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC' - | 'GRANTED_ASC' - | 'GRANTED_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'PROFILE_ID_ASC' | 'PROFILE_ID_DESC'; export type OrgMembershipOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'CREATED_AT_ASC' @@ -1973,22 +1779,10 @@ export type OrgMembershipOrderBy = | 'CREATED_BY_DESC' | 'UPDATED_BY_ASC' | 'UPDATED_BY_DESC' - | 'IS_APPROVED_ASC' - | 'IS_APPROVED_DESC' - | 'IS_BANNED_ASC' - | 'IS_BANNED_DESC' - | 'IS_DISABLED_ASC' - | 'IS_DISABLED_DESC' - | 'IS_ACTIVE_ASC' - | 'IS_ACTIVE_DESC' | 'IS_OWNER_ASC' | 'IS_OWNER_DESC' | 'IS_ADMIN_ASC' | 'IS_ADMIN_DESC' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC' - | 'GRANTED_ASC' - | 'GRANTED_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'ENTITY_ID_ASC' @@ -1996,9 +1790,9 @@ export type OrgMembershipOrderBy = | 'PROFILE_ID_ASC' | 'PROFILE_ID_DESC'; export type InviteOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'EMAIL_ASC' @@ -2009,50 +1803,30 @@ export type InviteOrderBy = | 'INVITE_TOKEN_DESC' | 'INVITE_VALID_ASC' | 'INVITE_VALID_DESC' - | 'INVITE_LIMIT_ASC' - | 'INVITE_LIMIT_DESC' - | 'INVITE_COUNT_ASC' - | 'INVITE_COUNT_DESC' - | 'MULTIPLE_ASC' - | 'MULTIPLE_DESC' - | 'DATA_ASC' - | 'DATA_DESC' | 'EXPIRES_AT_ASC' | 'EXPIRES_AT_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'INVITE_TOKEN_TRGM_SIMILARITY_ASC' - | 'INVITE_TOKEN_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'UPDATED_AT_DESC'; export type AppLevelOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'IMAGE_ASC' - | 'IMAGE_DESC' | 'OWNER_ID_ASC' | 'OWNER_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'DESCRIPTION_TRGM_SIMILARITY_ASC' - | 'DESCRIPTION_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'UPDATED_AT_DESC'; export type OrgInviteOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'EMAIL_ASC' @@ -2065,14 +1839,6 @@ export type OrgInviteOrderBy = | 'INVITE_TOKEN_DESC' | 'INVITE_VALID_ASC' | 'INVITE_VALID_DESC' - | 'INVITE_LIMIT_ASC' - | 'INVITE_LIMIT_DESC' - | 'INVITE_COUNT_ASC' - | 'INVITE_COUNT_DESC' - | 'MULTIPLE_ASC' - | 'MULTIPLE_DESC' - | 'DATA_ASC' - | 'DATA_DESC' | 'EXPIRES_AT_ASC' | 'EXPIRES_AT_DESC' | 'CREATED_AT_ASC' @@ -2080,11 +1846,7 @@ export type OrgInviteOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'INVITE_TOKEN_TRGM_SIMILARITY_ASC' - | 'INVITE_TOKEN_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'ENTITY_ID_DESC'; // ============ CRUD Input Types ============ export interface CreateOrgGetManagersRecordInput { clientMutationId?: string; @@ -2140,8 +1902,6 @@ export interface AppPermissionPatch { bitnum?: number | null; bitstr?: string | null; description?: string | null; - descriptionTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateAppPermissionInput { clientMutationId?: string; @@ -2166,8 +1926,6 @@ export interface OrgPermissionPatch { bitnum?: number | null; bitstr?: string | null; description?: string | null; - descriptionTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateOrgPermissionInput { clientMutationId?: string; @@ -2194,8 +1952,6 @@ export interface AppLevelRequirementPatch { description?: string | null; requiredCount?: number | null; priority?: number | null; - descriptionTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateAppLevelRequirementInput { clientMutationId?: string; @@ -2404,7 +2160,7 @@ export interface CreateOrgChartEdgeGrantInput { entityId: string; childId: string; parentId?: string; - grantorId: string; + grantorId?: string; isGrant?: boolean; positionTitle?: string; positionLevel?: number; @@ -2418,8 +2174,6 @@ export interface OrgChartEdgeGrantPatch { isGrant?: boolean | null; positionTitle?: string | null; positionLevel?: number | null; - positionTitleTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateOrgChartEdgeGrantInput { clientMutationId?: string; @@ -2442,9 +2196,6 @@ export interface MembershipTypePatch { name?: string | null; description?: string | null; prefix?: string | null; - descriptionTrgmSimilarity?: number | null; - prefixTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateMembershipTypeInput { clientMutationId?: string; @@ -2685,8 +2436,6 @@ export interface OrgChartEdgePatch { parentId?: string | null; positionTitle?: string | null; positionLevel?: number | null; - positionTitleTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateOrgChartEdgeInput { clientMutationId?: string; @@ -2833,8 +2582,6 @@ export interface InvitePatch { multiple?: boolean | null; data?: Record | null; expiresAt?: string | null; - inviteTokenTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateInviteInput { clientMutationId?: string; @@ -2859,8 +2606,7 @@ export interface AppLevelPatch { description?: string | null; image?: ConstructiveInternalTypeImage | null; ownerId?: string | null; - descriptionTrgmSimilarity?: number | null; - searchScore?: number | null; + imageUpload?: File | null; } export interface UpdateAppLevelInput { clientMutationId?: string; @@ -2899,8 +2645,6 @@ export interface OrgInvitePatch { data?: Record | null; expiresAt?: string | null; entityId?: string | null; - inviteTokenTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateOrgInviteInput { clientMutationId?: string; diff --git a/sdk/constructive-cli/src/auth/cli/README.md b/sdk/constructive-cli/src/auth/cli/README.md index b621d67ef..c53262f43 100644 --- a/sdk/constructive-cli/src/auth/cli/README.md +++ b/sdk/constructive-cli/src/auth/cli/README.md @@ -26,12 +26,12 @@ csdk auth set-token | `context` | Manage API contexts (endpoints) | | `auth` | Manage authentication tokens | | `config` | Manage config key-value store (per-context) | -| `crypto-address` | cryptoAddress CRUD operations | -| `role-type` | roleType CRUD operations | +| `email` | email CRUD operations | | `phone-number` | phoneNumber CRUD operations | +| `crypto-address` | cryptoAddress CRUD operations | | `connected-account` | connectedAccount CRUD operations | | `audit-log` | auditLog CRUD operations | -| `email` | email CRUD operations | +| `role-type` | roleType CRUD operations | | `user` | user CRUD operations | | `current-ip-address` | currentIpAddress | | `current-user-agent` | currentUserAgent | @@ -95,17 +95,17 @@ Variables are scoped to the active context and stored at `~/.csdk/config/`. ## Table Commands -### `crypto-address` +### `email` -CRUD operations for CryptoAddress records. +CRUD operations for Email records. | Subcommand | Description | |------------|-------------| -| `list` | List all cryptoAddress records | -| `get` | Get a cryptoAddress by id | -| `create` | Create a new cryptoAddress | -| `update` | Update an existing cryptoAddress | -| `delete` | Delete a cryptoAddress | +| `list` | List all email records | +| `get` | Get a email by id | +| `create` | Create a new email | +| `update` | Update an existing email | +| `delete` | Delete a email | **Fields:** @@ -113,49 +113,54 @@ CRUD operations for CryptoAddress records. |-------|------| | `id` | UUID | | `ownerId` | UUID | -| `address` | String | +| `email` | Email | | `isVerified` | Boolean | | `isPrimary` | Boolean | | `createdAt` | Datetime | | `updatedAt` | Datetime | -| `addressTrgmSimilarity` | Float | -| `searchScore` | Float | -**Required create fields:** `address`, `addressTrgmSimilarity`, `searchScore` +**Required create fields:** `email` **Optional create fields (backend defaults):** `ownerId`, `isVerified`, `isPrimary` -### `role-type` +### `phone-number` -CRUD operations for RoleType records. +CRUD operations for PhoneNumber records. | Subcommand | Description | |------------|-------------| -| `list` | List all roleType records | -| `get` | Get a roleType by id | -| `create` | Create a new roleType | -| `update` | Update an existing roleType | -| `delete` | Delete a roleType | +| `list` | List all phoneNumber records | +| `get` | Get a phoneNumber by id | +| `create` | Create a new phoneNumber | +| `update` | Update an existing phoneNumber | +| `delete` | Delete a phoneNumber | **Fields:** | Field | Type | |-------|------| -| `id` | Int | -| `name` | String | +| `id` | UUID | +| `ownerId` | UUID | +| `cc` | String | +| `number` | String | +| `isVerified` | Boolean | +| `isPrimary` | Boolean | +| `createdAt` | Datetime | +| `updatedAt` | Datetime | -**Required create fields:** `name` +**Required create fields:** `cc`, `number` +**Optional create fields (backend defaults):** `ownerId`, `isVerified`, `isPrimary` -### `phone-number` +### `crypto-address` -CRUD operations for PhoneNumber records. +CRUD operations for CryptoAddress records. | Subcommand | Description | |------------|-------------| -| `list` | List all phoneNumber records | -| `get` | Get a phoneNumber by id | -| `create` | Create a new phoneNumber | -| `update` | Update an existing phoneNumber | -| `delete` | Delete a phoneNumber | +| `list` | List all cryptoAddress records | +| `get` | Get a cryptoAddress by id | +| `create` | Create a new cryptoAddress | +| `update` | Update an existing cryptoAddress | +| `delete` | Delete a cryptoAddress | **Fields:** @@ -163,17 +168,13 @@ CRUD operations for PhoneNumber records. |-------|------| | `id` | UUID | | `ownerId` | UUID | -| `cc` | String | -| `number` | String | +| `address` | String | | `isVerified` | Boolean | | `isPrimary` | Boolean | | `createdAt` | Datetime | | `updatedAt` | Datetime | -| `ccTrgmSimilarity` | Float | -| `numberTrgmSimilarity` | Float | -| `searchScore` | Float | -**Required create fields:** `cc`, `number`, `ccTrgmSimilarity`, `numberTrgmSimilarity`, `searchScore` +**Required create fields:** `address` **Optional create fields (backend defaults):** `ownerId`, `isVerified`, `isPrimary` ### `connected-account` @@ -200,11 +201,8 @@ CRUD operations for ConnectedAccount records. | `isVerified` | Boolean | | `createdAt` | Datetime | | `updatedAt` | Datetime | -| `serviceTrgmSimilarity` | Float | -| `identifierTrgmSimilarity` | Float | -| `searchScore` | Float | -**Required create fields:** `service`, `identifier`, `details`, `serviceTrgmSimilarity`, `identifierTrgmSimilarity`, `searchScore` +**Required create fields:** `service`, `identifier`, `details` **Optional create fields (backend defaults):** `ownerId`, `isVerified` ### `audit-log` @@ -231,38 +229,30 @@ CRUD operations for AuditLog records. | `ipAddress` | InternetAddress | | `success` | Boolean | | `createdAt` | Datetime | -| `userAgentTrgmSimilarity` | Float | -| `searchScore` | Float | -**Required create fields:** `event`, `success`, `userAgentTrgmSimilarity`, `searchScore` +**Required create fields:** `event`, `success` **Optional create fields (backend defaults):** `actorId`, `origin`, `userAgent`, `ipAddress` -### `email` +### `role-type` -CRUD operations for Email records. +CRUD operations for RoleType records. | Subcommand | Description | |------------|-------------| -| `list` | List all email records | -| `get` | Get a email by id | -| `create` | Create a new email | -| `update` | Update an existing email | -| `delete` | Delete a email | +| `list` | List all roleType records | +| `get` | Get a roleType by id | +| `create` | Create a new roleType | +| `update` | Update an existing roleType | +| `delete` | Delete a roleType | **Fields:** | Field | Type | |-------|------| -| `id` | UUID | -| `ownerId` | UUID | -| `email` | Email | -| `isVerified` | Boolean | -| `isPrimary` | Boolean | -| `createdAt` | Datetime | -| `updatedAt` | Datetime | +| `id` | Int | +| `name` | String | -**Required create fields:** `email` -**Optional create fields (backend defaults):** `ownerId`, `isVerified`, `isPrimary` +**Required create fields:** `name` ### `user` @@ -292,8 +282,10 @@ CRUD operations for User records. | `displayNameTrgmSimilarity` | Float | | `searchScore` | Float | -**Required create fields:** `searchTsv`, `searchTsvRank`, `displayNameTrgmSimilarity`, `searchScore` **Optional create fields (backend defaults):** `username`, `displayName`, `profilePicture`, `type` +> **Unified Search API fields:** `displayNameTrgmSimilarity`, `searchScore` +> Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. + ## Custom Operations diff --git a/sdk/constructive-cli/src/auth/cli/commands.ts b/sdk/constructive-cli/src/auth/cli/commands.ts index 9db1cc8fe..12dcaca28 100644 --- a/sdk/constructive-cli/src/auth/cli/commands.ts +++ b/sdk/constructive-cli/src/auth/cli/commands.ts @@ -6,12 +6,12 @@ import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; import contextCmd from './commands/context'; import authCmd from './commands/auth'; -import cryptoAddressCmd from './commands/crypto-address'; -import roleTypeCmd from './commands/role-type'; +import emailCmd from './commands/email'; import phoneNumberCmd from './commands/phone-number'; +import cryptoAddressCmd from './commands/crypto-address'; import connectedAccountCmd from './commands/connected-account'; import auditLogCmd from './commands/audit-log'; -import emailCmd from './commands/email'; +import roleTypeCmd from './commands/role-type'; import userCmd from './commands/user'; import currentIpAddressCmd from './commands/current-ip-address'; import currentUserAgentCmd from './commands/current-user-agent'; @@ -43,12 +43,12 @@ const createCommandMap: () => Record< > = () => ({ context: contextCmd, auth: authCmd, - 'crypto-address': cryptoAddressCmd, - 'role-type': roleTypeCmd, + email: emailCmd, 'phone-number': phoneNumberCmd, + 'crypto-address': cryptoAddressCmd, 'connected-account': connectedAccountCmd, 'audit-log': auditLogCmd, - email: emailCmd, + 'role-type': roleTypeCmd, user: userCmd, 'current-ip-address': currentIpAddressCmd, 'current-user-agent': currentUserAgentCmd, @@ -72,7 +72,7 @@ const createCommandMap: () => Record< 'verify-totp': verifyTotpCmd, }); const usage = - '\ncsdk \n\nCommands:\n context Manage API contexts\n auth Manage authentication\n crypto-address cryptoAddress CRUD operations\n role-type roleType CRUD operations\n phone-number phoneNumber CRUD operations\n connected-account connectedAccount CRUD operations\n audit-log auditLog CRUD operations\n email email CRUD operations\n user user CRUD operations\n current-ip-address currentIpAddress\n current-user-agent currentUserAgent\n current-user-id currentUserId\n current-user currentUser\n sign-out signOut\n send-account-deletion-email sendAccountDeletionEmail\n check-password checkPassword\n confirm-delete-account confirmDeleteAccount\n set-password setPassword\n verify-email verifyEmail\n reset-password resetPassword\n sign-in-one-time-token signInOneTimeToken\n sign-in signIn\n sign-up signUp\n one-time-token oneTimeToken\n extend-token-expires extendTokenExpires\n forgot-password forgotPassword\n send-verification-email sendVerificationEmail\n verify-password verifyPassword\n verify-totp verifyTotp\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 email email CRUD operations\n phone-number phoneNumber CRUD operations\n crypto-address cryptoAddress CRUD operations\n connected-account connectedAccount CRUD operations\n audit-log auditLog CRUD operations\n role-type roleType CRUD operations\n user user CRUD operations\n current-ip-address currentIpAddress\n current-user-agent currentUserAgent\n current-user-id currentUserId\n current-user currentUser\n sign-out signOut\n send-account-deletion-email sendAccountDeletionEmail\n check-password checkPassword\n confirm-delete-account confirmDeleteAccount\n set-password setPassword\n verify-email verifyEmail\n reset-password resetPassword\n sign-in-one-time-token signInOneTimeToken\n sign-in signIn\n sign-up signUp\n one-time-token oneTimeToken\n extend-token-expires extendTokenExpires\n forgot-password forgotPassword\n send-verification-email sendVerificationEmail\n verify-password verifyPassword\n verify-totp verifyTotp\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/auth/cli/commands/audit-log.ts b/sdk/constructive-cli/src/auth/cli/commands/audit-log.ts index a90edd0c4..d4e2566ef 100644 --- a/sdk/constructive-cli/src/auth/cli/commands/audit-log.ts +++ b/sdk/constructive-cli/src/auth/cli/commands/audit-log.ts @@ -17,8 +17,6 @@ const fieldSchema: FieldSchema = { ipAddress: 'string', success: 'boolean', createdAt: 'string', - userAgentTrgmSimilarity: 'float', - searchScore: 'float', }; const usage = '\naudit-log \n\nCommands:\n list List all auditLog records\n get Get a auditLog by ID\n create Create a new auditLog\n update Update an existing auditLog\n delete Delete a auditLog\n\n --help, -h Show this help message\n'; diff --git a/sdk/constructive-cli/src/auth/cli/commands/connected-account.ts b/sdk/constructive-cli/src/auth/cli/commands/connected-account.ts index 536be726e..373ce17f3 100644 --- a/sdk/constructive-cli/src/auth/cli/commands/connected-account.ts +++ b/sdk/constructive-cli/src/auth/cli/commands/connected-account.ts @@ -17,9 +17,6 @@ const fieldSchema: FieldSchema = { isVerified: 'boolean', createdAt: 'string', updatedAt: 'string', - serviceTrgmSimilarity: 'float', - identifierTrgmSimilarity: 'float', - searchScore: 'float', }; const usage = '\nconnected-account \n\nCommands:\n list List all connectedAccount records\n get Get a connectedAccount by ID\n create Create a new connectedAccount\n update Update an existing connectedAccount\n delete Delete a connectedAccount\n\n --help, -h Show this help message\n'; diff --git a/sdk/constructive-cli/src/auth/cli/commands/crypto-address.ts b/sdk/constructive-cli/src/auth/cli/commands/crypto-address.ts index 3f9110c83..a4d171639 100644 --- a/sdk/constructive-cli/src/auth/cli/commands/crypto-address.ts +++ b/sdk/constructive-cli/src/auth/cli/commands/crypto-address.ts @@ -16,8 +16,6 @@ const fieldSchema: FieldSchema = { isPrimary: 'boolean', createdAt: 'string', updatedAt: 'string', - addressTrgmSimilarity: 'float', - searchScore: 'float', }; const usage = '\ncrypto-address \n\nCommands:\n list List all cryptoAddress records\n get Get a cryptoAddress by ID\n create Create a new cryptoAddress\n update Update an existing cryptoAddress\n delete Delete a cryptoAddress\n\n --help, -h Show this help message\n'; diff --git a/sdk/constructive-cli/src/auth/cli/commands/phone-number.ts b/sdk/constructive-cli/src/auth/cli/commands/phone-number.ts index e03d15b3e..80e0b5a76 100644 --- a/sdk/constructive-cli/src/auth/cli/commands/phone-number.ts +++ b/sdk/constructive-cli/src/auth/cli/commands/phone-number.ts @@ -17,9 +17,6 @@ const fieldSchema: FieldSchema = { isPrimary: 'boolean', createdAt: 'string', updatedAt: 'string', - ccTrgmSimilarity: 'float', - numberTrgmSimilarity: 'float', - searchScore: 'float', }; const usage = '\nphone-number \n\nCommands:\n list List all phoneNumber records\n get Get a phoneNumber by ID\n create Create a new phoneNumber\n update Update an existing phoneNumber\n delete Delete a phoneNumber\n\n --help, -h Show this help message\n'; diff --git a/sdk/constructive-cli/src/auth/orm/README.md b/sdk/constructive-cli/src/auth/orm/README.md index a9eb59719..ef3b0c06e 100644 --- a/sdk/constructive-cli/src/auth/orm/README.md +++ b/sdk/constructive-cli/src/auth/orm/README.md @@ -21,19 +21,19 @@ const db = createClient({ | Model | Operations | |-------|------------| -| `cryptoAddress` | findMany, findOne, create, update, delete | -| `roleType` | findMany, findOne, create, update, delete | +| `email` | findMany, findOne, create, update, delete | | `phoneNumber` | findMany, findOne, create, update, delete | +| `cryptoAddress` | findMany, findOne, create, update, delete | | `connectedAccount` | findMany, findOne, create, update, delete | | `auditLog` | findMany, findOne, create, update, delete | -| `email` | findMany, findOne, create, update, delete | +| `roleType` | findMany, findOne, create, update, delete | | `user` | findMany, findOne, create, update, delete | ## Table Operations -### `db.cryptoAddress` +### `db.email` -CRUD operations for CryptoAddress records. +CRUD operations for Email records. **Fields:** @@ -41,66 +41,70 @@ CRUD operations for CryptoAddress records. |-------|------|----------| | `id` | UUID | No | | `ownerId` | UUID | Yes | -| `address` | String | Yes | +| `email` | ConstructiveInternalTypeEmail | Yes | | `isVerified` | Boolean | Yes | | `isPrimary` | Boolean | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `addressTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript -// List all cryptoAddress records -const items = await db.cryptoAddress.findMany({ select: { id: true, ownerId: true, address: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true, addressTrgmSimilarity: true, searchScore: true } }).execute(); +// List all email records +const items = await db.email.findMany({ select: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.cryptoAddress.findOne({ id: '', select: { id: true, ownerId: true, address: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true, addressTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.email.findOne({ id: '', select: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.cryptoAddress.create({ data: { ownerId: '', address: '', isVerified: '', isPrimary: '', addressTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.email.create({ data: { ownerId: '', email: '', isVerified: '', isPrimary: '' }, select: { id: true } }).execute(); // Update -const updated = await db.cryptoAddress.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); +const updated = await db.email.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.cryptoAddress.delete({ where: { id: '' } }).execute(); +const deleted = await db.email.delete({ where: { id: '' } }).execute(); ``` -### `db.roleType` +### `db.phoneNumber` -CRUD operations for RoleType records. +CRUD operations for PhoneNumber records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `id` | Int | No | -| `name` | String | Yes | +| `id` | UUID | No | +| `ownerId` | UUID | Yes | +| `cc` | String | Yes | +| `number` | String | Yes | +| `isVerified` | Boolean | Yes | +| `isPrimary` | Boolean | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | **Operations:** ```typescript -// List all roleType records -const items = await db.roleType.findMany({ select: { id: true, name: true } }).execute(); +// List all phoneNumber records +const items = await db.phoneNumber.findMany({ select: { id: true, ownerId: true, cc: true, number: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.roleType.findOne({ id: '', select: { id: true, name: true } }).execute(); +const item = await db.phoneNumber.findOne({ id: '', select: { id: true, ownerId: true, cc: true, number: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.roleType.create({ data: { name: '' }, select: { id: true } }).execute(); +const created = await db.phoneNumber.create({ data: { ownerId: '', cc: '', number: '', isVerified: '', isPrimary: '' }, select: { id: true } }).execute(); // Update -const updated = await db.roleType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.phoneNumber.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.roleType.delete({ where: { id: '' } }).execute(); +const deleted = await db.phoneNumber.delete({ where: { id: '' } }).execute(); ``` -### `db.phoneNumber` +### `db.cryptoAddress` -CRUD operations for PhoneNumber records. +CRUD operations for CryptoAddress records. **Fields:** @@ -108,33 +112,29 @@ CRUD operations for PhoneNumber records. |-------|------|----------| | `id` | UUID | No | | `ownerId` | UUID | Yes | -| `cc` | String | Yes | -| `number` | String | Yes | +| `address` | String | Yes | | `isVerified` | Boolean | Yes | | `isPrimary` | Boolean | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `ccTrgmSimilarity` | Float | Yes | -| `numberTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript -// List all phoneNumber records -const items = await db.phoneNumber.findMany({ select: { id: true, ownerId: true, cc: true, number: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true, ccTrgmSimilarity: true, numberTrgmSimilarity: true, searchScore: true } }).execute(); +// List all cryptoAddress records +const items = await db.cryptoAddress.findMany({ select: { id: true, ownerId: true, address: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.phoneNumber.findOne({ id: '', select: { id: true, ownerId: true, cc: true, number: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true, ccTrgmSimilarity: true, numberTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.cryptoAddress.findOne({ id: '', select: { id: true, ownerId: true, address: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.phoneNumber.create({ data: { ownerId: '', cc: '', number: '', isVerified: '', isPrimary: '', ccTrgmSimilarity: '', numberTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.cryptoAddress.create({ data: { ownerId: '', address: '', isVerified: '', isPrimary: '' }, select: { id: true } }).execute(); // Update -const updated = await db.phoneNumber.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); +const updated = await db.cryptoAddress.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.phoneNumber.delete({ where: { id: '' } }).execute(); +const deleted = await db.cryptoAddress.delete({ where: { id: '' } }).execute(); ``` ### `db.connectedAccount` @@ -153,27 +153,24 @@ CRUD operations for ConnectedAccount records. | `isVerified` | Boolean | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `serviceTrgmSimilarity` | Float | Yes | -| `identifierTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all connectedAccount records -const items = await db.connectedAccount.findMany({ select: { id: true, ownerId: true, service: true, identifier: true, details: true, isVerified: true, createdAt: true, updatedAt: true, serviceTrgmSimilarity: true, identifierTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.connectedAccount.findMany({ select: { id: true, ownerId: true, service: true, identifier: true, details: true, isVerified: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.connectedAccount.findOne({ id: '', select: { id: true, ownerId: true, service: true, identifier: true, details: true, isVerified: true, createdAt: true, updatedAt: true, serviceTrgmSimilarity: true, identifierTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.connectedAccount.findOne({ id: '', select: { id: true, ownerId: true, service: true, identifier: true, details: true, isVerified: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.connectedAccount.create({ data: { ownerId: '', service: '', identifier: '', details: '', isVerified: '', serviceTrgmSimilarity: '', identifierTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.connectedAccount.create({ data: { ownerId: '', service: '', identifier: '', details: '', isVerified: '' }, select: { id: true } }).execute(); // Update -const updated = await db.connectedAccount.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); +const updated = await db.connectedAccount.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.connectedAccount.delete({ where: { id: '' } }).execute(); +const deleted = await db.connectedAccount.delete({ where: { id: '' } }).execute(); ``` ### `db.auditLog` @@ -192,61 +189,54 @@ CRUD operations for AuditLog records. | `ipAddress` | InternetAddress | Yes | | `success` | Boolean | Yes | | `createdAt` | Datetime | No | -| `userAgentTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all auditLog records -const items = await db.auditLog.findMany({ select: { id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true, createdAt: true, userAgentTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.auditLog.findMany({ select: { id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true, createdAt: true } }).execute(); // Get one by id -const item = await db.auditLog.findOne({ id: '', select: { id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true, createdAt: true, userAgentTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.auditLog.findOne({ id: '', select: { id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true, createdAt: true } }).execute(); // Create -const created = await db.auditLog.create({ data: { event: '', actorId: '', origin: '', userAgent: '', ipAddress: '', success: '', userAgentTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.auditLog.create({ data: { event: '', actorId: '', origin: '', userAgent: '', ipAddress: '', success: '' }, select: { id: true } }).execute(); // Update -const updated = await db.auditLog.update({ where: { id: '' }, data: { event: '' }, select: { id: true } }).execute(); +const updated = await db.auditLog.update({ where: { id: '' }, data: { event: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.auditLog.delete({ where: { id: '' } }).execute(); +const deleted = await db.auditLog.delete({ where: { id: '' } }).execute(); ``` -### `db.email` +### `db.roleType` -CRUD operations for Email records. +CRUD operations for RoleType records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `id` | UUID | No | -| `ownerId` | UUID | Yes | -| `email` | ConstructiveInternalTypeEmail | Yes | -| `isVerified` | Boolean | Yes | -| `isPrimary` | Boolean | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | +| `id` | Int | No | +| `name` | String | Yes | **Operations:** ```typescript -// List all email records -const items = await db.email.findMany({ select: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); +// List all roleType records +const items = await db.roleType.findMany({ select: { id: true, name: true } }).execute(); // Get one by id -const item = await db.email.findOne({ id: '', select: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.roleType.findOne({ id: '', select: { id: true, name: true } }).execute(); // Create -const created = await db.email.create({ data: { ownerId: '', email: '', isVerified: '', isPrimary: '' }, select: { id: true } }).execute(); +const created = await db.roleType.create({ data: { name: '' }, select: { id: true } }).execute(); // Update -const updated = await db.email.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); +const updated = await db.roleType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.email.delete({ where: { id: '' } }).execute(); +const deleted = await db.roleType.delete({ where: { id: '' } }).execute(); ``` ### `db.user` @@ -276,16 +266,16 @@ CRUD operations for User records. const items = await db.user.findMany({ select: { id: true, username: true, displayName: true, profilePicture: true, searchTsv: true, type: true, createdAt: true, updatedAt: true, searchTsvRank: true, displayNameTrgmSimilarity: true, searchScore: true } }).execute(); // Get one by id -const item = await db.user.findOne({ id: '', select: { id: true, username: true, displayName: true, profilePicture: true, searchTsv: true, type: true, createdAt: true, updatedAt: true, searchTsvRank: true, displayNameTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.user.findOne({ id: '', select: { id: true, username: true, displayName: true, profilePicture: true, searchTsv: true, type: true, createdAt: true, updatedAt: true, searchTsvRank: true, displayNameTrgmSimilarity: true, searchScore: true } }).execute(); // Create -const created = await db.user.create({ data: { username: '', displayName: '', profilePicture: '', searchTsv: '', type: '', searchTsvRank: '', displayNameTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.user.create({ data: { username: '', displayName: '', profilePicture: '', searchTsv: '', type: '', searchTsvRank: '', displayNameTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); // Update -const updated = await db.user.update({ where: { id: '' }, data: { username: '' }, select: { id: true } }).execute(); +const updated = await db.user.update({ where: { id: '' }, data: { username: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.user.delete({ where: { id: '' } }).execute(); +const deleted = await db.user.delete({ where: { id: '' } }).execute(); ``` ## Custom Operations @@ -346,7 +336,7 @@ signOut | `input` | SignOutInput (required) | ```typescript -const result = await db.mutation.signOut({ input: '' }).execute(); +const result = await db.mutation.signOut({ input: '' }).execute(); ``` ### `db.mutation.sendAccountDeletionEmail` @@ -361,7 +351,7 @@ sendAccountDeletionEmail | `input` | SendAccountDeletionEmailInput (required) | ```typescript -const result = await db.mutation.sendAccountDeletionEmail({ input: '' }).execute(); +const result = await db.mutation.sendAccountDeletionEmail({ input: '' }).execute(); ``` ### `db.mutation.checkPassword` @@ -376,7 +366,7 @@ checkPassword | `input` | CheckPasswordInput (required) | ```typescript -const result = await db.mutation.checkPassword({ input: '' }).execute(); +const result = await db.mutation.checkPassword({ input: { password: '' } }).execute(); ``` ### `db.mutation.confirmDeleteAccount` @@ -391,7 +381,7 @@ confirmDeleteAccount | `input` | ConfirmDeleteAccountInput (required) | ```typescript -const result = await db.mutation.confirmDeleteAccount({ input: '' }).execute(); +const result = await db.mutation.confirmDeleteAccount({ input: { userId: '', token: '' } }).execute(); ``` ### `db.mutation.setPassword` @@ -406,7 +396,7 @@ setPassword | `input` | SetPasswordInput (required) | ```typescript -const result = await db.mutation.setPassword({ input: '' }).execute(); +const result = await db.mutation.setPassword({ input: { currentPassword: '', newPassword: '' } }).execute(); ``` ### `db.mutation.verifyEmail` @@ -421,7 +411,7 @@ verifyEmail | `input` | VerifyEmailInput (required) | ```typescript -const result = await db.mutation.verifyEmail({ input: '' }).execute(); +const result = await db.mutation.verifyEmail({ input: { emailId: '', token: '' } }).execute(); ``` ### `db.mutation.resetPassword` @@ -436,7 +426,7 @@ resetPassword | `input` | ResetPasswordInput (required) | ```typescript -const result = await db.mutation.resetPassword({ input: '' }).execute(); +const result = await db.mutation.resetPassword({ input: { roleId: '', resetToken: '', newPassword: '' } }).execute(); ``` ### `db.mutation.signInOneTimeToken` @@ -451,7 +441,7 @@ signInOneTimeToken | `input` | SignInOneTimeTokenInput (required) | ```typescript -const result = await db.mutation.signInOneTimeToken({ input: '' }).execute(); +const result = await db.mutation.signInOneTimeToken({ input: { token: '', credentialKind: '' } }).execute(); ``` ### `db.mutation.signIn` @@ -466,7 +456,7 @@ signIn | `input` | SignInInput (required) | ```typescript -const result = await db.mutation.signIn({ input: '' }).execute(); +const result = await db.mutation.signIn({ input: { email: '', password: '', rememberMe: '', credentialKind: '', csrfToken: '' } }).execute(); ``` ### `db.mutation.signUp` @@ -481,7 +471,7 @@ signUp | `input` | SignUpInput (required) | ```typescript -const result = await db.mutation.signUp({ input: '' }).execute(); +const result = await db.mutation.signUp({ input: { email: '', password: '', rememberMe: '', credentialKind: '', csrfToken: '' } }).execute(); ``` ### `db.mutation.oneTimeToken` @@ -496,7 +486,7 @@ oneTimeToken | `input` | OneTimeTokenInput (required) | ```typescript -const result = await db.mutation.oneTimeToken({ input: '' }).execute(); +const result = await db.mutation.oneTimeToken({ input: { email: '', password: '', origin: '', rememberMe: '' } }).execute(); ``` ### `db.mutation.extendTokenExpires` @@ -511,7 +501,7 @@ extendTokenExpires | `input` | ExtendTokenExpiresInput (required) | ```typescript -const result = await db.mutation.extendTokenExpires({ input: '' }).execute(); +const result = await db.mutation.extendTokenExpires({ input: { amount: '' } }).execute(); ``` ### `db.mutation.forgotPassword` @@ -526,7 +516,7 @@ forgotPassword | `input` | ForgotPasswordInput (required) | ```typescript -const result = await db.mutation.forgotPassword({ input: '' }).execute(); +const result = await db.mutation.forgotPassword({ input: { email: '' } }).execute(); ``` ### `db.mutation.sendVerificationEmail` @@ -541,7 +531,7 @@ sendVerificationEmail | `input` | SendVerificationEmailInput (required) | ```typescript -const result = await db.mutation.sendVerificationEmail({ input: '' }).execute(); +const result = await db.mutation.sendVerificationEmail({ input: { email: '' } }).execute(); ``` ### `db.mutation.verifyPassword` @@ -556,7 +546,7 @@ verifyPassword | `input` | VerifyPasswordInput (required) | ```typescript -const result = await db.mutation.verifyPassword({ input: '' }).execute(); +const result = await db.mutation.verifyPassword({ input: { password: '' } }).execute(); ``` ### `db.mutation.verifyTotp` @@ -571,7 +561,7 @@ verifyTotp | `input` | VerifyTotpInput (required) | ```typescript -const result = await db.mutation.verifyTotp({ input: '' }).execute(); +const result = await db.mutation.verifyTotp({ input: { totpValue: '' } }).execute(); ``` --- diff --git a/sdk/constructive-cli/src/auth/orm/index.ts b/sdk/constructive-cli/src/auth/orm/index.ts index 89be8162a..22c1490f8 100644 --- a/sdk/constructive-cli/src/auth/orm/index.ts +++ b/sdk/constructive-cli/src/auth/orm/index.ts @@ -5,12 +5,12 @@ */ import { OrmClient } from './client'; import type { OrmClientConfig } from './client'; -import { CryptoAddressModel } from './models/cryptoAddress'; -import { RoleTypeModel } from './models/roleType'; +import { EmailModel } from './models/email'; import { PhoneNumberModel } from './models/phoneNumber'; +import { CryptoAddressModel } from './models/cryptoAddress'; import { ConnectedAccountModel } from './models/connectedAccount'; import { AuditLogModel } from './models/auditLog'; -import { EmailModel } from './models/email'; +import { RoleTypeModel } from './models/roleType'; import { UserModel } from './models/user'; import { createQueryOperations } from './query'; import { createMutationOperations } from './mutation'; @@ -48,12 +48,12 @@ export { createMutationOperations } from './mutation'; export function createClient(config: OrmClientConfig) { const client = new OrmClient(config); return { - cryptoAddress: new CryptoAddressModel(client), - roleType: new RoleTypeModel(client), + email: new EmailModel(client), phoneNumber: new PhoneNumberModel(client), + cryptoAddress: new CryptoAddressModel(client), connectedAccount: new ConnectedAccountModel(client), auditLog: new AuditLogModel(client), - email: new EmailModel(client), + roleType: new RoleTypeModel(client), user: new UserModel(client), query: createQueryOperations(client), mutation: createMutationOperations(client), diff --git a/sdk/constructive-cli/src/auth/orm/input-types.ts b/sdk/constructive-cli/src/auth/orm/input-types.ts index ba9c684f2..879ec0366 100644 --- a/sdk/constructive-cli/src/auth/orm/input-types.ts +++ b/sdk/constructive-cli/src/auth/orm/input-types.ts @@ -234,27 +234,19 @@ export interface UUIDListFilter { export type ConstructiveInternalTypeEmail = unknown; export type ConstructiveInternalTypeImage = unknown; export type ConstructiveInternalTypeOrigin = unknown; -/** Cryptocurrency wallet addresses owned by users, with network-specific validation and verification */ +/** User email addresses with verification and primary-email management */ // ============ Entity Types ============ -export interface CryptoAddress { +export interface Email { id: string; ownerId?: string | null; - /** The cryptocurrency wallet address, validated against network-specific patterns */ - address?: string | null; - /** Whether ownership of this address has been cryptographically verified */ + /** The email address */ + email?: ConstructiveInternalTypeEmail | null; + /** Whether the email address has been verified via confirmation link */ isVerified?: boolean | null; - /** Whether this is the user's primary cryptocurrency address */ + /** Whether this is the user's primary email address */ isPrimary?: boolean | null; createdAt?: string | null; updatedAt?: string | null; - /** TRGM similarity when searching `address`. Returns null when no trgm search filter is active. */ - addressTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; -} -export interface RoleType { - id: number; - name?: string | null; } /** User phone numbers with country code, verification, and primary-number management */ export interface PhoneNumber { @@ -270,12 +262,19 @@ export interface PhoneNumber { isPrimary?: boolean | null; createdAt?: string | null; updatedAt?: string | null; - /** TRGM similarity when searching `cc`. Returns null when no trgm search filter is active. */ - ccTrgmSimilarity?: number | null; - /** TRGM similarity when searching `number`. Returns null when no trgm search filter is active. */ - numberTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; +} +/** Cryptocurrency wallet addresses owned by users, with network-specific validation and verification */ +export interface CryptoAddress { + id: string; + ownerId?: string | null; + /** The cryptocurrency wallet address, validated against network-specific patterns */ + address?: string | null; + /** Whether ownership of this address has been cryptographically verified */ + isVerified?: boolean | null; + /** Whether this is the user's primary cryptocurrency address */ + isPrimary?: boolean | null; + createdAt?: string | null; + updatedAt?: string | null; } /** OAuth and social login connections linking external service accounts to users */ export interface ConnectedAccount { @@ -291,19 +290,13 @@ export interface ConnectedAccount { isVerified?: boolean | null; createdAt?: string | null; updatedAt?: string | null; - /** TRGM similarity when searching `service`. Returns null when no trgm search filter is active. */ - serviceTrgmSimilarity?: number | null; - /** TRGM similarity when searching `identifier`. Returns null when no trgm search filter is active. */ - identifierTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } /** Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) */ export interface AuditLog { id: string; /** Type of authentication event (e.g. sign_in, sign_up, password_change, verify_email) */ event?: string | null; - /** User who performed the authentication action */ + /** User who performed the authentication action; NULL if user was deleted */ actorId?: string | null; /** Request origin (domain) where the auth event occurred */ origin?: ConstructiveInternalTypeOrigin | null; @@ -315,23 +308,10 @@ export interface AuditLog { success?: boolean | null; /** Timestamp when the audit event was recorded */ createdAt?: string | null; - /** TRGM similarity when searching `userAgent`. Returns null when no trgm search filter is active. */ - userAgentTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } -/** User email addresses with verification and primary-email management */ -export interface Email { - id: string; - ownerId?: string | null; - /** The email address */ - email?: ConstructiveInternalTypeEmail | null; - /** Whether the email address has been verified via confirmation link */ - isVerified?: boolean | null; - /** Whether this is the user's primary email address */ - isPrimary?: boolean | null; - createdAt?: string | null; - updatedAt?: string | null; +export interface RoleType { + id: number; + name?: string | null; } export interface User { id: string; @@ -346,7 +326,7 @@ export interface User { searchTsvRank?: number | null; /** TRGM similarity when searching `displayName`. Returns null when no trgm search filter is active. */ displayNameTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ + /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. */ searchScore?: number | null; } // ============ Relation Helper Types ============ @@ -362,52 +342,51 @@ export interface PageInfo { endCursor?: string | null; } // ============ Entity Relation Types ============ -export interface CryptoAddressRelations { +export interface EmailRelations { owner?: User | null; } -export interface RoleTypeRelations {} export interface PhoneNumberRelations { owner?: User | null; } +export interface CryptoAddressRelations { + owner?: User | null; +} export interface ConnectedAccountRelations { owner?: User | null; } export interface AuditLogRelations { actor?: User | null; } -export interface EmailRelations { - owner?: User | null; -} +export interface RoleTypeRelations {} export interface UserRelations { roleType?: RoleType | null; + ownedEmails?: ConnectionResult; + ownedPhoneNumbers?: ConnectionResult; + ownedCryptoAddresses?: ConnectionResult; + ownedConnectedAccounts?: ConnectionResult; + auditLogsByActorId?: ConnectionResult; } // ============ Entity Types With Relations ============ -export type CryptoAddressWithRelations = CryptoAddress & CryptoAddressRelations; -export type RoleTypeWithRelations = RoleType & RoleTypeRelations; +export type EmailWithRelations = Email & EmailRelations; export type PhoneNumberWithRelations = PhoneNumber & PhoneNumberRelations; +export type CryptoAddressWithRelations = CryptoAddress & CryptoAddressRelations; export type ConnectedAccountWithRelations = ConnectedAccount & ConnectedAccountRelations; export type AuditLogWithRelations = AuditLog & AuditLogRelations; -export type EmailWithRelations = Email & EmailRelations; +export type RoleTypeWithRelations = RoleType & RoleTypeRelations; export type UserWithRelations = User & UserRelations; // ============ Entity Select Types ============ -export type CryptoAddressSelect = { +export type EmailSelect = { id?: boolean; ownerId?: boolean; - address?: boolean; + email?: boolean; isVerified?: boolean; isPrimary?: boolean; createdAt?: boolean; updatedAt?: boolean; - addressTrgmSimilarity?: boolean; - searchScore?: boolean; owner?: { select: UserSelect; }; }; -export type RoleTypeSelect = { - id?: boolean; - name?: boolean; -}; export type PhoneNumberSelect = { id?: boolean; ownerId?: boolean; @@ -417,9 +396,18 @@ export type PhoneNumberSelect = { isPrimary?: boolean; createdAt?: boolean; updatedAt?: boolean; - ccTrgmSimilarity?: boolean; - numberTrgmSimilarity?: boolean; - searchScore?: boolean; + owner?: { + select: UserSelect; + }; +}; +export type CryptoAddressSelect = { + id?: boolean; + ownerId?: boolean; + address?: boolean; + isVerified?: boolean; + isPrimary?: boolean; + createdAt?: boolean; + updatedAt?: boolean; owner?: { select: UserSelect; }; @@ -433,9 +421,6 @@ export type ConnectedAccountSelect = { isVerified?: boolean; createdAt?: boolean; updatedAt?: boolean; - serviceTrgmSimilarity?: boolean; - identifierTrgmSimilarity?: boolean; - searchScore?: boolean; owner?: { select: UserSelect; }; @@ -449,23 +434,13 @@ export type AuditLogSelect = { ipAddress?: boolean; success?: boolean; createdAt?: boolean; - userAgentTrgmSimilarity?: boolean; - searchScore?: boolean; actor?: { select: UserSelect; }; }; -export type EmailSelect = { +export type RoleTypeSelect = { id?: boolean; - ownerId?: boolean; - email?: boolean; - isVerified?: boolean; - isPrimary?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - owner?: { - select: UserSelect; - }; + name?: boolean; }; export type UserSelect = { id?: boolean; @@ -482,28 +457,49 @@ export type UserSelect = { roleType?: { select: RoleTypeSelect; }; + ownedEmails?: { + select: EmailSelect; + first?: number; + filter?: EmailFilter; + orderBy?: EmailOrderBy[]; + }; + ownedPhoneNumbers?: { + select: PhoneNumberSelect; + first?: number; + filter?: PhoneNumberFilter; + orderBy?: PhoneNumberOrderBy[]; + }; + ownedCryptoAddresses?: { + select: CryptoAddressSelect; + first?: number; + filter?: CryptoAddressFilter; + orderBy?: CryptoAddressOrderBy[]; + }; + ownedConnectedAccounts?: { + select: ConnectedAccountSelect; + first?: number; + filter?: ConnectedAccountFilter; + orderBy?: ConnectedAccountOrderBy[]; + }; + auditLogsByActorId?: { + select: AuditLogSelect; + first?: number; + filter?: AuditLogFilter; + orderBy?: AuditLogOrderBy[]; + }; }; // ============ Table Filter Types ============ -export interface CryptoAddressFilter { +export interface EmailFilter { id?: UUIDFilter; ownerId?: UUIDFilter; - address?: StringFilter; + email?: StringFilter; isVerified?: BooleanFilter; isPrimary?: BooleanFilter; createdAt?: DatetimeFilter; updatedAt?: DatetimeFilter; - addressTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; - and?: CryptoAddressFilter[]; - or?: CryptoAddressFilter[]; - not?: CryptoAddressFilter; -} -export interface RoleTypeFilter { - id?: IntFilter; - name?: StringFilter; - and?: RoleTypeFilter[]; - or?: RoleTypeFilter[]; - not?: RoleTypeFilter; + and?: EmailFilter[]; + or?: EmailFilter[]; + not?: EmailFilter; } export interface PhoneNumberFilter { id?: UUIDFilter; @@ -514,13 +510,22 @@ export interface PhoneNumberFilter { isPrimary?: BooleanFilter; createdAt?: DatetimeFilter; updatedAt?: DatetimeFilter; - ccTrgmSimilarity?: FloatFilter; - numberTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: PhoneNumberFilter[]; or?: PhoneNumberFilter[]; not?: PhoneNumberFilter; } +export interface CryptoAddressFilter { + id?: UUIDFilter; + ownerId?: UUIDFilter; + address?: StringFilter; + isVerified?: BooleanFilter; + isPrimary?: BooleanFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: CryptoAddressFilter[]; + or?: CryptoAddressFilter[]; + not?: CryptoAddressFilter; +} export interface ConnectedAccountFilter { id?: UUIDFilter; ownerId?: UUIDFilter; @@ -530,9 +535,6 @@ export interface ConnectedAccountFilter { isVerified?: BooleanFilter; createdAt?: DatetimeFilter; updatedAt?: DatetimeFilter; - serviceTrgmSimilarity?: FloatFilter; - identifierTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: ConnectedAccountFilter[]; or?: ConnectedAccountFilter[]; not?: ConnectedAccountFilter; @@ -546,23 +548,16 @@ export interface AuditLogFilter { ipAddress?: InternetAddressFilter; success?: BooleanFilter; createdAt?: DatetimeFilter; - userAgentTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: AuditLogFilter[]; or?: AuditLogFilter[]; not?: AuditLogFilter; } -export interface EmailFilter { - id?: UUIDFilter; - ownerId?: UUIDFilter; - email?: StringFilter; - isVerified?: BooleanFilter; - isPrimary?: BooleanFilter; - createdAt?: DatetimeFilter; - updatedAt?: DatetimeFilter; - and?: EmailFilter[]; - or?: EmailFilter[]; - not?: EmailFilter; +export interface RoleTypeFilter { + id?: IntFilter; + name?: StringFilter; + and?: RoleTypeFilter[]; + or?: RoleTypeFilter[]; + not?: RoleTypeFilter; } export interface UserFilter { id?: UUIDFilter; @@ -581,66 +576,52 @@ export interface UserFilter { not?: UserFilter; } // ============ OrderBy Types ============ -export type CryptoAddressOrderBy = +export type EmailOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'OWNER_ID_ASC' | 'OWNER_ID_DESC' - | 'ADDRESS_ASC' - | 'ADDRESS_DESC' - | 'IS_VERIFIED_ASC' - | 'IS_VERIFIED_DESC' - | 'IS_PRIMARY_ASC' - | 'IS_PRIMARY_DESC' + | 'EMAIL_ASC' + | 'EMAIL_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'ADDRESS_TRGM_SIMILARITY_ASC' - | 'ADDRESS_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; -export type RoleTypeOrderBy = + | 'UPDATED_AT_DESC'; +export type PhoneNumberOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC'; -export type PhoneNumberOrderBy = + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'NUMBER_ASC' + | 'NUMBER_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type CryptoAddressOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'OWNER_ID_ASC' | 'OWNER_ID_DESC' - | 'CC_ASC' - | 'CC_DESC' - | 'NUMBER_ASC' - | 'NUMBER_DESC' - | 'IS_VERIFIED_ASC' - | 'IS_VERIFIED_DESC' - | 'IS_PRIMARY_ASC' - | 'IS_PRIMARY_DESC' + | 'ADDRESS_ASC' + | 'ADDRESS_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CC_TRGM_SIMILARITY_ASC' - | 'CC_TRGM_SIMILARITY_DESC' - | 'NUMBER_TRGM_SIMILARITY_ASC' - | 'NUMBER_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'UPDATED_AT_DESC'; export type ConnectedAccountOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'OWNER_ID_ASC' @@ -649,78 +630,36 @@ export type ConnectedAccountOrderBy = | 'SERVICE_DESC' | 'IDENTIFIER_ASC' | 'IDENTIFIER_DESC' - | 'DETAILS_ASC' - | 'DETAILS_DESC' - | 'IS_VERIFIED_ASC' - | 'IS_VERIFIED_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'SERVICE_TRGM_SIMILARITY_ASC' - | 'SERVICE_TRGM_SIMILARITY_DESC' - | 'IDENTIFIER_TRGM_SIMILARITY_ASC' - | 'IDENTIFIER_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'UPDATED_AT_DESC'; export type AuditLogOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'EVENT_ASC' | 'EVENT_DESC' | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'ORIGIN_ASC' - | 'ORIGIN_DESC' - | 'USER_AGENT_ASC' - | 'USER_AGENT_DESC' - | 'IP_ADDRESS_ASC' - | 'IP_ADDRESS_DESC' - | 'SUCCESS_ASC' - | 'SUCCESS_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'USER_AGENT_TRGM_SIMILARITY_ASC' - | 'USER_AGENT_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; -export type EmailOrderBy = + | 'ACTOR_ID_DESC'; +export type RoleTypeOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' - | 'OWNER_ID_ASC' - | 'OWNER_ID_DESC' - | 'EMAIL_ASC' - | 'EMAIL_DESC' - | 'IS_VERIFIED_ASC' - | 'IS_VERIFIED_DESC' - | 'IS_PRIMARY_ASC' - | 'IS_PRIMARY_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; + | 'NAME_ASC' + | 'NAME_DESC'; export type UserOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'USERNAME_ASC' | 'USERNAME_DESC' - | 'DISPLAY_NAME_ASC' - | 'DISPLAY_NAME_DESC' - | 'PROFILE_PICTURE_ASC' - | 'PROFILE_PICTURE_DESC' - | 'SEARCH_TSV_ASC' - | 'SEARCH_TSV_DESC' - | 'TYPE_ASC' - | 'TYPE_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' @@ -732,50 +671,30 @@ export type UserOrderBy = | 'SEARCH_SCORE_ASC' | 'SEARCH_SCORE_DESC'; // ============ CRUD Input Types ============ -export interface CreateCryptoAddressInput { +export interface CreateEmailInput { clientMutationId?: string; - cryptoAddress: { + email: { ownerId?: string; - address: string; + email: ConstructiveInternalTypeEmail; isVerified?: boolean; isPrimary?: boolean; }; } -export interface CryptoAddressPatch { +export interface EmailPatch { ownerId?: string | null; - address?: string | null; + email?: ConstructiveInternalTypeEmail | null; isVerified?: boolean | null; isPrimary?: boolean | null; - addressTrgmSimilarity?: number | null; - searchScore?: number | null; } -export interface UpdateCryptoAddressInput { +export interface UpdateEmailInput { clientMutationId?: string; id: string; - cryptoAddressPatch: CryptoAddressPatch; + emailPatch: EmailPatch; } -export interface DeleteCryptoAddressInput { +export interface DeleteEmailInput { clientMutationId?: string; id: string; } -export interface CreateRoleTypeInput { - clientMutationId?: string; - roleType: { - name: string; - }; -} -export interface RoleTypePatch { - name?: string | null; -} -export interface UpdateRoleTypeInput { - clientMutationId?: string; - id: number; - roleTypePatch: RoleTypePatch; -} -export interface DeleteRoleTypeInput { - clientMutationId?: string; - id: number; -} export interface CreatePhoneNumberInput { clientMutationId?: string; phoneNumber: { @@ -792,9 +711,6 @@ export interface PhoneNumberPatch { number?: string | null; isVerified?: boolean | null; isPrimary?: boolean | null; - ccTrgmSimilarity?: number | null; - numberTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdatePhoneNumberInput { clientMutationId?: string; @@ -805,6 +721,30 @@ export interface DeletePhoneNumberInput { clientMutationId?: string; id: string; } +export interface CreateCryptoAddressInput { + clientMutationId?: string; + cryptoAddress: { + ownerId?: string; + address: string; + isVerified?: boolean; + isPrimary?: boolean; + }; +} +export interface CryptoAddressPatch { + ownerId?: string | null; + address?: string | null; + isVerified?: boolean | null; + isPrimary?: boolean | null; +} +export interface UpdateCryptoAddressInput { + clientMutationId?: string; + id: string; + cryptoAddressPatch: CryptoAddressPatch; +} +export interface DeleteCryptoAddressInput { + clientMutationId?: string; + id: string; +} export interface CreateConnectedAccountInput { clientMutationId?: string; connectedAccount: { @@ -821,9 +761,6 @@ export interface ConnectedAccountPatch { identifier?: string | null; details?: Record | null; isVerified?: boolean | null; - serviceTrgmSimilarity?: number | null; - identifierTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateConnectedAccountInput { clientMutationId?: string; @@ -852,8 +789,6 @@ export interface AuditLogPatch { userAgent?: string | null; ipAddress?: string | null; success?: boolean | null; - userAgentTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateAuditLogInput { clientMutationId?: string; @@ -864,29 +799,23 @@ export interface DeleteAuditLogInput { clientMutationId?: string; id: string; } -export interface CreateEmailInput { +export interface CreateRoleTypeInput { clientMutationId?: string; - email: { - ownerId?: string; - email: ConstructiveInternalTypeEmail; - isVerified?: boolean; - isPrimary?: boolean; + roleType: { + name: string; }; } -export interface EmailPatch { - ownerId?: string | null; - email?: ConstructiveInternalTypeEmail | null; - isVerified?: boolean | null; - isPrimary?: boolean | null; +export interface RoleTypePatch { + name?: string | null; } -export interface UpdateEmailInput { +export interface UpdateRoleTypeInput { clientMutationId?: string; - id: string; - emailPatch: EmailPatch; + id: number; + roleTypePatch: RoleTypePatch; } -export interface DeleteEmailInput { +export interface DeleteRoleTypeInput { clientMutationId?: string; - id: string; + id: number; } export interface CreateUserInput { clientMutationId?: string; @@ -900,12 +829,9 @@ export interface CreateUserInput { export interface UserPatch { username?: string | null; displayName?: string | null; - profilePicture?: ConstructiveInternalTypeImage | null; - searchTsv?: string | null; - type?: number | null; - searchTsvRank?: number | null; - displayNameTrgmSimilarity?: number | null; - searchScore?: number | null; + profilePicture?: ConstructiveInternalTypeImage | null; + type?: number | null; + profilePictureUpload?: File | null; } export interface UpdateUserInput { clientMutationId?: string; @@ -917,7 +843,15 @@ export interface DeleteUserInput { id: string; } // ============ Connection Fields Map ============ -export const connectionFieldsMap = {} as Record>; +export const connectionFieldsMap = { + User: { + ownedEmails: 'Email', + ownedPhoneNumbers: 'PhoneNumber', + ownedCryptoAddresses: 'CryptoAddress', + ownedConnectedAccounts: 'ConnectedAccount', + auditLogsByActorId: 'AuditLog', + }, +} as Record>; // ============ Custom Input Types (from schema) ============ export interface SignOutInput { clientMutationId?: string; @@ -1152,94 +1086,49 @@ export type VerifyTotpPayloadSelect = { select: SessionSelect; }; }; -export interface CreateCryptoAddressPayload { - clientMutationId?: string | null; - /** The `CryptoAddress` that was created by this mutation. */ - cryptoAddress?: CryptoAddress | null; - cryptoAddressEdge?: CryptoAddressEdge | null; -} -export type CreateCryptoAddressPayloadSelect = { - clientMutationId?: boolean; - cryptoAddress?: { - select: CryptoAddressSelect; - }; - cryptoAddressEdge?: { - select: CryptoAddressEdgeSelect; - }; -}; -export interface UpdateCryptoAddressPayload { - clientMutationId?: string | null; - /** The `CryptoAddress` that was updated by this mutation. */ - cryptoAddress?: CryptoAddress | null; - cryptoAddressEdge?: CryptoAddressEdge | null; -} -export type UpdateCryptoAddressPayloadSelect = { - clientMutationId?: boolean; - cryptoAddress?: { - select: CryptoAddressSelect; - }; - cryptoAddressEdge?: { - select: CryptoAddressEdgeSelect; - }; -}; -export interface DeleteCryptoAddressPayload { - clientMutationId?: string | null; - /** The `CryptoAddress` that was deleted by this mutation. */ - cryptoAddress?: CryptoAddress | null; - cryptoAddressEdge?: CryptoAddressEdge | null; -} -export type DeleteCryptoAddressPayloadSelect = { - clientMutationId?: boolean; - cryptoAddress?: { - select: CryptoAddressSelect; - }; - cryptoAddressEdge?: { - select: CryptoAddressEdgeSelect; - }; -}; -export interface CreateRoleTypePayload { +export interface CreateEmailPayload { clientMutationId?: string | null; - /** The `RoleType` that was created by this mutation. */ - roleType?: RoleType | null; - roleTypeEdge?: RoleTypeEdge | null; + /** The `Email` that was created by this mutation. */ + email?: Email | null; + emailEdge?: EmailEdge | null; } -export type CreateRoleTypePayloadSelect = { +export type CreateEmailPayloadSelect = { clientMutationId?: boolean; - roleType?: { - select: RoleTypeSelect; + email?: { + select: EmailSelect; }; - roleTypeEdge?: { - select: RoleTypeEdgeSelect; + emailEdge?: { + select: EmailEdgeSelect; }; }; -export interface UpdateRoleTypePayload { +export interface UpdateEmailPayload { clientMutationId?: string | null; - /** The `RoleType` that was updated by this mutation. */ - roleType?: RoleType | null; - roleTypeEdge?: RoleTypeEdge | null; + /** The `Email` that was updated by this mutation. */ + email?: Email | null; + emailEdge?: EmailEdge | null; } -export type UpdateRoleTypePayloadSelect = { +export type UpdateEmailPayloadSelect = { clientMutationId?: boolean; - roleType?: { - select: RoleTypeSelect; + email?: { + select: EmailSelect; }; - roleTypeEdge?: { - select: RoleTypeEdgeSelect; + emailEdge?: { + select: EmailEdgeSelect; }; }; -export interface DeleteRoleTypePayload { +export interface DeleteEmailPayload { clientMutationId?: string | null; - /** The `RoleType` that was deleted by this mutation. */ - roleType?: RoleType | null; - roleTypeEdge?: RoleTypeEdge | null; + /** The `Email` that was deleted by this mutation. */ + email?: Email | null; + emailEdge?: EmailEdge | null; } -export type DeleteRoleTypePayloadSelect = { +export type DeleteEmailPayloadSelect = { clientMutationId?: boolean; - roleType?: { - select: RoleTypeSelect; + email?: { + select: EmailSelect; }; - roleTypeEdge?: { - select: RoleTypeEdgeSelect; + emailEdge?: { + select: EmailEdgeSelect; }; }; export interface CreatePhoneNumberPayload { @@ -1287,6 +1176,51 @@ export type DeletePhoneNumberPayloadSelect = { select: PhoneNumberEdgeSelect; }; }; +export interface CreateCryptoAddressPayload { + clientMutationId?: string | null; + /** The `CryptoAddress` that was created by this mutation. */ + cryptoAddress?: CryptoAddress | null; + cryptoAddressEdge?: CryptoAddressEdge | null; +} +export type CreateCryptoAddressPayloadSelect = { + clientMutationId?: boolean; + cryptoAddress?: { + select: CryptoAddressSelect; + }; + cryptoAddressEdge?: { + select: CryptoAddressEdgeSelect; + }; +}; +export interface UpdateCryptoAddressPayload { + clientMutationId?: string | null; + /** The `CryptoAddress` that was updated by this mutation. */ + cryptoAddress?: CryptoAddress | null; + cryptoAddressEdge?: CryptoAddressEdge | null; +} +export type UpdateCryptoAddressPayloadSelect = { + clientMutationId?: boolean; + cryptoAddress?: { + select: CryptoAddressSelect; + }; + cryptoAddressEdge?: { + select: CryptoAddressEdgeSelect; + }; +}; +export interface DeleteCryptoAddressPayload { + clientMutationId?: string | null; + /** The `CryptoAddress` that was deleted by this mutation. */ + cryptoAddress?: CryptoAddress | null; + cryptoAddressEdge?: CryptoAddressEdge | null; +} +export type DeleteCryptoAddressPayloadSelect = { + clientMutationId?: boolean; + cryptoAddress?: { + select: CryptoAddressSelect; + }; + cryptoAddressEdge?: { + select: CryptoAddressEdgeSelect; + }; +}; export interface CreateConnectedAccountPayload { clientMutationId?: string | null; /** The `ConnectedAccount` that was created by this mutation. */ @@ -1377,49 +1311,49 @@ export type DeleteAuditLogPayloadSelect = { select: AuditLogEdgeSelect; }; }; -export interface CreateEmailPayload { +export interface CreateRoleTypePayload { clientMutationId?: string | null; - /** The `Email` that was created by this mutation. */ - email?: Email | null; - emailEdge?: EmailEdge | null; + /** The `RoleType` that was created by this mutation. */ + roleType?: RoleType | null; + roleTypeEdge?: RoleTypeEdge | null; } -export type CreateEmailPayloadSelect = { +export type CreateRoleTypePayloadSelect = { clientMutationId?: boolean; - email?: { - select: EmailSelect; + roleType?: { + select: RoleTypeSelect; }; - emailEdge?: { - select: EmailEdgeSelect; + roleTypeEdge?: { + select: RoleTypeEdgeSelect; }; }; -export interface UpdateEmailPayload { +export interface UpdateRoleTypePayload { clientMutationId?: string | null; - /** The `Email` that was updated by this mutation. */ - email?: Email | null; - emailEdge?: EmailEdge | null; + /** The `RoleType` that was updated by this mutation. */ + roleType?: RoleType | null; + roleTypeEdge?: RoleTypeEdge | null; } -export type UpdateEmailPayloadSelect = { +export type UpdateRoleTypePayloadSelect = { clientMutationId?: boolean; - email?: { - select: EmailSelect; + roleType?: { + select: RoleTypeSelect; }; - emailEdge?: { - select: EmailEdgeSelect; + roleTypeEdge?: { + select: RoleTypeEdgeSelect; }; }; -export interface DeleteEmailPayload { +export interface DeleteRoleTypePayload { clientMutationId?: string | null; - /** The `Email` that was deleted by this mutation. */ - email?: Email | null; - emailEdge?: EmailEdge | null; + /** The `RoleType` that was deleted by this mutation. */ + roleType?: RoleType | null; + roleTypeEdge?: RoleTypeEdge | null; } -export type DeleteEmailPayloadSelect = { +export type DeleteRoleTypePayloadSelect = { clientMutationId?: boolean; - email?: { - select: EmailSelect; + roleType?: { + select: RoleTypeSelect; }; - emailEdge?: { - select: EmailEdgeSelect; + roleTypeEdge?: { + select: RoleTypeEdgeSelect; }; }; export interface CreateUserPayload { @@ -1474,10 +1408,6 @@ export interface SignInOneTimeTokenRecord { accessTokenExpiresAt?: string | null; isVerified?: boolean | null; totpEnabled?: boolean | null; - /** TRGM similarity when searching `accessToken`. Returns null when no trgm search filter is active. */ - accessTokenTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export type SignInOneTimeTokenRecordSelect = { id?: boolean; @@ -1486,8 +1416,6 @@ export type SignInOneTimeTokenRecordSelect = { accessTokenExpiresAt?: boolean; isVerified?: boolean; totpEnabled?: boolean; - accessTokenTrgmSimilarity?: boolean; - searchScore?: boolean; }; export interface SignInRecord { id?: string | null; @@ -1496,10 +1424,6 @@ export interface SignInRecord { accessTokenExpiresAt?: string | null; isVerified?: boolean | null; totpEnabled?: boolean | null; - /** TRGM similarity when searching `accessToken`. Returns null when no trgm search filter is active. */ - accessTokenTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export type SignInRecordSelect = { id?: boolean; @@ -1508,8 +1432,6 @@ export type SignInRecordSelect = { accessTokenExpiresAt?: boolean; isVerified?: boolean; totpEnabled?: boolean; - accessTokenTrgmSimilarity?: boolean; - searchScore?: boolean; }; export interface SignUpRecord { id?: string | null; @@ -1518,10 +1440,6 @@ export interface SignUpRecord { accessTokenExpiresAt?: string | null; isVerified?: boolean | null; totpEnabled?: boolean | null; - /** TRGM similarity when searching `accessToken`. Returns null when no trgm search filter is active. */ - accessTokenTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export type SignUpRecordSelect = { id?: boolean; @@ -1530,8 +1448,6 @@ export type SignUpRecordSelect = { accessTokenExpiresAt?: boolean; isVerified?: boolean; totpEnabled?: boolean; - accessTokenTrgmSimilarity?: boolean; - searchScore?: boolean; }; export interface ExtendTokenExpiresRecord { id?: string | null; @@ -1570,14 +1486,6 @@ export interface Session { csrfSecret?: string | null; createdAt?: string | null; updatedAt?: string | null; - /** TRGM similarity when searching `uagent`. Returns null when no trgm search filter is active. */ - uagentTrgmSimilarity?: number | null; - /** TRGM similarity when searching `fingerprintMode`. Returns null when no trgm search filter is active. */ - fingerprintModeTrgmSimilarity?: number | null; - /** TRGM similarity when searching `csrfSecret`. Returns null when no trgm search filter is active. */ - csrfSecretTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export type SessionSelect = { id?: boolean; @@ -1594,33 +1502,17 @@ export type SessionSelect = { csrfSecret?: boolean; createdAt?: boolean; updatedAt?: boolean; - uagentTrgmSimilarity?: boolean; - fingerprintModeTrgmSimilarity?: boolean; - csrfSecretTrgmSimilarity?: boolean; - searchScore?: boolean; }; -/** A `CryptoAddress` edge in the connection. */ -export interface CryptoAddressEdge { - cursor?: string | null; - /** The `CryptoAddress` at the end of the edge. */ - node?: CryptoAddress | null; -} -export type CryptoAddressEdgeSelect = { - cursor?: boolean; - node?: { - select: CryptoAddressSelect; - }; -}; -/** A `RoleType` edge in the connection. */ -export interface RoleTypeEdge { +/** A `Email` edge in the connection. */ +export interface EmailEdge { cursor?: string | null; - /** The `RoleType` at the end of the edge. */ - node?: RoleType | null; + /** The `Email` at the end of the edge. */ + node?: Email | null; } -export type RoleTypeEdgeSelect = { +export type EmailEdgeSelect = { cursor?: boolean; node?: { - select: RoleTypeSelect; + select: EmailSelect; }; }; /** A `PhoneNumber` edge in the connection. */ @@ -1635,6 +1527,18 @@ export type PhoneNumberEdgeSelect = { select: PhoneNumberSelect; }; }; +/** A `CryptoAddress` edge in the connection. */ +export interface CryptoAddressEdge { + cursor?: string | null; + /** The `CryptoAddress` at the end of the edge. */ + node?: CryptoAddress | null; +} +export type CryptoAddressEdgeSelect = { + cursor?: boolean; + node?: { + select: CryptoAddressSelect; + }; +}; /** A `ConnectedAccount` edge in the connection. */ export interface ConnectedAccountEdge { cursor?: string | null; @@ -1659,16 +1563,16 @@ export type AuditLogEdgeSelect = { select: AuditLogSelect; }; }; -/** A `Email` edge in the connection. */ -export interface EmailEdge { +/** A `RoleType` edge in the connection. */ +export interface RoleTypeEdge { cursor?: string | null; - /** The `Email` at the end of the edge. */ - node?: Email | null; + /** The `RoleType` at the end of the edge. */ + node?: RoleType | null; } -export type EmailEdgeSelect = { +export type RoleTypeEdgeSelect = { cursor?: boolean; node?: { - select: EmailSelect; + select: RoleTypeSelect; }; }; /** A `User` edge in the connection. */ diff --git a/sdk/constructive-cli/src/auth/orm/models/index.ts b/sdk/constructive-cli/src/auth/orm/models/index.ts index 5ef4dde11..c21f0cd77 100644 --- a/sdk/constructive-cli/src/auth/orm/models/index.ts +++ b/sdk/constructive-cli/src/auth/orm/models/index.ts @@ -3,10 +3,10 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ -export { CryptoAddressModel } from './cryptoAddress'; -export { RoleTypeModel } from './roleType'; +export { EmailModel } from './email'; export { PhoneNumberModel } from './phoneNumber'; +export { CryptoAddressModel } from './cryptoAddress'; export { ConnectedAccountModel } from './connectedAccount'; export { AuditLogModel } from './auditLog'; -export { EmailModel } from './email'; +export { RoleTypeModel } from './roleType'; export { UserModel } from './user'; diff --git a/sdk/constructive-cli/src/index.ts b/sdk/constructive-cli/src/index.ts index a4c387b2b..4f0892d9e 100644 --- a/sdk/constructive-cli/src/index.ts +++ b/sdk/constructive-cli/src/index.ts @@ -1,12 +1,11 @@ /** - * @constructive-sdk/cli + * @constructive-io/sdk * - * Auto-generated GraphQL CLI with ORM client, context management, and interactive prompts. - * Run `pnpm run generate` to regenerate from the schema files. + * Auto-generated GraphQL types and ORM client. + * Run `pnpm run generate` to populate this package from the schema files. * * @generated by @constructive-io/graphql-codegen */ - export * as admin from './admin'; export * as auth from './auth'; export * as objects from './objects'; diff --git a/sdk/constructive-cli/src/objects/cli/README.md b/sdk/constructive-cli/src/objects/cli/README.md index 8b747b2bb..37db0defc 100644 --- a/sdk/constructive-cli/src/objects/cli/README.md +++ b/sdk/constructive-cli/src/objects/cli/README.md @@ -131,7 +131,7 @@ CRUD operations for Object records. | `frzn` | Boolean | | `createdAt` | Datetime | -**Required create fields:** `hashUuid`, `databaseId` +**Required create fields:** `databaseId` **Optional create fields (backend defaults):** `kids`, `ktree`, `data`, `frzn` ### `ref` @@ -155,10 +155,8 @@ CRUD operations for Ref records. | `databaseId` | UUID | | `storeId` | UUID | | `commitId` | UUID | -| `nameTrgmSimilarity` | Float | -| `searchScore` | Float | -**Required create fields:** `name`, `databaseId`, `storeId`, `nameTrgmSimilarity`, `searchScore` +**Required create fields:** `name`, `databaseId`, `storeId` **Optional create fields (backend defaults):** `commitId` ### `store` @@ -182,10 +180,8 @@ CRUD operations for Store records. | `databaseId` | UUID | | `hash` | UUID | | `createdAt` | Datetime | -| `nameTrgmSimilarity` | Float | -| `searchScore` | Float | -**Required create fields:** `name`, `databaseId`, `nameTrgmSimilarity`, `searchScore` +**Required create fields:** `name`, `databaseId` **Optional create fields (backend defaults):** `hash` ### `commit` @@ -213,10 +209,8 @@ CRUD operations for Commit records. | `committerId` | UUID | | `treeId` | UUID | | `date` | Datetime | -| `messageTrgmSimilarity` | Float | -| `searchScore` | Float | -**Required create fields:** `databaseId`, `storeId`, `messageTrgmSimilarity`, `searchScore` +**Required create fields:** `databaseId`, `storeId` **Optional create fields (backend defaults):** `message`, `parentIds`, `authorId`, `committerId`, `treeId`, `date` ## Custom Operations diff --git a/sdk/constructive-cli/src/objects/cli/commands/commit.ts b/sdk/constructive-cli/src/objects/cli/commands/commit.ts index 905cf9fc1..41e83a4f2 100644 --- a/sdk/constructive-cli/src/objects/cli/commands/commit.ts +++ b/sdk/constructive-cli/src/objects/cli/commands/commit.ts @@ -18,8 +18,6 @@ const fieldSchema: FieldSchema = { committerId: 'uuid', treeId: 'uuid', date: 'string', - messageTrgmSimilarity: 'float', - searchScore: 'float', }; const usage = '\ncommit \n\nCommands:\n list List all commit records\n get Get a commit by ID\n create Create a new commit\n update Update an existing commit\n delete Delete a commit\n\n --help, -h Show this help message\n'; diff --git a/sdk/constructive-cli/src/objects/cli/commands/ref.ts b/sdk/constructive-cli/src/objects/cli/commands/ref.ts index 1caaf0437..7ad388281 100644 --- a/sdk/constructive-cli/src/objects/cli/commands/ref.ts +++ b/sdk/constructive-cli/src/objects/cli/commands/ref.ts @@ -14,8 +14,6 @@ const fieldSchema: FieldSchema = { databaseId: 'uuid', storeId: 'uuid', commitId: 'uuid', - nameTrgmSimilarity: 'float', - searchScore: 'float', }; const usage = '\nref \n\nCommands:\n list List all ref records\n get Get a ref by ID\n create Create a new ref\n update Update an existing ref\n delete Delete a ref\n\n --help, -h Show this help message\n'; diff --git a/sdk/constructive-cli/src/objects/cli/commands/store.ts b/sdk/constructive-cli/src/objects/cli/commands/store.ts index 78086e121..2ca10cb6d 100644 --- a/sdk/constructive-cli/src/objects/cli/commands/store.ts +++ b/sdk/constructive-cli/src/objects/cli/commands/store.ts @@ -14,8 +14,6 @@ const fieldSchema: FieldSchema = { databaseId: 'uuid', hash: 'uuid', createdAt: 'string', - nameTrgmSimilarity: 'float', - searchScore: 'float', }; const usage = '\nstore \n\nCommands:\n list List all store records\n get Get a store by ID\n create Create a new store\n update Update an existing store\n delete Delete a store\n\n --help, -h Show this help message\n'; diff --git a/sdk/constructive-cli/src/objects/orm/README.md b/sdk/constructive-cli/src/objects/orm/README.md index 21100fb3f..477f22a10 100644 --- a/sdk/constructive-cli/src/objects/orm/README.md +++ b/sdk/constructive-cli/src/objects/orm/README.md @@ -47,16 +47,16 @@ CRUD operations for GetAllRecord records. const items = await db.getAllRecord.findMany({ select: { path: true, data: true } }).execute(); // Get one by id -const item = await db.getAllRecord.findOne({ id: '', select: { path: true, data: true } }).execute(); +const item = await db.getAllRecord.findOne({ id: '', select: { path: true, data: true } }).execute(); // Create -const created = await db.getAllRecord.create({ data: { path: '', data: '' }, select: { id: true } }).execute(); +const created = await db.getAllRecord.create({ data: { path: '', data: '' }, select: { id: true } }).execute(); // Update -const updated = await db.getAllRecord.update({ where: { id: '' }, data: { path: '' }, select: { id: true } }).execute(); +const updated = await db.getAllRecord.update({ where: { id: '' }, data: { path: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.getAllRecord.delete({ where: { id: '' } }).execute(); +const deleted = await db.getAllRecord.delete({ where: { id: '' } }).execute(); ``` ### `db.object` @@ -83,16 +83,16 @@ CRUD operations for Object records. const items = await db.object.findMany({ select: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }).execute(); // Get one by id -const item = await db.object.findOne({ id: '', select: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }).execute(); +const item = await db.object.findOne({ id: '', select: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }).execute(); // Create -const created = await db.object.create({ data: { hashUuid: '', databaseId: '', kids: '', ktree: '', data: '', frzn: '' }, select: { id: true } }).execute(); +const created = await db.object.create({ data: { hashUuid: '', databaseId: '', kids: '', ktree: '', data: '', frzn: '' }, select: { id: true } }).execute(); // Update -const updated = await db.object.update({ where: { id: '' }, data: { hashUuid: '' }, select: { id: true } }).execute(); +const updated = await db.object.update({ where: { id: '' }, data: { hashUuid: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.object.delete({ where: { id: '' } }).execute(); +const deleted = await db.object.delete({ where: { id: '' } }).execute(); ``` ### `db.ref` @@ -108,26 +108,24 @@ CRUD operations for Ref records. | `databaseId` | UUID | Yes | | `storeId` | UUID | Yes | | `commitId` | UUID | Yes | -| `nameTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all ref records -const items = await db.ref.findMany({ select: { id: true, name: true, databaseId: true, storeId: true, commitId: true, nameTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.ref.findMany({ select: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }).execute(); // Get one by id -const item = await db.ref.findOne({ id: '', select: { id: true, name: true, databaseId: true, storeId: true, commitId: true, nameTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.ref.findOne({ id: '', select: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }).execute(); // Create -const created = await db.ref.create({ data: { name: '', databaseId: '', storeId: '', commitId: '', nameTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.ref.create({ data: { name: '', databaseId: '', storeId: '', commitId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.ref.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.ref.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.ref.delete({ where: { id: '' } }).execute(); +const deleted = await db.ref.delete({ where: { id: '' } }).execute(); ``` ### `db.store` @@ -143,26 +141,24 @@ CRUD operations for Store records. | `databaseId` | UUID | Yes | | `hash` | UUID | Yes | | `createdAt` | Datetime | No | -| `nameTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all store records -const items = await db.store.findMany({ select: { id: true, name: true, databaseId: true, hash: true, createdAt: true, nameTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.store.findMany({ select: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }).execute(); // Get one by id -const item = await db.store.findOne({ id: '', select: { id: true, name: true, databaseId: true, hash: true, createdAt: true, nameTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.store.findOne({ id: '', select: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }).execute(); // Create -const created = await db.store.create({ data: { name: '', databaseId: '', hash: '', nameTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.store.create({ data: { name: '', databaseId: '', hash: '' }, select: { id: true } }).execute(); // Update -const updated = await db.store.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.store.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.store.delete({ where: { id: '' } }).execute(); +const deleted = await db.store.delete({ where: { id: '' } }).execute(); ``` ### `db.commit` @@ -182,26 +178,24 @@ CRUD operations for Commit records. | `committerId` | UUID | Yes | | `treeId` | UUID | Yes | | `date` | Datetime | Yes | -| `messageTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all commit records -const items = await db.commit.findMany({ select: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true, messageTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.commit.findMany({ select: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }).execute(); // Get one by id -const item = await db.commit.findOne({ id: '', select: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true, messageTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.commit.findOne({ id: '', select: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }).execute(); // Create -const created = await db.commit.create({ data: { message: '', databaseId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '', messageTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.commit.create({ data: { message: '', databaseId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }, select: { id: true } }).execute(); // Update -const updated = await db.commit.update({ where: { id: '' }, data: { message: '' }, select: { id: true } }).execute(); +const updated = await db.commit.update({ where: { id: '' }, data: { message: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.commit.delete({ where: { id: '' } }).execute(); +const deleted = await db.commit.delete({ where: { id: '' } }).execute(); ``` ## Custom Operations @@ -220,7 +214,7 @@ revParse | `refname` | String | ```typescript -const result = await db.query.revParse({ dbId: '', storeId: '', refname: '' }).execute(); +const result = await db.query.revParse({ dbId: '', storeId: '', refname: '' }).execute(); ``` ### `db.query.getAllObjectsFromRoot` @@ -239,7 +233,7 @@ Reads and enables pagination through a set of `Object`. | `after` | Cursor | ```typescript -const result = await db.query.getAllObjectsFromRoot({ databaseId: '', id: '', first: '', offset: '', after: '' }).execute(); +const result = await db.query.getAllObjectsFromRoot({ databaseId: '', id: '', first: '', offset: '', after: '' }).execute(); ``` ### `db.query.getPathObjectsFromRoot` @@ -259,7 +253,7 @@ Reads and enables pagination through a set of `Object`. | `after` | Cursor | ```typescript -const result = await db.query.getPathObjectsFromRoot({ databaseId: '', id: '', path: '', first: '', offset: '', after: '' }).execute(); +const result = await db.query.getPathObjectsFromRoot({ databaseId: '', id: '', path: '', first: '', offset: '', after: '' }).execute(); ``` ### `db.query.getObjectAtPath` @@ -277,7 +271,7 @@ getObjectAtPath | `refname` | String | ```typescript -const result = await db.query.getObjectAtPath({ dbId: '', storeId: '', path: '', refname: '' }).execute(); +const result = await db.query.getObjectAtPath({ dbId: '', storeId: '', path: '', refname: '' }).execute(); ``` ### `db.mutation.freezeObjects` @@ -292,7 +286,7 @@ freezeObjects | `input` | FreezeObjectsInput (required) | ```typescript -const result = await db.mutation.freezeObjects({ input: '' }).execute(); +const result = await db.mutation.freezeObjects({ input: { databaseId: '', id: '' } }).execute(); ``` ### `db.mutation.initEmptyRepo` @@ -307,7 +301,7 @@ initEmptyRepo | `input` | InitEmptyRepoInput (required) | ```typescript -const result = await db.mutation.initEmptyRepo({ input: '' }).execute(); +const result = await db.mutation.initEmptyRepo({ input: { dbId: '', storeId: '' } }).execute(); ``` ### `db.mutation.removeNodeAtPath` @@ -322,7 +316,7 @@ removeNodeAtPath | `input` | RemoveNodeAtPathInput (required) | ```typescript -const result = await db.mutation.removeNodeAtPath({ input: '' }).execute(); +const result = await db.mutation.removeNodeAtPath({ input: { dbId: '', root: '', path: '' } }).execute(); ``` ### `db.mutation.setDataAtPath` @@ -337,7 +331,7 @@ setDataAtPath | `input` | SetDataAtPathInput (required) | ```typescript -const result = await db.mutation.setDataAtPath({ input: '' }).execute(); +const result = await db.mutation.setDataAtPath({ input: { dbId: '', root: '', path: '', data: '' } }).execute(); ``` ### `db.mutation.setPropsAndCommit` @@ -352,7 +346,7 @@ setPropsAndCommit | `input` | SetPropsAndCommitInput (required) | ```typescript -const result = await db.mutation.setPropsAndCommit({ input: '' }).execute(); +const result = await db.mutation.setPropsAndCommit({ input: { dbId: '', storeId: '', refname: '', path: '', data: '' } }).execute(); ``` ### `db.mutation.insertNodeAtPath` @@ -367,7 +361,7 @@ insertNodeAtPath | `input` | InsertNodeAtPathInput (required) | ```typescript -const result = await db.mutation.insertNodeAtPath({ input: '' }).execute(); +const result = await db.mutation.insertNodeAtPath({ input: '' }).execute(); ``` ### `db.mutation.updateNodeAtPath` @@ -382,7 +376,7 @@ updateNodeAtPath | `input` | UpdateNodeAtPathInput (required) | ```typescript -const result = await db.mutation.updateNodeAtPath({ input: '' }).execute(); +const result = await db.mutation.updateNodeAtPath({ input: '' }).execute(); ``` ### `db.mutation.setAndCommit` @@ -397,7 +391,7 @@ setAndCommit | `input` | SetAndCommitInput (required) | ```typescript -const result = await db.mutation.setAndCommit({ input: '' }).execute(); +const result = await db.mutation.setAndCommit({ input: '' }).execute(); ``` --- diff --git a/sdk/constructive-cli/src/objects/orm/input-types.ts b/sdk/constructive-cli/src/objects/orm/input-types.ts index 89e77a3f8..b0dc694b9 100644 --- a/sdk/constructive-cli/src/objects/orm/input-types.ts +++ b/sdk/constructive-cli/src/objects/orm/input-types.ts @@ -232,15 +232,15 @@ export interface UUIDListFilter { } // ============ Entity Types ============ export interface GetAllRecord { - path?: string | null; + path?: string[] | null; data?: Record | null; } export interface Object { hashUuid?: string | null; id: string; databaseId?: string | null; - kids?: string | null; - ktree?: string | null; + kids?: string[] | null; + ktree?: string[] | null; data?: Record | null; frzn?: boolean | null; createdAt?: string | null; @@ -254,10 +254,6 @@ export interface Ref { databaseId?: string | null; storeId?: string | null; commitId?: string | null; - /** TRGM similarity when searching `name`. Returns null when no trgm search filter is active. */ - nameTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } /** A store represents an isolated object repository within a database. */ export interface Store { @@ -270,10 +266,6 @@ export interface Store { /** The current head tree_id for this store. */ hash?: string | null; createdAt?: string | null; - /** TRGM similarity when searching `name`. Returns null when no trgm search filter is active. */ - nameTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } /** A commit records changes to the repository. */ export interface Commit { @@ -285,7 +277,7 @@ export interface Commit { databaseId?: string | null; storeId?: string | null; /** Parent commits */ - parentIds?: string | null; + parentIds?: string[] | null; /** The author of the commit */ authorId?: string | null; /** The committer of the commit */ @@ -293,10 +285,6 @@ export interface Commit { /** The root of the tree */ treeId?: string | null; date?: string | null; - /** TRGM similarity when searching `message`. Returns null when no trgm search filter is active. */ - messageTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } // ============ Relation Helper Types ============ export interface ConnectionResult { @@ -343,8 +331,6 @@ export type RefSelect = { databaseId?: boolean; storeId?: boolean; commitId?: boolean; - nameTrgmSimilarity?: boolean; - searchScore?: boolean; }; export type StoreSelect = { id?: boolean; @@ -352,8 +338,6 @@ export type StoreSelect = { databaseId?: boolean; hash?: boolean; createdAt?: boolean; - nameTrgmSimilarity?: boolean; - searchScore?: boolean; }; export type CommitSelect = { id?: boolean; @@ -365,12 +349,10 @@ export type CommitSelect = { committerId?: boolean; treeId?: boolean; date?: boolean; - messageTrgmSimilarity?: boolean; - searchScore?: boolean; }; // ============ Table Filter Types ============ export interface GetAllRecordFilter { - path?: StringFilter; + path?: StringListFilter; data?: JSONFilter; and?: GetAllRecordFilter[]; or?: GetAllRecordFilter[]; @@ -380,8 +362,8 @@ export interface ObjectFilter { hashUuid?: UUIDFilter; id?: UUIDFilter; databaseId?: UUIDFilter; - kids?: UUIDFilter; - ktree?: StringFilter; + kids?: UUIDListFilter; + ktree?: StringListFilter; data?: JSONFilter; frzn?: BooleanFilter; createdAt?: DatetimeFilter; @@ -395,8 +377,6 @@ export interface RefFilter { databaseId?: UUIDFilter; storeId?: UUIDFilter; commitId?: UUIDFilter; - nameTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: RefFilter[]; or?: RefFilter[]; not?: RefFilter; @@ -407,8 +387,6 @@ export interface StoreFilter { databaseId?: UUIDFilter; hash?: UUIDFilter; createdAt?: DatetimeFilter; - nameTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: StoreFilter[]; or?: StoreFilter[]; not?: StoreFilter; @@ -418,13 +396,11 @@ export interface CommitFilter { message?: StringFilter; databaseId?: UUIDFilter; storeId?: UUIDFilter; - parentIds?: UUIDFilter; + parentIds?: UUIDListFilter; authorId?: UUIDFilter; committerId?: UUIDFilter; treeId?: UUIDFilter; date?: DatetimeFilter; - messageTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: CommitFilter[]; or?: CommitFilter[]; not?: CommitFilter; @@ -439,97 +415,51 @@ export type GetAllRecordsOrderBy = | 'DATA_ASC' | 'DATA_DESC'; export type ObjectOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' - | 'HASH_UUID_ASC' - | 'HASH_UUID_DESC' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'KIDS_ASC' - | 'KIDS_DESC' - | 'KTREE_ASC' - | 'KTREE_DESC' - | 'DATA_ASC' - | 'DATA_DESC' | 'FRZN_ASC' - | 'FRZN_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC'; + | 'FRZN_DESC'; export type RefOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'STORE_ID_ASC' - | 'STORE_ID_DESC' - | 'COMMIT_ID_ASC' - | 'COMMIT_ID_DESC' - | 'NAME_TRGM_SIMILARITY_ASC' - | 'NAME_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'STORE_ID_DESC'; export type StoreOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'HASH_ASC' - | 'HASH_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'NAME_TRGM_SIMILARITY_ASC' - | 'NAME_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'DATABASE_ID_DESC'; export type CommitOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' - | 'MESSAGE_ASC' - | 'MESSAGE_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'STORE_ID_ASC' - | 'STORE_ID_DESC' - | 'PARENT_IDS_ASC' - | 'PARENT_IDS_DESC' - | 'AUTHOR_ID_ASC' - | 'AUTHOR_ID_DESC' - | 'COMMITTER_ID_ASC' - | 'COMMITTER_ID_DESC' - | 'TREE_ID_ASC' - | 'TREE_ID_DESC' - | 'DATE_ASC' - | 'DATE_DESC' - | 'MESSAGE_TRGM_SIMILARITY_ASC' - | 'MESSAGE_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'DATABASE_ID_DESC'; // ============ CRUD Input Types ============ export interface CreateGetAllRecordInput { clientMutationId?: string; getAllRecord: { - path?: string; + path?: string[]; data?: Record; }; } export interface GetAllRecordPatch { - path?: string | null; + path?: string[] | null; data?: Record | null; } export interface UpdateGetAllRecordInput { @@ -552,10 +482,9 @@ export interface CreateObjectInput { }; } export interface ObjectPatch { - hashUuid?: string | null; databaseId?: string | null; - kids?: string | null; - ktree?: string | null; + kids?: string[] | null; + ktree?: string[] | null; data?: Record | null; frzn?: boolean | null; } @@ -582,8 +511,6 @@ export interface RefPatch { databaseId?: string | null; storeId?: string | null; commitId?: string | null; - nameTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateRefInput { clientMutationId?: string; @@ -606,8 +533,6 @@ export interface StorePatch { name?: string | null; databaseId?: string | null; hash?: string | null; - nameTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateStoreInput { clientMutationId?: string; @@ -635,13 +560,11 @@ export interface CommitPatch { message?: string | null; databaseId?: string | null; storeId?: string | null; - parentIds?: string | null; + parentIds?: string[] | null; authorId?: string | null; committerId?: string | null; treeId?: string | null; date?: string | null; - messageTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateCommitInput { clientMutationId?: string; diff --git a/sdk/constructive-cli/src/public/README.md b/sdk/constructive-cli/src/public/README.md index 9f9e1e235..71e01c57a 100644 --- a/sdk/constructive-cli/src/public/README.md +++ b/sdk/constructive-cli/src/public/README.md @@ -8,9 +8,9 @@ ## Overview -- **Tables:** 103 +- **Tables:** 107 - **Custom queries:** 19 -- **Custom mutations:** 31 +- **Custom mutations:** 36 **Generators:** ORM, CLI diff --git a/sdk/constructive-cli/src/public/cli/README.md b/sdk/constructive-cli/src/public/cli/README.md index 8d277d8f1..24b40219a 100644 --- a/sdk/constructive-cli/src/public/cli/README.md +++ b/sdk/constructive-cli/src/public/cli/README.md @@ -26,9 +26,9 @@ csdk auth set-token | `context` | Manage API contexts (endpoints) | | `auth` | Manage authentication tokens | | `config` | Manage config key-value store (per-context) | +| `get-all-record` | getAllRecord CRUD operations | | `org-get-managers-record` | orgGetManagersRecord CRUD operations | | `org-get-subordinates-record` | orgGetSubordinatesRecord CRUD operations | -| `get-all-record` | getAllRecord CRUD operations | | `object` | object CRUD operations | | `app-permission` | appPermission CRUD operations | | `org-permission` | orgPermission CRUD operations | @@ -50,11 +50,13 @@ csdk auth set-token | `view-table` | viewTable CRUD operations | | `view-grant` | viewGrant CRUD operations | | `view-rule` | viewRule CRUD operations | +| `embedding-chunk` | embeddingChunk CRUD operations | | `table-template-module` | tableTemplateModule CRUD operations | | `secure-table-provision` | secureTableProvision CRUD operations | | `relation-provision` | relationProvision CRUD operations | | `schema-grant` | schemaGrant CRUD operations | | `default-privilege` | defaultPrivilege CRUD operations | +| `enum` | enum CRUD operations | | `api-schema` | apiSchema CRUD operations | | `api-module` | apiModule CRUD operations | | `domain` | domain CRUD operations | @@ -62,6 +64,7 @@ csdk auth set-token | `site-module` | siteModule CRUD operations | | `site-theme` | siteTheme CRUD operations | | `trigger-function` | triggerFunction CRUD operations | +| `database-transfer` | databaseTransfer CRUD operations | | `api` | api CRUD operations | | `site` | site CRUD operations | | `app` | app CRUD operations | @@ -85,7 +88,8 @@ csdk auth set-token | `sessions-module` | sessionsModule CRUD operations | | `user-auth-module` | userAuthModule CRUD operations | | `users-module` | usersModule CRUD operations | -| `uuid-module` | uuidModule CRUD operations | +| `blueprint` | blueprint CRUD operations | +| `blueprint-template` | blueprintTemplate CRUD operations | | `database-provision-module` | databaseProvisionModule CRUD operations | | `app-admin-grant` | appAdminGrant CRUD operations | | `app-owner-grant` | appOwnerGrant CRUD operations | @@ -97,34 +101,34 @@ csdk auth set-token | `org-grant` | orgGrant CRUD operations | | `org-chart-edge` | orgChartEdge CRUD operations | | `org-chart-edge-grant` | orgChartEdgeGrant CRUD operations | +| `org-permission-default` | orgPermissionDefault CRUD operations | | `app-limit` | appLimit CRUD operations | | `org-limit` | orgLimit CRUD operations | | `app-step` | appStep CRUD operations | | `app-achievement` | appAchievement CRUD operations | +| `app-level` | appLevel CRUD operations | +| `email` | email CRUD operations | +| `phone-number` | phoneNumber CRUD operations | +| `crypto-address` | cryptoAddress CRUD operations | +| `connected-account` | connectedAccount CRUD operations | | `invite` | invite CRUD operations | | `claimed-invite` | claimedInvite CRUD operations | | `org-invite` | orgInvite CRUD operations | | `org-claimed-invite` | orgClaimedInvite CRUD operations | +| `audit-log` | auditLog CRUD operations | | `ref` | ref CRUD operations | | `store` | store CRUD operations | | `app-permission-default` | appPermissionDefault CRUD operations | -| `crypto-address` | cryptoAddress CRUD operations | | `role-type` | roleType CRUD operations | -| `org-permission-default` | orgPermissionDefault CRUD operations | -| `phone-number` | phoneNumber CRUD operations | | `app-limit-default` | appLimitDefault CRUD operations | | `org-limit-default` | orgLimitDefault CRUD operations | -| `connected-account` | connectedAccount CRUD operations | | `node-type-registry` | nodeTypeRegistry CRUD operations | | `membership-type` | membershipType CRUD operations | | `commit` | commit CRUD operations | | `app-membership-default` | appMembershipDefault CRUD operations | | `rls-module` | rlsModule CRUD operations | | `org-membership-default` | orgMembershipDefault CRUD operations | -| `audit-log` | auditLog CRUD operations | -| `app-level` | appLevel CRUD operations | | `sql-migration` | sqlMigration CRUD operations | -| `email` | email CRUD operations | | `user` | user CRUD operations | | `ast-migration` | astMigration CRUD operations | | `app-membership` | appMembership CRUD operations | @@ -148,23 +152,28 @@ csdk auth set-token | `org-permissions-get-by-mask` | Reads and enables pagination through a set of `OrgPermission`. | | `steps-required` | Reads and enables pagination through a set of `AppLevelRequirement`. | | `current-user` | currentUser | -| `sign-out` | signOut | | `send-account-deletion-email` | sendAccountDeletionEmail | -| `check-password` | checkPassword | +| `sign-out` | signOut | +| `accept-database-transfer` | acceptDatabaseTransfer | +| `cancel-database-transfer` | cancelDatabaseTransfer | +| `reject-database-transfer` | rejectDatabaseTransfer | | `submit-invite-code` | submitInviteCode | | `submit-org-invite-code` | submitOrgInviteCode | -| `freeze-objects` | freezeObjects | -| `init-empty-repo` | initEmptyRepo | +| `check-password` | checkPassword | | `confirm-delete-account` | confirmDeleteAccount | | `set-password` | setPassword | | `verify-email` | verifyEmail | -| `remove-node-at-path` | removeNodeAtPath | +| `freeze-objects` | freezeObjects | +| `init-empty-repo` | initEmptyRepo | +| `construct-blueprint` | Executes a draft blueprint definition. Four phases: (1) create tables with nodes[], fields, and policies[], (2) create relations between tables, (3) create indexes on table fields (supports BTREE, HNSW, GIN, GIST, BM25, etc.), (4) create full-text search configurations with weighted multi-field TSVector support. nodes[] entries can be strings or {$type, data} objects. Relations use $type for relation_type with junction config in data. Indexes reference table_ref + column name(s) and are resolved to field_ids. Full-text searches reference table_ref + tsvector field + source fields with weights/langs. Builds a ref_map of local ref names to created table UUIDs. Updates blueprint status to constructed (or failed with error_details). Returns the ref_map. | | `reset-password` | resetPassword | -| `bootstrap-user` | bootstrapUser | -| `set-field-order` | setFieldOrder | +| `remove-node-at-path` | removeNodeAtPath | | `set-data-at-path` | setDataAtPath | | `set-props-and-commit` | setPropsAndCommit | +| `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. | | `provision-database-with-user` | provisionDatabaseWithUser | +| `bootstrap-user` | bootstrapUser | +| `set-field-order` | setFieldOrder | | `insert-node-at-path` | insertNodeAtPath | | `update-node-at-path` | updateNodeAtPath | | `set-and-commit` | setAndCommit | @@ -191,8 +200,8 @@ Example usage: | `sign-in` | signIn | | `sign-up` | signUp | | `one-time-token` | oneTimeToken | -| `forgot-password` | forgotPassword | | `send-verification-email` | sendVerificationEmail | +| `forgot-password` | forgotPassword | | `verify-password` | verifyPassword | | `verify-totp` | verifyTotp | @@ -237,6 +246,27 @@ Variables are scoped to the active context and stored at `~/.csdk/config/`. ## Table Commands +### `get-all-record` + +CRUD operations for GetAllRecord records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all getAllRecord records | +| `get` | Get a getAllRecord by id | +| `create` | Create a new getAllRecord | +| `update` | Update an existing getAllRecord | +| `delete` | Delete a getAllRecord | + +**Fields:** + +| Field | Type | +|-------|------| +| `path` | String | +| `data` | JSON | + +**Required create fields:** `path`, `data` + ### `org-get-managers-record` CRUD operations for OrgGetManagersRecord records. @@ -279,27 +309,6 @@ CRUD operations for OrgGetSubordinatesRecord records. **Required create fields:** `userId`, `depth` -### `get-all-record` - -CRUD operations for GetAllRecord records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all getAllRecord records | -| `get` | Get a getAllRecord by id | -| `create` | Create a new getAllRecord | -| `update` | Update an existing getAllRecord | -| `delete` | Delete a getAllRecord | - -**Fields:** - -| Field | Type | -|-------|------| -| `path` | String | -| `data` | JSON | - -**Required create fields:** `path`, `data` - ### `object` CRUD operations for Object records. @@ -325,7 +334,7 @@ CRUD operations for Object records. | `frzn` | Boolean | | `createdAt` | Datetime | -**Required create fields:** `hashUuid`, `databaseId` +**Required create fields:** `databaseId` **Optional create fields (backend defaults):** `kids`, `ktree`, `data`, `frzn` ### `app-permission` @@ -349,10 +358,7 @@ CRUD operations for AppPermission records. | `bitnum` | Int | | `bitstr` | BitString | | `description` | String | -| `descriptionTrgmSimilarity` | Float | -| `searchScore` | Float | -**Required create fields:** `descriptionTrgmSimilarity`, `searchScore` **Optional create fields (backend defaults):** `name`, `bitnum`, `bitstr`, `description` ### `org-permission` @@ -376,10 +382,7 @@ CRUD operations for OrgPermission records. | `bitnum` | Int | | `bitstr` | BitString | | `description` | String | -| `descriptionTrgmSimilarity` | Float | -| `searchScore` | Float | -**Required create fields:** `descriptionTrgmSimilarity`, `searchScore` **Optional create fields (backend defaults):** `name`, `bitnum`, `bitstr`, `description` ### `app-level-requirement` @@ -406,10 +409,8 @@ CRUD operations for AppLevelRequirement records. | `priority` | Int | | `createdAt` | Datetime | | `updatedAt` | Datetime | -| `descriptionTrgmSimilarity` | Float | -| `searchScore` | Float | -**Required create fields:** `name`, `level`, `descriptionTrgmSimilarity`, `searchScore` +**Required create fields:** `name`, `level` **Optional create fields (backend defaults):** `description`, `requiredCount`, `priority` ### `database` @@ -436,12 +437,7 @@ CRUD operations for Database records. | `hash` | UUID | | `createdAt` | Datetime | | `updatedAt` | Datetime | -| `schemaHashTrgmSimilarity` | Float | -| `nameTrgmSimilarity` | Float | -| `labelTrgmSimilarity` | Float | -| `searchScore` | Float | -**Required create fields:** `schemaHashTrgmSimilarity`, `nameTrgmSimilarity`, `labelTrgmSimilarity`, `searchScore` **Optional create fields (backend defaults):** `ownerId`, `schemaHash`, `name`, `label`, `hash` ### `schema` @@ -474,14 +470,8 @@ CRUD operations for Schema records. | `isPublic` | Boolean | | `createdAt` | Datetime | | `updatedAt` | Datetime | -| `nameTrgmSimilarity` | Float | -| `schemaNameTrgmSimilarity` | Float | -| `labelTrgmSimilarity` | Float | -| `descriptionTrgmSimilarity` | Float | -| `moduleTrgmSimilarity` | Float | -| `searchScore` | Float | -**Required create fields:** `databaseId`, `name`, `schemaName`, `nameTrgmSimilarity`, `schemaNameTrgmSimilarity`, `labelTrgmSimilarity`, `descriptionTrgmSimilarity`, `moduleTrgmSimilarity`, `searchScore` +**Required create fields:** `databaseId`, `name`, `schemaName` **Optional create fields (backend defaults):** `label`, `description`, `smartTags`, `category`, `module`, `scope`, `tags`, `isPublic` ### `table` @@ -519,15 +509,8 @@ CRUD operations for Table records. | `inheritsId` | UUID | | `createdAt` | Datetime | | `updatedAt` | Datetime | -| `nameTrgmSimilarity` | Float | -| `labelTrgmSimilarity` | Float | -| `descriptionTrgmSimilarity` | Float | -| `moduleTrgmSimilarity` | Float | -| `pluralNameTrgmSimilarity` | Float | -| `singularNameTrgmSimilarity` | Float | -| `searchScore` | Float | -**Required create fields:** `schemaId`, `name`, `nameTrgmSimilarity`, `labelTrgmSimilarity`, `descriptionTrgmSimilarity`, `moduleTrgmSimilarity`, `pluralNameTrgmSimilarity`, `singularNameTrgmSimilarity`, `searchScore` +**Required create fields:** `schemaId`, `name` **Optional create fields (backend defaults):** `databaseId`, `label`, `description`, `smartTags`, `category`, `module`, `scope`, `useRls`, `timestamps`, `peoplestamps`, `pluralName`, `singularName`, `tags`, `inheritsId` ### `check-constraint` @@ -560,12 +543,8 @@ CRUD operations for CheckConstraint records. | `tags` | String | | `createdAt` | Datetime | | `updatedAt` | Datetime | -| `nameTrgmSimilarity` | Float | -| `typeTrgmSimilarity` | Float | -| `moduleTrgmSimilarity` | Float | -| `searchScore` | Float | -**Required create fields:** `tableId`, `fieldIds`, `nameTrgmSimilarity`, `typeTrgmSimilarity`, `moduleTrgmSimilarity`, `searchScore` +**Required create fields:** `tableId`, `fieldIds` **Optional create fields (backend defaults):** `databaseId`, `name`, `type`, `expr`, `smartTags`, `category`, `module`, `scope`, `tags` ### `field` @@ -592,6 +571,7 @@ CRUD operations for Field records. | `description` | String | | `smartTags` | JSON | | `isRequired` | Boolean | +| `apiRequired` | Boolean | | `defaultValue` | String | | `defaultValueAst` | JSON | | `isHidden` | Boolean | @@ -608,16 +588,9 @@ CRUD operations for Field records. | `scope` | Int | | `createdAt` | Datetime | | `updatedAt` | Datetime | -| `nameTrgmSimilarity` | Float | -| `labelTrgmSimilarity` | Float | -| `descriptionTrgmSimilarity` | Float | -| `defaultValueTrgmSimilarity` | Float | -| `regexpTrgmSimilarity` | Float | -| `moduleTrgmSimilarity` | Float | -| `searchScore` | Float | -**Required create fields:** `tableId`, `name`, `type`, `nameTrgmSimilarity`, `labelTrgmSimilarity`, `descriptionTrgmSimilarity`, `defaultValueTrgmSimilarity`, `regexpTrgmSimilarity`, `moduleTrgmSimilarity`, `searchScore` -**Optional create fields (backend defaults):** `databaseId`, `label`, `description`, `smartTags`, `isRequired`, `defaultValue`, `defaultValueAst`, `isHidden`, `fieldOrder`, `regexp`, `chk`, `chkExpr`, `min`, `max`, `tags`, `category`, `module`, `scope` +**Required create fields:** `tableId`, `name`, `type` +**Optional create fields (backend defaults):** `databaseId`, `label`, `description`, `smartTags`, `isRequired`, `apiRequired`, `defaultValue`, `defaultValueAst`, `isHidden`, `fieldOrder`, `regexp`, `chk`, `chkExpr`, `min`, `max`, `tags`, `category`, `module`, `scope` ### `foreign-key-constraint` @@ -653,15 +626,8 @@ CRUD operations for ForeignKeyConstraint records. | `tags` | String | | `createdAt` | Datetime | | `updatedAt` | Datetime | -| `nameTrgmSimilarity` | Float | -| `descriptionTrgmSimilarity` | Float | -| `typeTrgmSimilarity` | Float | -| `deleteActionTrgmSimilarity` | Float | -| `updateActionTrgmSimilarity` | Float | -| `moduleTrgmSimilarity` | Float | -| `searchScore` | Float | -**Required create fields:** `tableId`, `fieldIds`, `refTableId`, `refFieldIds`, `nameTrgmSimilarity`, `descriptionTrgmSimilarity`, `typeTrgmSimilarity`, `deleteActionTrgmSimilarity`, `updateActionTrgmSimilarity`, `moduleTrgmSimilarity`, `searchScore` +**Required create fields:** `tableId`, `fieldIds`, `refTableId`, `refFieldIds` **Optional create fields (backend defaults):** `databaseId`, `name`, `description`, `smartTags`, `type`, `deleteAction`, `updateAction`, `category`, `module`, `scope`, `tags` ### `full-text-search` @@ -728,12 +694,8 @@ CRUD operations for Index records. | `tags` | String | | `createdAt` | Datetime | | `updatedAt` | Datetime | -| `nameTrgmSimilarity` | Float | -| `accessMethodTrgmSimilarity` | Float | -| `moduleTrgmSimilarity` | Float | -| `searchScore` | Float | -**Required create fields:** `databaseId`, `tableId`, `nameTrgmSimilarity`, `accessMethodTrgmSimilarity`, `moduleTrgmSimilarity`, `searchScore` +**Required create fields:** `databaseId`, `tableId` **Optional create fields (backend defaults):** `name`, `fieldIds`, `includeFieldIds`, `accessMethod`, `indexParams`, `whereClause`, `isUnique`, `options`, `opClasses`, `smartTags`, `category`, `module`, `scope`, `tags` ### `policy` @@ -769,14 +731,8 @@ CRUD operations for Policy records. | `tags` | String | | `createdAt` | Datetime | | `updatedAt` | Datetime | -| `nameTrgmSimilarity` | Float | -| `granteeNameTrgmSimilarity` | Float | -| `privilegeTrgmSimilarity` | Float | -| `policyTypeTrgmSimilarity` | Float | -| `moduleTrgmSimilarity` | Float | -| `searchScore` | Float | -**Required create fields:** `tableId`, `nameTrgmSimilarity`, `granteeNameTrgmSimilarity`, `privilegeTrgmSimilarity`, `policyTypeTrgmSimilarity`, `moduleTrgmSimilarity`, `searchScore` +**Required create fields:** `tableId` **Optional create fields (backend defaults):** `databaseId`, `name`, `granteeName`, `privilege`, `permissive`, `disabled`, `policyType`, `data`, `smartTags`, `category`, `module`, `scope`, `tags` ### `primary-key-constraint` @@ -808,12 +764,8 @@ CRUD operations for PrimaryKeyConstraint records. | `tags` | String | | `createdAt` | Datetime | | `updatedAt` | Datetime | -| `nameTrgmSimilarity` | Float | -| `typeTrgmSimilarity` | Float | -| `moduleTrgmSimilarity` | Float | -| `searchScore` | Float | -**Required create fields:** `tableId`, `fieldIds`, `nameTrgmSimilarity`, `typeTrgmSimilarity`, `moduleTrgmSimilarity`, `searchScore` +**Required create fields:** `tableId`, `fieldIds` **Optional create fields (backend defaults):** `databaseId`, `name`, `type`, `smartTags`, `category`, `module`, `scope`, `tags` ### `table-grant` @@ -841,11 +793,8 @@ CRUD operations for TableGrant records. | `isGrant` | Boolean | | `createdAt` | Datetime | | `updatedAt` | Datetime | -| `privilegeTrgmSimilarity` | Float | -| `granteeNameTrgmSimilarity` | Float | -| `searchScore` | Float | -**Required create fields:** `tableId`, `privilege`, `granteeName`, `privilegeTrgmSimilarity`, `granteeNameTrgmSimilarity`, `searchScore` +**Required create fields:** `tableId`, `privilege`, `granteeName` **Optional create fields (backend defaults):** `databaseId`, `fieldIds`, `isGrant` ### `trigger` @@ -877,13 +826,8 @@ CRUD operations for Trigger records. | `tags` | String | | `createdAt` | Datetime | | `updatedAt` | Datetime | -| `nameTrgmSimilarity` | Float | -| `eventTrgmSimilarity` | Float | -| `functionNameTrgmSimilarity` | Float | -| `moduleTrgmSimilarity` | Float | -| `searchScore` | Float | -**Required create fields:** `tableId`, `name`, `nameTrgmSimilarity`, `eventTrgmSimilarity`, `functionNameTrgmSimilarity`, `moduleTrgmSimilarity`, `searchScore` +**Required create fields:** `tableId`, `name` **Optional create fields (backend defaults):** `databaseId`, `event`, `functionName`, `smartTags`, `category`, `module`, `scope`, `tags` ### `unique-constraint` @@ -916,13 +860,8 @@ CRUD operations for UniqueConstraint records. | `tags` | String | | `createdAt` | Datetime | | `updatedAt` | Datetime | -| `nameTrgmSimilarity` | Float | -| `descriptionTrgmSimilarity` | Float | -| `typeTrgmSimilarity` | Float | -| `moduleTrgmSimilarity` | Float | -| `searchScore` | Float | -**Required create fields:** `tableId`, `fieldIds`, `nameTrgmSimilarity`, `descriptionTrgmSimilarity`, `typeTrgmSimilarity`, `moduleTrgmSimilarity`, `searchScore` +**Required create fields:** `tableId`, `fieldIds` **Optional create fields (backend defaults):** `databaseId`, `name`, `description`, `smartTags`, `type`, `category`, `module`, `scope`, `tags` ### `view` @@ -957,13 +896,8 @@ CRUD operations for View records. | `module` | String | | `scope` | Int | | `tags` | String | -| `nameTrgmSimilarity` | Float | -| `viewTypeTrgmSimilarity` | Float | -| `filterTypeTrgmSimilarity` | Float | -| `moduleTrgmSimilarity` | Float | -| `searchScore` | Float | -**Required create fields:** `schemaId`, `name`, `viewType`, `nameTrgmSimilarity`, `viewTypeTrgmSimilarity`, `filterTypeTrgmSimilarity`, `moduleTrgmSimilarity`, `searchScore` +**Required create fields:** `schemaId`, `name`, `viewType` **Optional create fields (backend defaults):** `databaseId`, `tableId`, `data`, `filterType`, `filterData`, `securityInvoker`, `isReadOnly`, `smartTags`, `category`, `module`, `scope`, `tags` ### `view-table` @@ -1013,11 +947,8 @@ CRUD operations for ViewGrant records. | `privilege` | String | | `withGrantOption` | Boolean | | `isGrant` | Boolean | -| `granteeNameTrgmSimilarity` | Float | -| `privilegeTrgmSimilarity` | Float | -| `searchScore` | Float | -**Required create fields:** `viewId`, `granteeName`, `privilege`, `granteeNameTrgmSimilarity`, `privilegeTrgmSimilarity`, `searchScore` +**Required create fields:** `viewId`, `granteeName`, `privilege` **Optional create fields (backend defaults):** `databaseId`, `withGrantOption`, `isGrant` ### `view-rule` @@ -1042,14 +973,48 @@ CRUD operations for ViewRule records. | `name` | String | | `event` | String | | `action` | String | -| `nameTrgmSimilarity` | Float | -| `eventTrgmSimilarity` | Float | -| `actionTrgmSimilarity` | Float | -| `searchScore` | Float | -**Required create fields:** `viewId`, `name`, `event`, `nameTrgmSimilarity`, `eventTrgmSimilarity`, `actionTrgmSimilarity`, `searchScore` +**Required create fields:** `viewId`, `name`, `event` **Optional create fields (backend defaults):** `databaseId`, `action` +### `embedding-chunk` + +CRUD operations for EmbeddingChunk records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all embeddingChunk records | +| `get` | Get a embeddingChunk by id | +| `create` | Create a new embeddingChunk | +| `update` | Update an existing embeddingChunk | +| `delete` | Delete a embeddingChunk | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `tableId` | UUID | +| `embeddingFieldId` | UUID | +| `chunksTableId` | UUID | +| `chunksTableName` | String | +| `contentFieldName` | String | +| `dimensions` | Int | +| `metric` | String | +| `chunkSize` | Int | +| `chunkOverlap` | Int | +| `chunkStrategy` | String | +| `metadataFields` | JSON | +| `enqueueChunkingJob` | Boolean | +| `chunkingTaskName` | String | +| `parentFkFieldId` | UUID | +| `createdAt` | Datetime | +| `updatedAt` | Datetime | + +**Required create fields:** `tableId` +**Optional create fields (backend defaults):** `databaseId`, `embeddingFieldId`, `chunksTableId`, `chunksTableName`, `contentFieldName`, `dimensions`, `metric`, `chunkSize`, `chunkOverlap`, `chunkStrategy`, `metadataFields`, `enqueueChunkingJob`, `chunkingTaskName`, `parentFkFieldId` + ### `table-template-module` CRUD operations for TableTemplateModule records. @@ -1075,11 +1040,8 @@ CRUD operations for TableTemplateModule records. | `tableName` | String | | `nodeType` | String | | `data` | JSON | -| `tableNameTrgmSimilarity` | Float | -| `nodeTypeTrgmSimilarity` | Float | -| `searchScore` | Float | -**Required create fields:** `databaseId`, `tableName`, `nodeType`, `tableNameTrgmSimilarity`, `nodeTypeTrgmSimilarity`, `searchScore` +**Required create fields:** `databaseId`, `tableName`, `nodeType` **Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `tableId`, `ownerTableId`, `data` ### `secure-table-provision` @@ -1116,14 +1078,8 @@ CRUD operations for SecureTableProvision records. | `policyName` | String | | `policyData` | JSON | | `outFields` | UUID | -| `tableNameTrgmSimilarity` | Float | -| `nodeTypeTrgmSimilarity` | Float | -| `policyTypeTrgmSimilarity` | Float | -| `policyRoleTrgmSimilarity` | Float | -| `policyNameTrgmSimilarity` | Float | -| `searchScore` | Float | -**Required create fields:** `databaseId`, `tableNameTrgmSimilarity`, `nodeTypeTrgmSimilarity`, `policyTypeTrgmSimilarity`, `policyRoleTrgmSimilarity`, `policyNameTrgmSimilarity`, `searchScore` +**Required create fields:** `databaseId` **Optional create fields (backend defaults):** `schemaId`, `tableId`, `tableName`, `nodeType`, `useRls`, `nodeData`, `fields`, `grantRoles`, `grantPrivileges`, `policyType`, `policyPrivileges`, `policyRole`, `policyPermissive`, `policyName`, `policyData`, `outFields` ### `relation-provision` @@ -1150,12 +1106,15 @@ CRUD operations for RelationProvision records. | `fieldName` | String | | `deleteAction` | String | | `isRequired` | Boolean | +| `apiRequired` | Boolean | | `junctionTableId` | UUID | | `junctionTableName` | String | | `junctionSchemaId` | UUID | | `sourceFieldName` | String | | `targetFieldName` | String | | `useCompositeKey` | Boolean | +| `createIndex` | Boolean | +| `exposeInApi` | Boolean | | `nodeType` | String | | `nodeData` | JSON | | `grantRoles` | String | @@ -1170,20 +1129,9 @@ CRUD operations for RelationProvision records. | `outJunctionTableId` | UUID | | `outSourceFieldId` | UUID | | `outTargetFieldId` | UUID | -| `relationTypeTrgmSimilarity` | Float | -| `fieldNameTrgmSimilarity` | Float | -| `deleteActionTrgmSimilarity` | Float | -| `junctionTableNameTrgmSimilarity` | Float | -| `sourceFieldNameTrgmSimilarity` | Float | -| `targetFieldNameTrgmSimilarity` | Float | -| `nodeTypeTrgmSimilarity` | Float | -| `policyTypeTrgmSimilarity` | Float | -| `policyRoleTrgmSimilarity` | Float | -| `policyNameTrgmSimilarity` | Float | -| `searchScore` | Float | -**Required create fields:** `databaseId`, `relationType`, `sourceTableId`, `targetTableId`, `relationTypeTrgmSimilarity`, `fieldNameTrgmSimilarity`, `deleteActionTrgmSimilarity`, `junctionTableNameTrgmSimilarity`, `sourceFieldNameTrgmSimilarity`, `targetFieldNameTrgmSimilarity`, `nodeTypeTrgmSimilarity`, `policyTypeTrgmSimilarity`, `policyRoleTrgmSimilarity`, `policyNameTrgmSimilarity`, `searchScore` -**Optional create fields (backend defaults):** `fieldName`, `deleteAction`, `isRequired`, `junctionTableId`, `junctionTableName`, `junctionSchemaId`, `sourceFieldName`, `targetFieldName`, `useCompositeKey`, `nodeType`, `nodeData`, `grantRoles`, `grantPrivileges`, `policyType`, `policyPrivileges`, `policyRole`, `policyPermissive`, `policyName`, `policyData`, `outFieldId`, `outJunctionTableId`, `outSourceFieldId`, `outTargetFieldId` +**Required create fields:** `databaseId`, `relationType`, `sourceTableId`, `targetTableId` +**Optional create fields (backend defaults):** `fieldName`, `deleteAction`, `isRequired`, `apiRequired`, `junctionTableId`, `junctionTableName`, `junctionSchemaId`, `sourceFieldName`, `targetFieldName`, `useCompositeKey`, `createIndex`, `exposeInApi`, `nodeType`, `nodeData`, `grantRoles`, `grantPrivileges`, `policyType`, `policyPrivileges`, `policyRole`, `policyPermissive`, `policyName`, `policyData`, `outFieldId`, `outJunctionTableId`, `outSourceFieldId`, `outTargetFieldId` ### `schema-grant` @@ -1207,10 +1155,8 @@ CRUD operations for SchemaGrant records. | `granteeName` | String | | `createdAt` | Datetime | | `updatedAt` | Datetime | -| `granteeNameTrgmSimilarity` | Float | -| `searchScore` | Float | -**Required create fields:** `schemaId`, `granteeName`, `granteeNameTrgmSimilarity`, `searchScore` +**Required create fields:** `schemaId`, `granteeName` **Optional create fields (backend defaults):** `databaseId` ### `default-privilege` @@ -1236,14 +1182,42 @@ CRUD operations for DefaultPrivilege records. | `privilege` | String | | `granteeName` | String | | `isGrant` | Boolean | -| `objectTypeTrgmSimilarity` | Float | -| `privilegeTrgmSimilarity` | Float | -| `granteeNameTrgmSimilarity` | Float | -| `searchScore` | Float | -**Required create fields:** `schemaId`, `objectType`, `privilege`, `granteeName`, `objectTypeTrgmSimilarity`, `privilegeTrgmSimilarity`, `granteeNameTrgmSimilarity`, `searchScore` +**Required create fields:** `schemaId`, `objectType`, `privilege`, `granteeName` **Optional create fields (backend defaults):** `databaseId`, `isGrant` +### `enum` + +CRUD operations for Enum records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all enum records | +| `get` | Get a enum by id | +| `create` | Create a new enum | +| `update` | Update an existing enum | +| `delete` | Delete a enum | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `schemaId` | UUID | +| `name` | String | +| `label` | String | +| `description` | String | +| `values` | String | +| `smartTags` | JSON | +| `category` | ObjectCategory | +| `module` | String | +| `scope` | Int | +| `tags` | String | + +**Required create fields:** `databaseId`, `schemaId`, `name` +**Optional create fields (backend defaults):** `label`, `description`, `values`, `smartTags`, `category`, `module`, `scope`, `tags` + ### `api-schema` CRUD operations for ApiSchema records. @@ -1288,10 +1262,8 @@ CRUD operations for ApiModule records. | `apiId` | UUID | | `name` | String | | `data` | JSON | -| `nameTrgmSimilarity` | Float | -| `searchScore` | Float | -**Required create fields:** `databaseId`, `apiId`, `name`, `data`, `nameTrgmSimilarity`, `searchScore` +**Required create fields:** `databaseId`, `apiId`, `name`, `data` ### `domain` @@ -1341,11 +1313,8 @@ CRUD operations for SiteMetadatum records. | `title` | String | | `description` | String | | `ogImage` | Image | -| `titleTrgmSimilarity` | Float | -| `descriptionTrgmSimilarity` | Float | -| `searchScore` | Float | -**Required create fields:** `databaseId`, `siteId`, `titleTrgmSimilarity`, `descriptionTrgmSimilarity`, `searchScore` +**Required create fields:** `databaseId`, `siteId` **Optional create fields (backend defaults):** `title`, `description`, `ogImage` ### `site-module` @@ -1369,10 +1338,8 @@ CRUD operations for SiteModule records. | `siteId` | UUID | | `name` | String | | `data` | JSON | -| `nameTrgmSimilarity` | Float | -| `searchScore` | Float | -**Required create fields:** `databaseId`, `siteId`, `name`, `data`, `nameTrgmSimilarity`, `searchScore` +**Required create fields:** `databaseId`, `siteId`, `name`, `data` ### `site-theme` @@ -1419,13 +1386,44 @@ CRUD operations for TriggerFunction records. | `code` | String | | `createdAt` | Datetime | | `updatedAt` | Datetime | -| `nameTrgmSimilarity` | Float | -| `codeTrgmSimilarity` | Float | -| `searchScore` | Float | -**Required create fields:** `databaseId`, `name`, `nameTrgmSimilarity`, `codeTrgmSimilarity`, `searchScore` +**Required create fields:** `databaseId`, `name` **Optional create fields (backend defaults):** `code` +### `database-transfer` + +CRUD operations for DatabaseTransfer records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all databaseTransfer records | +| `get` | Get a databaseTransfer by id | +| `create` | Create a new databaseTransfer | +| `update` | Update an existing databaseTransfer | +| `delete` | Delete a databaseTransfer | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `targetOwnerId` | UUID | +| `sourceApproved` | Boolean | +| `targetApproved` | Boolean | +| `sourceApprovedAt` | Datetime | +| `targetApprovedAt` | Datetime | +| `status` | String | +| `initiatedBy` | UUID | +| `notes` | String | +| `expiresAt` | Datetime | +| `createdAt` | Datetime | +| `updatedAt` | Datetime | +| `completedAt` | Datetime | + +**Required create fields:** `databaseId`, `targetOwnerId`, `initiatedBy` +**Optional create fields (backend defaults):** `sourceApproved`, `targetApproved`, `sourceApprovedAt`, `targetApprovedAt`, `status`, `notes`, `expiresAt`, `completedAt` + ### `api` CRUD operations for Api records. @@ -1449,13 +1447,8 @@ CRUD operations for Api records. | `roleName` | String | | `anonRole` | String | | `isPublic` | Boolean | -| `nameTrgmSimilarity` | Float | -| `dbnameTrgmSimilarity` | Float | -| `roleNameTrgmSimilarity` | Float | -| `anonRoleTrgmSimilarity` | Float | -| `searchScore` | Float | -**Required create fields:** `databaseId`, `name`, `nameTrgmSimilarity`, `dbnameTrgmSimilarity`, `roleNameTrgmSimilarity`, `anonRoleTrgmSimilarity`, `searchScore` +**Required create fields:** `databaseId`, `name` **Optional create fields (backend defaults):** `dbname`, `roleName`, `anonRole`, `isPublic` ### `site` @@ -1483,12 +1476,8 @@ CRUD operations for Site records. | `appleTouchIcon` | Image | | `logo` | Image | | `dbname` | String | -| `titleTrgmSimilarity` | Float | -| `descriptionTrgmSimilarity` | Float | -| `dbnameTrgmSimilarity` | Float | -| `searchScore` | Float | -**Required create fields:** `databaseId`, `titleTrgmSimilarity`, `descriptionTrgmSimilarity`, `dbnameTrgmSimilarity`, `searchScore` +**Required create fields:** `databaseId` **Optional create fields (backend defaults):** `title`, `description`, `ogImage`, `favicon`, `appleTouchIcon`, `logo`, `dbname` ### `app` @@ -1516,12 +1505,8 @@ CRUD operations for App records. | `appStoreId` | String | | `appIdPrefix` | String | | `playStoreLink` | Url | -| `nameTrgmSimilarity` | Float | -| `appStoreIdTrgmSimilarity` | Float | -| `appIdPrefixTrgmSimilarity` | Float | -| `searchScore` | Float | -**Required create fields:** `databaseId`, `siteId`, `nameTrgmSimilarity`, `appStoreIdTrgmSimilarity`, `appIdPrefixTrgmSimilarity`, `searchScore` +**Required create fields:** `databaseId`, `siteId` **Optional create fields (backend defaults):** `name`, `appImage`, `appStoreLink`, `appStoreId`, `appIdPrefix`, `playStoreLink` ### `connected-accounts-module` @@ -1547,10 +1532,8 @@ CRUD operations for ConnectedAccountsModule records. | `tableId` | UUID | | `ownerTableId` | UUID | | `tableName` | String | -| `tableNameTrgmSimilarity` | Float | -| `searchScore` | Float | -**Required create fields:** `databaseId`, `tableName`, `tableNameTrgmSimilarity`, `searchScore` +**Required create fields:** `databaseId`, `tableName` **Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `tableId`, `ownerTableId` ### `crypto-addresses-module` @@ -1577,11 +1560,8 @@ CRUD operations for CryptoAddressesModule records. | `ownerTableId` | UUID | | `tableName` | String | | `cryptoNetwork` | String | -| `tableNameTrgmSimilarity` | Float | -| `cryptoNetworkTrgmSimilarity` | Float | -| `searchScore` | Float | -**Required create fields:** `databaseId`, `tableName`, `tableNameTrgmSimilarity`, `cryptoNetworkTrgmSimilarity`, `searchScore` +**Required create fields:** `databaseId`, `tableName` **Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `tableId`, `ownerTableId`, `cryptoNetwork` ### `crypto-auth-module` @@ -1614,15 +1594,8 @@ CRUD operations for CryptoAuthModule records. | `signInRecordFailure` | String | | `signUpWithKey` | String | | `signInWithChallenge` | String | -| `userFieldTrgmSimilarity` | Float | -| `cryptoNetworkTrgmSimilarity` | Float | -| `signInRequestChallengeTrgmSimilarity` | Float | -| `signInRecordFailureTrgmSimilarity` | Float | -| `signUpWithKeyTrgmSimilarity` | Float | -| `signInWithChallengeTrgmSimilarity` | Float | -| `searchScore` | Float | -**Required create fields:** `databaseId`, `userField`, `userFieldTrgmSimilarity`, `cryptoNetworkTrgmSimilarity`, `signInRequestChallengeTrgmSimilarity`, `signInRecordFailureTrgmSimilarity`, `signUpWithKeyTrgmSimilarity`, `signInWithChallengeTrgmSimilarity`, `searchScore` +**Required create fields:** `databaseId`, `userField` **Optional create fields (backend defaults):** `schemaId`, `usersTableId`, `secretsTableId`, `sessionsTableId`, `sessionCredentialsTableId`, `addressesTableId`, `cryptoNetwork`, `signInRequestChallenge`, `signInRecordFailure`, `signUpWithKey`, `signInWithChallenge` ### `default-ids-module` @@ -1674,10 +1647,8 @@ CRUD operations for DenormalizedTableField records. | `updateDefaults` | Boolean | | `funcName` | String | | `funcOrder` | Int | -| `funcNameTrgmSimilarity` | Float | -| `searchScore` | Float | -**Required create fields:** `databaseId`, `tableId`, `fieldId`, `refTableId`, `refFieldId`, `funcNameTrgmSimilarity`, `searchScore` +**Required create fields:** `databaseId`, `tableId`, `fieldId`, `refTableId`, `refFieldId` **Optional create fields (backend defaults):** `setIds`, `refIds`, `useUpdates`, `updateDefaults`, `funcName`, `funcOrder` ### `emails-module` @@ -1703,10 +1674,8 @@ CRUD operations for EmailsModule records. | `tableId` | UUID | | `ownerTableId` | UUID | | `tableName` | String | -| `tableNameTrgmSimilarity` | Float | -| `searchScore` | Float | -**Required create fields:** `databaseId`, `tableName`, `tableNameTrgmSimilarity`, `searchScore` +**Required create fields:** `databaseId`, `tableName` **Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `tableId`, `ownerTableId` ### `encrypted-secrets-module` @@ -1730,10 +1699,8 @@ CRUD operations for EncryptedSecretsModule records. | `schemaId` | UUID | | `tableId` | UUID | | `tableName` | String | -| `tableNameTrgmSimilarity` | Float | -| `searchScore` | Float | -**Required create fields:** `databaseId`, `tableNameTrgmSimilarity`, `searchScore` +**Required create fields:** `databaseId` **Optional create fields (backend defaults):** `schemaId`, `tableId`, `tableName` ### `field-module` @@ -1761,10 +1728,8 @@ CRUD operations for FieldModule records. | `data` | JSON | | `triggers` | String | | `functions` | String | -| `nodeTypeTrgmSimilarity` | Float | -| `searchScore` | Float | -**Required create fields:** `databaseId`, `nodeType`, `nodeTypeTrgmSimilarity`, `searchScore` +**Required create fields:** `databaseId`, `nodeType` **Optional create fields (backend defaults):** `privateSchemaId`, `tableId`, `fieldId`, `data`, `triggers`, `functions` ### `invites-module` @@ -1797,13 +1762,8 @@ CRUD operations for InvitesModule records. | `prefix` | String | | `membershipType` | Int | | `entityTableId` | UUID | -| `invitesTableNameTrgmSimilarity` | Float | -| `claimedInvitesTableNameTrgmSimilarity` | Float | -| `submitInviteCodeFunctionTrgmSimilarity` | Float | -| `prefixTrgmSimilarity` | Float | -| `searchScore` | Float | -**Required create fields:** `databaseId`, `membershipType`, `invitesTableNameTrgmSimilarity`, `claimedInvitesTableNameTrgmSimilarity`, `submitInviteCodeFunctionTrgmSimilarity`, `prefixTrgmSimilarity`, `searchScore` +**Required create fields:** `databaseId`, `membershipType` **Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `emailsTableId`, `usersTableId`, `invitesTableId`, `claimedInvitesTableId`, `invitesTableName`, `claimedInvitesTableName`, `submitInviteCodeFunction`, `prefix`, `entityTableId` ### `levels-module` @@ -1848,24 +1808,8 @@ CRUD operations for LevelsModule records. | `membershipType` | Int | | `entityTableId` | UUID | | `actorTableId` | UUID | -| `stepsTableNameTrgmSimilarity` | Float | -| `achievementsTableNameTrgmSimilarity` | Float | -| `levelsTableNameTrgmSimilarity` | Float | -| `levelRequirementsTableNameTrgmSimilarity` | Float | -| `completedStepTrgmSimilarity` | Float | -| `incompletedStepTrgmSimilarity` | Float | -| `tgAchievementTrgmSimilarity` | Float | -| `tgAchievementToggleTrgmSimilarity` | Float | -| `tgAchievementToggleBooleanTrgmSimilarity` | Float | -| `tgAchievementBooleanTrgmSimilarity` | Float | -| `upsertAchievementTrgmSimilarity` | Float | -| `tgUpdateAchievementsTrgmSimilarity` | Float | -| `stepsRequiredTrgmSimilarity` | Float | -| `levelAchievedTrgmSimilarity` | Float | -| `prefixTrgmSimilarity` | Float | -| `searchScore` | Float | -**Required create fields:** `databaseId`, `membershipType`, `stepsTableNameTrgmSimilarity`, `achievementsTableNameTrgmSimilarity`, `levelsTableNameTrgmSimilarity`, `levelRequirementsTableNameTrgmSimilarity`, `completedStepTrgmSimilarity`, `incompletedStepTrgmSimilarity`, `tgAchievementTrgmSimilarity`, `tgAchievementToggleTrgmSimilarity`, `tgAchievementToggleBooleanTrgmSimilarity`, `tgAchievementBooleanTrgmSimilarity`, `upsertAchievementTrgmSimilarity`, `tgUpdateAchievementsTrgmSimilarity`, `stepsRequiredTrgmSimilarity`, `levelAchievedTrgmSimilarity`, `prefixTrgmSimilarity`, `searchScore` +**Required create fields:** `databaseId`, `membershipType` **Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `stepsTableId`, `stepsTableName`, `achievementsTableId`, `achievementsTableName`, `levelsTableId`, `levelsTableName`, `levelRequirementsTableId`, `levelRequirementsTableName`, `completedStep`, `incompletedStep`, `tgAchievement`, `tgAchievementToggle`, `tgAchievementToggleBoolean`, `tgAchievementBoolean`, `upsertAchievement`, `tgUpdateAchievements`, `stepsRequired`, `levelAchieved`, `prefix`, `entityTableId`, `actorTableId` ### `limits-module` @@ -1902,18 +1846,8 @@ CRUD operations for LimitsModule records. | `membershipType` | Int | | `entityTableId` | UUID | | `actorTableId` | UUID | -| `tableNameTrgmSimilarity` | Float | -| `defaultTableNameTrgmSimilarity` | Float | -| `limitIncrementFunctionTrgmSimilarity` | Float | -| `limitDecrementFunctionTrgmSimilarity` | Float | -| `limitIncrementTriggerTrgmSimilarity` | Float | -| `limitDecrementTriggerTrgmSimilarity` | Float | -| `limitUpdateTriggerTrgmSimilarity` | Float | -| `limitCheckFunctionTrgmSimilarity` | Float | -| `prefixTrgmSimilarity` | Float | -| `searchScore` | Float | -**Required create fields:** `databaseId`, `membershipType`, `tableNameTrgmSimilarity`, `defaultTableNameTrgmSimilarity`, `limitIncrementFunctionTrgmSimilarity`, `limitDecrementFunctionTrgmSimilarity`, `limitIncrementTriggerTrgmSimilarity`, `limitDecrementTriggerTrgmSimilarity`, `limitUpdateTriggerTrgmSimilarity`, `limitCheckFunctionTrgmSimilarity`, `prefixTrgmSimilarity`, `searchScore` +**Required create fields:** `databaseId`, `membershipType` **Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `tableId`, `tableName`, `defaultTableId`, `defaultTableName`, `limitIncrementFunction`, `limitDecrementFunction`, `limitIncrementTrigger`, `limitDecrementTrigger`, `limitUpdateTrigger`, `limitCheckFunction`, `prefix`, `entityTableId`, `actorTableId` ### `membership-types-module` @@ -1937,10 +1871,8 @@ CRUD operations for MembershipTypesModule records. | `schemaId` | UUID | | `tableId` | UUID | | `tableName` | String | -| `tableNameTrgmSimilarity` | Float | -| `searchScore` | Float | -**Required create fields:** `databaseId`, `tableNameTrgmSimilarity`, `searchScore` +**Required create fields:** `databaseId` **Optional create fields (backend defaults):** `schemaId`, `tableId`, `tableName` ### `memberships-module` @@ -1990,21 +1922,8 @@ CRUD operations for MembershipsModule records. | `entityIdsByMask` | String | | `entityIdsByPerm` | String | | `entityIdsFunction` | String | -| `membershipsTableNameTrgmSimilarity` | Float | -| `membersTableNameTrgmSimilarity` | Float | -| `membershipDefaultsTableNameTrgmSimilarity` | Float | -| `grantsTableNameTrgmSimilarity` | Float | -| `adminGrantsTableNameTrgmSimilarity` | Float | -| `ownerGrantsTableNameTrgmSimilarity` | Float | -| `prefixTrgmSimilarity` | Float | -| `actorMaskCheckTrgmSimilarity` | Float | -| `actorPermCheckTrgmSimilarity` | Float | -| `entityIdsByMaskTrgmSimilarity` | Float | -| `entityIdsByPermTrgmSimilarity` | Float | -| `entityIdsFunctionTrgmSimilarity` | Float | -| `searchScore` | Float | -**Required create fields:** `databaseId`, `membershipType`, `membershipsTableNameTrgmSimilarity`, `membersTableNameTrgmSimilarity`, `membershipDefaultsTableNameTrgmSimilarity`, `grantsTableNameTrgmSimilarity`, `adminGrantsTableNameTrgmSimilarity`, `ownerGrantsTableNameTrgmSimilarity`, `prefixTrgmSimilarity`, `actorMaskCheckTrgmSimilarity`, `actorPermCheckTrgmSimilarity`, `entityIdsByMaskTrgmSimilarity`, `entityIdsByPermTrgmSimilarity`, `entityIdsFunctionTrgmSimilarity`, `searchScore` +**Required create fields:** `databaseId`, `membershipType` **Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `membershipsTableId`, `membershipsTableName`, `membersTableId`, `membersTableName`, `membershipDefaultsTableId`, `membershipDefaultsTableName`, `grantsTableId`, `grantsTableName`, `actorTableId`, `limitsTableId`, `defaultLimitsTableId`, `permissionsTableId`, `defaultPermissionsTableId`, `sprtTableId`, `adminGrantsTableId`, `adminGrantsTableName`, `ownerGrantsTableId`, `ownerGrantsTableName`, `entityTableId`, `entityTableOwnerId`, `prefix`, `actorMaskCheck`, `actorPermCheck`, `entityIdsByMask`, `entityIdsByPerm`, `entityIdsFunction` ### `permissions-module` @@ -2040,16 +1959,8 @@ CRUD operations for PermissionsModule records. | `getMask` | String | | `getByMask` | String | | `getMaskByName` | String | -| `tableNameTrgmSimilarity` | Float | -| `defaultTableNameTrgmSimilarity` | Float | -| `prefixTrgmSimilarity` | Float | -| `getPaddedMaskTrgmSimilarity` | Float | -| `getMaskTrgmSimilarity` | Float | -| `getByMaskTrgmSimilarity` | Float | -| `getMaskByNameTrgmSimilarity` | Float | -| `searchScore` | Float | -**Required create fields:** `databaseId`, `membershipType`, `tableNameTrgmSimilarity`, `defaultTableNameTrgmSimilarity`, `prefixTrgmSimilarity`, `getPaddedMaskTrgmSimilarity`, `getMaskTrgmSimilarity`, `getByMaskTrgmSimilarity`, `getMaskByNameTrgmSimilarity`, `searchScore` +**Required create fields:** `databaseId`, `membershipType` **Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `tableId`, `tableName`, `defaultTableId`, `defaultTableName`, `bitlen`, `entityTableId`, `actorTableId`, `prefix`, `getPaddedMask`, `getMask`, `getByMask`, `getMaskByName` ### `phone-numbers-module` @@ -2075,10 +1986,8 @@ CRUD operations for PhoneNumbersModule records. | `tableId` | UUID | | `ownerTableId` | UUID | | `tableName` | String | -| `tableNameTrgmSimilarity` | Float | -| `searchScore` | Float | -**Required create fields:** `databaseId`, `tableName`, `tableNameTrgmSimilarity`, `searchScore` +**Required create fields:** `databaseId`, `tableName` **Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `tableId`, `ownerTableId` ### `profiles-module` @@ -2115,14 +2024,8 @@ CRUD operations for ProfilesModule records. | `permissionsTableId` | UUID | | `membershipsTableId` | UUID | | `prefix` | String | -| `tableNameTrgmSimilarity` | Float | -| `profilePermissionsTableNameTrgmSimilarity` | Float | -| `profileGrantsTableNameTrgmSimilarity` | Float | -| `profileDefinitionGrantsTableNameTrgmSimilarity` | Float | -| `prefixTrgmSimilarity` | Float | -| `searchScore` | Float | -**Required create fields:** `databaseId`, `membershipType`, `tableNameTrgmSimilarity`, `profilePermissionsTableNameTrgmSimilarity`, `profileGrantsTableNameTrgmSimilarity`, `profileDefinitionGrantsTableNameTrgmSimilarity`, `prefixTrgmSimilarity`, `searchScore` +**Required create fields:** `databaseId`, `membershipType` **Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `tableId`, `tableName`, `profilePermissionsTableId`, `profilePermissionsTableName`, `profileGrantsTableId`, `profileGrantsTableName`, `profileDefinitionGrantsTableId`, `profileDefinitionGrantsTableName`, `entityTableId`, `actorTableId`, `permissionsTableId`, `membershipsTableId`, `prefix` ### `secrets-module` @@ -2146,10 +2049,8 @@ CRUD operations for SecretsModule records. | `schemaId` | UUID | | `tableId` | UUID | | `tableName` | String | -| `tableNameTrgmSimilarity` | Float | -| `searchScore` | Float | -**Required create fields:** `databaseId`, `tableNameTrgmSimilarity`, `searchScore` +**Required create fields:** `databaseId` **Optional create fields (backend defaults):** `schemaId`, `tableId`, `tableName` ### `sessions-module` @@ -2179,12 +2080,8 @@ CRUD operations for SessionsModule records. | `sessionsTable` | String | | `sessionCredentialsTable` | String | | `authSettingsTable` | String | -| `sessionsTableTrgmSimilarity` | Float | -| `sessionCredentialsTableTrgmSimilarity` | Float | -| `authSettingsTableTrgmSimilarity` | Float | -| `searchScore` | Float | -**Required create fields:** `databaseId`, `sessionsTableTrgmSimilarity`, `sessionCredentialsTableTrgmSimilarity`, `authSettingsTableTrgmSimilarity`, `searchScore` +**Required create fields:** `databaseId` **Optional create fields (backend defaults):** `schemaId`, `sessionsTableId`, `sessionCredentialsTableId`, `authSettingsTableId`, `usersTableId`, `sessionsDefaultExpiration`, `sessionsTable`, `sessionCredentialsTable`, `authSettingsTable` ### `user-auth-module` @@ -2229,25 +2126,8 @@ CRUD operations for UserAuthModule records. | `signInOneTimeTokenFunction` | String | | `oneTimeTokenFunction` | String | | `extendTokenExpires` | String | -| `auditsTableNameTrgmSimilarity` | Float | -| `signInFunctionTrgmSimilarity` | Float | -| `signUpFunctionTrgmSimilarity` | Float | -| `signOutFunctionTrgmSimilarity` | Float | -| `setPasswordFunctionTrgmSimilarity` | Float | -| `resetPasswordFunctionTrgmSimilarity` | Float | -| `forgotPasswordFunctionTrgmSimilarity` | Float | -| `sendVerificationEmailFunctionTrgmSimilarity` | Float | -| `verifyEmailFunctionTrgmSimilarity` | Float | -| `verifyPasswordFunctionTrgmSimilarity` | Float | -| `checkPasswordFunctionTrgmSimilarity` | Float | -| `sendAccountDeletionEmailFunctionTrgmSimilarity` | Float | -| `deleteAccountFunctionTrgmSimilarity` | Float | -| `signInOneTimeTokenFunctionTrgmSimilarity` | Float | -| `oneTimeTokenFunctionTrgmSimilarity` | Float | -| `extendTokenExpiresTrgmSimilarity` | Float | -| `searchScore` | Float | -**Required create fields:** `databaseId`, `auditsTableNameTrgmSimilarity`, `signInFunctionTrgmSimilarity`, `signUpFunctionTrgmSimilarity`, `signOutFunctionTrgmSimilarity`, `setPasswordFunctionTrgmSimilarity`, `resetPasswordFunctionTrgmSimilarity`, `forgotPasswordFunctionTrgmSimilarity`, `sendVerificationEmailFunctionTrgmSimilarity`, `verifyEmailFunctionTrgmSimilarity`, `verifyPasswordFunctionTrgmSimilarity`, `checkPasswordFunctionTrgmSimilarity`, `sendAccountDeletionEmailFunctionTrgmSimilarity`, `deleteAccountFunctionTrgmSimilarity`, `signInOneTimeTokenFunctionTrgmSimilarity`, `oneTimeTokenFunctionTrgmSimilarity`, `extendTokenExpiresTrgmSimilarity`, `searchScore` +**Required create fields:** `databaseId` **Optional create fields (backend defaults):** `schemaId`, `emailsTableId`, `usersTableId`, `secretsTableId`, `encryptedTableId`, `sessionsTableId`, `sessionCredentialsTableId`, `auditsTableId`, `auditsTableName`, `signInFunction`, `signUpFunction`, `signOutFunction`, `setPasswordFunction`, `resetPasswordFunction`, `forgotPasswordFunction`, `sendVerificationEmailFunction`, `verifyEmailFunction`, `verifyPasswordFunction`, `checkPasswordFunction`, `sendAccountDeletionEmailFunction`, `deleteAccountFunction`, `signInOneTimeTokenFunction`, `oneTimeTokenFunction`, `extendTokenExpires` ### `users-module` @@ -2273,40 +2153,86 @@ CRUD operations for UsersModule records. | `tableName` | String | | `typeTableId` | UUID | | `typeTableName` | String | -| `tableNameTrgmSimilarity` | Float | -| `typeTableNameTrgmSimilarity` | Float | -| `searchScore` | Float | -**Required create fields:** `databaseId`, `tableNameTrgmSimilarity`, `typeTableNameTrgmSimilarity`, `searchScore` +**Required create fields:** `databaseId` **Optional create fields (backend defaults):** `schemaId`, `tableId`, `tableName`, `typeTableId`, `typeTableName` -### `uuid-module` +### `blueprint` -CRUD operations for UuidModule records. +CRUD operations for Blueprint records. | Subcommand | Description | |------------|-------------| -| `list` | List all uuidModule records | -| `get` | Get a uuidModule by id | -| `create` | Create a new uuidModule | -| `update` | Update an existing uuidModule | -| `delete` | Delete a uuidModule | +| `list` | List all blueprint records | +| `get` | Get a blueprint by id | +| `create` | Create a new blueprint | +| `update` | Update an existing blueprint | +| `delete` | Delete a blueprint | **Fields:** | Field | Type | |-------|------| | `id` | UUID | +| `ownerId` | UUID | | `databaseId` | UUID | -| `schemaId` | UUID | -| `uuidFunction` | String | -| `uuidSeed` | String | -| `uuidFunctionTrgmSimilarity` | Float | -| `uuidSeedTrgmSimilarity` | Float | -| `searchScore` | Float | +| `name` | String | +| `displayName` | String | +| `description` | String | +| `definition` | JSON | +| `templateId` | UUID | +| `status` | String | +| `constructedAt` | Datetime | +| `errorDetails` | String | +| `refMap` | JSON | +| `constructedDefinition` | JSON | +| `definitionHash` | UUID | +| `tableHashes` | JSON | +| `createdAt` | Datetime | +| `updatedAt` | Datetime | + +**Required create fields:** `ownerId`, `databaseId`, `name`, `displayName`, `definition` +**Optional create fields (backend defaults):** `description`, `templateId`, `status`, `constructedAt`, `errorDetails`, `refMap`, `constructedDefinition`, `definitionHash`, `tableHashes` + +### `blueprint-template` + +CRUD operations for BlueprintTemplate records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all blueprintTemplate records | +| `get` | Get a blueprintTemplate by id | +| `create` | Create a new blueprintTemplate | +| `update` | Update an existing blueprintTemplate | +| `delete` | Delete a blueprintTemplate | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `name` | String | +| `version` | String | +| `displayName` | String | +| `description` | String | +| `ownerId` | UUID | +| `visibility` | String | +| `categories` | String | +| `tags` | String | +| `definition` | JSON | +| `definitionSchemaVersion` | String | +| `source` | String | +| `complexity` | String | +| `copyCount` | Int | +| `forkCount` | Int | +| `forkedFromId` | UUID | +| `definitionHash` | UUID | +| `tableHashes` | JSON | +| `createdAt` | Datetime | +| `updatedAt` | Datetime | -**Required create fields:** `databaseId`, `uuidSeed`, `uuidFunctionTrgmSimilarity`, `uuidSeedTrgmSimilarity`, `searchScore` -**Optional create fields (backend defaults):** `schemaId`, `uuidFunction` +**Required create fields:** `name`, `displayName`, `ownerId`, `definition` +**Optional create fields (backend defaults):** `version`, `description`, `visibility`, `categories`, `tags`, `definitionSchemaVersion`, `source`, `complexity`, `copyCount`, `forkCount`, `forkedFromId`, `definitionHash`, `tableHashes` ### `database-provision-module` @@ -2338,14 +2264,8 @@ CRUD operations for DatabaseProvisionModule records. | `createdAt` | Datetime | | `updatedAt` | Datetime | | `completedAt` | Datetime | -| `databaseNameTrgmSimilarity` | Float | -| `subdomainTrgmSimilarity` | Float | -| `domainTrgmSimilarity` | Float | -| `statusTrgmSimilarity` | Float | -| `errorMessageTrgmSimilarity` | Float | -| `searchScore` | Float | -**Required create fields:** `databaseName`, `ownerId`, `domain`, `databaseNameTrgmSimilarity`, `subdomainTrgmSimilarity`, `domainTrgmSimilarity`, `statusTrgmSimilarity`, `errorMessageTrgmSimilarity`, `searchScore` +**Required create fields:** `databaseName`, `ownerId`, `domain` **Optional create fields (backend defaults):** `subdomain`, `modules`, `options`, `bootstrapUser`, `status`, `errorMessage`, `databaseId`, `completedAt` ### `app-admin-grant` @@ -2593,10 +2513,8 @@ CRUD operations for OrgChartEdge records. | `parentId` | UUID | | `positionTitle` | String | | `positionLevel` | Int | -| `positionTitleTrgmSimilarity` | Float | -| `searchScore` | Float | -**Required create fields:** `entityId`, `childId`, `positionTitleTrgmSimilarity`, `searchScore` +**Required create fields:** `entityId`, `childId` **Optional create fields (backend defaults):** `parentId`, `positionTitle`, `positionLevel` ### `org-chart-edge-grant` @@ -2624,11 +2542,32 @@ CRUD operations for OrgChartEdgeGrant records. | `positionTitle` | String | | `positionLevel` | Int | | `createdAt` | Datetime | -| `positionTitleTrgmSimilarity` | Float | -| `searchScore` | Float | -**Required create fields:** `entityId`, `childId`, `grantorId`, `positionTitleTrgmSimilarity`, `searchScore` -**Optional create fields (backend defaults):** `parentId`, `isGrant`, `positionTitle`, `positionLevel` +**Required create fields:** `entityId`, `childId` +**Optional create fields (backend defaults):** `parentId`, `grantorId`, `isGrant`, `positionTitle`, `positionLevel` + +### `org-permission-default` + +CRUD operations for OrgPermissionDefault records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all orgPermissionDefault records | +| `get` | Get a orgPermissionDefault by id | +| `create` | Create a new orgPermissionDefault | +| `update` | Update an existing orgPermissionDefault | +| `delete` | Delete a orgPermissionDefault | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `permissions` | BitString | +| `entityId` | UUID | + +**Required create fields:** `entityId` +**Optional create fields (backend defaults):** `permissions` ### `app-limit` @@ -2733,17 +2672,154 @@ CRUD operations for AppAchievement records. **Required create fields:** `name` **Optional create fields (backend defaults):** `actorId`, `count` -### `invite` +### `app-level` -CRUD operations for Invite records. +CRUD operations for AppLevel records. | Subcommand | Description | |------------|-------------| -| `list` | List all invite records | -| `get` | Get a invite by id | -| `create` | Create a new invite | -| `update` | Update an existing invite | -| `delete` | Delete a invite | +| `list` | List all appLevel records | +| `get` | Get a appLevel by id | +| `create` | Create a new appLevel | +| `update` | Update an existing appLevel | +| `delete` | Delete a appLevel | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `name` | String | +| `description` | String | +| `image` | Image | +| `ownerId` | UUID | +| `createdAt` | Datetime | +| `updatedAt` | Datetime | + +**Required create fields:** `name` +**Optional create fields (backend defaults):** `description`, `image`, `ownerId` + +### `email` + +CRUD operations for Email records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all email records | +| `get` | Get a email by id | +| `create` | Create a new email | +| `update` | Update an existing email | +| `delete` | Delete a email | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `ownerId` | UUID | +| `email` | Email | +| `isVerified` | Boolean | +| `isPrimary` | Boolean | +| `createdAt` | Datetime | +| `updatedAt` | Datetime | + +**Required create fields:** `email` +**Optional create fields (backend defaults):** `ownerId`, `isVerified`, `isPrimary` + +### `phone-number` + +CRUD operations for PhoneNumber records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all phoneNumber records | +| `get` | Get a phoneNumber by id | +| `create` | Create a new phoneNumber | +| `update` | Update an existing phoneNumber | +| `delete` | Delete a phoneNumber | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `ownerId` | UUID | +| `cc` | String | +| `number` | String | +| `isVerified` | Boolean | +| `isPrimary` | Boolean | +| `createdAt` | Datetime | +| `updatedAt` | Datetime | + +**Required create fields:** `cc`, `number` +**Optional create fields (backend defaults):** `ownerId`, `isVerified`, `isPrimary` + +### `crypto-address` + +CRUD operations for CryptoAddress records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all cryptoAddress records | +| `get` | Get a cryptoAddress by id | +| `create` | Create a new cryptoAddress | +| `update` | Update an existing cryptoAddress | +| `delete` | Delete a cryptoAddress | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `ownerId` | UUID | +| `address` | String | +| `isVerified` | Boolean | +| `isPrimary` | Boolean | +| `createdAt` | Datetime | +| `updatedAt` | Datetime | + +**Required create fields:** `address` +**Optional create fields (backend defaults):** `ownerId`, `isVerified`, `isPrimary` + +### `connected-account` + +CRUD operations for ConnectedAccount records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all connectedAccount records | +| `get` | Get a connectedAccount by id | +| `create` | Create a new connectedAccount | +| `update` | Update an existing connectedAccount | +| `delete` | Delete a connectedAccount | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `ownerId` | UUID | +| `service` | String | +| `identifier` | String | +| `details` | JSON | +| `isVerified` | Boolean | +| `createdAt` | Datetime | +| `updatedAt` | Datetime | + +**Required create fields:** `service`, `identifier`, `details` +**Optional create fields (backend defaults):** `ownerId`, `isVerified` + +### `invite` + +CRUD operations for Invite records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all invite records | +| `get` | Get a invite by id | +| `create` | Create a new invite | +| `update` | Update an existing invite | +| `delete` | Delete a invite | **Fields:** @@ -2761,10 +2837,7 @@ CRUD operations for Invite records. | `expiresAt` | Datetime | | `createdAt` | Datetime | | `updatedAt` | Datetime | -| `inviteTokenTrgmSimilarity` | Float | -| `searchScore` | Float | -**Required create fields:** `inviteTokenTrgmSimilarity`, `searchScore` **Optional create fields (backend defaults):** `email`, `senderId`, `inviteToken`, `inviteValid`, `inviteLimit`, `inviteCount`, `multiple`, `data`, `expiresAt` ### `claimed-invite` @@ -2822,10 +2895,8 @@ CRUD operations for OrgInvite records. | `createdAt` | Datetime | | `updatedAt` | Datetime | | `entityId` | UUID | -| `inviteTokenTrgmSimilarity` | Float | -| `searchScore` | Float | -**Required create fields:** `entityId`, `inviteTokenTrgmSimilarity`, `searchScore` +**Required create fields:** `entityId` **Optional create fields (backend defaults):** `email`, `senderId`, `receiverId`, `inviteToken`, `inviteValid`, `inviteLimit`, `inviteCount`, `multiple`, `data`, `expiresAt` ### `org-claimed-invite` @@ -2855,6 +2926,34 @@ CRUD operations for OrgClaimedInvite records. **Required create fields:** `entityId` **Optional create fields (backend defaults):** `data`, `senderId`, `receiverId` +### `audit-log` + +CRUD operations for AuditLog records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all auditLog records | +| `get` | Get a auditLog by id | +| `create` | Create a new auditLog | +| `update` | Update an existing auditLog | +| `delete` | Delete a auditLog | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `event` | String | +| `actorId` | UUID | +| `origin` | Origin | +| `userAgent` | String | +| `ipAddress` | InternetAddress | +| `success` | Boolean | +| `createdAt` | Datetime | + +**Required create fields:** `event`, `success` +**Optional create fields (backend defaults):** `actorId`, `origin`, `userAgent`, `ipAddress` + ### `ref` CRUD operations for Ref records. @@ -2876,10 +2975,8 @@ CRUD operations for Ref records. | `databaseId` | UUID | | `storeId` | UUID | | `commitId` | UUID | -| `nameTrgmSimilarity` | Float | -| `searchScore` | Float | -**Required create fields:** `name`, `databaseId`, `storeId`, `nameTrgmSimilarity`, `searchScore` +**Required create fields:** `name`, `databaseId`, `storeId` **Optional create fields (backend defaults):** `commitId` ### `store` @@ -2903,10 +3000,8 @@ CRUD operations for Store records. | `databaseId` | UUID | | `hash` | UUID | | `createdAt` | Datetime | -| `nameTrgmSimilarity` | Float | -| `searchScore` | Float | -**Required create fields:** `name`, `databaseId`, `nameTrgmSimilarity`, `searchScore` +**Required create fields:** `name`, `databaseId` **Optional create fields (backend defaults):** `hash` ### `app-permission-default` @@ -2930,35 +3025,6 @@ CRUD operations for AppPermissionDefault records. **Optional create fields (backend defaults):** `permissions` -### `crypto-address` - -CRUD operations for CryptoAddress records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all cryptoAddress records | -| `get` | Get a cryptoAddress by id | -| `create` | Create a new cryptoAddress | -| `update` | Update an existing cryptoAddress | -| `delete` | Delete a cryptoAddress | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `ownerId` | UUID | -| `address` | String | -| `isVerified` | Boolean | -| `isPrimary` | Boolean | -| `createdAt` | Datetime | -| `updatedAt` | Datetime | -| `addressTrgmSimilarity` | Float | -| `searchScore` | Float | - -**Required create fields:** `address`, `addressTrgmSimilarity`, `searchScore` -**Optional create fields (backend defaults):** `ownerId`, `isVerified`, `isPrimary` - ### `role-type` CRUD operations for RoleType records. @@ -2980,60 +3046,6 @@ CRUD operations for RoleType records. **Required create fields:** `name` -### `org-permission-default` - -CRUD operations for OrgPermissionDefault records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all orgPermissionDefault records | -| `get` | Get a orgPermissionDefault by id | -| `create` | Create a new orgPermissionDefault | -| `update` | Update an existing orgPermissionDefault | -| `delete` | Delete a orgPermissionDefault | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `permissions` | BitString | -| `entityId` | UUID | - -**Required create fields:** `entityId` -**Optional create fields (backend defaults):** `permissions` - -### `phone-number` - -CRUD operations for PhoneNumber records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all phoneNumber records | -| `get` | Get a phoneNumber by id | -| `create` | Create a new phoneNumber | -| `update` | Update an existing phoneNumber | -| `delete` | Delete a phoneNumber | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `ownerId` | UUID | -| `cc` | String | -| `number` | String | -| `isVerified` | Boolean | -| `isPrimary` | Boolean | -| `createdAt` | Datetime | -| `updatedAt` | Datetime | -| `ccTrgmSimilarity` | Float | -| `numberTrgmSimilarity` | Float | -| `searchScore` | Float | - -**Required create fields:** `cc`, `number`, `ccTrgmSimilarity`, `numberTrgmSimilarity`, `searchScore` -**Optional create fields (backend defaults):** `ownerId`, `isVerified`, `isPrimary` - ### `app-limit-default` CRUD operations for AppLimitDefault records. @@ -3080,37 +3092,6 @@ CRUD operations for OrgLimitDefault records. **Required create fields:** `name` **Optional create fields (backend defaults):** `max` -### `connected-account` - -CRUD operations for ConnectedAccount records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all connectedAccount records | -| `get` | Get a connectedAccount by id | -| `create` | Create a new connectedAccount | -| `update` | Update an existing connectedAccount | -| `delete` | Delete a connectedAccount | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `ownerId` | UUID | -| `service` | String | -| `identifier` | String | -| `details` | JSON | -| `isVerified` | Boolean | -| `createdAt` | Datetime | -| `updatedAt` | Datetime | -| `serviceTrgmSimilarity` | Float | -| `identifierTrgmSimilarity` | Float | -| `searchScore` | Float | - -**Required create fields:** `service`, `identifier`, `details`, `serviceTrgmSimilarity`, `identifierTrgmSimilarity`, `searchScore` -**Optional create fields (backend defaults):** `ownerId`, `isVerified` - ### `node-type-registry` CRUD operations for NodeTypeRegistry records. @@ -3136,14 +3117,8 @@ CRUD operations for NodeTypeRegistry records. | `tags` | String | | `createdAt` | Datetime | | `updatedAt` | Datetime | -| `nameTrgmSimilarity` | Float | -| `slugTrgmSimilarity` | Float | -| `categoryTrgmSimilarity` | Float | -| `displayNameTrgmSimilarity` | Float | -| `descriptionTrgmSimilarity` | Float | -| `searchScore` | Float | -**Required create fields:** `slug`, `category`, `nameTrgmSimilarity`, `slugTrgmSimilarity`, `categoryTrgmSimilarity`, `displayNameTrgmSimilarity`, `descriptionTrgmSimilarity`, `searchScore` +**Required create fields:** `slug`, `category` **Optional create fields (backend defaults):** `displayName`, `description`, `parameterSchema`, `tags` ### `membership-type` @@ -3166,11 +3141,8 @@ CRUD operations for MembershipType records. | `name` | String | | `description` | String | | `prefix` | String | -| `descriptionTrgmSimilarity` | Float | -| `prefixTrgmSimilarity` | Float | -| `searchScore` | Float | -**Required create fields:** `name`, `description`, `prefix`, `descriptionTrgmSimilarity`, `prefixTrgmSimilarity`, `searchScore` +**Required create fields:** `name`, `description`, `prefix` ### `commit` @@ -3197,10 +3169,8 @@ CRUD operations for Commit records. | `committerId` | UUID | | `treeId` | UUID | | `date` | Datetime | -| `messageTrgmSimilarity` | Float | -| `searchScore` | Float | -**Required create fields:** `databaseId`, `storeId`, `messageTrgmSimilarity`, `searchScore` +**Required create fields:** `databaseId`, `storeId` **Optional create fields (backend defaults):** `message`, `parentIds`, `authorId`, `committerId`, `treeId`, `date` ### `app-membership-default` @@ -3256,13 +3226,8 @@ CRUD operations for RlsModule records. | `authenticateStrict` | String | | `currentRole` | String | | `currentRoleId` | String | -| `authenticateTrgmSimilarity` | Float | -| `authenticateStrictTrgmSimilarity` | Float | -| `currentRoleTrgmSimilarity` | Float | -| `currentRoleIdTrgmSimilarity` | Float | -| `searchScore` | Float | -**Required create fields:** `databaseId`, `authenticateTrgmSimilarity`, `authenticateStrictTrgmSimilarity`, `currentRoleTrgmSimilarity`, `currentRoleIdTrgmSimilarity`, `searchScore` +**Required create fields:** `databaseId` **Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `sessionCredentialsTableId`, `sessionsTableId`, `usersTableId`, `authenticate`, `authenticateStrict`, `currentRole`, `currentRoleId` ### `org-membership-default` @@ -3294,65 +3259,6 @@ CRUD operations for OrgMembershipDefault records. **Required create fields:** `entityId` **Optional create fields (backend defaults):** `createdBy`, `updatedBy`, `isApproved`, `deleteMemberCascadeGroups`, `createGroupsCascadeMembers` -### `audit-log` - -CRUD operations for AuditLog records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all auditLog records | -| `get` | Get a auditLog by id | -| `create` | Create a new auditLog | -| `update` | Update an existing auditLog | -| `delete` | Delete a auditLog | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `event` | String | -| `actorId` | UUID | -| `origin` | Origin | -| `userAgent` | String | -| `ipAddress` | InternetAddress | -| `success` | Boolean | -| `createdAt` | Datetime | -| `userAgentTrgmSimilarity` | Float | -| `searchScore` | Float | - -**Required create fields:** `event`, `success`, `userAgentTrgmSimilarity`, `searchScore` -**Optional create fields (backend defaults):** `actorId`, `origin`, `userAgent`, `ipAddress` - -### `app-level` - -CRUD operations for AppLevel records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all appLevel records | -| `get` | Get a appLevel by id | -| `create` | Create a new appLevel | -| `update` | Update an existing appLevel | -| `delete` | Delete a appLevel | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `name` | String | -| `description` | String | -| `image` | Image | -| `ownerId` | UUID | -| `createdAt` | Datetime | -| `updatedAt` | Datetime | -| `descriptionTrgmSimilarity` | Float | -| `searchScore` | Float | - -**Required create fields:** `name`, `descriptionTrgmSimilarity`, `searchScore` -**Optional create fields (backend defaults):** `description`, `image`, `ownerId` - ### `sql-migration` CRUD operations for SqlMigration records. @@ -3382,44 +3288,9 @@ CRUD operations for SqlMigration records. | `action` | String | | `actionId` | UUID | | `actorId` | UUID | -| `nameTrgmSimilarity` | Float | -| `deployTrgmSimilarity` | Float | -| `contentTrgmSimilarity` | Float | -| `revertTrgmSimilarity` | Float | -| `verifyTrgmSimilarity` | Float | -| `actionTrgmSimilarity` | Float | -| `searchScore` | Float | -**Required create fields:** `nameTrgmSimilarity`, `deployTrgmSimilarity`, `contentTrgmSimilarity`, `revertTrgmSimilarity`, `verifyTrgmSimilarity`, `actionTrgmSimilarity`, `searchScore` **Optional create fields (backend defaults):** `name`, `databaseId`, `deploy`, `deps`, `payload`, `content`, `revert`, `verify`, `action`, `actionId`, `actorId` -### `email` - -CRUD operations for Email records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all email records | -| `get` | Get a email by id | -| `create` | Create a new email | -| `update` | Update an existing email | -| `delete` | Delete a email | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `ownerId` | UUID | -| `email` | Email | -| `isVerified` | Boolean | -| `isPrimary` | Boolean | -| `createdAt` | Datetime | -| `updatedAt` | Datetime | - -**Required create fields:** `email` -**Optional create fields (backend defaults):** `ownerId`, `isVerified`, `isPrimary` - ### `user` CRUD operations for User records. @@ -3448,8 +3319,10 @@ CRUD operations for User records. | `displayNameTrgmSimilarity` | Float | | `searchScore` | Float | -**Required create fields:** `searchTsv`, `searchTsvRank`, `displayNameTrgmSimilarity`, `searchScore` **Optional create fields (backend defaults):** `username`, `displayName`, `profilePicture`, `type` +> **Unified Search API fields:** `displayNameTrgmSimilarity`, `searchScore` +> Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. + ### `ast-migration` @@ -3480,10 +3353,7 @@ CRUD operations for AstMigration records. | `action` | String | | `actionId` | UUID | | `actorId` | UUID | -| `actionTrgmSimilarity` | Float | -| `searchScore` | Float | -**Required create fields:** `actionTrgmSimilarity`, `searchScore` **Optional create fields (backend defaults):** `databaseId`, `name`, `requires`, `payload`, `deploys`, `deploy`, `revert`, `verify`, `action`, `actionId`, `actorId` ### `app-membership` @@ -3558,19 +3428,8 @@ CRUD operations for HierarchyModule records. | `getManagersFunction` | String | | `isManagerOfFunction` | String | | `createdAt` | Datetime | -| `chartEdgesTableNameTrgmSimilarity` | Float | -| `hierarchySprtTableNameTrgmSimilarity` | Float | -| `chartEdgeGrantsTableNameTrgmSimilarity` | Float | -| `prefixTrgmSimilarity` | Float | -| `privateSchemaNameTrgmSimilarity` | Float | -| `sprtTableNameTrgmSimilarity` | Float | -| `rebuildHierarchyFunctionTrgmSimilarity` | Float | -| `getSubordinatesFunctionTrgmSimilarity` | Float | -| `getManagersFunctionTrgmSimilarity` | Float | -| `isManagerOfFunctionTrgmSimilarity` | Float | -| `searchScore` | Float | -**Required create fields:** `databaseId`, `entityTableId`, `usersTableId`, `chartEdgesTableNameTrgmSimilarity`, `hierarchySprtTableNameTrgmSimilarity`, `chartEdgeGrantsTableNameTrgmSimilarity`, `prefixTrgmSimilarity`, `privateSchemaNameTrgmSimilarity`, `sprtTableNameTrgmSimilarity`, `rebuildHierarchyFunctionTrgmSimilarity`, `getSubordinatesFunctionTrgmSimilarity`, `getManagersFunctionTrgmSimilarity`, `isManagerOfFunctionTrgmSimilarity`, `searchScore` +**Required create fields:** `databaseId`, `entityTableId`, `usersTableId` **Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `chartEdgesTableId`, `chartEdgesTableName`, `hierarchySprtTableId`, `hierarchySprtTableName`, `chartEdgeGrantsTableId`, `chartEdgeGrantsTableName`, `prefix`, `privateSchemaName`, `sprtTableName`, `rebuildHierarchyFunction`, `getSubordinatesFunction`, `getManagersFunction`, `isManagerOfFunction` ## Custom Operations @@ -3796,6 +3655,17 @@ currentUser - **Type:** query - **Arguments:** none +### `send-account-deletion-email` + +sendAccountDeletionEmail + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + ### `sign-out` signOut @@ -3807,9 +3677,9 @@ signOut |----------|------| | `--input.clientMutationId` | String | -### `send-account-deletion-email` +### `accept-database-transfer` -sendAccountDeletionEmail +acceptDatabaseTransfer - **Type:** mutation - **Arguments:** @@ -3817,10 +3687,11 @@ sendAccountDeletionEmail | Argument | Type | |----------|------| | `--input.clientMutationId` | String | + | `--input.transferId` | UUID | -### `check-password` +### `cancel-database-transfer` -checkPassword +cancelDatabaseTransfer - **Type:** mutation - **Arguments:** @@ -3828,11 +3699,11 @@ checkPassword | Argument | Type | |----------|------| | `--input.clientMutationId` | String | - | `--input.password` | String | + | `--input.transferId` | UUID | -### `submit-invite-code` +### `reject-database-transfer` -submitInviteCode +rejectDatabaseTransfer - **Type:** mutation - **Arguments:** @@ -3840,11 +3711,11 @@ submitInviteCode | Argument | Type | |----------|------| | `--input.clientMutationId` | String | - | `--input.token` | String | + | `--input.transferId` | UUID | -### `submit-org-invite-code` +### `submit-invite-code` -submitOrgInviteCode +submitInviteCode - **Type:** mutation - **Arguments:** @@ -3854,9 +3725,9 @@ submitOrgInviteCode | `--input.clientMutationId` | String | | `--input.token` | String | -### `freeze-objects` +### `submit-org-invite-code` -freezeObjects +submitOrgInviteCode - **Type:** mutation - **Arguments:** @@ -3864,12 +3735,11 @@ freezeObjects | Argument | Type | |----------|------| | `--input.clientMutationId` | String | - | `--input.databaseId` | UUID | - | `--input.id` | UUID | + | `--input.token` | String | -### `init-empty-repo` +### `check-password` -initEmptyRepo +checkPassword - **Type:** mutation - **Arguments:** @@ -3877,8 +3747,7 @@ initEmptyRepo | Argument | Type | |----------|------| | `--input.clientMutationId` | String | - | `--input.dbId` | UUID | - | `--input.storeId` | UUID | + | `--input.password` | String | ### `confirm-delete-account` @@ -3919,9 +3788,22 @@ verifyEmail | `--input.emailId` | UUID | | `--input.token` | String | -### `remove-node-at-path` +### `freeze-objects` -removeNodeAtPath +freezeObjects + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.databaseId` | UUID | + | `--input.id` | UUID | + +### `init-empty-repo` + +initEmptyRepo - **Type:** mutation - **Arguments:** @@ -3930,12 +3812,11 @@ removeNodeAtPath |----------|------| | `--input.clientMutationId` | String | | `--input.dbId` | UUID | - | `--input.root` | UUID | - | `--input.path` | String | + | `--input.storeId` | UUID | -### `reset-password` +### `construct-blueprint` -resetPassword +Executes a draft blueprint definition. Four phases: (1) create tables with nodes[], fields, and policies[], (2) create relations between tables, (3) create indexes on table fields (supports BTREE, HNSW, GIN, GIST, BM25, etc.), (4) create full-text search configurations with weighted multi-field TSVector support. nodes[] entries can be strings or {$type, data} objects. Relations use $type for relation_type with junction config in data. Indexes reference table_ref + column name(s) and are resolved to field_ids. Full-text searches reference table_ref + tsvector field + source fields with weights/langs. Builds a ref_map of local ref names to created table UUIDs. Updates blueprint status to constructed (or failed with error_details). Returns the ref_map. - **Type:** mutation - **Arguments:** @@ -3943,13 +3824,12 @@ resetPassword | Argument | Type | |----------|------| | `--input.clientMutationId` | String | - | `--input.roleId` | UUID | - | `--input.resetToken` | String | - | `--input.newPassword` | String | + | `--input.blueprintId` | UUID | + | `--input.schemaId` | UUID | -### `bootstrap-user` +### `reset-password` -bootstrapUser +resetPassword - **Type:** mutation - **Arguments:** @@ -3957,17 +3837,13 @@ bootstrapUser | Argument | Type | |----------|------| | `--input.clientMutationId` | String | - | `--input.targetDatabaseId` | UUID | - | `--input.password` | String | - | `--input.isAdmin` | Boolean | - | `--input.isOwner` | Boolean | - | `--input.username` | String | - | `--input.displayName` | String | - | `--input.returnApiKey` | Boolean | + | `--input.roleId` | UUID | + | `--input.resetToken` | String | + | `--input.newPassword` | String | -### `set-field-order` +### `remove-node-at-path` -setFieldOrder +removeNodeAtPath - **Type:** mutation - **Arguments:** @@ -3975,7 +3851,9 @@ setFieldOrder | Argument | Type | |----------|------| | `--input.clientMutationId` | String | - | `--input.fieldIds` | UUID | + | `--input.dbId` | UUID | + | `--input.root` | UUID | + | `--input.path` | String | ### `set-data-at-path` @@ -4008,6 +3886,22 @@ setPropsAndCommit | `--input.path` | String | | `--input.data` | JSON | +### `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. + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.templateId` | UUID | + | `--input.databaseId` | UUID | + | `--input.ownerId` | UUID | + | `--input.nameOverride` | String | + | `--input.displayNameOverride` | String | + ### `provision-database-with-user` provisionDatabaseWithUser @@ -4024,6 +3918,36 @@ provisionDatabaseWithUser | `--input.pModules` | String | | `--input.pOptions` | JSON | +### `bootstrap-user` + +bootstrapUser + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.targetDatabaseId` | UUID | + | `--input.password` | String | + | `--input.isAdmin` | Boolean | + | `--input.isOwner` | Boolean | + | `--input.username` | String | + | `--input.displayName` | String | + | `--input.returnApiKey` | Boolean | + +### `set-field-order` + +setFieldOrder + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.fieldIds` | UUID | + ### `insert-node-at-path` insertNodeAtPath @@ -4200,9 +4124,9 @@ oneTimeToken | `--input.origin` | Origin | | `--input.rememberMe` | Boolean | -### `forgot-password` +### `send-verification-email` -forgotPassword +sendVerificationEmail - **Type:** mutation - **Arguments:** @@ -4212,9 +4136,9 @@ forgotPassword | `--input.clientMutationId` | String | | `--input.email` | Email | -### `send-verification-email` +### `forgot-password` -sendVerificationEmail +forgotPassword - **Type:** mutation - **Arguments:** diff --git a/sdk/constructive-cli/src/public/cli/commands.ts b/sdk/constructive-cli/src/public/cli/commands.ts index 269b3e521..b3f5d8b2b 100644 --- a/sdk/constructive-cli/src/public/cli/commands.ts +++ b/sdk/constructive-cli/src/public/cli/commands.ts @@ -6,9 +6,9 @@ import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; import contextCmd from './commands/context'; import authCmd from './commands/auth'; +import getAllRecordCmd from './commands/get-all-record'; import orgGetManagersRecordCmd from './commands/org-get-managers-record'; import orgGetSubordinatesRecordCmd from './commands/org-get-subordinates-record'; -import getAllRecordCmd from './commands/get-all-record'; import objectCmd from './commands/object'; import appPermissionCmd from './commands/app-permission'; import orgPermissionCmd from './commands/org-permission'; @@ -30,11 +30,13 @@ import viewCmd from './commands/view'; import viewTableCmd from './commands/view-table'; import viewGrantCmd from './commands/view-grant'; import viewRuleCmd from './commands/view-rule'; +import embeddingChunkCmd from './commands/embedding-chunk'; import tableTemplateModuleCmd from './commands/table-template-module'; import secureTableProvisionCmd from './commands/secure-table-provision'; import relationProvisionCmd from './commands/relation-provision'; import schemaGrantCmd from './commands/schema-grant'; import defaultPrivilegeCmd from './commands/default-privilege'; +import enumCmd from './commands/enum'; import apiSchemaCmd from './commands/api-schema'; import apiModuleCmd from './commands/api-module'; import domainCmd from './commands/domain'; @@ -42,6 +44,7 @@ import siteMetadatumCmd from './commands/site-metadatum'; import siteModuleCmd from './commands/site-module'; import siteThemeCmd from './commands/site-theme'; import triggerFunctionCmd from './commands/trigger-function'; +import databaseTransferCmd from './commands/database-transfer'; import apiCmd from './commands/api'; import siteCmd from './commands/site'; import appCmd from './commands/app'; @@ -65,7 +68,8 @@ import secretsModuleCmd from './commands/secrets-module'; import sessionsModuleCmd from './commands/sessions-module'; import userAuthModuleCmd from './commands/user-auth-module'; import usersModuleCmd from './commands/users-module'; -import uuidModuleCmd from './commands/uuid-module'; +import blueprintCmd from './commands/blueprint'; +import blueprintTemplateCmd from './commands/blueprint-template'; import databaseProvisionModuleCmd from './commands/database-provision-module'; import appAdminGrantCmd from './commands/app-admin-grant'; import appOwnerGrantCmd from './commands/app-owner-grant'; @@ -77,34 +81,34 @@ import orgOwnerGrantCmd from './commands/org-owner-grant'; import orgGrantCmd from './commands/org-grant'; import orgChartEdgeCmd from './commands/org-chart-edge'; import orgChartEdgeGrantCmd from './commands/org-chart-edge-grant'; +import orgPermissionDefaultCmd from './commands/org-permission-default'; import appLimitCmd from './commands/app-limit'; import orgLimitCmd from './commands/org-limit'; import appStepCmd from './commands/app-step'; import appAchievementCmd from './commands/app-achievement'; +import appLevelCmd from './commands/app-level'; +import emailCmd from './commands/email'; +import phoneNumberCmd from './commands/phone-number'; +import cryptoAddressCmd from './commands/crypto-address'; +import connectedAccountCmd from './commands/connected-account'; import inviteCmd from './commands/invite'; import claimedInviteCmd from './commands/claimed-invite'; import orgInviteCmd from './commands/org-invite'; import orgClaimedInviteCmd from './commands/org-claimed-invite'; +import auditLogCmd from './commands/audit-log'; import refCmd from './commands/ref'; import storeCmd from './commands/store'; import appPermissionDefaultCmd from './commands/app-permission-default'; -import cryptoAddressCmd from './commands/crypto-address'; import roleTypeCmd from './commands/role-type'; -import orgPermissionDefaultCmd from './commands/org-permission-default'; -import phoneNumberCmd from './commands/phone-number'; import appLimitDefaultCmd from './commands/app-limit-default'; import orgLimitDefaultCmd from './commands/org-limit-default'; -import connectedAccountCmd from './commands/connected-account'; import nodeTypeRegistryCmd from './commands/node-type-registry'; import membershipTypeCmd from './commands/membership-type'; import commitCmd from './commands/commit'; import appMembershipDefaultCmd from './commands/app-membership-default'; import rlsModuleCmd from './commands/rls-module'; import orgMembershipDefaultCmd from './commands/org-membership-default'; -import auditLogCmd from './commands/audit-log'; -import appLevelCmd from './commands/app-level'; import sqlMigrationCmd from './commands/sql-migration'; -import emailCmd from './commands/email'; import userCmd from './commands/user'; import astMigrationCmd from './commands/ast-migration'; import appMembershipCmd from './commands/app-membership'; @@ -128,23 +132,28 @@ import appPermissionsGetByMaskCmd from './commands/app-permissions-get-by-mask'; import orgPermissionsGetByMaskCmd from './commands/org-permissions-get-by-mask'; import stepsRequiredCmd from './commands/steps-required'; import currentUserCmd from './commands/current-user'; -import signOutCmd from './commands/sign-out'; import sendAccountDeletionEmailCmd from './commands/send-account-deletion-email'; -import checkPasswordCmd from './commands/check-password'; +import signOutCmd from './commands/sign-out'; +import acceptDatabaseTransferCmd from './commands/accept-database-transfer'; +import cancelDatabaseTransferCmd from './commands/cancel-database-transfer'; +import rejectDatabaseTransferCmd from './commands/reject-database-transfer'; import submitInviteCodeCmd from './commands/submit-invite-code'; import submitOrgInviteCodeCmd from './commands/submit-org-invite-code'; -import freezeObjectsCmd from './commands/freeze-objects'; -import initEmptyRepoCmd from './commands/init-empty-repo'; +import checkPasswordCmd from './commands/check-password'; import confirmDeleteAccountCmd from './commands/confirm-delete-account'; import setPasswordCmd from './commands/set-password'; import verifyEmailCmd from './commands/verify-email'; -import removeNodeAtPathCmd from './commands/remove-node-at-path'; +import freezeObjectsCmd from './commands/freeze-objects'; +import initEmptyRepoCmd from './commands/init-empty-repo'; +import constructBlueprintCmd from './commands/construct-blueprint'; import resetPasswordCmd from './commands/reset-password'; -import bootstrapUserCmd from './commands/bootstrap-user'; -import setFieldOrderCmd from './commands/set-field-order'; +import removeNodeAtPathCmd from './commands/remove-node-at-path'; import setDataAtPathCmd from './commands/set-data-at-path'; import setPropsAndCommitCmd from './commands/set-props-and-commit'; +import copyTemplateToBlueprintCmd from './commands/copy-template-to-blueprint'; import provisionDatabaseWithUserCmd from './commands/provision-database-with-user'; +import bootstrapUserCmd from './commands/bootstrap-user'; +import setFieldOrderCmd from './commands/set-field-order'; import insertNodeAtPathCmd from './commands/insert-node-at-path'; import updateNodeAtPathCmd from './commands/update-node-at-path'; import setAndCommitCmd from './commands/set-and-commit'; @@ -155,8 +164,8 @@ import extendTokenExpiresCmd from './commands/extend-token-expires'; import signInCmd from './commands/sign-in'; import signUpCmd from './commands/sign-up'; import oneTimeTokenCmd from './commands/one-time-token'; -import forgotPasswordCmd from './commands/forgot-password'; import sendVerificationEmailCmd from './commands/send-verification-email'; +import forgotPasswordCmd from './commands/forgot-password'; import verifyPasswordCmd from './commands/verify-password'; import verifyTotpCmd from './commands/verify-totp'; const createCommandMap: () => Record< @@ -169,9 +178,9 @@ const createCommandMap: () => Record< > = () => ({ context: contextCmd, auth: authCmd, + 'get-all-record': getAllRecordCmd, 'org-get-managers-record': orgGetManagersRecordCmd, 'org-get-subordinates-record': orgGetSubordinatesRecordCmd, - 'get-all-record': getAllRecordCmd, object: objectCmd, 'app-permission': appPermissionCmd, 'org-permission': orgPermissionCmd, @@ -193,11 +202,13 @@ const createCommandMap: () => Record< 'view-table': viewTableCmd, 'view-grant': viewGrantCmd, 'view-rule': viewRuleCmd, + 'embedding-chunk': embeddingChunkCmd, 'table-template-module': tableTemplateModuleCmd, 'secure-table-provision': secureTableProvisionCmd, 'relation-provision': relationProvisionCmd, 'schema-grant': schemaGrantCmd, 'default-privilege': defaultPrivilegeCmd, + enum: enumCmd, 'api-schema': apiSchemaCmd, 'api-module': apiModuleCmd, domain: domainCmd, @@ -205,6 +216,7 @@ const createCommandMap: () => Record< 'site-module': siteModuleCmd, 'site-theme': siteThemeCmd, 'trigger-function': triggerFunctionCmd, + 'database-transfer': databaseTransferCmd, api: apiCmd, site: siteCmd, app: appCmd, @@ -228,7 +240,8 @@ const createCommandMap: () => Record< 'sessions-module': sessionsModuleCmd, 'user-auth-module': userAuthModuleCmd, 'users-module': usersModuleCmd, - 'uuid-module': uuidModuleCmd, + blueprint: blueprintCmd, + 'blueprint-template': blueprintTemplateCmd, 'database-provision-module': databaseProvisionModuleCmd, 'app-admin-grant': appAdminGrantCmd, 'app-owner-grant': appOwnerGrantCmd, @@ -240,34 +253,34 @@ const createCommandMap: () => Record< 'org-grant': orgGrantCmd, 'org-chart-edge': orgChartEdgeCmd, 'org-chart-edge-grant': orgChartEdgeGrantCmd, + 'org-permission-default': orgPermissionDefaultCmd, 'app-limit': appLimitCmd, 'org-limit': orgLimitCmd, 'app-step': appStepCmd, 'app-achievement': appAchievementCmd, + 'app-level': appLevelCmd, + email: emailCmd, + 'phone-number': phoneNumberCmd, + 'crypto-address': cryptoAddressCmd, + 'connected-account': connectedAccountCmd, invite: inviteCmd, 'claimed-invite': claimedInviteCmd, 'org-invite': orgInviteCmd, 'org-claimed-invite': orgClaimedInviteCmd, + 'audit-log': auditLogCmd, ref: refCmd, store: storeCmd, 'app-permission-default': appPermissionDefaultCmd, - 'crypto-address': cryptoAddressCmd, 'role-type': roleTypeCmd, - 'org-permission-default': orgPermissionDefaultCmd, - 'phone-number': phoneNumberCmd, 'app-limit-default': appLimitDefaultCmd, 'org-limit-default': orgLimitDefaultCmd, - 'connected-account': connectedAccountCmd, 'node-type-registry': nodeTypeRegistryCmd, 'membership-type': membershipTypeCmd, commit: commitCmd, 'app-membership-default': appMembershipDefaultCmd, 'rls-module': rlsModuleCmd, 'org-membership-default': orgMembershipDefaultCmd, - 'audit-log': auditLogCmd, - 'app-level': appLevelCmd, 'sql-migration': sqlMigrationCmd, - email: emailCmd, user: userCmd, 'ast-migration': astMigrationCmd, 'app-membership': appMembershipCmd, @@ -291,23 +304,28 @@ const createCommandMap: () => Record< 'org-permissions-get-by-mask': orgPermissionsGetByMaskCmd, 'steps-required': stepsRequiredCmd, 'current-user': currentUserCmd, - 'sign-out': signOutCmd, 'send-account-deletion-email': sendAccountDeletionEmailCmd, - 'check-password': checkPasswordCmd, + 'sign-out': signOutCmd, + 'accept-database-transfer': acceptDatabaseTransferCmd, + 'cancel-database-transfer': cancelDatabaseTransferCmd, + 'reject-database-transfer': rejectDatabaseTransferCmd, 'submit-invite-code': submitInviteCodeCmd, 'submit-org-invite-code': submitOrgInviteCodeCmd, - 'freeze-objects': freezeObjectsCmd, - 'init-empty-repo': initEmptyRepoCmd, + 'check-password': checkPasswordCmd, 'confirm-delete-account': confirmDeleteAccountCmd, 'set-password': setPasswordCmd, 'verify-email': verifyEmailCmd, - 'remove-node-at-path': removeNodeAtPathCmd, + 'freeze-objects': freezeObjectsCmd, + 'init-empty-repo': initEmptyRepoCmd, + 'construct-blueprint': constructBlueprintCmd, 'reset-password': resetPasswordCmd, - 'bootstrap-user': bootstrapUserCmd, - 'set-field-order': setFieldOrderCmd, + 'remove-node-at-path': removeNodeAtPathCmd, 'set-data-at-path': setDataAtPathCmd, 'set-props-and-commit': setPropsAndCommitCmd, + 'copy-template-to-blueprint': copyTemplateToBlueprintCmd, 'provision-database-with-user': provisionDatabaseWithUserCmd, + 'bootstrap-user': bootstrapUserCmd, + 'set-field-order': setFieldOrderCmd, 'insert-node-at-path': insertNodeAtPathCmd, 'update-node-at-path': updateNodeAtPathCmd, 'set-and-commit': setAndCommitCmd, @@ -318,13 +336,13 @@ const createCommandMap: () => Record< 'sign-in': signInCmd, 'sign-up': signUpCmd, 'one-time-token': oneTimeTokenCmd, - 'forgot-password': forgotPasswordCmd, 'send-verification-email': sendVerificationEmailCmd, + 'forgot-password': forgotPasswordCmd, 'verify-password': verifyPasswordCmd, 'verify-totp': verifyTotpCmd, }); 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 object object CRUD operations\n app-permission appPermission CRUD operations\n org-permission orgPermission 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 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 table-template-module tableTemplateModule CRUD operations\n secure-table-provision secureTableProvision CRUD operations\n relation-provision relationProvision CRUD operations\n schema-grant schemaGrant CRUD operations\n default-privilege defaultPrivilege 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 trigger-function triggerFunction CRUD operations\n api api CRUD operations\n site site CRUD operations\n app app 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 field-module fieldModule 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 uuid-module uuidModule 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-grant orgGrant CRUD operations\n org-chart-edge orgChartEdge CRUD operations\n org-chart-edge-grant orgChartEdgeGrant CRUD operations\n app-limit appLimit CRUD operations\n org-limit orgLimit CRUD operations\n app-step appStep CRUD operations\n app-achievement appAchievement CRUD operations\n invite invite CRUD operations\n claimed-invite claimedInvite CRUD operations\n org-invite orgInvite CRUD operations\n org-claimed-invite orgClaimedInvite CRUD operations\n ref ref CRUD operations\n store store CRUD operations\n app-permission-default appPermissionDefault CRUD operations\n crypto-address cryptoAddress CRUD operations\n role-type roleType CRUD operations\n org-permission-default orgPermissionDefault CRUD operations\n phone-number phoneNumber CRUD operations\n app-limit-default appLimitDefault CRUD operations\n org-limit-default orgLimitDefault CRUD operations\n connected-account connectedAccount CRUD operations\n node-type-registry nodeTypeRegistry CRUD operations\n membership-type membershipType CRUD operations\n commit commit CRUD operations\n app-membership-default appMembershipDefault CRUD operations\n rls-module rlsModule CRUD operations\n org-membership-default orgMembershipDefault CRUD operations\n audit-log auditLog CRUD operations\n app-level appLevel CRUD operations\n sql-migration sqlMigration CRUD operations\n email email CRUD operations\n user user CRUD operations\n ast-migration astMigration CRUD operations\n app-membership appMembership CRUD operations\n hierarchy-module hierarchyModule CRUD operations\n current-user-id currentUserId\n current-ip-address currentIpAddress\n current-user-agent currentUserAgent\n app-permissions-get-padded-mask appPermissionsGetPaddedMask\n org-permissions-get-padded-mask orgPermissionsGetPaddedMask\n steps-achieved stepsAchieved\n rev-parse revParse\n org-is-manager-of orgIsManagerOf\n app-permissions-get-mask appPermissionsGetMask\n org-permissions-get-mask orgPermissionsGetMask\n app-permissions-get-mask-by-names appPermissionsGetMaskByNames\n org-permissions-get-mask-by-names orgPermissionsGetMaskByNames\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 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 steps-required Reads and enables pagination through a set of `AppLevelRequirement`.\n current-user currentUser\n sign-out signOut\n send-account-deletion-email sendAccountDeletionEmail\n check-password checkPassword\n submit-invite-code submitInviteCode\n submit-org-invite-code submitOrgInviteCode\n freeze-objects freezeObjects\n init-empty-repo initEmptyRepo\n confirm-delete-account confirmDeleteAccount\n set-password setPassword\n verify-email verifyEmail\n remove-node-at-path removeNodeAtPath\n reset-password resetPassword\n bootstrap-user bootstrapUser\n set-field-order setFieldOrder\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 apply-rls applyRls\n sign-in-one-time-token signInOneTimeToken\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 sign-in signIn\n sign-up signUp\n one-time-token oneTimeToken\n forgot-password forgotPassword\n send-verification-email sendVerificationEmail\n verify-password verifyPassword\n verify-totp verifyTotp\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 get-all-record getAllRecord CRUD operations\n org-get-managers-record orgGetManagersRecord CRUD operations\n org-get-subordinates-record orgGetSubordinatesRecord CRUD operations\n object object CRUD operations\n app-permission appPermission CRUD operations\n org-permission orgPermission 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 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 table-template-module tableTemplateModule CRUD operations\n secure-table-provision secureTableProvision CRUD operations\n relation-provision relationProvision CRUD operations\n schema-grant schemaGrant CRUD operations\n default-privilege defaultPrivilege CRUD operations\n enum enum 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 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 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 field-module fieldModule 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 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-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 org-limit orgLimit 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 connected-account connectedAccount CRUD operations\n invite invite CRUD operations\n claimed-invite claimedInvite CRUD operations\n org-invite orgInvite CRUD operations\n org-claimed-invite orgClaimedInvite CRUD operations\n audit-log auditLog CRUD operations\n ref ref CRUD operations\n store store CRUD operations\n app-permission-default appPermissionDefault CRUD operations\n role-type roleType CRUD operations\n app-limit-default appLimitDefault CRUD operations\n org-limit-default orgLimitDefault CRUD operations\n node-type-registry nodeTypeRegistry CRUD operations\n membership-type membershipType CRUD operations\n commit commit CRUD operations\n app-membership-default appMembershipDefault CRUD operations\n rls-module rlsModule CRUD operations\n org-membership-default orgMembershipDefault CRUD operations\n sql-migration sqlMigration CRUD operations\n user user CRUD operations\n ast-migration astMigration CRUD operations\n app-membership appMembership CRUD operations\n hierarchy-module hierarchyModule CRUD operations\n current-user-id currentUserId\n current-ip-address currentIpAddress\n current-user-agent currentUserAgent\n app-permissions-get-padded-mask appPermissionsGetPaddedMask\n org-permissions-get-padded-mask orgPermissionsGetPaddedMask\n steps-achieved stepsAchieved\n rev-parse revParse\n org-is-manager-of orgIsManagerOf\n app-permissions-get-mask appPermissionsGetMask\n org-permissions-get-mask orgPermissionsGetMask\n app-permissions-get-mask-by-names appPermissionsGetMaskByNames\n org-permissions-get-mask-by-names orgPermissionsGetMaskByNames\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 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 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 submit-invite-code submitInviteCode\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 draft blueprint definition. Four phases: (1) create tables with nodes[], fields, and policies[], (2) create relations between tables, (3) create indexes on table fields (supports BTREE, HNSW, GIN, GIST, BM25, etc.), (4) create full-text search configurations with weighted multi-field TSVector support. nodes[] entries can be strings or {$type, data} objects. Relations use $type for relation_type with junction config in data. Indexes reference table_ref + column name(s) and are resolved to field_ids. Full-text searches reference table_ref + tsvector field + source fields with weights/langs. Builds a ref_map of local ref names to created table UUIDs. Updates blueprint status to constructed (or failed with error_details). Returns the ref_map.\n reset-password resetPassword\n remove-node-at-path removeNodeAtPath\n set-data-at-path setDataAtPath\n set-props-and-commit setPropsAndCommit\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-database-with-user provisionDatabaseWithUser\n bootstrap-user bootstrapUser\n set-field-order setFieldOrder\n insert-node-at-path insertNodeAtPath\n update-node-at-path updateNodeAtPath\n set-and-commit setAndCommit\n apply-rls applyRls\n sign-in-one-time-token signInOneTimeToken\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 sign-in signIn\n sign-up signUp\n one-time-token oneTimeToken\n send-verification-email sendVerificationEmail\n forgot-password forgotPassword\n verify-password verifyPassword\n verify-totp verifyTotp\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/accept-database-transfer.ts b/sdk/constructive-cli/src/public/cli/commands/accept-database-transfer.ts new file mode 100644 index 000000000..3ebc01d25 --- /dev/null +++ b/sdk/constructive-cli/src/public/cli/commands/accept-database-transfer.ts @@ -0,0 +1,53 @@ +/** + * CLI command for mutation acceptDatabaseTransfer + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { CLIOptions, Inquirerer } from 'inquirerer'; +import { getClient } from '../executor'; +import { unflattenDotNotation, buildSelectFromPaths } from '../utils'; +import type { AcceptDatabaseTransferVariables } from '../../orm/mutation'; +import type { AcceptDatabaseTransferPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'accept-database-transfer - acceptDatabaseTransfer\n\nUsage: accept-database-transfer [OPTIONS]\n' + ); + process.exit(0); + } + const answers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'input', + message: + 'The exclusive input argument for this mutation. An object type, make sure to see documentation for this object\u2019s fields.', + required: true, + }, + ]); + const client = getClient(); + const parsedAnswers = unflattenDotNotation(answers); + const selectFields = buildSelectFromPaths((argv.select as string) ?? 'clientMutationId'); + const result = await client.mutation + .acceptDatabaseTransfer( + parsedAnswers as unknown as AcceptDatabaseTransferVariables, + { + select: selectFields, + } as unknown as { + select: AcceptDatabaseTransferPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: acceptDatabaseTransfer'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/public/cli/commands/api-module.ts b/sdk/constructive-cli/src/public/cli/commands/api-module.ts index 6b09d15b0..1131ae3fa 100644 --- a/sdk/constructive-cli/src/public/cli/commands/api-module.ts +++ b/sdk/constructive-cli/src/public/cli/commands/api-module.ts @@ -14,8 +14,6 @@ const fieldSchema: FieldSchema = { apiId: 'uuid', name: 'string', data: 'json', - nameTrgmSimilarity: 'float', - searchScore: 'float', }; const usage = '\napi-module \n\nCommands:\n list List all apiModule records\n get Get a apiModule by ID\n create Create a new apiModule\n update Update an existing apiModule\n delete Delete a apiModule\n\n --help, -h Show this help message\n'; diff --git a/sdk/constructive-cli/src/public/cli/commands/api.ts b/sdk/constructive-cli/src/public/cli/commands/api.ts index da63e76d7..cdb904246 100644 --- a/sdk/constructive-cli/src/public/cli/commands/api.ts +++ b/sdk/constructive-cli/src/public/cli/commands/api.ts @@ -16,11 +16,6 @@ const fieldSchema: FieldSchema = { roleName: 'string', anonRole: 'string', isPublic: 'boolean', - nameTrgmSimilarity: 'float', - dbnameTrgmSimilarity: 'float', - roleNameTrgmSimilarity: 'float', - anonRoleTrgmSimilarity: 'float', - searchScore: 'float', }; const usage = '\napi \n\nCommands:\n list List all api records\n get Get a api by ID\n create Create a new api\n update Update an existing api\n delete Delete a api\n\n --help, -h Show this help message\n'; diff --git a/sdk/constructive-cli/src/public/cli/commands/app-level-requirement.ts b/sdk/constructive-cli/src/public/cli/commands/app-level-requirement.ts index f41f9c940..1e6781802 100644 --- a/sdk/constructive-cli/src/public/cli/commands/app-level-requirement.ts +++ b/sdk/constructive-cli/src/public/cli/commands/app-level-requirement.ts @@ -20,8 +20,6 @@ const fieldSchema: FieldSchema = { priority: 'int', createdAt: 'string', updatedAt: 'string', - descriptionTrgmSimilarity: 'float', - searchScore: 'float', }; const usage = '\napp-level-requirement \n\nCommands:\n list List all appLevelRequirement records\n get Get a appLevelRequirement by ID\n create Create a new appLevelRequirement\n update Update an existing appLevelRequirement\n delete Delete a appLevelRequirement\n\n --help, -h Show this help message\n'; diff --git a/sdk/constructive-cli/src/public/cli/commands/app-level.ts b/sdk/constructive-cli/src/public/cli/commands/app-level.ts index c21b85d0a..346ad0c7f 100644 --- a/sdk/constructive-cli/src/public/cli/commands/app-level.ts +++ b/sdk/constructive-cli/src/public/cli/commands/app-level.ts @@ -16,8 +16,6 @@ const fieldSchema: FieldSchema = { ownerId: 'uuid', createdAt: 'string', updatedAt: 'string', - descriptionTrgmSimilarity: 'float', - searchScore: 'float', }; const usage = '\napp-level \n\nCommands:\n list List all appLevel records\n get Get a appLevel by ID\n create Create a new appLevel\n update Update an existing appLevel\n delete Delete a appLevel\n\n --help, -h Show this help message\n'; diff --git a/sdk/constructive-cli/src/public/cli/commands/app-permission.ts b/sdk/constructive-cli/src/public/cli/commands/app-permission.ts index 652e5a821..61f8849ca 100644 --- a/sdk/constructive-cli/src/public/cli/commands/app-permission.ts +++ b/sdk/constructive-cli/src/public/cli/commands/app-permission.ts @@ -14,8 +14,6 @@ const fieldSchema: FieldSchema = { bitnum: 'int', bitstr: 'string', description: 'string', - descriptionTrgmSimilarity: 'float', - searchScore: 'float', }; const usage = '\napp-permission \n\nCommands:\n list List all appPermission records\n get Get a appPermission by ID\n create Create a new appPermission\n update Update an existing appPermission\n delete Delete a appPermission\n\n --help, -h Show this help message\n'; diff --git a/sdk/constructive-cli/src/public/cli/commands/app.ts b/sdk/constructive-cli/src/public/cli/commands/app.ts index 41ad93cdd..33d9b5c1b 100644 --- a/sdk/constructive-cli/src/public/cli/commands/app.ts +++ b/sdk/constructive-cli/src/public/cli/commands/app.ts @@ -18,10 +18,6 @@ const fieldSchema: FieldSchema = { appStoreId: 'string', appIdPrefix: 'string', playStoreLink: 'string', - nameTrgmSimilarity: 'float', - appStoreIdTrgmSimilarity: 'float', - appIdPrefixTrgmSimilarity: 'float', - searchScore: 'float', }; const usage = '\napp \n\nCommands:\n list List all app records\n get Get a app by ID\n create Create a new app\n update Update an existing app\n delete Delete a app\n\n --help, -h Show this help message\n'; diff --git a/sdk/constructive-cli/src/public/cli/commands/ast-migration.ts b/sdk/constructive-cli/src/public/cli/commands/ast-migration.ts index 52bab20dd..3ef3cc590 100644 --- a/sdk/constructive-cli/src/public/cli/commands/ast-migration.ts +++ b/sdk/constructive-cli/src/public/cli/commands/ast-migration.ts @@ -22,8 +22,6 @@ const fieldSchema: FieldSchema = { action: 'string', actionId: 'uuid', actorId: 'uuid', - actionTrgmSimilarity: 'float', - searchScore: 'float', }; const usage = '\nast-migration \n\nCommands:\n list List all astMigration records\n create Create a new astMigration\n\n --help, -h Show this help message\n'; diff --git a/sdk/constructive-cli/src/public/cli/commands/audit-log.ts b/sdk/constructive-cli/src/public/cli/commands/audit-log.ts index a90edd0c4..d4e2566ef 100644 --- a/sdk/constructive-cli/src/public/cli/commands/audit-log.ts +++ b/sdk/constructive-cli/src/public/cli/commands/audit-log.ts @@ -17,8 +17,6 @@ const fieldSchema: FieldSchema = { ipAddress: 'string', success: 'boolean', createdAt: 'string', - userAgentTrgmSimilarity: 'float', - searchScore: 'float', }; const usage = '\naudit-log \n\nCommands:\n list List all auditLog records\n get Get a auditLog by ID\n create Create a new auditLog\n update Update an existing auditLog\n delete Delete a auditLog\n\n --help, -h Show this help message\n'; diff --git a/sdk/constructive-cli/src/public/cli/commands/blueprint-template.ts b/sdk/constructive-cli/src/public/cli/commands/blueprint-template.ts new file mode 100644 index 000000000..61af9e01c --- /dev/null +++ b/sdk/constructive-cli/src/public/cli/commands/blueprint-template.ts @@ -0,0 +1,558 @@ +/** + * CLI commands for BlueprintTemplate + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; +import { getClient } from '../executor'; +import { coerceAnswers, stripUndefined } from '../utils'; +import type { FieldSchema } from '../utils'; +import type { CreateBlueprintTemplateInput, BlueprintTemplatePatch } from '../../orm/input-types'; +const fieldSchema: FieldSchema = { + id: 'uuid', + name: 'string', + version: 'string', + displayName: 'string', + description: 'string', + ownerId: 'uuid', + visibility: 'string', + categories: 'string', + tags: 'string', + definition: 'json', + definitionSchemaVersion: 'string', + source: 'string', + complexity: 'string', + copyCount: 'int', + forkCount: 'int', + forkedFromId: 'uuid', + definitionHash: 'uuid', + tableHashes: 'json', + createdAt: 'string', + updatedAt: 'string', +}; +const usage = + '\nblueprint-template \n\nCommands:\n list List all blueprintTemplate records\n get Get a blueprintTemplate by ID\n create Create a new blueprintTemplate\n update Update an existing blueprintTemplate\n delete Delete a blueprintTemplate\n\n --help, -h Show this help message\n'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + if (argv.help || argv.h) { + console.log(usage); + process.exit(0); + } + const { first: subcommand, newArgv } = extractFirst(argv); + if (!subcommand) { + const answer = await prompter.prompt(argv, [ + { + type: 'autocomplete', + name: 'subcommand', + message: 'What do you want to do?', + options: ['list', 'get', 'create', 'update', 'delete'], + }, + ]); + return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); + } + return handleTableSubcommand(subcommand, newArgv, prompter); +}; +async function handleTableSubcommand( + subcommand: string, + argv: Partial>, + prompter: Inquirerer +) { + switch (subcommand) { + case 'list': + return handleList(argv, prompter); + case 'get': + return handleGet(argv, prompter); + case 'create': + return handleCreate(argv, prompter); + case 'update': + return handleUpdate(argv, prompter); + case 'delete': + return handleDelete(argv, prompter); + default: + console.log(usage); + process.exit(1); + } +} +async function handleList(_argv: Partial>, _prompter: Inquirerer) { + try { + const client = getClient(); + const result = await client.blueprintTemplate + .findMany({ + select: { + id: true, + name: true, + version: true, + displayName: true, + description: true, + ownerId: true, + visibility: true, + categories: true, + tags: true, + definition: true, + definitionSchemaVersion: true, + source: true, + complexity: true, + copyCount: true, + forkCount: true, + forkedFromId: true, + definitionHash: true, + tableHashes: true, + createdAt: true, + updatedAt: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to list records.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleGet(argv: Partial>, prompter: Inquirerer) { + try { + const answers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + ]); + const client = getClient(); + const result = await client.blueprintTemplate + .findOne({ + id: answers.id as string, + select: { + id: true, + name: true, + version: true, + displayName: true, + description: true, + ownerId: true, + visibility: true, + categories: true, + tags: true, + definition: true, + definitionSchemaVersion: true, + source: true, + complexity: true, + copyCount: true, + forkCount: true, + forkedFromId: true, + definitionHash: true, + tableHashes: true, + createdAt: true, + updatedAt: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Record not found.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleCreate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'name', + message: 'name', + required: true, + }, + { + type: 'text', + name: 'version', + message: 'version', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'displayName', + message: 'displayName', + required: true, + }, + { + type: 'text', + name: 'description', + message: 'description', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'ownerId', + message: 'ownerId', + required: true, + }, + { + type: 'text', + name: 'visibility', + message: 'visibility', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'categories', + message: 'categories', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'tags', + message: 'tags', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'definition', + message: 'definition', + required: true, + }, + { + type: 'text', + name: 'definitionSchemaVersion', + message: 'definitionSchemaVersion', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'source', + message: 'source', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'complexity', + message: 'complexity', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'copyCount', + message: 'copyCount', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'forkCount', + message: 'forkCount', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'forkedFromId', + message: 'forkedFromId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'definitionHash', + message: 'definitionHash', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'tableHashes', + message: 'tableHashes', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateBlueprintTemplateInput['blueprintTemplate']; + const client = getClient(); + const result = await client.blueprintTemplate + .create({ + data: { + name: cleanedData.name, + version: cleanedData.version, + displayName: cleanedData.displayName, + description: cleanedData.description, + ownerId: cleanedData.ownerId, + visibility: cleanedData.visibility, + categories: cleanedData.categories, + tags: cleanedData.tags, + definition: cleanedData.definition, + definitionSchemaVersion: cleanedData.definitionSchemaVersion, + source: cleanedData.source, + complexity: cleanedData.complexity, + copyCount: cleanedData.copyCount, + forkCount: cleanedData.forkCount, + forkedFromId: cleanedData.forkedFromId, + definitionHash: cleanedData.definitionHash, + tableHashes: cleanedData.tableHashes, + }, + select: { + id: true, + name: true, + version: true, + displayName: true, + description: true, + ownerId: true, + visibility: true, + categories: true, + tags: true, + definition: true, + definitionSchemaVersion: true, + source: true, + complexity: true, + copyCount: true, + forkCount: true, + forkedFromId: true, + definitionHash: true, + tableHashes: true, + createdAt: true, + updatedAt: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to create record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleUpdate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + { + type: 'text', + name: 'name', + message: 'name', + required: false, + }, + { + type: 'text', + name: 'version', + message: 'version', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'displayName', + message: 'displayName', + required: false, + }, + { + type: 'text', + name: 'description', + message: 'description', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'ownerId', + message: 'ownerId', + required: false, + }, + { + type: 'text', + name: 'visibility', + message: 'visibility', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'categories', + message: 'categories', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'tags', + message: 'tags', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'definition', + message: 'definition', + required: false, + }, + { + type: 'text', + name: 'definitionSchemaVersion', + message: 'definitionSchemaVersion', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'source', + message: 'source', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'complexity', + message: 'complexity', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'copyCount', + message: 'copyCount', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'forkCount', + message: 'forkCount', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'forkedFromId', + message: 'forkedFromId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'definitionHash', + message: 'definitionHash', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'tableHashes', + message: 'tableHashes', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as BlueprintTemplatePatch; + const client = getClient(); + const result = await client.blueprintTemplate + .update({ + where: { + id: answers.id as string, + }, + data: { + name: cleanedData.name, + version: cleanedData.version, + displayName: cleanedData.displayName, + description: cleanedData.description, + ownerId: cleanedData.ownerId, + visibility: cleanedData.visibility, + categories: cleanedData.categories, + tags: cleanedData.tags, + definition: cleanedData.definition, + definitionSchemaVersion: cleanedData.definitionSchemaVersion, + source: cleanedData.source, + complexity: cleanedData.complexity, + copyCount: cleanedData.copyCount, + forkCount: cleanedData.forkCount, + forkedFromId: cleanedData.forkedFromId, + definitionHash: cleanedData.definitionHash, + tableHashes: cleanedData.tableHashes, + }, + select: { + id: true, + name: true, + version: true, + displayName: true, + description: true, + ownerId: true, + visibility: true, + categories: true, + tags: true, + definition: true, + definitionSchemaVersion: true, + source: true, + complexity: true, + copyCount: true, + forkCount: true, + forkedFromId: true, + definitionHash: true, + tableHashes: true, + createdAt: true, + updatedAt: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to update record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleDelete(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const client = getClient(); + const result = await client.blueprintTemplate + .delete({ + where: { + id: answers.id as string, + }, + select: { + id: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to delete record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} diff --git a/sdk/constructive-cli/src/public/cli/commands/blueprint.ts b/sdk/constructive-cli/src/public/cli/commands/blueprint.ts new file mode 100644 index 000000000..7d31d30a5 --- /dev/null +++ b/sdk/constructive-cli/src/public/cli/commands/blueprint.ts @@ -0,0 +1,490 @@ +/** + * CLI commands for Blueprint + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; +import { getClient } from '../executor'; +import { coerceAnswers, stripUndefined } from '../utils'; +import type { FieldSchema } from '../utils'; +import type { CreateBlueprintInput, BlueprintPatch } from '../../orm/input-types'; +const fieldSchema: FieldSchema = { + id: 'uuid', + ownerId: 'uuid', + databaseId: 'uuid', + name: 'string', + displayName: 'string', + description: 'string', + definition: 'json', + templateId: 'uuid', + status: 'string', + constructedAt: 'string', + errorDetails: 'string', + refMap: 'json', + constructedDefinition: 'json', + definitionHash: 'uuid', + tableHashes: 'json', + createdAt: 'string', + updatedAt: 'string', +}; +const usage = + '\nblueprint \n\nCommands:\n list List all blueprint records\n get Get a blueprint by ID\n create Create a new blueprint\n update Update an existing blueprint\n delete Delete a blueprint\n\n --help, -h Show this help message\n'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + if (argv.help || argv.h) { + console.log(usage); + process.exit(0); + } + const { first: subcommand, newArgv } = extractFirst(argv); + if (!subcommand) { + const answer = await prompter.prompt(argv, [ + { + type: 'autocomplete', + name: 'subcommand', + message: 'What do you want to do?', + options: ['list', 'get', 'create', 'update', 'delete'], + }, + ]); + return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); + } + return handleTableSubcommand(subcommand, newArgv, prompter); +}; +async function handleTableSubcommand( + subcommand: string, + argv: Partial>, + prompter: Inquirerer +) { + switch (subcommand) { + case 'list': + return handleList(argv, prompter); + case 'get': + return handleGet(argv, prompter); + case 'create': + return handleCreate(argv, prompter); + case 'update': + return handleUpdate(argv, prompter); + case 'delete': + return handleDelete(argv, prompter); + default: + console.log(usage); + process.exit(1); + } +} +async function handleList(_argv: Partial>, _prompter: Inquirerer) { + try { + const client = getClient(); + const result = await client.blueprint + .findMany({ + select: { + id: true, + ownerId: true, + databaseId: true, + name: true, + displayName: true, + description: true, + definition: true, + templateId: true, + status: true, + constructedAt: true, + errorDetails: true, + refMap: true, + constructedDefinition: true, + definitionHash: true, + tableHashes: true, + createdAt: true, + updatedAt: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to list records.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleGet(argv: Partial>, prompter: Inquirerer) { + try { + const answers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + ]); + const client = getClient(); + const result = await client.blueprint + .findOne({ + id: answers.id as string, + select: { + id: true, + ownerId: true, + databaseId: true, + name: true, + displayName: true, + description: true, + definition: true, + templateId: true, + status: true, + constructedAt: true, + errorDetails: true, + refMap: true, + constructedDefinition: true, + definitionHash: true, + tableHashes: true, + createdAt: true, + updatedAt: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Record not found.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleCreate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'ownerId', + message: 'ownerId', + required: true, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: true, + }, + { + type: 'text', + name: 'name', + message: 'name', + required: true, + }, + { + type: 'text', + name: 'displayName', + message: 'displayName', + required: true, + }, + { + type: 'text', + name: 'description', + message: 'description', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'definition', + message: 'definition', + required: true, + }, + { + type: 'text', + name: 'templateId', + message: 'templateId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'status', + message: 'status', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'constructedAt', + message: 'constructedAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'errorDetails', + message: 'errorDetails', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'refMap', + message: 'refMap', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'constructedDefinition', + message: 'constructedDefinition', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'definitionHash', + message: 'definitionHash', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'tableHashes', + message: 'tableHashes', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as CreateBlueprintInput['blueprint']; + const client = getClient(); + const result = await client.blueprint + .create({ + data: { + ownerId: cleanedData.ownerId, + databaseId: cleanedData.databaseId, + name: cleanedData.name, + displayName: cleanedData.displayName, + description: cleanedData.description, + definition: cleanedData.definition, + templateId: cleanedData.templateId, + status: cleanedData.status, + constructedAt: cleanedData.constructedAt, + errorDetails: cleanedData.errorDetails, + refMap: cleanedData.refMap, + constructedDefinition: cleanedData.constructedDefinition, + definitionHash: cleanedData.definitionHash, + tableHashes: cleanedData.tableHashes, + }, + select: { + id: true, + ownerId: true, + databaseId: true, + name: true, + displayName: true, + description: true, + definition: true, + templateId: true, + status: true, + constructedAt: true, + errorDetails: true, + refMap: true, + constructedDefinition: true, + definitionHash: true, + tableHashes: true, + createdAt: true, + updatedAt: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to create record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleUpdate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + { + type: 'text', + name: 'ownerId', + message: 'ownerId', + required: false, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: false, + }, + { + type: 'text', + name: 'name', + message: 'name', + required: false, + }, + { + type: 'text', + name: 'displayName', + message: 'displayName', + required: false, + }, + { + type: 'text', + name: 'description', + message: 'description', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'definition', + message: 'definition', + required: false, + }, + { + type: 'text', + name: 'templateId', + message: 'templateId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'status', + message: 'status', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'constructedAt', + message: 'constructedAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'errorDetails', + message: 'errorDetails', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'refMap', + message: 'refMap', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'constructedDefinition', + message: 'constructedDefinition', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'definitionHash', + message: 'definitionHash', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'tableHashes', + message: 'tableHashes', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as BlueprintPatch; + const client = getClient(); + const result = await client.blueprint + .update({ + where: { + id: answers.id as string, + }, + data: { + ownerId: cleanedData.ownerId, + databaseId: cleanedData.databaseId, + name: cleanedData.name, + displayName: cleanedData.displayName, + description: cleanedData.description, + definition: cleanedData.definition, + templateId: cleanedData.templateId, + status: cleanedData.status, + constructedAt: cleanedData.constructedAt, + errorDetails: cleanedData.errorDetails, + refMap: cleanedData.refMap, + constructedDefinition: cleanedData.constructedDefinition, + definitionHash: cleanedData.definitionHash, + tableHashes: cleanedData.tableHashes, + }, + select: { + id: true, + ownerId: true, + databaseId: true, + name: true, + displayName: true, + description: true, + definition: true, + templateId: true, + status: true, + constructedAt: true, + errorDetails: true, + refMap: true, + constructedDefinition: true, + definitionHash: true, + tableHashes: true, + createdAt: true, + updatedAt: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to update record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleDelete(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const client = getClient(); + const result = await client.blueprint + .delete({ + where: { + id: answers.id as string, + }, + select: { + id: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to delete record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} diff --git a/sdk/constructive-cli/src/public/cli/commands/cancel-database-transfer.ts b/sdk/constructive-cli/src/public/cli/commands/cancel-database-transfer.ts new file mode 100644 index 000000000..45bf96ab1 --- /dev/null +++ b/sdk/constructive-cli/src/public/cli/commands/cancel-database-transfer.ts @@ -0,0 +1,53 @@ +/** + * CLI command for mutation cancelDatabaseTransfer + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { CLIOptions, Inquirerer } from 'inquirerer'; +import { getClient } from '../executor'; +import { unflattenDotNotation, buildSelectFromPaths } from '../utils'; +import type { CancelDatabaseTransferVariables } from '../../orm/mutation'; +import type { CancelDatabaseTransferPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'cancel-database-transfer - cancelDatabaseTransfer\n\nUsage: cancel-database-transfer [OPTIONS]\n' + ); + process.exit(0); + } + const answers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'input', + message: + 'The exclusive input argument for this mutation. An object type, make sure to see documentation for this object\u2019s fields.', + required: true, + }, + ]); + const client = getClient(); + const parsedAnswers = unflattenDotNotation(answers); + const selectFields = buildSelectFromPaths((argv.select as string) ?? 'clientMutationId'); + const result = await client.mutation + .cancelDatabaseTransfer( + parsedAnswers as unknown as CancelDatabaseTransferVariables, + { + select: selectFields, + } as unknown as { + select: CancelDatabaseTransferPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: cancelDatabaseTransfer'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/public/cli/commands/check-constraint.ts b/sdk/constructive-cli/src/public/cli/commands/check-constraint.ts index f2652c62b..27e7683c9 100644 --- a/sdk/constructive-cli/src/public/cli/commands/check-constraint.ts +++ b/sdk/constructive-cli/src/public/cli/commands/check-constraint.ts @@ -23,10 +23,6 @@ const fieldSchema: FieldSchema = { tags: 'string', createdAt: 'string', updatedAt: 'string', - nameTrgmSimilarity: 'float', - typeTrgmSimilarity: 'float', - moduleTrgmSimilarity: 'float', - searchScore: 'float', }; const usage = '\ncheck-constraint \n\nCommands:\n list List all checkConstraint records\n get Get a checkConstraint by ID\n create Create a new checkConstraint\n update Update an existing checkConstraint\n delete Delete a checkConstraint\n\n --help, -h Show this help message\n'; diff --git a/sdk/constructive-cli/src/public/cli/commands/commit.ts b/sdk/constructive-cli/src/public/cli/commands/commit.ts index 905cf9fc1..41e83a4f2 100644 --- a/sdk/constructive-cli/src/public/cli/commands/commit.ts +++ b/sdk/constructive-cli/src/public/cli/commands/commit.ts @@ -18,8 +18,6 @@ const fieldSchema: FieldSchema = { committerId: 'uuid', treeId: 'uuid', date: 'string', - messageTrgmSimilarity: 'float', - searchScore: 'float', }; const usage = '\ncommit \n\nCommands:\n list List all commit records\n get Get a commit by ID\n create Create a new commit\n update Update an existing commit\n delete Delete a commit\n\n --help, -h Show this help message\n'; diff --git a/sdk/constructive-cli/src/public/cli/commands/connected-account.ts b/sdk/constructive-cli/src/public/cli/commands/connected-account.ts index 536be726e..373ce17f3 100644 --- a/sdk/constructive-cli/src/public/cli/commands/connected-account.ts +++ b/sdk/constructive-cli/src/public/cli/commands/connected-account.ts @@ -17,9 +17,6 @@ const fieldSchema: FieldSchema = { isVerified: 'boolean', createdAt: 'string', updatedAt: 'string', - serviceTrgmSimilarity: 'float', - identifierTrgmSimilarity: 'float', - searchScore: 'float', }; const usage = '\nconnected-account \n\nCommands:\n list List all connectedAccount records\n get Get a connectedAccount by ID\n create Create a new connectedAccount\n update Update an existing connectedAccount\n delete Delete a connectedAccount\n\n --help, -h Show this help message\n'; diff --git a/sdk/constructive-cli/src/public/cli/commands/connected-accounts-module.ts b/sdk/constructive-cli/src/public/cli/commands/connected-accounts-module.ts index f195e5063..eda2d569e 100644 --- a/sdk/constructive-cli/src/public/cli/commands/connected-accounts-module.ts +++ b/sdk/constructive-cli/src/public/cli/commands/connected-accounts-module.ts @@ -19,8 +19,6 @@ const fieldSchema: FieldSchema = { tableId: 'uuid', ownerTableId: 'uuid', tableName: 'string', - tableNameTrgmSimilarity: 'float', - searchScore: 'float', }; const usage = '\nconnected-accounts-module \n\nCommands:\n list List all connectedAccountsModule records\n get Get a connectedAccountsModule by ID\n create Create a new connectedAccountsModule\n update Update an existing connectedAccountsModule\n delete Delete a connectedAccountsModule\n\n --help, -h Show this help message\n'; diff --git a/sdk/constructive-cli/src/public/cli/commands/construct-blueprint.ts b/sdk/constructive-cli/src/public/cli/commands/construct-blueprint.ts new file mode 100644 index 000000000..f314e2243 --- /dev/null +++ b/sdk/constructive-cli/src/public/cli/commands/construct-blueprint.ts @@ -0,0 +1,53 @@ +/** + * CLI command for mutation constructBlueprint + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { CLIOptions, Inquirerer } from 'inquirerer'; +import { getClient } from '../executor'; +import { unflattenDotNotation, buildSelectFromPaths } from '../utils'; +import type { ConstructBlueprintVariables } from '../../orm/mutation'; +import type { ConstructBlueprintPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'construct-blueprint - Executes a draft blueprint definition. Four phases: (1) create tables with nodes[], fields, and policies[], (2) create relations between tables, (3) create indexes on table fields (supports BTREE, HNSW, GIN, GIST, BM25, etc.), (4) create full-text search configurations with weighted multi-field TSVector support. nodes[] entries can be strings or {$type, data} objects. Relations use $type for relation_type with junction config in data. Indexes reference table_ref + column name(s) and are resolved to field_ids. Full-text searches reference table_ref + tsvector field + source fields with weights/langs. Builds a ref_map of local ref names to created table UUIDs. Updates blueprint status to constructed (or failed with error_details). Returns the ref_map.\n\nUsage: construct-blueprint [OPTIONS]\n' + ); + process.exit(0); + } + const answers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'input', + message: + 'The exclusive input argument for this mutation. An object type, make sure to see documentation for this object\u2019s fields.', + required: true, + }, + ]); + const client = getClient(); + const parsedAnswers = unflattenDotNotation(answers); + const selectFields = buildSelectFromPaths((argv.select as string) ?? 'clientMutationId'); + const result = await client.mutation + .constructBlueprint( + parsedAnswers as unknown as ConstructBlueprintVariables, + { + select: selectFields, + } as unknown as { + select: ConstructBlueprintPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: constructBlueprint'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/public/cli/commands/copy-template-to-blueprint.ts b/sdk/constructive-cli/src/public/cli/commands/copy-template-to-blueprint.ts new file mode 100644 index 000000000..4630d2155 --- /dev/null +++ b/sdk/constructive-cli/src/public/cli/commands/copy-template-to-blueprint.ts @@ -0,0 +1,53 @@ +/** + * CLI command for mutation copyTemplateToBlueprint + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { CLIOptions, Inquirerer } from 'inquirerer'; +import { getClient } from '../executor'; +import { unflattenDotNotation, buildSelectFromPaths } from '../utils'; +import type { CopyTemplateToBlueprintVariables } from '../../orm/mutation'; +import type { CopyTemplateToBlueprintPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + '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\nUsage: copy-template-to-blueprint [OPTIONS]\n' + ); + process.exit(0); + } + const answers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'input', + message: + 'The exclusive input argument for this mutation. An object type, make sure to see documentation for this object\u2019s fields.', + required: true, + }, + ]); + const client = getClient(); + const parsedAnswers = unflattenDotNotation(answers); + const selectFields = buildSelectFromPaths((argv.select as string) ?? 'clientMutationId'); + const result = await client.mutation + .copyTemplateToBlueprint( + parsedAnswers as unknown as CopyTemplateToBlueprintVariables, + { + select: selectFields, + } as unknown as { + select: CopyTemplateToBlueprintPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: copyTemplateToBlueprint'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/public/cli/commands/crypto-address.ts b/sdk/constructive-cli/src/public/cli/commands/crypto-address.ts index 3f9110c83..a4d171639 100644 --- a/sdk/constructive-cli/src/public/cli/commands/crypto-address.ts +++ b/sdk/constructive-cli/src/public/cli/commands/crypto-address.ts @@ -16,8 +16,6 @@ const fieldSchema: FieldSchema = { isPrimary: 'boolean', createdAt: 'string', updatedAt: 'string', - addressTrgmSimilarity: 'float', - searchScore: 'float', }; const usage = '\ncrypto-address \n\nCommands:\n list List all cryptoAddress records\n get Get a cryptoAddress by ID\n create Create a new cryptoAddress\n update Update an existing cryptoAddress\n delete Delete a cryptoAddress\n\n --help, -h Show this help message\n'; diff --git a/sdk/constructive-cli/src/public/cli/commands/crypto-addresses-module.ts b/sdk/constructive-cli/src/public/cli/commands/crypto-addresses-module.ts index d907bca89..e444c2331 100644 --- a/sdk/constructive-cli/src/public/cli/commands/crypto-addresses-module.ts +++ b/sdk/constructive-cli/src/public/cli/commands/crypto-addresses-module.ts @@ -20,9 +20,6 @@ const fieldSchema: FieldSchema = { ownerTableId: 'uuid', tableName: 'string', cryptoNetwork: 'string', - tableNameTrgmSimilarity: 'float', - cryptoNetworkTrgmSimilarity: 'float', - searchScore: 'float', }; const usage = '\ncrypto-addresses-module \n\nCommands:\n list List all cryptoAddressesModule records\n get Get a cryptoAddressesModule by ID\n create Create a new cryptoAddressesModule\n update Update an existing cryptoAddressesModule\n delete Delete a cryptoAddressesModule\n\n --help, -h Show this help message\n'; diff --git a/sdk/constructive-cli/src/public/cli/commands/crypto-auth-module.ts b/sdk/constructive-cli/src/public/cli/commands/crypto-auth-module.ts index dc3a4fb3c..e86a195d1 100644 --- a/sdk/constructive-cli/src/public/cli/commands/crypto-auth-module.ts +++ b/sdk/constructive-cli/src/public/cli/commands/crypto-auth-module.ts @@ -23,13 +23,6 @@ const fieldSchema: FieldSchema = { signInRecordFailure: 'string', signUpWithKey: 'string', signInWithChallenge: 'string', - userFieldTrgmSimilarity: 'float', - cryptoNetworkTrgmSimilarity: 'float', - signInRequestChallengeTrgmSimilarity: 'float', - signInRecordFailureTrgmSimilarity: 'float', - signUpWithKeyTrgmSimilarity: 'float', - signInWithChallengeTrgmSimilarity: 'float', - searchScore: 'float', }; const usage = '\ncrypto-auth-module \n\nCommands:\n list List all cryptoAuthModule records\n get Get a cryptoAuthModule by ID\n create Create a new cryptoAuthModule\n update Update an existing cryptoAuthModule\n delete Delete a cryptoAuthModule\n\n --help, -h Show this help message\n'; diff --git a/sdk/constructive-cli/src/public/cli/commands/database-provision-module.ts b/sdk/constructive-cli/src/public/cli/commands/database-provision-module.ts index d27c55497..e1ad016a3 100644 --- a/sdk/constructive-cli/src/public/cli/commands/database-provision-module.ts +++ b/sdk/constructive-cli/src/public/cli/commands/database-provision-module.ts @@ -26,12 +26,6 @@ const fieldSchema: FieldSchema = { createdAt: 'string', updatedAt: 'string', completedAt: 'string', - databaseNameTrgmSimilarity: 'float', - subdomainTrgmSimilarity: 'float', - domainTrgmSimilarity: 'float', - statusTrgmSimilarity: 'float', - errorMessageTrgmSimilarity: 'float', - searchScore: 'float', }; const usage = '\ndatabase-provision-module \n\nCommands:\n list List all databaseProvisionModule records\n get Get a databaseProvisionModule by ID\n create Create a new databaseProvisionModule\n update Update an existing databaseProvisionModule\n delete Delete a databaseProvisionModule\n\n --help, -h Show this help message\n'; diff --git a/sdk/constructive-cli/src/public/cli/commands/database-transfer.ts b/sdk/constructive-cli/src/public/cli/commands/database-transfer.ts new file mode 100644 index 000000000..5ff49a374 --- /dev/null +++ b/sdk/constructive-cli/src/public/cli/commands/database-transfer.ts @@ -0,0 +1,434 @@ +/** + * CLI commands for DatabaseTransfer + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; +import { getClient } from '../executor'; +import { coerceAnswers, stripUndefined } from '../utils'; +import type { FieldSchema } from '../utils'; +import type { CreateDatabaseTransferInput, DatabaseTransferPatch } from '../../orm/input-types'; +const fieldSchema: FieldSchema = { + id: 'uuid', + databaseId: 'uuid', + targetOwnerId: 'uuid', + sourceApproved: 'boolean', + targetApproved: 'boolean', + sourceApprovedAt: 'string', + targetApprovedAt: 'string', + status: 'string', + initiatedBy: 'uuid', + notes: 'string', + expiresAt: 'string', + createdAt: 'string', + updatedAt: 'string', + completedAt: 'string', +}; +const usage = + '\ndatabase-transfer \n\nCommands:\n list List all databaseTransfer records\n get Get a databaseTransfer by ID\n create Create a new databaseTransfer\n update Update an existing databaseTransfer\n delete Delete a databaseTransfer\n\n --help, -h Show this help message\n'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + if (argv.help || argv.h) { + console.log(usage); + process.exit(0); + } + const { first: subcommand, newArgv } = extractFirst(argv); + if (!subcommand) { + const answer = await prompter.prompt(argv, [ + { + type: 'autocomplete', + name: 'subcommand', + message: 'What do you want to do?', + options: ['list', 'get', 'create', 'update', 'delete'], + }, + ]); + return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); + } + return handleTableSubcommand(subcommand, newArgv, prompter); +}; +async function handleTableSubcommand( + subcommand: string, + argv: Partial>, + prompter: Inquirerer +) { + switch (subcommand) { + case 'list': + return handleList(argv, prompter); + case 'get': + return handleGet(argv, prompter); + case 'create': + return handleCreate(argv, prompter); + case 'update': + return handleUpdate(argv, prompter); + case 'delete': + return handleDelete(argv, prompter); + default: + console.log(usage); + process.exit(1); + } +} +async function handleList(_argv: Partial>, _prompter: Inquirerer) { + try { + const client = getClient(); + const result = await client.databaseTransfer + .findMany({ + select: { + id: true, + databaseId: true, + targetOwnerId: true, + sourceApproved: true, + targetApproved: true, + sourceApprovedAt: true, + targetApprovedAt: true, + status: true, + initiatedBy: true, + notes: true, + expiresAt: true, + createdAt: true, + updatedAt: true, + completedAt: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to list records.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleGet(argv: Partial>, prompter: Inquirerer) { + try { + const answers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + ]); + const client = getClient(); + const result = await client.databaseTransfer + .findOne({ + id: answers.id as string, + select: { + id: true, + databaseId: true, + targetOwnerId: true, + sourceApproved: true, + targetApproved: true, + sourceApprovedAt: true, + targetApprovedAt: true, + status: true, + initiatedBy: true, + notes: true, + expiresAt: true, + createdAt: true, + updatedAt: true, + completedAt: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Record not found.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleCreate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: true, + }, + { + type: 'text', + name: 'targetOwnerId', + message: 'targetOwnerId', + required: true, + }, + { + type: 'boolean', + name: 'sourceApproved', + message: 'sourceApproved', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'targetApproved', + message: 'targetApproved', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'sourceApprovedAt', + message: 'sourceApprovedAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'targetApprovedAt', + message: 'targetApprovedAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'status', + message: 'status', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'initiatedBy', + message: 'initiatedBy', + required: true, + }, + { + type: 'text', + name: 'notes', + message: 'notes', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'expiresAt', + message: 'expiresAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'completedAt', + message: 'completedAt', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateDatabaseTransferInput['databaseTransfer']; + const client = getClient(); + const result = await client.databaseTransfer + .create({ + data: { + databaseId: cleanedData.databaseId, + targetOwnerId: cleanedData.targetOwnerId, + sourceApproved: cleanedData.sourceApproved, + targetApproved: cleanedData.targetApproved, + sourceApprovedAt: cleanedData.sourceApprovedAt, + targetApprovedAt: cleanedData.targetApprovedAt, + status: cleanedData.status, + initiatedBy: cleanedData.initiatedBy, + notes: cleanedData.notes, + expiresAt: cleanedData.expiresAt, + completedAt: cleanedData.completedAt, + }, + select: { + id: true, + databaseId: true, + targetOwnerId: true, + sourceApproved: true, + targetApproved: true, + sourceApprovedAt: true, + targetApprovedAt: true, + status: true, + initiatedBy: true, + notes: true, + expiresAt: true, + createdAt: true, + updatedAt: true, + completedAt: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to create record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleUpdate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: false, + }, + { + type: 'text', + name: 'targetOwnerId', + message: 'targetOwnerId', + required: false, + }, + { + type: 'boolean', + name: 'sourceApproved', + message: 'sourceApproved', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'targetApproved', + message: 'targetApproved', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'sourceApprovedAt', + message: 'sourceApprovedAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'targetApprovedAt', + message: 'targetApprovedAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'status', + message: 'status', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'initiatedBy', + message: 'initiatedBy', + required: false, + }, + { + type: 'text', + name: 'notes', + message: 'notes', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'expiresAt', + message: 'expiresAt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'completedAt', + message: 'completedAt', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as DatabaseTransferPatch; + const client = getClient(); + const result = await client.databaseTransfer + .update({ + where: { + id: answers.id as string, + }, + data: { + databaseId: cleanedData.databaseId, + targetOwnerId: cleanedData.targetOwnerId, + sourceApproved: cleanedData.sourceApproved, + targetApproved: cleanedData.targetApproved, + sourceApprovedAt: cleanedData.sourceApprovedAt, + targetApprovedAt: cleanedData.targetApprovedAt, + status: cleanedData.status, + initiatedBy: cleanedData.initiatedBy, + notes: cleanedData.notes, + expiresAt: cleanedData.expiresAt, + completedAt: cleanedData.completedAt, + }, + select: { + id: true, + databaseId: true, + targetOwnerId: true, + sourceApproved: true, + targetApproved: true, + sourceApprovedAt: true, + targetApprovedAt: true, + status: true, + initiatedBy: true, + notes: true, + expiresAt: true, + createdAt: true, + updatedAt: true, + completedAt: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to update record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleDelete(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const client = getClient(); + const result = await client.databaseTransfer + .delete({ + where: { + id: answers.id as string, + }, + select: { + id: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to delete record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} diff --git a/sdk/constructive-cli/src/public/cli/commands/database.ts b/sdk/constructive-cli/src/public/cli/commands/database.ts index 0bf0b59d5..012a358c8 100644 --- a/sdk/constructive-cli/src/public/cli/commands/database.ts +++ b/sdk/constructive-cli/src/public/cli/commands/database.ts @@ -17,10 +17,6 @@ const fieldSchema: FieldSchema = { hash: 'uuid', createdAt: 'string', updatedAt: 'string', - schemaHashTrgmSimilarity: 'float', - nameTrgmSimilarity: 'float', - labelTrgmSimilarity: 'float', - searchScore: 'float', }; const usage = '\ndatabase \n\nCommands:\n list List all database records\n get Get a database by ID\n create Create a new database\n update Update an existing database\n delete Delete a database\n\n --help, -h Show this help message\n'; diff --git a/sdk/constructive-cli/src/public/cli/commands/default-privilege.ts b/sdk/constructive-cli/src/public/cli/commands/default-privilege.ts index eb96dbe22..8a30d6a43 100644 --- a/sdk/constructive-cli/src/public/cli/commands/default-privilege.ts +++ b/sdk/constructive-cli/src/public/cli/commands/default-privilege.ts @@ -16,10 +16,6 @@ const fieldSchema: FieldSchema = { privilege: 'string', granteeName: 'string', isGrant: 'boolean', - objectTypeTrgmSimilarity: 'float', - privilegeTrgmSimilarity: 'float', - granteeNameTrgmSimilarity: 'float', - searchScore: 'float', }; const usage = '\ndefault-privilege \n\nCommands:\n list List all defaultPrivilege records\n get Get a defaultPrivilege by ID\n create Create a new defaultPrivilege\n update Update an existing defaultPrivilege\n delete Delete a defaultPrivilege\n\n --help, -h Show this help message\n'; diff --git a/sdk/constructive-cli/src/public/cli/commands/denormalized-table-field.ts b/sdk/constructive-cli/src/public/cli/commands/denormalized-table-field.ts index a60dcf8e3..e372f5669 100644 --- a/sdk/constructive-cli/src/public/cli/commands/denormalized-table-field.ts +++ b/sdk/constructive-cli/src/public/cli/commands/denormalized-table-field.ts @@ -24,8 +24,6 @@ const fieldSchema: FieldSchema = { updateDefaults: 'boolean', funcName: 'string', funcOrder: 'int', - funcNameTrgmSimilarity: 'float', - searchScore: 'float', }; const usage = '\ndenormalized-table-field \n\nCommands:\n list List all denormalizedTableField records\n get Get a denormalizedTableField by ID\n create Create a new denormalizedTableField\n update Update an existing denormalizedTableField\n delete Delete a denormalizedTableField\n\n --help, -h Show this help message\n'; diff --git a/sdk/constructive-cli/src/public/cli/commands/emails-module.ts b/sdk/constructive-cli/src/public/cli/commands/emails-module.ts index ff0cfd49e..2c36361cf 100644 --- a/sdk/constructive-cli/src/public/cli/commands/emails-module.ts +++ b/sdk/constructive-cli/src/public/cli/commands/emails-module.ts @@ -16,8 +16,6 @@ const fieldSchema: FieldSchema = { tableId: 'uuid', ownerTableId: 'uuid', tableName: 'string', - tableNameTrgmSimilarity: 'float', - searchScore: 'float', }; const usage = '\nemails-module \n\nCommands:\n list List all emailsModule records\n get Get a emailsModule by ID\n create Create a new emailsModule\n update Update an existing emailsModule\n delete Delete a emailsModule\n\n --help, -h Show this help message\n'; diff --git a/sdk/constructive-cli/src/public/cli/commands/embedding-chunk.ts b/sdk/constructive-cli/src/public/cli/commands/embedding-chunk.ts new file mode 100644 index 000000000..118879203 --- /dev/null +++ b/sdk/constructive-cli/src/public/cli/commands/embedding-chunk.ts @@ -0,0 +1,522 @@ +/** + * CLI commands for EmbeddingChunk + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; +import { getClient } from '../executor'; +import { coerceAnswers, stripUndefined } from '../utils'; +import type { FieldSchema } from '../utils'; +import type { CreateEmbeddingChunkInput, EmbeddingChunkPatch } from '../../orm/input-types'; +const fieldSchema: FieldSchema = { + id: 'uuid', + databaseId: 'uuid', + tableId: 'uuid', + embeddingFieldId: 'uuid', + chunksTableId: 'uuid', + chunksTableName: 'string', + contentFieldName: 'string', + dimensions: 'int', + metric: 'string', + chunkSize: 'int', + chunkOverlap: 'int', + chunkStrategy: 'string', + metadataFields: 'json', + enqueueChunkingJob: 'boolean', + chunkingTaskName: 'string', + parentFkFieldId: 'uuid', + createdAt: 'string', + updatedAt: 'string', +}; +const usage = + '\nembedding-chunk \n\nCommands:\n list List all embeddingChunk records\n get Get a embeddingChunk by ID\n create Create a new embeddingChunk\n update Update an existing embeddingChunk\n delete Delete a embeddingChunk\n\n --help, -h Show this help message\n'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + if (argv.help || argv.h) { + console.log(usage); + process.exit(0); + } + const { first: subcommand, newArgv } = extractFirst(argv); + if (!subcommand) { + const answer = await prompter.prompt(argv, [ + { + type: 'autocomplete', + name: 'subcommand', + message: 'What do you want to do?', + options: ['list', 'get', 'create', 'update', 'delete'], + }, + ]); + return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); + } + return handleTableSubcommand(subcommand, newArgv, prompter); +}; +async function handleTableSubcommand( + subcommand: string, + argv: Partial>, + prompter: Inquirerer +) { + switch (subcommand) { + case 'list': + return handleList(argv, prompter); + case 'get': + return handleGet(argv, prompter); + case 'create': + return handleCreate(argv, prompter); + case 'update': + return handleUpdate(argv, prompter); + case 'delete': + return handleDelete(argv, prompter); + default: + console.log(usage); + process.exit(1); + } +} +async function handleList(_argv: Partial>, _prompter: Inquirerer) { + try { + const client = getClient(); + const result = await client.embeddingChunk + .findMany({ + select: { + id: true, + databaseId: true, + tableId: true, + embeddingFieldId: true, + chunksTableId: true, + chunksTableName: true, + contentFieldName: true, + dimensions: true, + metric: true, + chunkSize: true, + chunkOverlap: true, + chunkStrategy: true, + metadataFields: true, + enqueueChunkingJob: true, + chunkingTaskName: true, + parentFkFieldId: true, + createdAt: true, + updatedAt: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to list records.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleGet(argv: Partial>, prompter: Inquirerer) { + try { + const answers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + ]); + const client = getClient(); + const result = await client.embeddingChunk + .findOne({ + id: answers.id as string, + select: { + id: true, + databaseId: true, + tableId: true, + embeddingFieldId: true, + chunksTableId: true, + chunksTableName: true, + contentFieldName: true, + dimensions: true, + metric: true, + chunkSize: true, + chunkOverlap: true, + chunkStrategy: true, + metadataFields: true, + enqueueChunkingJob: true, + chunkingTaskName: true, + parentFkFieldId: true, + createdAt: true, + updatedAt: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Record not found.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleCreate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'tableId', + message: 'tableId', + required: true, + }, + { + type: 'text', + name: 'embeddingFieldId', + message: 'embeddingFieldId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'chunksTableId', + message: 'chunksTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'chunksTableName', + message: 'chunksTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'contentFieldName', + message: 'contentFieldName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'dimensions', + message: 'dimensions', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'metric', + message: 'metric', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'chunkSize', + message: 'chunkSize', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'chunkOverlap', + message: 'chunkOverlap', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'chunkStrategy', + message: 'chunkStrategy', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'metadataFields', + message: 'metadataFields', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'enqueueChunkingJob', + message: 'enqueueChunkingJob', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'chunkingTaskName', + message: 'chunkingTaskName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'parentFkFieldId', + message: 'parentFkFieldId', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateEmbeddingChunkInput['embeddingChunk']; + const client = getClient(); + const result = await client.embeddingChunk + .create({ + data: { + databaseId: cleanedData.databaseId, + tableId: cleanedData.tableId, + embeddingFieldId: cleanedData.embeddingFieldId, + chunksTableId: cleanedData.chunksTableId, + chunksTableName: cleanedData.chunksTableName, + contentFieldName: cleanedData.contentFieldName, + dimensions: cleanedData.dimensions, + metric: cleanedData.metric, + chunkSize: cleanedData.chunkSize, + chunkOverlap: cleanedData.chunkOverlap, + chunkStrategy: cleanedData.chunkStrategy, + metadataFields: cleanedData.metadataFields, + enqueueChunkingJob: cleanedData.enqueueChunkingJob, + chunkingTaskName: cleanedData.chunkingTaskName, + parentFkFieldId: cleanedData.parentFkFieldId, + }, + select: { + id: true, + databaseId: true, + tableId: true, + embeddingFieldId: true, + chunksTableId: true, + chunksTableName: true, + contentFieldName: true, + dimensions: true, + metric: true, + chunkSize: true, + chunkOverlap: true, + chunkStrategy: true, + metadataFields: true, + enqueueChunkingJob: true, + chunkingTaskName: true, + parentFkFieldId: true, + createdAt: true, + updatedAt: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to create record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleUpdate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'tableId', + message: 'tableId', + required: false, + }, + { + type: 'text', + name: 'embeddingFieldId', + message: 'embeddingFieldId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'chunksTableId', + message: 'chunksTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'chunksTableName', + message: 'chunksTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'contentFieldName', + message: 'contentFieldName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'dimensions', + message: 'dimensions', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'metric', + message: 'metric', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'chunkSize', + message: 'chunkSize', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'chunkOverlap', + message: 'chunkOverlap', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'chunkStrategy', + message: 'chunkStrategy', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'metadataFields', + message: 'metadataFields', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'enqueueChunkingJob', + message: 'enqueueChunkingJob', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'chunkingTaskName', + message: 'chunkingTaskName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'parentFkFieldId', + message: 'parentFkFieldId', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as EmbeddingChunkPatch; + const client = getClient(); + const result = await client.embeddingChunk + .update({ + where: { + id: answers.id as string, + }, + data: { + databaseId: cleanedData.databaseId, + tableId: cleanedData.tableId, + embeddingFieldId: cleanedData.embeddingFieldId, + chunksTableId: cleanedData.chunksTableId, + chunksTableName: cleanedData.chunksTableName, + contentFieldName: cleanedData.contentFieldName, + dimensions: cleanedData.dimensions, + metric: cleanedData.metric, + chunkSize: cleanedData.chunkSize, + chunkOverlap: cleanedData.chunkOverlap, + chunkStrategy: cleanedData.chunkStrategy, + metadataFields: cleanedData.metadataFields, + enqueueChunkingJob: cleanedData.enqueueChunkingJob, + chunkingTaskName: cleanedData.chunkingTaskName, + parentFkFieldId: cleanedData.parentFkFieldId, + }, + select: { + id: true, + databaseId: true, + tableId: true, + embeddingFieldId: true, + chunksTableId: true, + chunksTableName: true, + contentFieldName: true, + dimensions: true, + metric: true, + chunkSize: true, + chunkOverlap: true, + chunkStrategy: true, + metadataFields: true, + enqueueChunkingJob: true, + chunkingTaskName: true, + parentFkFieldId: true, + createdAt: true, + updatedAt: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to update record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleDelete(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const client = getClient(); + const result = await client.embeddingChunk + .delete({ + where: { + id: answers.id as string, + }, + select: { + id: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to delete record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} diff --git a/sdk/constructive-cli/src/public/cli/commands/encrypted-secrets-module.ts b/sdk/constructive-cli/src/public/cli/commands/encrypted-secrets-module.ts index 77585c3d2..e40046902 100644 --- a/sdk/constructive-cli/src/public/cli/commands/encrypted-secrets-module.ts +++ b/sdk/constructive-cli/src/public/cli/commands/encrypted-secrets-module.ts @@ -17,8 +17,6 @@ const fieldSchema: FieldSchema = { schemaId: 'uuid', tableId: 'uuid', tableName: 'string', - tableNameTrgmSimilarity: 'float', - searchScore: 'float', }; const usage = '\nencrypted-secrets-module \n\nCommands:\n list List all encryptedSecretsModule records\n get Get a encryptedSecretsModule by ID\n create Create a new encryptedSecretsModule\n update Update an existing encryptedSecretsModule\n delete Delete a encryptedSecretsModule\n\n --help, -h Show this help message\n'; diff --git a/sdk/constructive-cli/src/public/cli/commands/uuid-module.ts b/sdk/constructive-cli/src/public/cli/commands/enum.ts similarity index 57% rename from sdk/constructive-cli/src/public/cli/commands/uuid-module.ts rename to sdk/constructive-cli/src/public/cli/commands/enum.ts index 3600a96af..a2de3b3c4 100644 --- a/sdk/constructive-cli/src/public/cli/commands/uuid-module.ts +++ b/sdk/constructive-cli/src/public/cli/commands/enum.ts @@ -1,5 +1,5 @@ /** - * CLI commands for UuidModule + * CLI commands for Enum * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -7,19 +7,23 @@ import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; import { getClient } from '../executor'; import { coerceAnswers, stripUndefined } from '../utils'; import type { FieldSchema } from '../utils'; -import type { CreateUuidModuleInput, UuidModulePatch } from '../../orm/input-types'; +import type { CreateEnumInput, EnumPatch } from '../../orm/input-types'; const fieldSchema: FieldSchema = { id: 'uuid', databaseId: 'uuid', schemaId: 'uuid', - uuidFunction: 'string', - uuidSeed: 'string', - uuidFunctionTrgmSimilarity: 'float', - uuidSeedTrgmSimilarity: 'float', - searchScore: 'float', + name: 'string', + label: 'string', + description: 'string', + values: 'string', + smartTags: 'json', + category: 'string', + module: 'string', + scope: 'int', + tags: 'string', }; const usage = - '\nuuid-module \n\nCommands:\n list List all uuidModule records\n get Get a uuidModule by ID\n create Create a new uuidModule\n update Update an existing uuidModule\n delete Delete a uuidModule\n\n --help, -h Show this help message\n'; + '\nenum \n\nCommands:\n list List all enum records\n get Get a enum by ID\n create Create a new enum\n update Update an existing enum\n delete Delete a enum\n\n --help, -h Show this help message\n'; export default async ( argv: Partial>, prompter: Inquirerer, @@ -67,14 +71,21 @@ async function handleTableSubcommand( async function handleList(_argv: Partial>, _prompter: Inquirerer) { try { const client = getClient(); - const result = await client.uuidModule + const result = await client.enum .findMany({ select: { id: true, databaseId: true, schemaId: true, - uuidFunction: true, - uuidSeed: true, + name: true, + label: true, + description: true, + values: true, + smartTags: true, + category: true, + module: true, + scope: true, + tags: true, }, }) .execute(); @@ -98,15 +109,22 @@ async function handleGet(argv: Partial>, prompter: Inqui }, ]); const client = getClient(); - const result = await client.uuidModule + const result = await client.enum .findOne({ id: answers.id as string, select: { id: true, databaseId: true, schemaId: true, - uuidFunction: true, - uuidSeed: true, + name: true, + label: true, + description: true, + values: true, + smartTags: true, + category: true, + module: true, + scope: true, + tags: true, }, }) .execute(); @@ -132,40 +150,102 @@ async function handleCreate(argv: Partial>, prompter: In type: 'text', name: 'schemaId', message: 'schemaId', + required: true, + }, + { + type: 'text', + name: 'name', + message: 'name', + required: true, + }, + { + type: 'text', + name: 'label', + message: 'label', required: false, skipPrompt: true, }, { type: 'text', - name: 'uuidFunction', - message: 'uuidFunction', + name: 'description', + message: 'description', required: false, skipPrompt: true, }, { type: 'text', - name: 'uuidSeed', - message: 'uuidSeed', - required: true, + name: 'values', + message: 'values', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'smartTags', + message: 'smartTags', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'category', + message: 'category', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'module', + message: 'module', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'scope', + message: 'scope', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'tags', + message: 'tags', + required: false, + skipPrompt: true, }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as CreateUuidModuleInput['uuidModule']; + const cleanedData = stripUndefined(answers, fieldSchema) as CreateEnumInput['enum']; const client = getClient(); - const result = await client.uuidModule + const result = await client.enum .create({ data: { databaseId: cleanedData.databaseId, schemaId: cleanedData.schemaId, - uuidFunction: cleanedData.uuidFunction, - uuidSeed: cleanedData.uuidSeed, + name: cleanedData.name, + label: cleanedData.label, + description: cleanedData.description, + values: cleanedData.values, + smartTags: cleanedData.smartTags, + category: cleanedData.category, + module: cleanedData.module, + scope: cleanedData.scope, + tags: cleanedData.tags, }, select: { id: true, databaseId: true, schemaId: true, - uuidFunction: true, - uuidSeed: true, + name: true, + label: true, + description: true, + values: true, + smartTags: true, + category: true, + module: true, + scope: true, + tags: true, }, }) .execute(); @@ -198,26 +278,74 @@ async function handleUpdate(argv: Partial>, prompter: In name: 'schemaId', message: 'schemaId', required: false, + }, + { + type: 'text', + name: 'name', + message: 'name', + required: false, + }, + { + type: 'text', + name: 'label', + message: 'label', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'description', + message: 'description', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'values', + message: 'values', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'smartTags', + message: 'smartTags', + required: false, skipPrompt: true, }, { type: 'text', - name: 'uuidFunction', - message: 'uuidFunction', + name: 'category', + message: 'category', required: false, skipPrompt: true, }, { type: 'text', - name: 'uuidSeed', - message: 'uuidSeed', + name: 'module', + message: 'module', required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'scope', + message: 'scope', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'tags', + message: 'tags', + required: false, + skipPrompt: true, }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); - const cleanedData = stripUndefined(answers, fieldSchema) as UuidModulePatch; + const cleanedData = stripUndefined(answers, fieldSchema) as EnumPatch; const client = getClient(); - const result = await client.uuidModule + const result = await client.enum .update({ where: { id: answers.id as string, @@ -225,15 +353,29 @@ async function handleUpdate(argv: Partial>, prompter: In data: { databaseId: cleanedData.databaseId, schemaId: cleanedData.schemaId, - uuidFunction: cleanedData.uuidFunction, - uuidSeed: cleanedData.uuidSeed, + name: cleanedData.name, + label: cleanedData.label, + description: cleanedData.description, + values: cleanedData.values, + smartTags: cleanedData.smartTags, + category: cleanedData.category, + module: cleanedData.module, + scope: cleanedData.scope, + tags: cleanedData.tags, }, select: { id: true, databaseId: true, schemaId: true, - uuidFunction: true, - uuidSeed: true, + name: true, + label: true, + description: true, + values: true, + smartTags: true, + category: true, + module: true, + scope: true, + tags: true, }, }) .execute(); @@ -258,7 +400,7 @@ async function handleDelete(argv: Partial>, prompter: In ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const client = getClient(); - const result = await client.uuidModule + const result = await client.enum .delete({ where: { id: answers.id as string, diff --git a/sdk/constructive-cli/src/public/cli/commands/field-module.ts b/sdk/constructive-cli/src/public/cli/commands/field-module.ts index c493bfe01..003bd07b4 100644 --- a/sdk/constructive-cli/src/public/cli/commands/field-module.ts +++ b/sdk/constructive-cli/src/public/cli/commands/field-module.ts @@ -18,8 +18,6 @@ const fieldSchema: FieldSchema = { data: 'json', triggers: 'string', functions: 'string', - nodeTypeTrgmSimilarity: 'float', - searchScore: 'float', }; const usage = '\nfield-module \n\nCommands:\n list List all fieldModule records\n get Get a fieldModule by ID\n create Create a new fieldModule\n update Update an existing fieldModule\n delete Delete a fieldModule\n\n --help, -h Show this help message\n'; diff --git a/sdk/constructive-cli/src/public/cli/commands/field.ts b/sdk/constructive-cli/src/public/cli/commands/field.ts index 014579f7d..bec91f87a 100644 --- a/sdk/constructive-cli/src/public/cli/commands/field.ts +++ b/sdk/constructive-cli/src/public/cli/commands/field.ts @@ -17,6 +17,7 @@ const fieldSchema: FieldSchema = { description: 'string', smartTags: 'json', isRequired: 'boolean', + apiRequired: 'boolean', defaultValue: 'string', defaultValueAst: 'json', isHidden: 'boolean', @@ -33,13 +34,6 @@ const fieldSchema: FieldSchema = { scope: 'int', createdAt: 'string', updatedAt: 'string', - nameTrgmSimilarity: 'float', - labelTrgmSimilarity: 'float', - descriptionTrgmSimilarity: 'float', - defaultValueTrgmSimilarity: 'float', - regexpTrgmSimilarity: 'float', - moduleTrgmSimilarity: 'float', - searchScore: 'float', }; const usage = '\nfield \n\nCommands:\n list List all field records\n get Get a field by ID\n create Create a new field\n update Update an existing field\n delete Delete a field\n\n --help, -h Show this help message\n'; @@ -101,6 +95,7 @@ async function handleList(_argv: Partial>, _prompter: In description: true, smartTags: true, isRequired: true, + apiRequired: true, defaultValue: true, defaultValueAst: true, isHidden: true, @@ -152,6 +147,7 @@ async function handleGet(argv: Partial>, prompter: Inqui description: true, smartTags: true, isRequired: true, + apiRequired: true, defaultValue: true, defaultValueAst: true, isHidden: true, @@ -230,6 +226,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'boolean', + name: 'apiRequired', + message: 'apiRequired', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'defaultValue', @@ -341,6 +344,7 @@ async function handleCreate(argv: Partial>, prompter: In description: cleanedData.description, smartTags: cleanedData.smartTags, isRequired: cleanedData.isRequired, + apiRequired: cleanedData.apiRequired, defaultValue: cleanedData.defaultValue, defaultValueAst: cleanedData.defaultValueAst, isHidden: cleanedData.isHidden, @@ -365,6 +369,7 @@ async function handleCreate(argv: Partial>, prompter: In description: true, smartTags: true, isRequired: true, + apiRequired: true, defaultValue: true, defaultValueAst: true, isHidden: true, @@ -449,6 +454,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'boolean', + name: 'apiRequired', + message: 'apiRequired', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'defaultValue', @@ -563,6 +575,7 @@ async function handleUpdate(argv: Partial>, prompter: In description: cleanedData.description, smartTags: cleanedData.smartTags, isRequired: cleanedData.isRequired, + apiRequired: cleanedData.apiRequired, defaultValue: cleanedData.defaultValue, defaultValueAst: cleanedData.defaultValueAst, isHidden: cleanedData.isHidden, @@ -587,6 +600,7 @@ async function handleUpdate(argv: Partial>, prompter: In description: true, smartTags: true, isRequired: true, + apiRequired: true, defaultValue: true, defaultValueAst: true, isHidden: true, diff --git a/sdk/constructive-cli/src/public/cli/commands/foreign-key-constraint.ts b/sdk/constructive-cli/src/public/cli/commands/foreign-key-constraint.ts index c960f2f70..168394874 100644 --- a/sdk/constructive-cli/src/public/cli/commands/foreign-key-constraint.ts +++ b/sdk/constructive-cli/src/public/cli/commands/foreign-key-constraint.ts @@ -30,13 +30,6 @@ const fieldSchema: FieldSchema = { tags: 'string', createdAt: 'string', updatedAt: 'string', - nameTrgmSimilarity: 'float', - descriptionTrgmSimilarity: 'float', - typeTrgmSimilarity: 'float', - deleteActionTrgmSimilarity: 'float', - updateActionTrgmSimilarity: 'float', - moduleTrgmSimilarity: 'float', - searchScore: 'float', }; const usage = '\nforeign-key-constraint \n\nCommands:\n list List all foreignKeyConstraint records\n get Get a foreignKeyConstraint by ID\n create Create a new foreignKeyConstraint\n update Update an existing foreignKeyConstraint\n delete Delete a foreignKeyConstraint\n\n --help, -h Show this help message\n'; diff --git a/sdk/constructive-cli/src/public/cli/commands/hierarchy-module.ts b/sdk/constructive-cli/src/public/cli/commands/hierarchy-module.ts index e3e9c8915..d009ea620 100644 --- a/sdk/constructive-cli/src/public/cli/commands/hierarchy-module.ts +++ b/sdk/constructive-cli/src/public/cli/commands/hierarchy-module.ts @@ -29,17 +29,6 @@ const fieldSchema: FieldSchema = { getManagersFunction: 'string', isManagerOfFunction: 'string', createdAt: 'string', - chartEdgesTableNameTrgmSimilarity: 'float', - hierarchySprtTableNameTrgmSimilarity: 'float', - chartEdgeGrantsTableNameTrgmSimilarity: 'float', - prefixTrgmSimilarity: 'float', - privateSchemaNameTrgmSimilarity: 'float', - sprtTableNameTrgmSimilarity: 'float', - rebuildHierarchyFunctionTrgmSimilarity: 'float', - getSubordinatesFunctionTrgmSimilarity: 'float', - getManagersFunctionTrgmSimilarity: 'float', - isManagerOfFunctionTrgmSimilarity: 'float', - searchScore: 'float', }; const usage = '\nhierarchy-module \n\nCommands:\n list List all hierarchyModule records\n get Get a hierarchyModule by ID\n create Create a new hierarchyModule\n update Update an existing hierarchyModule\n delete Delete a hierarchyModule\n\n --help, -h Show this help message\n'; diff --git a/sdk/constructive-cli/src/public/cli/commands/index.ts b/sdk/constructive-cli/src/public/cli/commands/index.ts index b28d07278..71a6ee132 100644 --- a/sdk/constructive-cli/src/public/cli/commands/index.ts +++ b/sdk/constructive-cli/src/public/cli/commands/index.ts @@ -28,10 +28,6 @@ const fieldSchema: FieldSchema = { tags: 'string', createdAt: 'string', updatedAt: 'string', - nameTrgmSimilarity: 'float', - accessMethodTrgmSimilarity: 'float', - moduleTrgmSimilarity: 'float', - searchScore: 'float', }; const usage = '\nindex \n\nCommands:\n list List all index records\n get Get a index by ID\n create Create a new index\n update Update an existing index\n delete Delete a index\n\n --help, -h Show this help message\n'; diff --git a/sdk/constructive-cli/src/public/cli/commands/invite.ts b/sdk/constructive-cli/src/public/cli/commands/invite.ts index e70bc595b..7d243bdd3 100644 --- a/sdk/constructive-cli/src/public/cli/commands/invite.ts +++ b/sdk/constructive-cli/src/public/cli/commands/invite.ts @@ -21,8 +21,6 @@ const fieldSchema: FieldSchema = { expiresAt: 'string', createdAt: 'string', updatedAt: 'string', - inviteTokenTrgmSimilarity: 'float', - searchScore: 'float', }; const usage = '\ninvite \n\nCommands:\n list List all invite records\n get Get a invite by ID\n create Create a new invite\n update Update an existing invite\n delete Delete a invite\n\n --help, -h Show this help message\n'; diff --git a/sdk/constructive-cli/src/public/cli/commands/invites-module.ts b/sdk/constructive-cli/src/public/cli/commands/invites-module.ts index 6914f616c..299bcadcd 100644 --- a/sdk/constructive-cli/src/public/cli/commands/invites-module.ts +++ b/sdk/constructive-cli/src/public/cli/commands/invites-module.ts @@ -23,11 +23,6 @@ const fieldSchema: FieldSchema = { prefix: 'string', membershipType: 'int', entityTableId: 'uuid', - invitesTableNameTrgmSimilarity: 'float', - claimedInvitesTableNameTrgmSimilarity: 'float', - submitInviteCodeFunctionTrgmSimilarity: 'float', - prefixTrgmSimilarity: 'float', - searchScore: 'float', }; const usage = '\ninvites-module \n\nCommands:\n list List all invitesModule records\n get Get a invitesModule by ID\n create Create a new invitesModule\n update Update an existing invitesModule\n delete Delete a invitesModule\n\n --help, -h Show this help message\n'; diff --git a/sdk/constructive-cli/src/public/cli/commands/levels-module.ts b/sdk/constructive-cli/src/public/cli/commands/levels-module.ts index 6cd4c4123..0c932d1e6 100644 --- a/sdk/constructive-cli/src/public/cli/commands/levels-module.ts +++ b/sdk/constructive-cli/src/public/cli/commands/levels-module.ts @@ -35,22 +35,6 @@ const fieldSchema: FieldSchema = { membershipType: 'int', entityTableId: 'uuid', actorTableId: 'uuid', - stepsTableNameTrgmSimilarity: 'float', - achievementsTableNameTrgmSimilarity: 'float', - levelsTableNameTrgmSimilarity: 'float', - levelRequirementsTableNameTrgmSimilarity: 'float', - completedStepTrgmSimilarity: 'float', - incompletedStepTrgmSimilarity: 'float', - tgAchievementTrgmSimilarity: 'float', - tgAchievementToggleTrgmSimilarity: 'float', - tgAchievementToggleBooleanTrgmSimilarity: 'float', - tgAchievementBooleanTrgmSimilarity: 'float', - upsertAchievementTrgmSimilarity: 'float', - tgUpdateAchievementsTrgmSimilarity: 'float', - stepsRequiredTrgmSimilarity: 'float', - levelAchievedTrgmSimilarity: 'float', - prefixTrgmSimilarity: 'float', - searchScore: 'float', }; const usage = '\nlevels-module \n\nCommands:\n list List all levelsModule records\n get Get a levelsModule by ID\n create Create a new levelsModule\n update Update an existing levelsModule\n delete Delete a levelsModule\n\n --help, -h Show this help message\n'; diff --git a/sdk/constructive-cli/src/public/cli/commands/limits-module.ts b/sdk/constructive-cli/src/public/cli/commands/limits-module.ts index 032335bc3..f1eb9e2e5 100644 --- a/sdk/constructive-cli/src/public/cli/commands/limits-module.ts +++ b/sdk/constructive-cli/src/public/cli/commands/limits-module.ts @@ -27,16 +27,6 @@ const fieldSchema: FieldSchema = { membershipType: 'int', entityTableId: 'uuid', actorTableId: 'uuid', - tableNameTrgmSimilarity: 'float', - defaultTableNameTrgmSimilarity: 'float', - limitIncrementFunctionTrgmSimilarity: 'float', - limitDecrementFunctionTrgmSimilarity: 'float', - limitIncrementTriggerTrgmSimilarity: 'float', - limitDecrementTriggerTrgmSimilarity: 'float', - limitUpdateTriggerTrgmSimilarity: 'float', - limitCheckFunctionTrgmSimilarity: 'float', - prefixTrgmSimilarity: 'float', - searchScore: 'float', }; const usage = '\nlimits-module \n\nCommands:\n list List all limitsModule records\n get Get a limitsModule by ID\n create Create a new limitsModule\n update Update an existing limitsModule\n delete Delete a limitsModule\n\n --help, -h Show this help message\n'; diff --git a/sdk/constructive-cli/src/public/cli/commands/membership-type.ts b/sdk/constructive-cli/src/public/cli/commands/membership-type.ts index a8c9714c4..118aade21 100644 --- a/sdk/constructive-cli/src/public/cli/commands/membership-type.ts +++ b/sdk/constructive-cli/src/public/cli/commands/membership-type.ts @@ -13,9 +13,6 @@ const fieldSchema: FieldSchema = { name: 'string', description: 'string', prefix: 'string', - descriptionTrgmSimilarity: 'float', - prefixTrgmSimilarity: 'float', - searchScore: 'float', }; const usage = '\nmembership-type \n\nCommands:\n list List all membershipType records\n get Get a membershipType by ID\n create Create a new membershipType\n update Update an existing membershipType\n delete Delete a membershipType\n\n --help, -h Show this help message\n'; diff --git a/sdk/constructive-cli/src/public/cli/commands/membership-types-module.ts b/sdk/constructive-cli/src/public/cli/commands/membership-types-module.ts index 2dc5573c3..420be0778 100644 --- a/sdk/constructive-cli/src/public/cli/commands/membership-types-module.ts +++ b/sdk/constructive-cli/src/public/cli/commands/membership-types-module.ts @@ -17,8 +17,6 @@ const fieldSchema: FieldSchema = { schemaId: 'uuid', tableId: 'uuid', tableName: 'string', - tableNameTrgmSimilarity: 'float', - searchScore: 'float', }; const usage = '\nmembership-types-module \n\nCommands:\n list List all membershipTypesModule records\n get Get a membershipTypesModule by ID\n create Create a new membershipTypesModule\n update Update an existing membershipTypesModule\n delete Delete a membershipTypesModule\n\n --help, -h Show this help message\n'; diff --git a/sdk/constructive-cli/src/public/cli/commands/memberships-module.ts b/sdk/constructive-cli/src/public/cli/commands/memberships-module.ts index 94d500ed4..30413fae3 100644 --- a/sdk/constructive-cli/src/public/cli/commands/memberships-module.ts +++ b/sdk/constructive-cli/src/public/cli/commands/memberships-module.ts @@ -40,19 +40,6 @@ const fieldSchema: FieldSchema = { entityIdsByMask: 'string', entityIdsByPerm: 'string', entityIdsFunction: 'string', - membershipsTableNameTrgmSimilarity: 'float', - membersTableNameTrgmSimilarity: 'float', - membershipDefaultsTableNameTrgmSimilarity: 'float', - grantsTableNameTrgmSimilarity: 'float', - adminGrantsTableNameTrgmSimilarity: 'float', - ownerGrantsTableNameTrgmSimilarity: 'float', - prefixTrgmSimilarity: 'float', - actorMaskCheckTrgmSimilarity: 'float', - actorPermCheckTrgmSimilarity: 'float', - entityIdsByMaskTrgmSimilarity: 'float', - entityIdsByPermTrgmSimilarity: 'float', - entityIdsFunctionTrgmSimilarity: 'float', - searchScore: 'float', }; const usage = '\nmemberships-module \n\nCommands:\n list List all membershipsModule records\n get Get a membershipsModule by ID\n create Create a new membershipsModule\n update Update an existing membershipsModule\n delete Delete a membershipsModule\n\n --help, -h Show this help message\n'; diff --git a/sdk/constructive-cli/src/public/cli/commands/node-type-registry.ts b/sdk/constructive-cli/src/public/cli/commands/node-type-registry.ts index d07c4e6c9..2e69f9b20 100644 --- a/sdk/constructive-cli/src/public/cli/commands/node-type-registry.ts +++ b/sdk/constructive-cli/src/public/cli/commands/node-type-registry.ts @@ -18,12 +18,6 @@ const fieldSchema: FieldSchema = { tags: 'string', createdAt: 'string', updatedAt: 'string', - nameTrgmSimilarity: 'float', - slugTrgmSimilarity: 'float', - categoryTrgmSimilarity: 'float', - displayNameTrgmSimilarity: 'float', - descriptionTrgmSimilarity: 'float', - searchScore: 'float', }; const usage = '\nnode-type-registry \n\nCommands:\n list List all nodeTypeRegistry records\n get Get a nodeTypeRegistry by ID\n create Create a new nodeTypeRegistry\n update Update an existing nodeTypeRegistry\n delete Delete a nodeTypeRegistry\n\n --help, -h Show this help message\n'; diff --git a/sdk/constructive-cli/src/public/cli/commands/org-chart-edge-grant.ts b/sdk/constructive-cli/src/public/cli/commands/org-chart-edge-grant.ts index 4f16e2d0f..fc388684a 100644 --- a/sdk/constructive-cli/src/public/cli/commands/org-chart-edge-grant.ts +++ b/sdk/constructive-cli/src/public/cli/commands/org-chart-edge-grant.ts @@ -18,8 +18,6 @@ const fieldSchema: FieldSchema = { positionTitle: 'string', positionLevel: 'int', createdAt: 'string', - positionTitleTrgmSimilarity: 'float', - searchScore: 'float', }; const usage = '\norg-chart-edge-grant \n\nCommands:\n list List all orgChartEdgeGrant records\n get Get a orgChartEdgeGrant by ID\n create Create a new orgChartEdgeGrant\n update Update an existing orgChartEdgeGrant\n delete Delete a orgChartEdgeGrant\n\n --help, -h Show this help message\n'; @@ -156,7 +154,8 @@ async function handleCreate(argv: Partial>, prompter: In type: 'text', name: 'grantorId', message: 'grantorId', - required: true, + required: false, + skipPrompt: true, }, { type: 'boolean', @@ -252,6 +251,7 @@ async function handleUpdate(argv: Partial>, prompter: In name: 'grantorId', message: 'grantorId', required: false, + skipPrompt: true, }, { type: 'boolean', diff --git a/sdk/constructive-cli/src/public/cli/commands/org-chart-edge.ts b/sdk/constructive-cli/src/public/cli/commands/org-chart-edge.ts index 98f69b143..72fa13a5e 100644 --- a/sdk/constructive-cli/src/public/cli/commands/org-chart-edge.ts +++ b/sdk/constructive-cli/src/public/cli/commands/org-chart-edge.ts @@ -17,8 +17,6 @@ const fieldSchema: FieldSchema = { parentId: 'uuid', positionTitle: 'string', positionLevel: 'int', - positionTitleTrgmSimilarity: 'float', - searchScore: 'float', }; const usage = '\norg-chart-edge \n\nCommands:\n list List all orgChartEdge records\n get Get a orgChartEdge by ID\n create Create a new orgChartEdge\n update Update an existing orgChartEdge\n delete Delete a orgChartEdge\n\n --help, -h Show this help message\n'; diff --git a/sdk/constructive-cli/src/public/cli/commands/org-invite.ts b/sdk/constructive-cli/src/public/cli/commands/org-invite.ts index ce3056594..9b512b138 100644 --- a/sdk/constructive-cli/src/public/cli/commands/org-invite.ts +++ b/sdk/constructive-cli/src/public/cli/commands/org-invite.ts @@ -23,8 +23,6 @@ const fieldSchema: FieldSchema = { createdAt: 'string', updatedAt: 'string', entityId: 'uuid', - inviteTokenTrgmSimilarity: 'float', - searchScore: 'float', }; const usage = '\norg-invite \n\nCommands:\n list List all orgInvite records\n get Get a orgInvite by ID\n create Create a new orgInvite\n update Update an existing orgInvite\n delete Delete a orgInvite\n\n --help, -h Show this help message\n'; diff --git a/sdk/constructive-cli/src/public/cli/commands/org-permission.ts b/sdk/constructive-cli/src/public/cli/commands/org-permission.ts index a07b31182..91a56140e 100644 --- a/sdk/constructive-cli/src/public/cli/commands/org-permission.ts +++ b/sdk/constructive-cli/src/public/cli/commands/org-permission.ts @@ -14,8 +14,6 @@ const fieldSchema: FieldSchema = { bitnum: 'int', bitstr: 'string', description: 'string', - descriptionTrgmSimilarity: 'float', - searchScore: 'float', }; const usage = '\norg-permission \n\nCommands:\n list List all orgPermission records\n get Get a orgPermission by ID\n create Create a new orgPermission\n update Update an existing orgPermission\n delete Delete a orgPermission\n\n --help, -h Show this help message\n'; diff --git a/sdk/constructive-cli/src/public/cli/commands/permissions-module.ts b/sdk/constructive-cli/src/public/cli/commands/permissions-module.ts index 14d288fe4..b9eadb294 100644 --- a/sdk/constructive-cli/src/public/cli/commands/permissions-module.ts +++ b/sdk/constructive-cli/src/public/cli/commands/permissions-module.ts @@ -26,14 +26,6 @@ const fieldSchema: FieldSchema = { getMask: 'string', getByMask: 'string', getMaskByName: 'string', - tableNameTrgmSimilarity: 'float', - defaultTableNameTrgmSimilarity: 'float', - prefixTrgmSimilarity: 'float', - getPaddedMaskTrgmSimilarity: 'float', - getMaskTrgmSimilarity: 'float', - getByMaskTrgmSimilarity: 'float', - getMaskByNameTrgmSimilarity: 'float', - searchScore: 'float', }; const usage = '\npermissions-module \n\nCommands:\n list List all permissionsModule records\n get Get a permissionsModule by ID\n create Create a new permissionsModule\n update Update an existing permissionsModule\n delete Delete a permissionsModule\n\n --help, -h Show this help message\n'; diff --git a/sdk/constructive-cli/src/public/cli/commands/phone-number.ts b/sdk/constructive-cli/src/public/cli/commands/phone-number.ts index e03d15b3e..80e0b5a76 100644 --- a/sdk/constructive-cli/src/public/cli/commands/phone-number.ts +++ b/sdk/constructive-cli/src/public/cli/commands/phone-number.ts @@ -17,9 +17,6 @@ const fieldSchema: FieldSchema = { isPrimary: 'boolean', createdAt: 'string', updatedAt: 'string', - ccTrgmSimilarity: 'float', - numberTrgmSimilarity: 'float', - searchScore: 'float', }; const usage = '\nphone-number \n\nCommands:\n list List all phoneNumber records\n get Get a phoneNumber by ID\n create Create a new phoneNumber\n update Update an existing phoneNumber\n delete Delete a phoneNumber\n\n --help, -h Show this help message\n'; diff --git a/sdk/constructive-cli/src/public/cli/commands/phone-numbers-module.ts b/sdk/constructive-cli/src/public/cli/commands/phone-numbers-module.ts index 8c143fe82..a9bf30c6c 100644 --- a/sdk/constructive-cli/src/public/cli/commands/phone-numbers-module.ts +++ b/sdk/constructive-cli/src/public/cli/commands/phone-numbers-module.ts @@ -16,8 +16,6 @@ const fieldSchema: FieldSchema = { tableId: 'uuid', ownerTableId: 'uuid', tableName: 'string', - tableNameTrgmSimilarity: 'float', - searchScore: 'float', }; const usage = '\nphone-numbers-module \n\nCommands:\n list List all phoneNumbersModule records\n get Get a phoneNumbersModule by ID\n create Create a new phoneNumbersModule\n update Update an existing phoneNumbersModule\n delete Delete a phoneNumbersModule\n\n --help, -h Show this help message\n'; diff --git a/sdk/constructive-cli/src/public/cli/commands/policy.ts b/sdk/constructive-cli/src/public/cli/commands/policy.ts index fef5ddf27..008fce8d4 100644 --- a/sdk/constructive-cli/src/public/cli/commands/policy.ts +++ b/sdk/constructive-cli/src/public/cli/commands/policy.ts @@ -26,12 +26,6 @@ const fieldSchema: FieldSchema = { tags: 'string', createdAt: 'string', updatedAt: 'string', - nameTrgmSimilarity: 'float', - granteeNameTrgmSimilarity: 'float', - privilegeTrgmSimilarity: 'float', - policyTypeTrgmSimilarity: 'float', - moduleTrgmSimilarity: 'float', - searchScore: 'float', }; const usage = '\npolicy \n\nCommands:\n list List all policy records\n get Get a policy by ID\n create Create a new policy\n update Update an existing policy\n delete Delete a policy\n\n --help, -h Show this help message\n'; diff --git a/sdk/constructive-cli/src/public/cli/commands/primary-key-constraint.ts b/sdk/constructive-cli/src/public/cli/commands/primary-key-constraint.ts index 6dcf92fe5..5e2c830cb 100644 --- a/sdk/constructive-cli/src/public/cli/commands/primary-key-constraint.ts +++ b/sdk/constructive-cli/src/public/cli/commands/primary-key-constraint.ts @@ -25,10 +25,6 @@ const fieldSchema: FieldSchema = { tags: 'string', createdAt: 'string', updatedAt: 'string', - nameTrgmSimilarity: 'float', - typeTrgmSimilarity: 'float', - moduleTrgmSimilarity: 'float', - searchScore: 'float', }; const usage = '\nprimary-key-constraint \n\nCommands:\n list List all primaryKeyConstraint records\n get Get a primaryKeyConstraint by ID\n create Create a new primaryKeyConstraint\n update Update an existing primaryKeyConstraint\n delete Delete a primaryKeyConstraint\n\n --help, -h Show this help message\n'; diff --git a/sdk/constructive-cli/src/public/cli/commands/profiles-module.ts b/sdk/constructive-cli/src/public/cli/commands/profiles-module.ts index c46aaf4a7..edc7e345e 100644 --- a/sdk/constructive-cli/src/public/cli/commands/profiles-module.ts +++ b/sdk/constructive-cli/src/public/cli/commands/profiles-module.ts @@ -27,12 +27,6 @@ const fieldSchema: FieldSchema = { permissionsTableId: 'uuid', membershipsTableId: 'uuid', prefix: 'string', - tableNameTrgmSimilarity: 'float', - profilePermissionsTableNameTrgmSimilarity: 'float', - profileGrantsTableNameTrgmSimilarity: 'float', - profileDefinitionGrantsTableNameTrgmSimilarity: 'float', - prefixTrgmSimilarity: 'float', - searchScore: 'float', }; const usage = '\nprofiles-module \n\nCommands:\n list List all profilesModule records\n get Get a profilesModule by ID\n create Create a new profilesModule\n update Update an existing profilesModule\n delete Delete a profilesModule\n\n --help, -h Show this help message\n'; diff --git a/sdk/constructive-cli/src/public/cli/commands/ref.ts b/sdk/constructive-cli/src/public/cli/commands/ref.ts index 1caaf0437..7ad388281 100644 --- a/sdk/constructive-cli/src/public/cli/commands/ref.ts +++ b/sdk/constructive-cli/src/public/cli/commands/ref.ts @@ -14,8 +14,6 @@ const fieldSchema: FieldSchema = { databaseId: 'uuid', storeId: 'uuid', commitId: 'uuid', - nameTrgmSimilarity: 'float', - searchScore: 'float', }; const usage = '\nref \n\nCommands:\n list List all ref records\n get Get a ref by ID\n create Create a new ref\n update Update an existing ref\n delete Delete a ref\n\n --help, -h Show this help message\n'; diff --git a/sdk/constructive-cli/src/public/cli/commands/reject-database-transfer.ts b/sdk/constructive-cli/src/public/cli/commands/reject-database-transfer.ts new file mode 100644 index 000000000..cca8dcb4f --- /dev/null +++ b/sdk/constructive-cli/src/public/cli/commands/reject-database-transfer.ts @@ -0,0 +1,53 @@ +/** + * CLI command for mutation rejectDatabaseTransfer + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { CLIOptions, Inquirerer } from 'inquirerer'; +import { getClient } from '../executor'; +import { unflattenDotNotation, buildSelectFromPaths } from '../utils'; +import type { RejectDatabaseTransferVariables } from '../../orm/mutation'; +import type { RejectDatabaseTransferPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log( + 'reject-database-transfer - rejectDatabaseTransfer\n\nUsage: reject-database-transfer [OPTIONS]\n' + ); + process.exit(0); + } + const answers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'input', + message: + 'The exclusive input argument for this mutation. An object type, make sure to see documentation for this object\u2019s fields.', + required: true, + }, + ]); + const client = getClient(); + const parsedAnswers = unflattenDotNotation(answers); + const selectFields = buildSelectFromPaths((argv.select as string) ?? 'clientMutationId'); + const result = await client.mutation + .rejectDatabaseTransfer( + parsedAnswers as unknown as RejectDatabaseTransferVariables, + { + select: selectFields, + } as unknown as { + select: RejectDatabaseTransferPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: rejectDatabaseTransfer'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/public/cli/commands/relation-provision.ts b/sdk/constructive-cli/src/public/cli/commands/relation-provision.ts index 7b81cf84b..a569049ab 100644 --- a/sdk/constructive-cli/src/public/cli/commands/relation-provision.ts +++ b/sdk/constructive-cli/src/public/cli/commands/relation-provision.ts @@ -17,12 +17,15 @@ const fieldSchema: FieldSchema = { fieldName: 'string', deleteAction: 'string', isRequired: 'boolean', + apiRequired: 'boolean', junctionTableId: 'uuid', junctionTableName: 'string', junctionSchemaId: 'uuid', sourceFieldName: 'string', targetFieldName: 'string', useCompositeKey: 'boolean', + createIndex: 'boolean', + exposeInApi: 'boolean', nodeType: 'string', nodeData: 'json', grantRoles: 'string', @@ -37,17 +40,6 @@ const fieldSchema: FieldSchema = { outJunctionTableId: 'uuid', outSourceFieldId: 'uuid', outTargetFieldId: 'uuid', - relationTypeTrgmSimilarity: 'float', - fieldNameTrgmSimilarity: 'float', - deleteActionTrgmSimilarity: 'float', - junctionTableNameTrgmSimilarity: 'float', - sourceFieldNameTrgmSimilarity: 'float', - targetFieldNameTrgmSimilarity: 'float', - nodeTypeTrgmSimilarity: 'float', - policyTypeTrgmSimilarity: 'float', - policyRoleTrgmSimilarity: 'float', - policyNameTrgmSimilarity: 'float', - searchScore: 'float', }; const usage = '\nrelation-provision \n\nCommands:\n list List all relationProvision records\n get Get a relationProvision by ID\n create Create a new relationProvision\n update Update an existing relationProvision\n delete Delete a relationProvision\n\n --help, -h Show this help message\n'; @@ -109,12 +101,15 @@ async function handleList(_argv: Partial>, _prompter: In fieldName: true, deleteAction: true, isRequired: true, + apiRequired: true, junctionTableId: true, junctionTableName: true, junctionSchemaId: true, sourceFieldName: true, targetFieldName: true, useCompositeKey: true, + createIndex: true, + exposeInApi: true, nodeType: true, nodeData: true, grantRoles: true, @@ -164,12 +159,15 @@ async function handleGet(argv: Partial>, prompter: Inqui fieldName: true, deleteAction: true, isRequired: true, + apiRequired: true, junctionTableId: true, junctionTableName: true, junctionSchemaId: true, sourceFieldName: true, targetFieldName: true, useCompositeKey: true, + createIndex: true, + exposeInApi: true, nodeType: true, nodeData: true, grantRoles: true, @@ -244,6 +242,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'boolean', + name: 'apiRequired', + message: 'apiRequired', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'junctionTableId', @@ -286,6 +291,20 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'boolean', + name: 'createIndex', + message: 'createIndex', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'exposeInApi', + message: 'exposeInApi', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'nodeType', @@ -401,12 +420,15 @@ async function handleCreate(argv: Partial>, prompter: In fieldName: cleanedData.fieldName, deleteAction: cleanedData.deleteAction, isRequired: cleanedData.isRequired, + apiRequired: cleanedData.apiRequired, junctionTableId: cleanedData.junctionTableId, junctionTableName: cleanedData.junctionTableName, junctionSchemaId: cleanedData.junctionSchemaId, sourceFieldName: cleanedData.sourceFieldName, targetFieldName: cleanedData.targetFieldName, useCompositeKey: cleanedData.useCompositeKey, + createIndex: cleanedData.createIndex, + exposeInApi: cleanedData.exposeInApi, nodeType: cleanedData.nodeType, nodeData: cleanedData.nodeData, grantRoles: cleanedData.grantRoles, @@ -431,12 +453,15 @@ async function handleCreate(argv: Partial>, prompter: In fieldName: true, deleteAction: true, isRequired: true, + apiRequired: true, junctionTableId: true, junctionTableName: true, junctionSchemaId: true, sourceFieldName: true, targetFieldName: true, useCompositeKey: true, + createIndex: true, + exposeInApi: true, nodeType: true, nodeData: true, grantRoles: true, @@ -517,6 +542,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'boolean', + name: 'apiRequired', + message: 'apiRequired', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'junctionTableId', @@ -559,6 +591,20 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'boolean', + name: 'createIndex', + message: 'createIndex', + required: false, + skipPrompt: true, + }, + { + type: 'boolean', + name: 'exposeInApi', + message: 'exposeInApi', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'nodeType', @@ -674,12 +720,15 @@ async function handleUpdate(argv: Partial>, prompter: In fieldName: cleanedData.fieldName, deleteAction: cleanedData.deleteAction, isRequired: cleanedData.isRequired, + apiRequired: cleanedData.apiRequired, junctionTableId: cleanedData.junctionTableId, junctionTableName: cleanedData.junctionTableName, junctionSchemaId: cleanedData.junctionSchemaId, sourceFieldName: cleanedData.sourceFieldName, targetFieldName: cleanedData.targetFieldName, useCompositeKey: cleanedData.useCompositeKey, + createIndex: cleanedData.createIndex, + exposeInApi: cleanedData.exposeInApi, nodeType: cleanedData.nodeType, nodeData: cleanedData.nodeData, grantRoles: cleanedData.grantRoles, @@ -704,12 +753,15 @@ async function handleUpdate(argv: Partial>, prompter: In fieldName: true, deleteAction: true, isRequired: true, + apiRequired: true, junctionTableId: true, junctionTableName: true, junctionSchemaId: true, sourceFieldName: true, targetFieldName: true, useCompositeKey: true, + createIndex: true, + exposeInApi: true, nodeType: true, nodeData: true, grantRoles: true, diff --git a/sdk/constructive-cli/src/public/cli/commands/rls-module.ts b/sdk/constructive-cli/src/public/cli/commands/rls-module.ts index 5076cbdef..8d95893dc 100644 --- a/sdk/constructive-cli/src/public/cli/commands/rls-module.ts +++ b/sdk/constructive-cli/src/public/cli/commands/rls-module.ts @@ -20,11 +20,6 @@ const fieldSchema: FieldSchema = { authenticateStrict: 'string', currentRole: 'string', currentRoleId: 'string', - authenticateTrgmSimilarity: 'float', - authenticateStrictTrgmSimilarity: 'float', - currentRoleTrgmSimilarity: 'float', - currentRoleIdTrgmSimilarity: 'float', - searchScore: 'float', }; const usage = '\nrls-module \n\nCommands:\n list List all rlsModule records\n get Get a rlsModule by ID\n create Create a new rlsModule\n update Update an existing rlsModule\n delete Delete a rlsModule\n\n --help, -h Show this help message\n'; diff --git a/sdk/constructive-cli/src/public/cli/commands/schema-grant.ts b/sdk/constructive-cli/src/public/cli/commands/schema-grant.ts index ce5047db4..c0b7ad62f 100644 --- a/sdk/constructive-cli/src/public/cli/commands/schema-grant.ts +++ b/sdk/constructive-cli/src/public/cli/commands/schema-grant.ts @@ -15,8 +15,6 @@ const fieldSchema: FieldSchema = { granteeName: 'string', createdAt: 'string', updatedAt: 'string', - granteeNameTrgmSimilarity: 'float', - searchScore: 'float', }; const usage = '\nschema-grant \n\nCommands:\n list List all schemaGrant records\n get Get a schemaGrant by ID\n create Create a new schemaGrant\n update Update an existing schemaGrant\n delete Delete a schemaGrant\n\n --help, -h Show this help message\n'; diff --git a/sdk/constructive-cli/src/public/cli/commands/schema.ts b/sdk/constructive-cli/src/public/cli/commands/schema.ts index f2407af7f..cd4fe21d0 100644 --- a/sdk/constructive-cli/src/public/cli/commands/schema.ts +++ b/sdk/constructive-cli/src/public/cli/commands/schema.ts @@ -23,12 +23,6 @@ const fieldSchema: FieldSchema = { isPublic: 'boolean', createdAt: 'string', updatedAt: 'string', - nameTrgmSimilarity: 'float', - schemaNameTrgmSimilarity: 'float', - labelTrgmSimilarity: 'float', - descriptionTrgmSimilarity: 'float', - moduleTrgmSimilarity: 'float', - searchScore: 'float', }; const usage = '\nschema \n\nCommands:\n list List all schema records\n get Get a schema by ID\n create Create a new schema\n update Update an existing schema\n delete Delete a schema\n\n --help, -h Show this help message\n'; diff --git a/sdk/constructive-cli/src/public/cli/commands/secrets-module.ts b/sdk/constructive-cli/src/public/cli/commands/secrets-module.ts index e6d5ebbad..15995ece2 100644 --- a/sdk/constructive-cli/src/public/cli/commands/secrets-module.ts +++ b/sdk/constructive-cli/src/public/cli/commands/secrets-module.ts @@ -14,8 +14,6 @@ const fieldSchema: FieldSchema = { schemaId: 'uuid', tableId: 'uuid', tableName: 'string', - tableNameTrgmSimilarity: 'float', - searchScore: 'float', }; const usage = '\nsecrets-module \n\nCommands:\n list List all secretsModule records\n get Get a secretsModule by ID\n create Create a new secretsModule\n update Update an existing secretsModule\n delete Delete a secretsModule\n\n --help, -h Show this help message\n'; diff --git a/sdk/constructive-cli/src/public/cli/commands/secure-table-provision.ts b/sdk/constructive-cli/src/public/cli/commands/secure-table-provision.ts index f13005056..50a780319 100644 --- a/sdk/constructive-cli/src/public/cli/commands/secure-table-provision.ts +++ b/sdk/constructive-cli/src/public/cli/commands/secure-table-provision.ts @@ -30,12 +30,6 @@ const fieldSchema: FieldSchema = { policyName: 'string', policyData: 'json', outFields: 'uuid', - tableNameTrgmSimilarity: 'float', - nodeTypeTrgmSimilarity: 'float', - policyTypeTrgmSimilarity: 'float', - policyRoleTrgmSimilarity: 'float', - policyNameTrgmSimilarity: 'float', - searchScore: 'float', }; const usage = '\nsecure-table-provision \n\nCommands:\n list List all secureTableProvision records\n get Get a secureTableProvision by ID\n create Create a new secureTableProvision\n update Update an existing secureTableProvision\n delete Delete a secureTableProvision\n\n --help, -h Show this help message\n'; diff --git a/sdk/constructive-cli/src/public/cli/commands/sessions-module.ts b/sdk/constructive-cli/src/public/cli/commands/sessions-module.ts index 2184512d8..c346bee74 100644 --- a/sdk/constructive-cli/src/public/cli/commands/sessions-module.ts +++ b/sdk/constructive-cli/src/public/cli/commands/sessions-module.ts @@ -20,10 +20,6 @@ const fieldSchema: FieldSchema = { sessionsTable: 'string', sessionCredentialsTable: 'string', authSettingsTable: 'string', - sessionsTableTrgmSimilarity: 'float', - sessionCredentialsTableTrgmSimilarity: 'float', - authSettingsTableTrgmSimilarity: 'float', - searchScore: 'float', }; const usage = '\nsessions-module \n\nCommands:\n list List all sessionsModule records\n get Get a sessionsModule by ID\n create Create a new sessionsModule\n update Update an existing sessionsModule\n delete Delete a sessionsModule\n\n --help, -h Show this help message\n'; diff --git a/sdk/constructive-cli/src/public/cli/commands/site-metadatum.ts b/sdk/constructive-cli/src/public/cli/commands/site-metadatum.ts index 1a8da2815..ef98d4816 100644 --- a/sdk/constructive-cli/src/public/cli/commands/site-metadatum.ts +++ b/sdk/constructive-cli/src/public/cli/commands/site-metadatum.ts @@ -15,9 +15,6 @@ const fieldSchema: FieldSchema = { title: 'string', description: 'string', ogImage: 'string', - titleTrgmSimilarity: 'float', - descriptionTrgmSimilarity: 'float', - searchScore: 'float', }; const usage = '\nsite-metadatum \n\nCommands:\n list List all siteMetadatum records\n get Get a siteMetadatum by ID\n create Create a new siteMetadatum\n update Update an existing siteMetadatum\n delete Delete a siteMetadatum\n\n --help, -h Show this help message\n'; diff --git a/sdk/constructive-cli/src/public/cli/commands/site-module.ts b/sdk/constructive-cli/src/public/cli/commands/site-module.ts index 63285d175..20c3c40eb 100644 --- a/sdk/constructive-cli/src/public/cli/commands/site-module.ts +++ b/sdk/constructive-cli/src/public/cli/commands/site-module.ts @@ -14,8 +14,6 @@ const fieldSchema: FieldSchema = { siteId: 'uuid', name: 'string', data: 'json', - nameTrgmSimilarity: 'float', - searchScore: 'float', }; const usage = '\nsite-module \n\nCommands:\n list List all siteModule records\n get Get a siteModule by ID\n create Create a new siteModule\n update Update an existing siteModule\n delete Delete a siteModule\n\n --help, -h Show this help message\n'; diff --git a/sdk/constructive-cli/src/public/cli/commands/site.ts b/sdk/constructive-cli/src/public/cli/commands/site.ts index f7d0656ff..846a631a5 100644 --- a/sdk/constructive-cli/src/public/cli/commands/site.ts +++ b/sdk/constructive-cli/src/public/cli/commands/site.ts @@ -18,10 +18,6 @@ const fieldSchema: FieldSchema = { appleTouchIcon: 'string', logo: 'string', dbname: 'string', - titleTrgmSimilarity: 'float', - descriptionTrgmSimilarity: 'float', - dbnameTrgmSimilarity: 'float', - searchScore: 'float', }; const usage = '\nsite \n\nCommands:\n list List all site records\n get Get a site by ID\n create Create a new site\n update Update an existing site\n delete Delete a site\n\n --help, -h Show this help message\n'; diff --git a/sdk/constructive-cli/src/public/cli/commands/sql-migration.ts b/sdk/constructive-cli/src/public/cli/commands/sql-migration.ts index 22eaf6ea9..8d7653a2a 100644 --- a/sdk/constructive-cli/src/public/cli/commands/sql-migration.ts +++ b/sdk/constructive-cli/src/public/cli/commands/sql-migration.ts @@ -22,13 +22,6 @@ const fieldSchema: FieldSchema = { action: 'string', actionId: 'uuid', actorId: 'uuid', - nameTrgmSimilarity: 'float', - deployTrgmSimilarity: 'float', - contentTrgmSimilarity: 'float', - revertTrgmSimilarity: 'float', - verifyTrgmSimilarity: 'float', - actionTrgmSimilarity: 'float', - searchScore: 'float', }; const usage = '\nsql-migration \n\nCommands:\n list List all sqlMigration records\n create Create a new sqlMigration\n\n --help, -h Show this help message\n'; diff --git a/sdk/constructive-cli/src/public/cli/commands/store.ts b/sdk/constructive-cli/src/public/cli/commands/store.ts index 78086e121..2ca10cb6d 100644 --- a/sdk/constructive-cli/src/public/cli/commands/store.ts +++ b/sdk/constructive-cli/src/public/cli/commands/store.ts @@ -14,8 +14,6 @@ const fieldSchema: FieldSchema = { databaseId: 'uuid', hash: 'uuid', createdAt: 'string', - nameTrgmSimilarity: 'float', - searchScore: 'float', }; const usage = '\nstore \n\nCommands:\n list List all store records\n get Get a store by ID\n create Create a new store\n update Update an existing store\n delete Delete a store\n\n --help, -h Show this help message\n'; diff --git a/sdk/constructive-cli/src/public/cli/commands/table-grant.ts b/sdk/constructive-cli/src/public/cli/commands/table-grant.ts index 079324f74..bcb916b5b 100644 --- a/sdk/constructive-cli/src/public/cli/commands/table-grant.ts +++ b/sdk/constructive-cli/src/public/cli/commands/table-grant.ts @@ -18,9 +18,6 @@ const fieldSchema: FieldSchema = { isGrant: 'boolean', createdAt: 'string', updatedAt: 'string', - privilegeTrgmSimilarity: 'float', - granteeNameTrgmSimilarity: 'float', - searchScore: 'float', }; const usage = '\ntable-grant \n\nCommands:\n list List all tableGrant records\n get Get a tableGrant by ID\n create Create a new tableGrant\n update Update an existing tableGrant\n delete Delete a tableGrant\n\n --help, -h Show this help message\n'; diff --git a/sdk/constructive-cli/src/public/cli/commands/table-template-module.ts b/sdk/constructive-cli/src/public/cli/commands/table-template-module.ts index d970280da..a98d2ff63 100644 --- a/sdk/constructive-cli/src/public/cli/commands/table-template-module.ts +++ b/sdk/constructive-cli/src/public/cli/commands/table-template-module.ts @@ -21,9 +21,6 @@ const fieldSchema: FieldSchema = { tableName: 'string', nodeType: 'string', data: 'json', - tableNameTrgmSimilarity: 'float', - nodeTypeTrgmSimilarity: 'float', - searchScore: 'float', }; const usage = '\ntable-template-module \n\nCommands:\n list List all tableTemplateModule records\n get Get a tableTemplateModule by ID\n create Create a new tableTemplateModule\n update Update an existing tableTemplateModule\n delete Delete a tableTemplateModule\n\n --help, -h Show this help message\n'; diff --git a/sdk/constructive-cli/src/public/cli/commands/table.ts b/sdk/constructive-cli/src/public/cli/commands/table.ts index e2a754c45..4efc0a267 100644 --- a/sdk/constructive-cli/src/public/cli/commands/table.ts +++ b/sdk/constructive-cli/src/public/cli/commands/table.ts @@ -28,13 +28,6 @@ const fieldSchema: FieldSchema = { inheritsId: 'uuid', createdAt: 'string', updatedAt: 'string', - nameTrgmSimilarity: 'float', - labelTrgmSimilarity: 'float', - descriptionTrgmSimilarity: 'float', - moduleTrgmSimilarity: 'float', - pluralNameTrgmSimilarity: 'float', - singularNameTrgmSimilarity: 'float', - searchScore: 'float', }; const usage = '\ntable \n\nCommands:\n list List all table records\n get Get a table by ID\n create Create a new table\n update Update an existing table\n delete Delete a table\n\n --help, -h Show this help message\n'; diff --git a/sdk/constructive-cli/src/public/cli/commands/trigger-function.ts b/sdk/constructive-cli/src/public/cli/commands/trigger-function.ts index e50a589ac..64b204c31 100644 --- a/sdk/constructive-cli/src/public/cli/commands/trigger-function.ts +++ b/sdk/constructive-cli/src/public/cli/commands/trigger-function.ts @@ -15,9 +15,6 @@ const fieldSchema: FieldSchema = { code: 'string', createdAt: 'string', updatedAt: 'string', - nameTrgmSimilarity: 'float', - codeTrgmSimilarity: 'float', - searchScore: 'float', }; const usage = '\ntrigger-function \n\nCommands:\n list List all triggerFunction records\n get Get a triggerFunction by ID\n create Create a new triggerFunction\n update Update an existing triggerFunction\n delete Delete a triggerFunction\n\n --help, -h Show this help message\n'; diff --git a/sdk/constructive-cli/src/public/cli/commands/trigger.ts b/sdk/constructive-cli/src/public/cli/commands/trigger.ts index ffa7db793..ca97022b7 100644 --- a/sdk/constructive-cli/src/public/cli/commands/trigger.ts +++ b/sdk/constructive-cli/src/public/cli/commands/trigger.ts @@ -22,11 +22,6 @@ const fieldSchema: FieldSchema = { tags: 'string', createdAt: 'string', updatedAt: 'string', - nameTrgmSimilarity: 'float', - eventTrgmSimilarity: 'float', - functionNameTrgmSimilarity: 'float', - moduleTrgmSimilarity: 'float', - searchScore: 'float', }; const usage = '\ntrigger \n\nCommands:\n list List all trigger records\n get Get a trigger by ID\n create Create a new trigger\n update Update an existing trigger\n delete Delete a trigger\n\n --help, -h Show this help message\n'; diff --git a/sdk/constructive-cli/src/public/cli/commands/unique-constraint.ts b/sdk/constructive-cli/src/public/cli/commands/unique-constraint.ts index 93e3c98bc..5ce4f0450 100644 --- a/sdk/constructive-cli/src/public/cli/commands/unique-constraint.ts +++ b/sdk/constructive-cli/src/public/cli/commands/unique-constraint.ts @@ -23,11 +23,6 @@ const fieldSchema: FieldSchema = { tags: 'string', createdAt: 'string', updatedAt: 'string', - nameTrgmSimilarity: 'float', - descriptionTrgmSimilarity: 'float', - typeTrgmSimilarity: 'float', - moduleTrgmSimilarity: 'float', - searchScore: 'float', }; const usage = '\nunique-constraint \n\nCommands:\n list List all uniqueConstraint records\n get Get a uniqueConstraint by ID\n create Create a new uniqueConstraint\n update Update an existing uniqueConstraint\n delete Delete a uniqueConstraint\n\n --help, -h Show this help message\n'; diff --git a/sdk/constructive-cli/src/public/cli/commands/user-auth-module.ts b/sdk/constructive-cli/src/public/cli/commands/user-auth-module.ts index bd587c53f..0bb6a404f 100644 --- a/sdk/constructive-cli/src/public/cli/commands/user-auth-module.ts +++ b/sdk/constructive-cli/src/public/cli/commands/user-auth-module.ts @@ -35,23 +35,6 @@ const fieldSchema: FieldSchema = { signInOneTimeTokenFunction: 'string', oneTimeTokenFunction: 'string', extendTokenExpires: 'string', - auditsTableNameTrgmSimilarity: 'float', - signInFunctionTrgmSimilarity: 'float', - signUpFunctionTrgmSimilarity: 'float', - signOutFunctionTrgmSimilarity: 'float', - setPasswordFunctionTrgmSimilarity: 'float', - resetPasswordFunctionTrgmSimilarity: 'float', - forgotPasswordFunctionTrgmSimilarity: 'float', - sendVerificationEmailFunctionTrgmSimilarity: 'float', - verifyEmailFunctionTrgmSimilarity: 'float', - verifyPasswordFunctionTrgmSimilarity: 'float', - checkPasswordFunctionTrgmSimilarity: 'float', - sendAccountDeletionEmailFunctionTrgmSimilarity: 'float', - deleteAccountFunctionTrgmSimilarity: 'float', - signInOneTimeTokenFunctionTrgmSimilarity: 'float', - oneTimeTokenFunctionTrgmSimilarity: 'float', - extendTokenExpiresTrgmSimilarity: 'float', - searchScore: 'float', }; const usage = '\nuser-auth-module \n\nCommands:\n list List all userAuthModule records\n get Get a userAuthModule by ID\n create Create a new userAuthModule\n update Update an existing userAuthModule\n delete Delete a userAuthModule\n\n --help, -h Show this help message\n'; diff --git a/sdk/constructive-cli/src/public/cli/commands/users-module.ts b/sdk/constructive-cli/src/public/cli/commands/users-module.ts index a63321bea..29c270530 100644 --- a/sdk/constructive-cli/src/public/cli/commands/users-module.ts +++ b/sdk/constructive-cli/src/public/cli/commands/users-module.ts @@ -16,9 +16,6 @@ const fieldSchema: FieldSchema = { tableName: 'string', typeTableId: 'uuid', typeTableName: 'string', - tableNameTrgmSimilarity: 'float', - typeTableNameTrgmSimilarity: 'float', - searchScore: 'float', }; const usage = '\nusers-module \n\nCommands:\n list List all usersModule records\n get Get a usersModule by ID\n create Create a new usersModule\n update Update an existing usersModule\n delete Delete a usersModule\n\n --help, -h Show this help message\n'; diff --git a/sdk/constructive-cli/src/public/cli/commands/view-grant.ts b/sdk/constructive-cli/src/public/cli/commands/view-grant.ts index 4cfb95fe0..b38000dd3 100644 --- a/sdk/constructive-cli/src/public/cli/commands/view-grant.ts +++ b/sdk/constructive-cli/src/public/cli/commands/view-grant.ts @@ -16,9 +16,6 @@ const fieldSchema: FieldSchema = { privilege: 'string', withGrantOption: 'boolean', isGrant: 'boolean', - granteeNameTrgmSimilarity: 'float', - privilegeTrgmSimilarity: 'float', - searchScore: 'float', }; const usage = '\nview-grant \n\nCommands:\n list List all viewGrant records\n get Get a viewGrant by ID\n create Create a new viewGrant\n update Update an existing viewGrant\n delete Delete a viewGrant\n\n --help, -h Show this help message\n'; diff --git a/sdk/constructive-cli/src/public/cli/commands/view-rule.ts b/sdk/constructive-cli/src/public/cli/commands/view-rule.ts index 899b8542b..19b6407f9 100644 --- a/sdk/constructive-cli/src/public/cli/commands/view-rule.ts +++ b/sdk/constructive-cli/src/public/cli/commands/view-rule.ts @@ -15,10 +15,6 @@ const fieldSchema: FieldSchema = { name: 'string', event: 'string', action: 'string', - nameTrgmSimilarity: 'float', - eventTrgmSimilarity: 'float', - actionTrgmSimilarity: 'float', - searchScore: 'float', }; const usage = '\nview-rule \n\nCommands:\n list List all viewRule records\n get Get a viewRule by ID\n create Create a new viewRule\n update Update an existing viewRule\n delete Delete a viewRule\n\n --help, -h Show this help message\n'; diff --git a/sdk/constructive-cli/src/public/cli/commands/view.ts b/sdk/constructive-cli/src/public/cli/commands/view.ts index d4b72b305..c7b6424e5 100644 --- a/sdk/constructive-cli/src/public/cli/commands/view.ts +++ b/sdk/constructive-cli/src/public/cli/commands/view.ts @@ -25,11 +25,6 @@ const fieldSchema: FieldSchema = { module: 'string', scope: 'int', tags: 'string', - nameTrgmSimilarity: 'float', - viewTypeTrgmSimilarity: 'float', - filterTypeTrgmSimilarity: 'float', - moduleTrgmSimilarity: 'float', - searchScore: 'float', }; const usage = '\nview \n\nCommands:\n list List all view records\n get Get a view by ID\n create Create a new view\n update Update an existing view\n delete Delete a view\n\n --help, -h Show this help message\n'; diff --git a/sdk/constructive-cli/src/public/orm/README.md b/sdk/constructive-cli/src/public/orm/README.md index 3433a90fc..345968ed7 100644 --- a/sdk/constructive-cli/src/public/orm/README.md +++ b/sdk/constructive-cli/src/public/orm/README.md @@ -21,9 +21,9 @@ const db = createClient({ | Model | Operations | |-------|------------| +| `getAllRecord` | findMany, findOne, create, update, delete | | `orgGetManagersRecord` | findMany, findOne, create, update, delete | | `orgGetSubordinatesRecord` | findMany, findOne, create, update, delete | -| `getAllRecord` | findMany, findOne, create, update, delete | | `object` | findMany, findOne, create, update, delete | | `appPermission` | findMany, findOne, create, update, delete | | `orgPermission` | findMany, findOne, create, update, delete | @@ -45,11 +45,13 @@ const db = createClient({ | `viewTable` | findMany, findOne, create, update, delete | | `viewGrant` | findMany, findOne, create, update, delete | | `viewRule` | findMany, findOne, create, update, delete | +| `embeddingChunk` | findMany, findOne, create, update, delete | | `tableTemplateModule` | findMany, findOne, create, update, delete | | `secureTableProvision` | findMany, findOne, create, update, delete | | `relationProvision` | findMany, findOne, create, update, delete | | `schemaGrant` | findMany, findOne, create, update, delete | | `defaultPrivilege` | findMany, findOne, create, update, delete | +| `enum` | findMany, findOne, create, update, delete | | `apiSchema` | findMany, findOne, create, update, delete | | `apiModule` | findMany, findOne, create, update, delete | | `domain` | findMany, findOne, create, update, delete | @@ -57,6 +59,7 @@ const db = createClient({ | `siteModule` | findMany, findOne, create, update, delete | | `siteTheme` | findMany, findOne, create, update, delete | | `triggerFunction` | findMany, findOne, create, update, delete | +| `databaseTransfer` | findMany, findOne, create, update, delete | | `api` | findMany, findOne, create, update, delete | | `site` | findMany, findOne, create, update, delete | | `app` | findMany, findOne, create, update, delete | @@ -80,7 +83,8 @@ const db = createClient({ | `sessionsModule` | findMany, findOne, create, update, delete | | `userAuthModule` | findMany, findOne, create, update, delete | | `usersModule` | findMany, findOne, create, update, delete | -| `uuidModule` | findMany, findOne, create, update, delete | +| `blueprint` | findMany, findOne, create, update, delete | +| `blueprintTemplate` | findMany, findOne, create, update, delete | | `databaseProvisionModule` | findMany, findOne, create, update, delete | | `appAdminGrant` | findMany, findOne, create, update, delete | | `appOwnerGrant` | findMany, findOne, create, update, delete | @@ -92,34 +96,34 @@ const db = createClient({ | `orgGrant` | findMany, findOne, create, update, delete | | `orgChartEdge` | findMany, findOne, create, update, delete | | `orgChartEdgeGrant` | findMany, findOne, create, update, delete | +| `orgPermissionDefault` | findMany, findOne, create, update, delete | | `appLimit` | findMany, findOne, create, update, delete | | `orgLimit` | findMany, findOne, create, update, delete | | `appStep` | findMany, findOne, create, update, delete | | `appAchievement` | findMany, findOne, create, update, delete | +| `appLevel` | findMany, findOne, create, update, delete | +| `email` | findMany, findOne, create, update, delete | +| `phoneNumber` | findMany, findOne, create, update, delete | +| `cryptoAddress` | findMany, findOne, create, update, delete | +| `connectedAccount` | findMany, findOne, create, update, delete | | `invite` | findMany, findOne, create, update, delete | | `claimedInvite` | findMany, findOne, create, update, delete | | `orgInvite` | findMany, findOne, create, update, delete | | `orgClaimedInvite` | findMany, findOne, create, update, delete | +| `auditLog` | findMany, findOne, create, update, delete | | `ref` | findMany, findOne, create, update, delete | | `store` | findMany, findOne, create, update, delete | | `appPermissionDefault` | findMany, findOne, create, update, delete | -| `cryptoAddress` | findMany, findOne, create, update, delete | | `roleType` | findMany, findOne, create, update, delete | -| `orgPermissionDefault` | findMany, findOne, create, update, delete | -| `phoneNumber` | findMany, findOne, create, update, delete | | `appLimitDefault` | findMany, findOne, create, update, delete | | `orgLimitDefault` | findMany, findOne, create, update, delete | -| `connectedAccount` | findMany, findOne, create, update, delete | | `nodeTypeRegistry` | findMany, findOne, create, update, delete | | `membershipType` | findMany, findOne, create, update, delete | | `commit` | findMany, findOne, create, update, delete | | `appMembershipDefault` | findMany, findOne, create, update, delete | | `rlsModule` | findMany, findOne, create, update, delete | | `orgMembershipDefault` | findMany, findOne, create, update, delete | -| `auditLog` | findMany, findOne, create, update, delete | -| `appLevel` | findMany, findOne, create, update, delete | | `sqlMigration` | findMany, findOne, create, update, delete | -| `email` | findMany, findOne, create, update, delete | | `user` | findMany, findOne, create, update, delete | | `astMigration` | findMany, findOne, create, update, delete | | `appMembership` | findMany, findOne, create, update, delete | @@ -127,39 +131,39 @@ const db = createClient({ ## Table Operations -### `db.orgGetManagersRecord` +### `db.getAllRecord` -CRUD operations for OrgGetManagersRecord records. +CRUD operations for GetAllRecord records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `userId` | UUID | Yes | -| `depth` | Int | Yes | +| `path` | String | Yes | +| `data` | JSON | Yes | **Operations:** ```typescript -// List all orgGetManagersRecord records -const items = await db.orgGetManagersRecord.findMany({ select: { userId: true, depth: true } }).execute(); +// List all getAllRecord records +const items = await db.getAllRecord.findMany({ select: { path: true, data: true } }).execute(); // Get one by id -const item = await db.orgGetManagersRecord.findOne({ id: '', select: { userId: true, depth: true } }).execute(); +const item = await db.getAllRecord.findOne({ id: '', select: { path: true, data: true } }).execute(); // Create -const created = await db.orgGetManagersRecord.create({ data: { userId: '', depth: '' }, select: { id: true } }).execute(); +const created = await db.getAllRecord.create({ data: { path: '', data: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgGetManagersRecord.update({ where: { id: '' }, data: { userId: '' }, select: { id: true } }).execute(); +const updated = await db.getAllRecord.update({ where: { id: '' }, data: { path: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgGetManagersRecord.delete({ where: { id: '' } }).execute(); +const deleted = await db.getAllRecord.delete({ where: { id: '' } }).execute(); ``` -### `db.orgGetSubordinatesRecord` +### `db.orgGetManagersRecord` -CRUD operations for OrgGetSubordinatesRecord records. +CRUD operations for OrgGetManagersRecord records. **Fields:** @@ -171,50 +175,50 @@ CRUD operations for OrgGetSubordinatesRecord records. **Operations:** ```typescript -// List all orgGetSubordinatesRecord records -const items = await db.orgGetSubordinatesRecord.findMany({ select: { userId: true, depth: true } }).execute(); +// List all orgGetManagersRecord records +const items = await db.orgGetManagersRecord.findMany({ select: { userId: true, depth: true } }).execute(); // Get one by id -const item = await db.orgGetSubordinatesRecord.findOne({ id: '', select: { userId: true, depth: true } }).execute(); +const item = await db.orgGetManagersRecord.findOne({ id: '', select: { userId: true, depth: true } }).execute(); // Create -const created = await db.orgGetSubordinatesRecord.create({ data: { userId: '', depth: '' }, select: { id: true } }).execute(); +const created = await db.orgGetManagersRecord.create({ data: { userId: '', depth: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgGetSubordinatesRecord.update({ where: { id: '' }, data: { userId: '' }, select: { id: true } }).execute(); +const updated = await db.orgGetManagersRecord.update({ where: { id: '' }, data: { userId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgGetSubordinatesRecord.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgGetManagersRecord.delete({ where: { id: '' } }).execute(); ``` -### `db.getAllRecord` +### `db.orgGetSubordinatesRecord` -CRUD operations for GetAllRecord records. +CRUD operations for OrgGetSubordinatesRecord records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `path` | String | Yes | -| `data` | JSON | Yes | +| `userId` | UUID | Yes | +| `depth` | Int | Yes | **Operations:** ```typescript -// List all getAllRecord records -const items = await db.getAllRecord.findMany({ select: { path: true, data: true } }).execute(); +// List all orgGetSubordinatesRecord records +const items = await db.orgGetSubordinatesRecord.findMany({ select: { userId: true, depth: true } }).execute(); // Get one by id -const item = await db.getAllRecord.findOne({ id: '', select: { path: true, data: true } }).execute(); +const item = await db.orgGetSubordinatesRecord.findOne({ id: '', select: { userId: true, depth: true } }).execute(); // Create -const created = await db.getAllRecord.create({ data: { path: '', data: '' }, select: { id: true } }).execute(); +const created = await db.orgGetSubordinatesRecord.create({ data: { userId: '', depth: '' }, select: { id: true } }).execute(); // Update -const updated = await db.getAllRecord.update({ where: { id: '' }, data: { path: '' }, select: { id: true } }).execute(); +const updated = await db.orgGetSubordinatesRecord.update({ where: { id: '' }, data: { userId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.getAllRecord.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgGetSubordinatesRecord.delete({ where: { id: '' } }).execute(); ``` ### `db.object` @@ -241,16 +245,16 @@ CRUD operations for Object records. const items = await db.object.findMany({ select: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }).execute(); // Get one by id -const item = await db.object.findOne({ id: '', select: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }).execute(); +const item = await db.object.findOne({ id: '', select: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }).execute(); // Create -const created = await db.object.create({ data: { hashUuid: '', databaseId: '', kids: '', ktree: '', data: '', frzn: '' }, select: { id: true } }).execute(); +const created = await db.object.create({ data: { hashUuid: '', databaseId: '', kids: '', ktree: '', data: '', frzn: '' }, select: { id: true } }).execute(); // Update -const updated = await db.object.update({ where: { id: '' }, data: { hashUuid: '' }, select: { id: true } }).execute(); +const updated = await db.object.update({ where: { id: '' }, data: { hashUuid: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.object.delete({ where: { id: '' } }).execute(); +const deleted = await db.object.delete({ where: { id: '' } }).execute(); ``` ### `db.appPermission` @@ -266,26 +270,24 @@ CRUD operations for AppPermission records. | `bitnum` | Int | Yes | | `bitstr` | BitString | Yes | | `description` | String | Yes | -| `descriptionTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all appPermission records -const items = await db.appPermission.findMany({ select: { id: true, name: true, bitnum: true, bitstr: true, description: true, descriptionTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.appPermission.findMany({ select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); // Get one by id -const item = await db.appPermission.findOne({ id: '', select: { id: true, name: true, bitnum: true, bitstr: true, description: true, descriptionTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.appPermission.findOne({ id: '', select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); // Create -const created = await db.appPermission.create({ data: { name: '', bitnum: '', bitstr: '', description: '', descriptionTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.appPermission.create({ data: { name: '', bitnum: '', bitstr: '', description: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appPermission.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.appPermission.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appPermission.delete({ where: { id: '' } }).execute(); +const deleted = await db.appPermission.delete({ where: { id: '' } }).execute(); ``` ### `db.orgPermission` @@ -301,26 +303,24 @@ CRUD operations for OrgPermission records. | `bitnum` | Int | Yes | | `bitstr` | BitString | Yes | | `description` | String | Yes | -| `descriptionTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all orgPermission records -const items = await db.orgPermission.findMany({ select: { id: true, name: true, bitnum: true, bitstr: true, description: true, descriptionTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.orgPermission.findMany({ select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); // Get one by id -const item = await db.orgPermission.findOne({ id: '', select: { id: true, name: true, bitnum: true, bitstr: true, description: true, descriptionTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.orgPermission.findOne({ id: '', select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); // Create -const created = await db.orgPermission.create({ data: { name: '', bitnum: '', bitstr: '', description: '', descriptionTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.orgPermission.create({ data: { name: '', bitnum: '', bitstr: '', description: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgPermission.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.orgPermission.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgPermission.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgPermission.delete({ where: { id: '' } }).execute(); ``` ### `db.appLevelRequirement` @@ -339,26 +339,24 @@ CRUD operations for AppLevelRequirement records. | `priority` | Int | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `descriptionTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all appLevelRequirement records -const items = await db.appLevelRequirement.findMany({ select: { id: true, name: true, level: true, description: true, requiredCount: true, priority: true, createdAt: true, updatedAt: true, descriptionTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.appLevelRequirement.findMany({ select: { id: true, name: true, level: true, description: true, requiredCount: true, priority: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.appLevelRequirement.findOne({ id: '', select: { id: true, name: true, level: true, description: true, requiredCount: true, priority: true, createdAt: true, updatedAt: true, descriptionTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.appLevelRequirement.findOne({ id: '', select: { id: true, name: true, level: true, description: true, requiredCount: true, priority: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.appLevelRequirement.create({ data: { name: '', level: '', description: '', requiredCount: '', priority: '', descriptionTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.appLevelRequirement.create({ data: { name: '', level: '', description: '', requiredCount: '', priority: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appLevelRequirement.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.appLevelRequirement.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appLevelRequirement.delete({ where: { id: '' } }).execute(); +const deleted = await db.appLevelRequirement.delete({ where: { id: '' } }).execute(); ``` ### `db.database` @@ -377,28 +375,24 @@ CRUD operations for Database records. | `hash` | UUID | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `schemaHashTrgmSimilarity` | Float | Yes | -| `nameTrgmSimilarity` | Float | Yes | -| `labelTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all database records -const items = await db.database.findMany({ select: { id: true, ownerId: true, schemaHash: true, name: true, label: true, hash: true, createdAt: true, updatedAt: true, schemaHashTrgmSimilarity: true, nameTrgmSimilarity: true, labelTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.database.findMany({ select: { id: true, ownerId: true, schemaHash: true, name: true, label: true, hash: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.database.findOne({ id: '', select: { id: true, ownerId: true, schemaHash: true, name: true, label: true, hash: true, createdAt: true, updatedAt: true, schemaHashTrgmSimilarity: true, nameTrgmSimilarity: true, labelTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.database.findOne({ id: '', select: { id: true, ownerId: true, schemaHash: true, name: true, label: true, hash: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.database.create({ data: { ownerId: '', schemaHash: '', name: '', label: '', hash: '', schemaHashTrgmSimilarity: '', nameTrgmSimilarity: '', labelTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.database.create({ data: { ownerId: '', schemaHash: '', name: '', label: '', hash: '' }, select: { id: true } }).execute(); // Update -const updated = await db.database.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); +const updated = await db.database.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.database.delete({ where: { id: '' } }).execute(); +const deleted = await db.database.delete({ where: { id: '' } }).execute(); ``` ### `db.schema` @@ -423,30 +417,24 @@ CRUD operations for Schema records. | `isPublic` | Boolean | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `nameTrgmSimilarity` | Float | Yes | -| `schemaNameTrgmSimilarity` | Float | Yes | -| `labelTrgmSimilarity` | Float | Yes | -| `descriptionTrgmSimilarity` | Float | Yes | -| `moduleTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all schema records -const items = await db.schema.findMany({ select: { id: true, databaseId: true, name: true, schemaName: true, label: true, description: true, smartTags: true, category: true, module: true, scope: true, tags: true, isPublic: true, createdAt: true, updatedAt: true, nameTrgmSimilarity: true, schemaNameTrgmSimilarity: true, labelTrgmSimilarity: true, descriptionTrgmSimilarity: true, moduleTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.schema.findMany({ select: { id: true, databaseId: true, name: true, schemaName: true, label: true, description: true, smartTags: true, category: true, module: true, scope: true, tags: true, isPublic: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.schema.findOne({ id: '', select: { id: true, databaseId: true, name: true, schemaName: true, label: true, description: true, smartTags: true, category: true, module: true, scope: true, tags: true, isPublic: true, createdAt: true, updatedAt: true, nameTrgmSimilarity: true, schemaNameTrgmSimilarity: true, labelTrgmSimilarity: true, descriptionTrgmSimilarity: true, moduleTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.schema.findOne({ id: '', select: { id: true, databaseId: true, name: true, schemaName: true, label: true, description: true, smartTags: true, category: true, module: true, scope: true, tags: true, isPublic: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.schema.create({ data: { databaseId: '', name: '', schemaName: '', label: '', description: '', smartTags: '', category: '', module: '', scope: '', tags: '', isPublic: '', nameTrgmSimilarity: '', schemaNameTrgmSimilarity: '', labelTrgmSimilarity: '', descriptionTrgmSimilarity: '', moduleTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.schema.create({ data: { databaseId: '', name: '', schemaName: '', label: '', description: '', smartTags: '', category: '', module: '', scope: '', tags: '', isPublic: '' }, select: { id: true } }).execute(); // Update -const updated = await db.schema.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.schema.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.schema.delete({ where: { id: '' } }).execute(); +const deleted = await db.schema.delete({ where: { id: '' } }).execute(); ``` ### `db.table` @@ -476,31 +464,24 @@ CRUD operations for Table records. | `inheritsId` | UUID | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `nameTrgmSimilarity` | Float | Yes | -| `labelTrgmSimilarity` | Float | Yes | -| `descriptionTrgmSimilarity` | Float | Yes | -| `moduleTrgmSimilarity` | Float | Yes | -| `pluralNameTrgmSimilarity` | Float | Yes | -| `singularNameTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all table records -const items = await db.table.findMany({ select: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, smartTags: true, category: true, module: true, scope: true, useRls: true, timestamps: true, peoplestamps: true, pluralName: true, singularName: true, tags: true, inheritsId: true, createdAt: true, updatedAt: true, nameTrgmSimilarity: true, labelTrgmSimilarity: true, descriptionTrgmSimilarity: true, moduleTrgmSimilarity: true, pluralNameTrgmSimilarity: true, singularNameTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.table.findMany({ select: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, smartTags: true, category: true, module: true, scope: true, useRls: true, timestamps: true, peoplestamps: true, pluralName: true, singularName: true, tags: true, inheritsId: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.table.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, smartTags: true, category: true, module: true, scope: true, useRls: true, timestamps: true, peoplestamps: true, pluralName: true, singularName: true, tags: true, inheritsId: true, createdAt: true, updatedAt: true, nameTrgmSimilarity: true, labelTrgmSimilarity: true, descriptionTrgmSimilarity: true, moduleTrgmSimilarity: true, pluralNameTrgmSimilarity: true, singularNameTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.table.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, smartTags: true, category: true, module: true, scope: true, useRls: true, timestamps: true, peoplestamps: true, pluralName: true, singularName: true, tags: true, inheritsId: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.table.create({ data: { databaseId: '', schemaId: '', name: '', label: '', description: '', smartTags: '', category: '', module: '', scope: '', useRls: '', timestamps: '', peoplestamps: '', pluralName: '', singularName: '', tags: '', inheritsId: '', nameTrgmSimilarity: '', labelTrgmSimilarity: '', descriptionTrgmSimilarity: '', moduleTrgmSimilarity: '', pluralNameTrgmSimilarity: '', singularNameTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.table.create({ data: { databaseId: '', schemaId: '', name: '', label: '', description: '', smartTags: '', category: '', module: '', scope: '', useRls: '', timestamps: '', peoplestamps: '', pluralName: '', singularName: '', tags: '', inheritsId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.table.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.table.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.table.delete({ where: { id: '' } }).execute(); +const deleted = await db.table.delete({ where: { id: '' } }).execute(); ``` ### `db.checkConstraint` @@ -525,28 +506,24 @@ CRUD operations for CheckConstraint records. | `tags` | String | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `nameTrgmSimilarity` | Float | Yes | -| `typeTrgmSimilarity` | Float | Yes | -| `moduleTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all checkConstraint records -const items = await db.checkConstraint.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, expr: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true, nameTrgmSimilarity: true, typeTrgmSimilarity: true, moduleTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.checkConstraint.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, expr: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.checkConstraint.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, expr: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true, nameTrgmSimilarity: true, typeTrgmSimilarity: true, moduleTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.checkConstraint.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, expr: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.checkConstraint.create({ data: { databaseId: '', tableId: '', name: '', type: '', fieldIds: '', expr: '', smartTags: '', category: '', module: '', scope: '', tags: '', nameTrgmSimilarity: '', typeTrgmSimilarity: '', moduleTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.checkConstraint.create({ data: { databaseId: '', tableId: '', name: '', type: '', fieldIds: '', expr: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); // Update -const updated = await db.checkConstraint.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.checkConstraint.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.checkConstraint.delete({ where: { id: '' } }).execute(); +const deleted = await db.checkConstraint.delete({ where: { id: '' } }).execute(); ``` ### `db.field` @@ -565,6 +542,7 @@ CRUD operations for Field records. | `description` | String | Yes | | `smartTags` | JSON | Yes | | `isRequired` | Boolean | Yes | +| `apiRequired` | Boolean | Yes | | `defaultValue` | String | Yes | | `defaultValueAst` | JSON | Yes | | `isHidden` | Boolean | Yes | @@ -581,31 +559,24 @@ CRUD operations for Field records. | `scope` | Int | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `nameTrgmSimilarity` | Float | Yes | -| `labelTrgmSimilarity` | Float | Yes | -| `descriptionTrgmSimilarity` | Float | Yes | -| `defaultValueTrgmSimilarity` | Float | Yes | -| `regexpTrgmSimilarity` | Float | Yes | -| `moduleTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all field records -const items = await db.field.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, label: true, description: true, smartTags: true, isRequired: true, defaultValue: true, defaultValueAst: true, isHidden: true, type: true, fieldOrder: true, regexp: true, chk: true, chkExpr: true, min: true, max: true, tags: true, category: true, module: true, scope: true, createdAt: true, updatedAt: true, nameTrgmSimilarity: true, labelTrgmSimilarity: true, descriptionTrgmSimilarity: true, defaultValueTrgmSimilarity: true, regexpTrgmSimilarity: true, moduleTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.field.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, label: true, description: true, smartTags: true, isRequired: true, apiRequired: true, defaultValue: true, defaultValueAst: true, isHidden: true, type: true, fieldOrder: true, regexp: true, chk: true, chkExpr: true, min: true, max: true, tags: true, category: true, module: true, scope: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.field.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, label: true, description: true, smartTags: true, isRequired: true, defaultValue: true, defaultValueAst: true, isHidden: true, type: true, fieldOrder: true, regexp: true, chk: true, chkExpr: true, min: true, max: true, tags: true, category: true, module: true, scope: true, createdAt: true, updatedAt: true, nameTrgmSimilarity: true, labelTrgmSimilarity: true, descriptionTrgmSimilarity: true, defaultValueTrgmSimilarity: true, regexpTrgmSimilarity: true, moduleTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.field.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, label: true, description: true, smartTags: true, isRequired: true, apiRequired: true, defaultValue: true, defaultValueAst: true, isHidden: true, type: true, fieldOrder: true, regexp: true, chk: true, chkExpr: true, min: true, max: true, tags: true, category: true, module: true, scope: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.field.create({ data: { databaseId: '', tableId: '', name: '', label: '', description: '', smartTags: '', isRequired: '', defaultValue: '', defaultValueAst: '', isHidden: '', type: '', fieldOrder: '', regexp: '', chk: '', chkExpr: '', min: '', max: '', tags: '', category: '', module: '', scope: '', nameTrgmSimilarity: '', labelTrgmSimilarity: '', descriptionTrgmSimilarity: '', defaultValueTrgmSimilarity: '', regexpTrgmSimilarity: '', moduleTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.field.create({ data: { databaseId: '', tableId: '', name: '', label: '', description: '', smartTags: '', isRequired: '', apiRequired: '', defaultValue: '', defaultValueAst: '', isHidden: '', type: '', fieldOrder: '', regexp: '', chk: '', chkExpr: '', min: '', max: '', tags: '', category: '', module: '', scope: '' }, select: { id: true } }).execute(); // Update -const updated = await db.field.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.field.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.field.delete({ where: { id: '' } }).execute(); +const deleted = await db.field.delete({ where: { id: '' } }).execute(); ``` ### `db.foreignKeyConstraint` @@ -634,31 +605,24 @@ CRUD operations for ForeignKeyConstraint records. | `tags` | String | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `nameTrgmSimilarity` | Float | Yes | -| `descriptionTrgmSimilarity` | Float | Yes | -| `typeTrgmSimilarity` | Float | Yes | -| `deleteActionTrgmSimilarity` | Float | Yes | -| `updateActionTrgmSimilarity` | Float | Yes | -| `moduleTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all foreignKeyConstraint records -const items = await db.foreignKeyConstraint.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, refTableId: true, refFieldIds: true, deleteAction: true, updateAction: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true, nameTrgmSimilarity: true, descriptionTrgmSimilarity: true, typeTrgmSimilarity: true, deleteActionTrgmSimilarity: true, updateActionTrgmSimilarity: true, moduleTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.foreignKeyConstraint.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, refTableId: true, refFieldIds: true, deleteAction: true, updateAction: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.foreignKeyConstraint.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, refTableId: true, refFieldIds: true, deleteAction: true, updateAction: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true, nameTrgmSimilarity: true, descriptionTrgmSimilarity: true, typeTrgmSimilarity: true, deleteActionTrgmSimilarity: true, updateActionTrgmSimilarity: true, moduleTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.foreignKeyConstraint.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, refTableId: true, refFieldIds: true, deleteAction: true, updateAction: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.foreignKeyConstraint.create({ data: { databaseId: '', tableId: '', name: '', description: '', smartTags: '', type: '', fieldIds: '', refTableId: '', refFieldIds: '', deleteAction: '', updateAction: '', category: '', module: '', scope: '', tags: '', nameTrgmSimilarity: '', descriptionTrgmSimilarity: '', typeTrgmSimilarity: '', deleteActionTrgmSimilarity: '', updateActionTrgmSimilarity: '', moduleTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.foreignKeyConstraint.create({ data: { databaseId: '', tableId: '', name: '', description: '', smartTags: '', type: '', fieldIds: '', refTableId: '', refFieldIds: '', deleteAction: '', updateAction: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); // Update -const updated = await db.foreignKeyConstraint.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.foreignKeyConstraint.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.foreignKeyConstraint.delete({ where: { id: '' } }).execute(); +const deleted = await db.foreignKeyConstraint.delete({ where: { id: '' } }).execute(); ``` ### `db.fullTextSearch` @@ -686,16 +650,16 @@ CRUD operations for FullTextSearch records. const items = await db.fullTextSearch.findMany({ select: { id: true, databaseId: true, tableId: true, fieldId: true, fieldIds: true, weights: true, langs: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.fullTextSearch.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, fieldId: true, fieldIds: true, weights: true, langs: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.fullTextSearch.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, fieldId: true, fieldIds: true, weights: true, langs: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.fullTextSearch.create({ data: { databaseId: '', tableId: '', fieldId: '', fieldIds: '', weights: '', langs: '' }, select: { id: true } }).execute(); +const created = await db.fullTextSearch.create({ data: { databaseId: '', tableId: '', fieldId: '', fieldIds: '', weights: '', langs: '' }, select: { id: true } }).execute(); // Update -const updated = await db.fullTextSearch.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.fullTextSearch.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.fullTextSearch.delete({ where: { id: '' } }).execute(); +const deleted = await db.fullTextSearch.delete({ where: { id: '' } }).execute(); ``` ### `db.index` @@ -725,28 +689,24 @@ CRUD operations for Index records. | `tags` | String | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `nameTrgmSimilarity` | Float | Yes | -| `accessMethodTrgmSimilarity` | Float | Yes | -| `moduleTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all index records -const items = await db.index.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, fieldIds: true, includeFieldIds: true, accessMethod: true, indexParams: true, whereClause: true, isUnique: true, options: true, opClasses: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true, nameTrgmSimilarity: true, accessMethodTrgmSimilarity: true, moduleTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.index.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, fieldIds: true, includeFieldIds: true, accessMethod: true, indexParams: true, whereClause: true, isUnique: true, options: true, opClasses: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.index.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, fieldIds: true, includeFieldIds: true, accessMethod: true, indexParams: true, whereClause: true, isUnique: true, options: true, opClasses: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true, nameTrgmSimilarity: true, accessMethodTrgmSimilarity: true, moduleTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.index.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, fieldIds: true, includeFieldIds: true, accessMethod: true, indexParams: true, whereClause: true, isUnique: true, options: true, opClasses: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.index.create({ data: { databaseId: '', tableId: '', name: '', fieldIds: '', includeFieldIds: '', accessMethod: '', indexParams: '', whereClause: '', isUnique: '', options: '', opClasses: '', smartTags: '', category: '', module: '', scope: '', tags: '', nameTrgmSimilarity: '', accessMethodTrgmSimilarity: '', moduleTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.index.create({ data: { databaseId: '', tableId: '', name: '', fieldIds: '', includeFieldIds: '', accessMethod: '', indexParams: '', whereClause: '', isUnique: '', options: '', opClasses: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); // Update -const updated = await db.index.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.index.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.index.delete({ where: { id: '' } }).execute(); +const deleted = await db.index.delete({ where: { id: '' } }).execute(); ``` ### `db.policy` @@ -774,30 +734,24 @@ CRUD operations for Policy records. | `tags` | String | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `nameTrgmSimilarity` | Float | Yes | -| `granteeNameTrgmSimilarity` | Float | Yes | -| `privilegeTrgmSimilarity` | Float | Yes | -| `policyTypeTrgmSimilarity` | Float | Yes | -| `moduleTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all policy records -const items = await db.policy.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, granteeName: true, privilege: true, permissive: true, disabled: true, policyType: true, data: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true, nameTrgmSimilarity: true, granteeNameTrgmSimilarity: true, privilegeTrgmSimilarity: true, policyTypeTrgmSimilarity: true, moduleTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.policy.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, granteeName: true, privilege: true, permissive: true, disabled: true, policyType: true, data: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.policy.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, granteeName: true, privilege: true, permissive: true, disabled: true, policyType: true, data: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true, nameTrgmSimilarity: true, granteeNameTrgmSimilarity: true, privilegeTrgmSimilarity: true, policyTypeTrgmSimilarity: true, moduleTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.policy.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, granteeName: true, privilege: true, permissive: true, disabled: true, policyType: true, data: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.policy.create({ data: { databaseId: '', tableId: '', name: '', granteeName: '', privilege: '', permissive: '', disabled: '', policyType: '', data: '', smartTags: '', category: '', module: '', scope: '', tags: '', nameTrgmSimilarity: '', granteeNameTrgmSimilarity: '', privilegeTrgmSimilarity: '', policyTypeTrgmSimilarity: '', moduleTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.policy.create({ data: { databaseId: '', tableId: '', name: '', granteeName: '', privilege: '', permissive: '', disabled: '', policyType: '', data: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); // Update -const updated = await db.policy.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.policy.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.policy.delete({ where: { id: '' } }).execute(); +const deleted = await db.policy.delete({ where: { id: '' } }).execute(); ``` ### `db.primaryKeyConstraint` @@ -821,28 +775,24 @@ CRUD operations for PrimaryKeyConstraint records. | `tags` | String | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `nameTrgmSimilarity` | Float | Yes | -| `typeTrgmSimilarity` | Float | Yes | -| `moduleTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all primaryKeyConstraint records -const items = await db.primaryKeyConstraint.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true, nameTrgmSimilarity: true, typeTrgmSimilarity: true, moduleTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.primaryKeyConstraint.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.primaryKeyConstraint.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true, nameTrgmSimilarity: true, typeTrgmSimilarity: true, moduleTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.primaryKeyConstraint.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.primaryKeyConstraint.create({ data: { databaseId: '', tableId: '', name: '', type: '', fieldIds: '', smartTags: '', category: '', module: '', scope: '', tags: '', nameTrgmSimilarity: '', typeTrgmSimilarity: '', moduleTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.primaryKeyConstraint.create({ data: { databaseId: '', tableId: '', name: '', type: '', fieldIds: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); // Update -const updated = await db.primaryKeyConstraint.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.primaryKeyConstraint.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.primaryKeyConstraint.delete({ where: { id: '' } }).execute(); +const deleted = await db.primaryKeyConstraint.delete({ where: { id: '' } }).execute(); ``` ### `db.tableGrant` @@ -862,27 +812,24 @@ CRUD operations for TableGrant records. | `isGrant` | Boolean | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `privilegeTrgmSimilarity` | Float | Yes | -| `granteeNameTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all tableGrant records -const items = await db.tableGrant.findMany({ select: { id: true, databaseId: true, tableId: true, privilege: true, granteeName: true, fieldIds: true, isGrant: true, createdAt: true, updatedAt: true, privilegeTrgmSimilarity: true, granteeNameTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.tableGrant.findMany({ select: { id: true, databaseId: true, tableId: true, privilege: true, granteeName: true, fieldIds: true, isGrant: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.tableGrant.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, privilege: true, granteeName: true, fieldIds: true, isGrant: true, createdAt: true, updatedAt: true, privilegeTrgmSimilarity: true, granteeNameTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.tableGrant.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, privilege: true, granteeName: true, fieldIds: true, isGrant: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.tableGrant.create({ data: { databaseId: '', tableId: '', privilege: '', granteeName: '', fieldIds: '', isGrant: '', privilegeTrgmSimilarity: '', granteeNameTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.tableGrant.create({ data: { databaseId: '', tableId: '', privilege: '', granteeName: '', fieldIds: '', isGrant: '' }, select: { id: true } }).execute(); // Update -const updated = await db.tableGrant.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.tableGrant.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.tableGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.tableGrant.delete({ where: { id: '' } }).execute(); ``` ### `db.trigger` @@ -906,29 +853,24 @@ CRUD operations for Trigger records. | `tags` | String | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `nameTrgmSimilarity` | Float | Yes | -| `eventTrgmSimilarity` | Float | Yes | -| `functionNameTrgmSimilarity` | Float | Yes | -| `moduleTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all trigger records -const items = await db.trigger.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, event: true, functionName: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true, nameTrgmSimilarity: true, eventTrgmSimilarity: true, functionNameTrgmSimilarity: true, moduleTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.trigger.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, event: true, functionName: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.trigger.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, event: true, functionName: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true, nameTrgmSimilarity: true, eventTrgmSimilarity: true, functionNameTrgmSimilarity: true, moduleTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.trigger.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, event: true, functionName: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.trigger.create({ data: { databaseId: '', tableId: '', name: '', event: '', functionName: '', smartTags: '', category: '', module: '', scope: '', tags: '', nameTrgmSimilarity: '', eventTrgmSimilarity: '', functionNameTrgmSimilarity: '', moduleTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.trigger.create({ data: { databaseId: '', tableId: '', name: '', event: '', functionName: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); // Update -const updated = await db.trigger.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.trigger.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.trigger.delete({ where: { id: '' } }).execute(); +const deleted = await db.trigger.delete({ where: { id: '' } }).execute(); ``` ### `db.uniqueConstraint` @@ -953,29 +895,24 @@ CRUD operations for UniqueConstraint records. | `tags` | String | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `nameTrgmSimilarity` | Float | Yes | -| `descriptionTrgmSimilarity` | Float | Yes | -| `typeTrgmSimilarity` | Float | Yes | -| `moduleTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all uniqueConstraint records -const items = await db.uniqueConstraint.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true, nameTrgmSimilarity: true, descriptionTrgmSimilarity: true, typeTrgmSimilarity: true, moduleTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.uniqueConstraint.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.uniqueConstraint.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true, nameTrgmSimilarity: true, descriptionTrgmSimilarity: true, typeTrgmSimilarity: true, moduleTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.uniqueConstraint.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.uniqueConstraint.create({ data: { databaseId: '', tableId: '', name: '', description: '', smartTags: '', type: '', fieldIds: '', category: '', module: '', scope: '', tags: '', nameTrgmSimilarity: '', descriptionTrgmSimilarity: '', typeTrgmSimilarity: '', moduleTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.uniqueConstraint.create({ data: { databaseId: '', tableId: '', name: '', description: '', smartTags: '', type: '', fieldIds: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); // Update -const updated = await db.uniqueConstraint.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.uniqueConstraint.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.uniqueConstraint.delete({ where: { id: '' } }).execute(); +const deleted = await db.uniqueConstraint.delete({ where: { id: '' } }).execute(); ``` ### `db.view` @@ -1002,29 +939,24 @@ CRUD operations for View records. | `module` | String | Yes | | `scope` | Int | Yes | | `tags` | String | Yes | -| `nameTrgmSimilarity` | Float | Yes | -| `viewTypeTrgmSimilarity` | Float | Yes | -| `filterTypeTrgmSimilarity` | Float | Yes | -| `moduleTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all view records -const items = await db.view.findMany({ select: { id: true, databaseId: true, schemaId: true, name: true, tableId: true, viewType: true, data: true, filterType: true, filterData: true, securityInvoker: true, isReadOnly: true, smartTags: true, category: true, module: true, scope: true, tags: true, nameTrgmSimilarity: true, viewTypeTrgmSimilarity: true, filterTypeTrgmSimilarity: true, moduleTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.view.findMany({ select: { id: true, databaseId: true, schemaId: true, name: true, tableId: true, viewType: true, data: true, filterType: true, filterData: true, securityInvoker: true, isReadOnly: true, smartTags: true, category: true, module: true, scope: true, tags: true } }).execute(); // Get one by id -const item = await db.view.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, name: true, tableId: true, viewType: true, data: true, filterType: true, filterData: true, securityInvoker: true, isReadOnly: true, smartTags: true, category: true, module: true, scope: true, tags: true, nameTrgmSimilarity: true, viewTypeTrgmSimilarity: true, filterTypeTrgmSimilarity: true, moduleTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.view.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, name: true, tableId: true, viewType: true, data: true, filterType: true, filterData: true, securityInvoker: true, isReadOnly: true, smartTags: true, category: true, module: true, scope: true, tags: true } }).execute(); // Create -const created = await db.view.create({ data: { databaseId: '', schemaId: '', name: '', tableId: '', viewType: '', data: '', filterType: '', filterData: '', securityInvoker: '', isReadOnly: '', smartTags: '', category: '', module: '', scope: '', tags: '', nameTrgmSimilarity: '', viewTypeTrgmSimilarity: '', filterTypeTrgmSimilarity: '', moduleTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.view.create({ data: { databaseId: '', schemaId: '', name: '', tableId: '', viewType: '', data: '', filterType: '', filterData: '', securityInvoker: '', isReadOnly: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); // Update -const updated = await db.view.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.view.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.view.delete({ where: { id: '' } }).execute(); +const deleted = await db.view.delete({ where: { id: '' } }).execute(); ``` ### `db.viewTable` @@ -1047,16 +979,16 @@ CRUD operations for ViewTable records. const items = await db.viewTable.findMany({ select: { id: true, viewId: true, tableId: true, joinOrder: true } }).execute(); // Get one by id -const item = await db.viewTable.findOne({ id: '', select: { id: true, viewId: true, tableId: true, joinOrder: true } }).execute(); +const item = await db.viewTable.findOne({ id: '', select: { id: true, viewId: true, tableId: true, joinOrder: true } }).execute(); // Create -const created = await db.viewTable.create({ data: { viewId: '', tableId: '', joinOrder: '' }, select: { id: true } }).execute(); +const created = await db.viewTable.create({ data: { viewId: '', tableId: '', joinOrder: '' }, select: { id: true } }).execute(); // Update -const updated = await db.viewTable.update({ where: { id: '' }, data: { viewId: '' }, select: { id: true } }).execute(); +const updated = await db.viewTable.update({ where: { id: '' }, data: { viewId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.viewTable.delete({ where: { id: '' } }).execute(); +const deleted = await db.viewTable.delete({ where: { id: '' } }).execute(); ``` ### `db.viewGrant` @@ -1074,27 +1006,24 @@ CRUD operations for ViewGrant records. | `privilege` | String | Yes | | `withGrantOption` | Boolean | Yes | | `isGrant` | Boolean | Yes | -| `granteeNameTrgmSimilarity` | Float | Yes | -| `privilegeTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all viewGrant records -const items = await db.viewGrant.findMany({ select: { id: true, databaseId: true, viewId: true, granteeName: true, privilege: true, withGrantOption: true, isGrant: true, granteeNameTrgmSimilarity: true, privilegeTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.viewGrant.findMany({ select: { id: true, databaseId: true, viewId: true, granteeName: true, privilege: true, withGrantOption: true, isGrant: true } }).execute(); // Get one by id -const item = await db.viewGrant.findOne({ id: '', select: { id: true, databaseId: true, viewId: true, granteeName: true, privilege: true, withGrantOption: true, isGrant: true, granteeNameTrgmSimilarity: true, privilegeTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.viewGrant.findOne({ id: '', select: { id: true, databaseId: true, viewId: true, granteeName: true, privilege: true, withGrantOption: true, isGrant: true } }).execute(); // Create -const created = await db.viewGrant.create({ data: { databaseId: '', viewId: '', granteeName: '', privilege: '', withGrantOption: '', isGrant: '', granteeNameTrgmSimilarity: '', privilegeTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.viewGrant.create({ data: { databaseId: '', viewId: '', granteeName: '', privilege: '', withGrantOption: '', isGrant: '' }, select: { id: true } }).execute(); // Update -const updated = await db.viewGrant.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.viewGrant.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.viewGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.viewGrant.delete({ where: { id: '' } }).execute(); ``` ### `db.viewRule` @@ -1111,28 +1040,70 @@ CRUD operations for ViewRule records. | `name` | String | Yes | | `event` | String | Yes | | `action` | String | Yes | -| `nameTrgmSimilarity` | Float | Yes | -| `eventTrgmSimilarity` | Float | Yes | -| `actionTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all viewRule records -const items = await db.viewRule.findMany({ select: { id: true, databaseId: true, viewId: true, name: true, event: true, action: true, nameTrgmSimilarity: true, eventTrgmSimilarity: true, actionTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.viewRule.findMany({ select: { id: true, databaseId: true, viewId: true, name: true, event: true, action: true } }).execute(); + +// Get one by id +const item = await db.viewRule.findOne({ id: '', select: { id: true, databaseId: true, viewId: true, name: true, event: true, action: true } }).execute(); + +// Create +const created = await db.viewRule.create({ data: { databaseId: '', viewId: '', name: '', event: '', action: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.viewRule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.viewRule.delete({ where: { id: '' } }).execute(); +``` + +### `db.embeddingChunk` + +CRUD operations for EmbeddingChunk records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `embeddingFieldId` | UUID | Yes | +| `chunksTableId` | UUID | Yes | +| `chunksTableName` | String | Yes | +| `contentFieldName` | String | Yes | +| `dimensions` | Int | Yes | +| `metric` | String | Yes | +| `chunkSize` | Int | Yes | +| `chunkOverlap` | Int | Yes | +| `chunkStrategy` | String | Yes | +| `metadataFields` | JSON | Yes | +| `enqueueChunkingJob` | Boolean | Yes | +| `chunkingTaskName` | String | Yes | +| `parentFkFieldId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all embeddingChunk records +const items = await db.embeddingChunk.findMany({ select: { id: true, databaseId: true, tableId: true, embeddingFieldId: true, chunksTableId: true, chunksTableName: true, contentFieldName: true, dimensions: true, metric: true, chunkSize: true, chunkOverlap: true, chunkStrategy: true, metadataFields: true, enqueueChunkingJob: true, chunkingTaskName: true, parentFkFieldId: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.viewRule.findOne({ id: '', select: { id: true, databaseId: true, viewId: true, name: true, event: true, action: true, nameTrgmSimilarity: true, eventTrgmSimilarity: true, actionTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.embeddingChunk.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, embeddingFieldId: true, chunksTableId: true, chunksTableName: true, contentFieldName: true, dimensions: true, metric: true, chunkSize: true, chunkOverlap: true, chunkStrategy: true, metadataFields: true, enqueueChunkingJob: true, chunkingTaskName: true, parentFkFieldId: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.viewRule.create({ data: { databaseId: '', viewId: '', name: '', event: '', action: '', nameTrgmSimilarity: '', eventTrgmSimilarity: '', actionTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.embeddingChunk.create({ data: { databaseId: '', tableId: '', embeddingFieldId: '', chunksTableId: '', chunksTableName: '', contentFieldName: '', dimensions: '', metric: '', chunkSize: '', chunkOverlap: '', chunkStrategy: '', metadataFields: '', enqueueChunkingJob: '', chunkingTaskName: '', parentFkFieldId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.viewRule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.embeddingChunk.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.viewRule.delete({ where: { id: '' } }).execute(); +const deleted = await db.embeddingChunk.delete({ where: { id: '' } }).execute(); ``` ### `db.tableTemplateModule` @@ -1152,27 +1123,24 @@ CRUD operations for TableTemplateModule records. | `tableName` | String | Yes | | `nodeType` | String | Yes | | `data` | JSON | Yes | -| `tableNameTrgmSimilarity` | Float | Yes | -| `nodeTypeTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all tableTemplateModule records -const items = await db.tableTemplateModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, nodeType: true, data: true, tableNameTrgmSimilarity: true, nodeTypeTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.tableTemplateModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, nodeType: true, data: true } }).execute(); // Get one by id -const item = await db.tableTemplateModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, nodeType: true, data: true, tableNameTrgmSimilarity: true, nodeTypeTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.tableTemplateModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, nodeType: true, data: true } }).execute(); // Create -const created = await db.tableTemplateModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '', nodeType: '', data: '', tableNameTrgmSimilarity: '', nodeTypeTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.tableTemplateModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '', nodeType: '', data: '' }, select: { id: true } }).execute(); // Update -const updated = await db.tableTemplateModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.tableTemplateModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.tableTemplateModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.tableTemplateModule.delete({ where: { id: '' } }).execute(); ``` ### `db.secureTableProvision` @@ -1201,30 +1169,24 @@ CRUD operations for SecureTableProvision records. | `policyName` | String | Yes | | `policyData` | JSON | Yes | | `outFields` | UUID | Yes | -| `tableNameTrgmSimilarity` | Float | Yes | -| `nodeTypeTrgmSimilarity` | Float | Yes | -| `policyTypeTrgmSimilarity` | Float | Yes | -| `policyRoleTrgmSimilarity` | Float | Yes | -| `policyNameTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all secureTableProvision records -const items = await db.secureTableProvision.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, nodeType: true, useRls: true, nodeData: true, fields: true, grantRoles: true, grantPrivileges: true, policyType: true, policyPrivileges: true, policyRole: true, policyPermissive: true, policyName: true, policyData: true, outFields: true, tableNameTrgmSimilarity: true, nodeTypeTrgmSimilarity: true, policyTypeTrgmSimilarity: true, policyRoleTrgmSimilarity: true, policyNameTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.secureTableProvision.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, nodeType: true, useRls: true, nodeData: true, fields: true, grantRoles: true, grantPrivileges: true, policyType: true, policyPrivileges: true, policyRole: true, policyPermissive: true, policyName: true, policyData: true, outFields: true } }).execute(); // Get one by id -const item = await db.secureTableProvision.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, nodeType: true, useRls: true, nodeData: true, fields: true, grantRoles: true, grantPrivileges: true, policyType: true, policyPrivileges: true, policyRole: true, policyPermissive: true, policyName: true, policyData: true, outFields: true, tableNameTrgmSimilarity: true, nodeTypeTrgmSimilarity: true, policyTypeTrgmSimilarity: true, policyRoleTrgmSimilarity: true, policyNameTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.secureTableProvision.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, nodeType: true, useRls: true, nodeData: true, fields: true, grantRoles: true, grantPrivileges: true, policyType: true, policyPrivileges: true, policyRole: true, policyPermissive: true, policyName: true, policyData: true, outFields: true } }).execute(); // Create -const created = await db.secureTableProvision.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '', nodeType: '', useRls: '', nodeData: '', fields: '', grantRoles: '', grantPrivileges: '', policyType: '', policyPrivileges: '', policyRole: '', policyPermissive: '', policyName: '', policyData: '', outFields: '', tableNameTrgmSimilarity: '', nodeTypeTrgmSimilarity: '', policyTypeTrgmSimilarity: '', policyRoleTrgmSimilarity: '', policyNameTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.secureTableProvision.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '', nodeType: '', useRls: '', nodeData: '', fields: '', grantRoles: '', grantPrivileges: '', policyType: '', policyPrivileges: '', policyRole: '', policyPermissive: '', policyName: '', policyData: '', outFields: '' }, select: { id: true } }).execute(); // Update -const updated = await db.secureTableProvision.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.secureTableProvision.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.secureTableProvision.delete({ where: { id: '' } }).execute(); +const deleted = await db.secureTableProvision.delete({ where: { id: '' } }).execute(); ``` ### `db.relationProvision` @@ -1243,12 +1205,15 @@ CRUD operations for RelationProvision records. | `fieldName` | String | Yes | | `deleteAction` | String | Yes | | `isRequired` | Boolean | Yes | +| `apiRequired` | Boolean | Yes | | `junctionTableId` | UUID | Yes | | `junctionTableName` | String | Yes | | `junctionSchemaId` | UUID | Yes | | `sourceFieldName` | String | Yes | | `targetFieldName` | String | Yes | | `useCompositeKey` | Boolean | Yes | +| `createIndex` | Boolean | Yes | +| `exposeInApi` | Boolean | Yes | | `nodeType` | String | Yes | | `nodeData` | JSON | Yes | | `grantRoles` | String | Yes | @@ -1263,35 +1228,24 @@ CRUD operations for RelationProvision records. | `outJunctionTableId` | UUID | Yes | | `outSourceFieldId` | UUID | Yes | | `outTargetFieldId` | UUID | Yes | -| `relationTypeTrgmSimilarity` | Float | Yes | -| `fieldNameTrgmSimilarity` | Float | Yes | -| `deleteActionTrgmSimilarity` | Float | Yes | -| `junctionTableNameTrgmSimilarity` | Float | Yes | -| `sourceFieldNameTrgmSimilarity` | Float | Yes | -| `targetFieldNameTrgmSimilarity` | Float | Yes | -| `nodeTypeTrgmSimilarity` | Float | Yes | -| `policyTypeTrgmSimilarity` | Float | Yes | -| `policyRoleTrgmSimilarity` | Float | Yes | -| `policyNameTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all relationProvision records -const items = await db.relationProvision.findMany({ select: { id: true, databaseId: true, relationType: true, sourceTableId: true, targetTableId: true, fieldName: true, deleteAction: true, isRequired: true, junctionTableId: true, junctionTableName: true, junctionSchemaId: true, sourceFieldName: true, targetFieldName: true, useCompositeKey: true, nodeType: true, nodeData: true, grantRoles: true, grantPrivileges: true, policyType: true, policyPrivileges: true, policyRole: true, policyPermissive: true, policyName: true, policyData: true, outFieldId: true, outJunctionTableId: true, outSourceFieldId: true, outTargetFieldId: true, relationTypeTrgmSimilarity: true, fieldNameTrgmSimilarity: true, deleteActionTrgmSimilarity: true, junctionTableNameTrgmSimilarity: true, sourceFieldNameTrgmSimilarity: true, targetFieldNameTrgmSimilarity: true, nodeTypeTrgmSimilarity: true, policyTypeTrgmSimilarity: true, policyRoleTrgmSimilarity: true, policyNameTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.relationProvision.findMany({ select: { id: true, databaseId: true, relationType: true, sourceTableId: true, targetTableId: true, fieldName: true, deleteAction: true, isRequired: true, apiRequired: true, junctionTableId: true, junctionTableName: true, junctionSchemaId: true, sourceFieldName: true, targetFieldName: true, useCompositeKey: true, createIndex: true, exposeInApi: true, nodeType: true, nodeData: true, grantRoles: true, grantPrivileges: true, policyType: true, policyPrivileges: true, policyRole: true, policyPermissive: true, policyName: true, policyData: true, outFieldId: true, outJunctionTableId: true, outSourceFieldId: true, outTargetFieldId: true } }).execute(); // Get one by id -const item = await db.relationProvision.findOne({ id: '', select: { id: true, databaseId: true, relationType: true, sourceTableId: true, targetTableId: true, fieldName: true, deleteAction: true, isRequired: true, junctionTableId: true, junctionTableName: true, junctionSchemaId: true, sourceFieldName: true, targetFieldName: true, useCompositeKey: true, nodeType: true, nodeData: true, grantRoles: true, grantPrivileges: true, policyType: true, policyPrivileges: true, policyRole: true, policyPermissive: true, policyName: true, policyData: true, outFieldId: true, outJunctionTableId: true, outSourceFieldId: true, outTargetFieldId: true, relationTypeTrgmSimilarity: true, fieldNameTrgmSimilarity: true, deleteActionTrgmSimilarity: true, junctionTableNameTrgmSimilarity: true, sourceFieldNameTrgmSimilarity: true, targetFieldNameTrgmSimilarity: true, nodeTypeTrgmSimilarity: true, policyTypeTrgmSimilarity: true, policyRoleTrgmSimilarity: true, policyNameTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.relationProvision.findOne({ id: '', select: { id: true, databaseId: true, relationType: true, sourceTableId: true, targetTableId: true, fieldName: true, deleteAction: true, isRequired: true, apiRequired: true, junctionTableId: true, junctionTableName: true, junctionSchemaId: true, sourceFieldName: true, targetFieldName: true, useCompositeKey: true, createIndex: true, exposeInApi: true, nodeType: true, nodeData: true, grantRoles: true, grantPrivileges: true, policyType: true, policyPrivileges: true, policyRole: true, policyPermissive: true, policyName: true, policyData: true, outFieldId: true, outJunctionTableId: true, outSourceFieldId: true, outTargetFieldId: true } }).execute(); // Create -const created = await db.relationProvision.create({ data: { databaseId: '', relationType: '', sourceTableId: '', targetTableId: '', fieldName: '', deleteAction: '', isRequired: '', junctionTableId: '', junctionTableName: '', junctionSchemaId: '', sourceFieldName: '', targetFieldName: '', useCompositeKey: '', nodeType: '', nodeData: '', grantRoles: '', grantPrivileges: '', policyType: '', policyPrivileges: '', policyRole: '', policyPermissive: '', policyName: '', policyData: '', outFieldId: '', outJunctionTableId: '', outSourceFieldId: '', outTargetFieldId: '', relationTypeTrgmSimilarity: '', fieldNameTrgmSimilarity: '', deleteActionTrgmSimilarity: '', junctionTableNameTrgmSimilarity: '', sourceFieldNameTrgmSimilarity: '', targetFieldNameTrgmSimilarity: '', nodeTypeTrgmSimilarity: '', policyTypeTrgmSimilarity: '', policyRoleTrgmSimilarity: '', policyNameTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.relationProvision.create({ data: { databaseId: '', relationType: '', sourceTableId: '', targetTableId: '', fieldName: '', deleteAction: '', isRequired: '', apiRequired: '', junctionTableId: '', junctionTableName: '', junctionSchemaId: '', sourceFieldName: '', targetFieldName: '', useCompositeKey: '', createIndex: '', exposeInApi: '', nodeType: '', nodeData: '', grantRoles: '', grantPrivileges: '', policyType: '', policyPrivileges: '', policyRole: '', policyPermissive: '', policyName: '', policyData: '', outFieldId: '', outJunctionTableId: '', outSourceFieldId: '', outTargetFieldId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.relationProvision.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.relationProvision.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.relationProvision.delete({ where: { id: '' } }).execute(); +const deleted = await db.relationProvision.delete({ where: { id: '' } }).execute(); ``` ### `db.schemaGrant` @@ -1308,26 +1262,24 @@ CRUD operations for SchemaGrant records. | `granteeName` | String | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `granteeNameTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all schemaGrant records -const items = await db.schemaGrant.findMany({ select: { id: true, databaseId: true, schemaId: true, granteeName: true, createdAt: true, updatedAt: true, granteeNameTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.schemaGrant.findMany({ select: { id: true, databaseId: true, schemaId: true, granteeName: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.schemaGrant.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, granteeName: true, createdAt: true, updatedAt: true, granteeNameTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.schemaGrant.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, granteeName: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.schemaGrant.create({ data: { databaseId: '', schemaId: '', granteeName: '', granteeNameTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.schemaGrant.create({ data: { databaseId: '', schemaId: '', granteeName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.schemaGrant.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.schemaGrant.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.schemaGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.schemaGrant.delete({ where: { id: '' } }).execute(); ``` ### `db.defaultPrivilege` @@ -1345,28 +1297,64 @@ CRUD operations for DefaultPrivilege records. | `privilege` | String | Yes | | `granteeName` | String | Yes | | `isGrant` | Boolean | Yes | -| `objectTypeTrgmSimilarity` | Float | Yes | -| `privilegeTrgmSimilarity` | Float | Yes | -| `granteeNameTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all defaultPrivilege records -const items = await db.defaultPrivilege.findMany({ select: { id: true, databaseId: true, schemaId: true, objectType: true, privilege: true, granteeName: true, isGrant: true, objectTypeTrgmSimilarity: true, privilegeTrgmSimilarity: true, granteeNameTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.defaultPrivilege.findMany({ select: { id: true, databaseId: true, schemaId: true, objectType: true, privilege: true, granteeName: true, isGrant: true } }).execute(); // Get one by id -const item = await db.defaultPrivilege.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, objectType: true, privilege: true, granteeName: true, isGrant: true, objectTypeTrgmSimilarity: true, privilegeTrgmSimilarity: true, granteeNameTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.defaultPrivilege.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, objectType: true, privilege: true, granteeName: true, isGrant: true } }).execute(); // Create -const created = await db.defaultPrivilege.create({ data: { databaseId: '', schemaId: '', objectType: '', privilege: '', granteeName: '', isGrant: '', objectTypeTrgmSimilarity: '', privilegeTrgmSimilarity: '', granteeNameTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.defaultPrivilege.create({ data: { databaseId: '', schemaId: '', objectType: '', privilege: '', granteeName: '', isGrant: '' }, select: { id: true } }).execute(); // Update -const updated = await db.defaultPrivilege.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.defaultPrivilege.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.defaultPrivilege.delete({ where: { id: '' } }).execute(); +const deleted = await db.defaultPrivilege.delete({ where: { id: '' } }).execute(); +``` + +### `db.enum` + +CRUD operations for Enum records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `name` | String | Yes | +| `label` | String | Yes | +| `description` | String | Yes | +| `values` | String | Yes | +| `smartTags` | JSON | Yes | +| `category` | ObjectCategory | Yes | +| `module` | String | Yes | +| `scope` | Int | Yes | +| `tags` | String | Yes | + +**Operations:** + +```typescript +// List all enum records +const items = await db.enum.findMany({ select: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, values: true, smartTags: true, category: true, module: true, scope: true, tags: true } }).execute(); + +// Get one by id +const item = await db.enum.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, values: true, smartTags: true, category: true, module: true, scope: true, tags: true } }).execute(); + +// Create +const created = await db.enum.create({ data: { databaseId: '', schemaId: '', name: '', label: '', description: '', values: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.enum.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.enum.delete({ where: { id: '' } }).execute(); ``` ### `db.apiSchema` @@ -1389,16 +1377,16 @@ CRUD operations for ApiSchema records. const items = await db.apiSchema.findMany({ select: { id: true, databaseId: true, schemaId: true, apiId: true } }).execute(); // Get one by id -const item = await db.apiSchema.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, apiId: true } }).execute(); +const item = await db.apiSchema.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, apiId: true } }).execute(); // Create -const created = await db.apiSchema.create({ data: { databaseId: '', schemaId: '', apiId: '' }, select: { id: true } }).execute(); +const created = await db.apiSchema.create({ data: { databaseId: '', schemaId: '', apiId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.apiSchema.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.apiSchema.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.apiSchema.delete({ where: { id: '' } }).execute(); +const deleted = await db.apiSchema.delete({ where: { id: '' } }).execute(); ``` ### `db.apiModule` @@ -1414,26 +1402,24 @@ CRUD operations for ApiModule records. | `apiId` | UUID | Yes | | `name` | String | Yes | | `data` | JSON | Yes | -| `nameTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all apiModule records -const items = await db.apiModule.findMany({ select: { id: true, databaseId: true, apiId: true, name: true, data: true, nameTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.apiModule.findMany({ select: { id: true, databaseId: true, apiId: true, name: true, data: true } }).execute(); // Get one by id -const item = await db.apiModule.findOne({ id: '', select: { id: true, databaseId: true, apiId: true, name: true, data: true, nameTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.apiModule.findOne({ id: '', select: { id: true, databaseId: true, apiId: true, name: true, data: true } }).execute(); // Create -const created = await db.apiModule.create({ data: { databaseId: '', apiId: '', name: '', data: '', nameTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.apiModule.create({ data: { databaseId: '', apiId: '', name: '', data: '' }, select: { id: true } }).execute(); // Update -const updated = await db.apiModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.apiModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.apiModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.apiModule.delete({ where: { id: '' } }).execute(); ``` ### `db.domain` @@ -1458,16 +1444,16 @@ CRUD operations for Domain records. const items = await db.domain.findMany({ select: { id: true, databaseId: true, apiId: true, siteId: true, subdomain: true, domain: true } }).execute(); // Get one by id -const item = await db.domain.findOne({ id: '', select: { id: true, databaseId: true, apiId: true, siteId: true, subdomain: true, domain: true } }).execute(); +const item = await db.domain.findOne({ id: '', select: { id: true, databaseId: true, apiId: true, siteId: true, subdomain: true, domain: true } }).execute(); // Create -const created = await db.domain.create({ data: { databaseId: '', apiId: '', siteId: '', subdomain: '', domain: '' }, select: { id: true } }).execute(); +const created = await db.domain.create({ data: { databaseId: '', apiId: '', siteId: '', subdomain: '', domain: '' }, select: { id: true } }).execute(); // Update -const updated = await db.domain.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.domain.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.domain.delete({ where: { id: '' } }).execute(); +const deleted = await db.domain.delete({ where: { id: '' } }).execute(); ``` ### `db.siteMetadatum` @@ -1484,27 +1470,24 @@ CRUD operations for SiteMetadatum records. | `title` | String | Yes | | `description` | String | Yes | | `ogImage` | ConstructiveInternalTypeImage | Yes | -| `titleTrgmSimilarity` | Float | Yes | -| `descriptionTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all siteMetadatum records -const items = await db.siteMetadatum.findMany({ select: { id: true, databaseId: true, siteId: true, title: true, description: true, ogImage: true, titleTrgmSimilarity: true, descriptionTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.siteMetadatum.findMany({ select: { id: true, databaseId: true, siteId: true, title: true, description: true, ogImage: true } }).execute(); // Get one by id -const item = await db.siteMetadatum.findOne({ id: '', select: { id: true, databaseId: true, siteId: true, title: true, description: true, ogImage: true, titleTrgmSimilarity: true, descriptionTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.siteMetadatum.findOne({ id: '', select: { id: true, databaseId: true, siteId: true, title: true, description: true, ogImage: true } }).execute(); // Create -const created = await db.siteMetadatum.create({ data: { databaseId: '', siteId: '', title: '', description: '', ogImage: '', titleTrgmSimilarity: '', descriptionTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.siteMetadatum.create({ data: { databaseId: '', siteId: '', title: '', description: '', ogImage: '' }, select: { id: true } }).execute(); // Update -const updated = await db.siteMetadatum.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.siteMetadatum.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.siteMetadatum.delete({ where: { id: '' } }).execute(); +const deleted = await db.siteMetadatum.delete({ where: { id: '' } }).execute(); ``` ### `db.siteModule` @@ -1520,26 +1503,24 @@ CRUD operations for SiteModule records. | `siteId` | UUID | Yes | | `name` | String | Yes | | `data` | JSON | Yes | -| `nameTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all siteModule records -const items = await db.siteModule.findMany({ select: { id: true, databaseId: true, siteId: true, name: true, data: true, nameTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.siteModule.findMany({ select: { id: true, databaseId: true, siteId: true, name: true, data: true } }).execute(); // Get one by id -const item = await db.siteModule.findOne({ id: '', select: { id: true, databaseId: true, siteId: true, name: true, data: true, nameTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.siteModule.findOne({ id: '', select: { id: true, databaseId: true, siteId: true, name: true, data: true } }).execute(); // Create -const created = await db.siteModule.create({ data: { databaseId: '', siteId: '', name: '', data: '', nameTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.siteModule.create({ data: { databaseId: '', siteId: '', name: '', data: '' }, select: { id: true } }).execute(); // Update -const updated = await db.siteModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.siteModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.siteModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.siteModule.delete({ where: { id: '' } }).execute(); ``` ### `db.siteTheme` @@ -1562,16 +1543,16 @@ CRUD operations for SiteTheme records. const items = await db.siteTheme.findMany({ select: { id: true, databaseId: true, siteId: true, theme: true } }).execute(); // Get one by id -const item = await db.siteTheme.findOne({ id: '', select: { id: true, databaseId: true, siteId: true, theme: true } }).execute(); +const item = await db.siteTheme.findOne({ id: '', select: { id: true, databaseId: true, siteId: true, theme: true } }).execute(); // Create -const created = await db.siteTheme.create({ data: { databaseId: '', siteId: '', theme: '' }, select: { id: true } }).execute(); +const created = await db.siteTheme.create({ data: { databaseId: '', siteId: '', theme: '' }, select: { id: true } }).execute(); // Update -const updated = await db.siteTheme.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.siteTheme.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.siteTheme.delete({ where: { id: '' } }).execute(); +const deleted = await db.siteTheme.delete({ where: { id: '' } }).execute(); ``` ### `db.triggerFunction` @@ -1588,27 +1569,66 @@ CRUD operations for TriggerFunction records. | `code` | String | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `nameTrgmSimilarity` | Float | Yes | -| `codeTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all triggerFunction records -const items = await db.triggerFunction.findMany({ select: { id: true, databaseId: true, name: true, code: true, createdAt: true, updatedAt: true, nameTrgmSimilarity: true, codeTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.triggerFunction.findMany({ select: { id: true, databaseId: true, name: true, code: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.triggerFunction.findOne({ id: '', select: { id: true, databaseId: true, name: true, code: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.triggerFunction.create({ data: { databaseId: '', name: '', code: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.triggerFunction.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.triggerFunction.delete({ where: { id: '' } }).execute(); +``` + +### `db.databaseTransfer` + +CRUD operations for DatabaseTransfer records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `targetOwnerId` | UUID | Yes | +| `sourceApproved` | Boolean | Yes | +| `targetApproved` | Boolean | Yes | +| `sourceApprovedAt` | Datetime | Yes | +| `targetApprovedAt` | Datetime | Yes | +| `status` | String | Yes | +| `initiatedBy` | UUID | Yes | +| `notes` | String | Yes | +| `expiresAt` | Datetime | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `completedAt` | Datetime | Yes | + +**Operations:** + +```typescript +// List all databaseTransfer records +const items = await db.databaseTransfer.findMany({ select: { id: true, databaseId: true, targetOwnerId: true, sourceApproved: true, targetApproved: true, sourceApprovedAt: true, targetApprovedAt: true, status: true, initiatedBy: true, notes: true, expiresAt: true, createdAt: true, updatedAt: true, completedAt: true } }).execute(); // Get one by id -const item = await db.triggerFunction.findOne({ id: '', select: { id: true, databaseId: true, name: true, code: true, createdAt: true, updatedAt: true, nameTrgmSimilarity: true, codeTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.databaseTransfer.findOne({ id: '', select: { id: true, databaseId: true, targetOwnerId: true, sourceApproved: true, targetApproved: true, sourceApprovedAt: true, targetApprovedAt: true, status: true, initiatedBy: true, notes: true, expiresAt: true, createdAt: true, updatedAt: true, completedAt: true } }).execute(); // Create -const created = await db.triggerFunction.create({ data: { databaseId: '', name: '', code: '', nameTrgmSimilarity: '', codeTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.databaseTransfer.create({ data: { databaseId: '', targetOwnerId: '', sourceApproved: '', targetApproved: '', sourceApprovedAt: '', targetApprovedAt: '', status: '', initiatedBy: '', notes: '', expiresAt: '', completedAt: '' }, select: { id: true } }).execute(); // Update -const updated = await db.triggerFunction.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.databaseTransfer.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.triggerFunction.delete({ where: { id: '' } }).execute(); +const deleted = await db.databaseTransfer.delete({ where: { id: '' } }).execute(); ``` ### `db.api` @@ -1626,29 +1646,24 @@ CRUD operations for Api records. | `roleName` | String | Yes | | `anonRole` | String | Yes | | `isPublic` | Boolean | Yes | -| `nameTrgmSimilarity` | Float | Yes | -| `dbnameTrgmSimilarity` | Float | Yes | -| `roleNameTrgmSimilarity` | Float | Yes | -| `anonRoleTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all api records -const items = await db.api.findMany({ select: { id: true, databaseId: true, name: true, dbname: true, roleName: true, anonRole: true, isPublic: true, nameTrgmSimilarity: true, dbnameTrgmSimilarity: true, roleNameTrgmSimilarity: true, anonRoleTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.api.findMany({ select: { id: true, databaseId: true, name: true, dbname: true, roleName: true, anonRole: true, isPublic: true } }).execute(); // Get one by id -const item = await db.api.findOne({ id: '', select: { id: true, databaseId: true, name: true, dbname: true, roleName: true, anonRole: true, isPublic: true, nameTrgmSimilarity: true, dbnameTrgmSimilarity: true, roleNameTrgmSimilarity: true, anonRoleTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.api.findOne({ id: '', select: { id: true, databaseId: true, name: true, dbname: true, roleName: true, anonRole: true, isPublic: true } }).execute(); // Create -const created = await db.api.create({ data: { databaseId: '', name: '', dbname: '', roleName: '', anonRole: '', isPublic: '', nameTrgmSimilarity: '', dbnameTrgmSimilarity: '', roleNameTrgmSimilarity: '', anonRoleTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.api.create({ data: { databaseId: '', name: '', dbname: '', roleName: '', anonRole: '', isPublic: '' }, select: { id: true } }).execute(); // Update -const updated = await db.api.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.api.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.api.delete({ where: { id: '' } }).execute(); +const deleted = await db.api.delete({ where: { id: '' } }).execute(); ``` ### `db.site` @@ -1668,28 +1683,24 @@ CRUD operations for Site records. | `appleTouchIcon` | ConstructiveInternalTypeImage | Yes | | `logo` | ConstructiveInternalTypeImage | Yes | | `dbname` | String | Yes | -| `titleTrgmSimilarity` | Float | Yes | -| `descriptionTrgmSimilarity` | Float | Yes | -| `dbnameTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all site records -const items = await db.site.findMany({ select: { id: true, databaseId: true, title: true, description: true, ogImage: true, favicon: true, appleTouchIcon: true, logo: true, dbname: true, titleTrgmSimilarity: true, descriptionTrgmSimilarity: true, dbnameTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.site.findMany({ select: { id: true, databaseId: true, title: true, description: true, ogImage: true, favicon: true, appleTouchIcon: true, logo: true, dbname: true } }).execute(); // Get one by id -const item = await db.site.findOne({ id: '', select: { id: true, databaseId: true, title: true, description: true, ogImage: true, favicon: true, appleTouchIcon: true, logo: true, dbname: true, titleTrgmSimilarity: true, descriptionTrgmSimilarity: true, dbnameTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.site.findOne({ id: '', select: { id: true, databaseId: true, title: true, description: true, ogImage: true, favicon: true, appleTouchIcon: true, logo: true, dbname: true } }).execute(); // Create -const created = await db.site.create({ data: { databaseId: '', title: '', description: '', ogImage: '', favicon: '', appleTouchIcon: '', logo: '', dbname: '', titleTrgmSimilarity: '', descriptionTrgmSimilarity: '', dbnameTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.site.create({ data: { databaseId: '', title: '', description: '', ogImage: '', favicon: '', appleTouchIcon: '', logo: '', dbname: '' }, select: { id: true } }).execute(); // Update -const updated = await db.site.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.site.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.site.delete({ where: { id: '' } }).execute(); +const deleted = await db.site.delete({ where: { id: '' } }).execute(); ``` ### `db.app` @@ -1709,28 +1720,24 @@ CRUD operations for App records. | `appStoreId` | String | Yes | | `appIdPrefix` | String | Yes | | `playStoreLink` | ConstructiveInternalTypeUrl | Yes | -| `nameTrgmSimilarity` | Float | Yes | -| `appStoreIdTrgmSimilarity` | Float | Yes | -| `appIdPrefixTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all app records -const items = await db.app.findMany({ select: { id: true, databaseId: true, siteId: true, name: true, appImage: true, appStoreLink: true, appStoreId: true, appIdPrefix: true, playStoreLink: true, nameTrgmSimilarity: true, appStoreIdTrgmSimilarity: true, appIdPrefixTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.app.findMany({ select: { id: true, databaseId: true, siteId: true, name: true, appImage: true, appStoreLink: true, appStoreId: true, appIdPrefix: true, playStoreLink: true } }).execute(); // Get one by id -const item = await db.app.findOne({ id: '', select: { id: true, databaseId: true, siteId: true, name: true, appImage: true, appStoreLink: true, appStoreId: true, appIdPrefix: true, playStoreLink: true, nameTrgmSimilarity: true, appStoreIdTrgmSimilarity: true, appIdPrefixTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.app.findOne({ id: '', select: { id: true, databaseId: true, siteId: true, name: true, appImage: true, appStoreLink: true, appStoreId: true, appIdPrefix: true, playStoreLink: true } }).execute(); // Create -const created = await db.app.create({ data: { databaseId: '', siteId: '', name: '', appImage: '', appStoreLink: '', appStoreId: '', appIdPrefix: '', playStoreLink: '', nameTrgmSimilarity: '', appStoreIdTrgmSimilarity: '', appIdPrefixTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.app.create({ data: { databaseId: '', siteId: '', name: '', appImage: '', appStoreLink: '', appStoreId: '', appIdPrefix: '', playStoreLink: '' }, select: { id: true } }).execute(); // Update -const updated = await db.app.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.app.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.app.delete({ where: { id: '' } }).execute(); +const deleted = await db.app.delete({ where: { id: '' } }).execute(); ``` ### `db.connectedAccountsModule` @@ -1748,26 +1755,24 @@ CRUD operations for ConnectedAccountsModule records. | `tableId` | UUID | Yes | | `ownerTableId` | UUID | Yes | | `tableName` | String | Yes | -| `tableNameTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all connectedAccountsModule records -const items = await db.connectedAccountsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, tableNameTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.connectedAccountsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true } }).execute(); // Get one by id -const item = await db.connectedAccountsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, tableNameTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.connectedAccountsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true } }).execute(); // Create -const created = await db.connectedAccountsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '', tableNameTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.connectedAccountsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.connectedAccountsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.connectedAccountsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.connectedAccountsModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.connectedAccountsModule.delete({ where: { id: '' } }).execute(); ``` ### `db.cryptoAddressesModule` @@ -1786,27 +1791,24 @@ CRUD operations for CryptoAddressesModule records. | `ownerTableId` | UUID | Yes | | `tableName` | String | Yes | | `cryptoNetwork` | String | Yes | -| `tableNameTrgmSimilarity` | Float | Yes | -| `cryptoNetworkTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all cryptoAddressesModule records -const items = await db.cryptoAddressesModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, cryptoNetwork: true, tableNameTrgmSimilarity: true, cryptoNetworkTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.cryptoAddressesModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, cryptoNetwork: true } }).execute(); // Get one by id -const item = await db.cryptoAddressesModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, cryptoNetwork: true, tableNameTrgmSimilarity: true, cryptoNetworkTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.cryptoAddressesModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, cryptoNetwork: true } }).execute(); // Create -const created = await db.cryptoAddressesModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '', cryptoNetwork: '', tableNameTrgmSimilarity: '', cryptoNetworkTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.cryptoAddressesModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '', cryptoNetwork: '' }, select: { id: true } }).execute(); // Update -const updated = await db.cryptoAddressesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.cryptoAddressesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.cryptoAddressesModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.cryptoAddressesModule.delete({ where: { id: '' } }).execute(); ``` ### `db.cryptoAuthModule` @@ -1831,31 +1833,24 @@ CRUD operations for CryptoAuthModule records. | `signInRecordFailure` | String | Yes | | `signUpWithKey` | String | Yes | | `signInWithChallenge` | String | Yes | -| `userFieldTrgmSimilarity` | Float | Yes | -| `cryptoNetworkTrgmSimilarity` | Float | Yes | -| `signInRequestChallengeTrgmSimilarity` | Float | Yes | -| `signInRecordFailureTrgmSimilarity` | Float | Yes | -| `signUpWithKeyTrgmSimilarity` | Float | Yes | -| `signInWithChallengeTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all cryptoAuthModule records -const items = await db.cryptoAuthModule.findMany({ select: { id: true, databaseId: true, schemaId: true, usersTableId: true, secretsTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, addressesTableId: true, userField: true, cryptoNetwork: true, signInRequestChallenge: true, signInRecordFailure: true, signUpWithKey: true, signInWithChallenge: true, userFieldTrgmSimilarity: true, cryptoNetworkTrgmSimilarity: true, signInRequestChallengeTrgmSimilarity: true, signInRecordFailureTrgmSimilarity: true, signUpWithKeyTrgmSimilarity: true, signInWithChallengeTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.cryptoAuthModule.findMany({ select: { id: true, databaseId: true, schemaId: true, usersTableId: true, secretsTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, addressesTableId: true, userField: true, cryptoNetwork: true, signInRequestChallenge: true, signInRecordFailure: true, signUpWithKey: true, signInWithChallenge: true } }).execute(); // Get one by id -const item = await db.cryptoAuthModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, usersTableId: true, secretsTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, addressesTableId: true, userField: true, cryptoNetwork: true, signInRequestChallenge: true, signInRecordFailure: true, signUpWithKey: true, signInWithChallenge: true, userFieldTrgmSimilarity: true, cryptoNetworkTrgmSimilarity: true, signInRequestChallengeTrgmSimilarity: true, signInRecordFailureTrgmSimilarity: true, signUpWithKeyTrgmSimilarity: true, signInWithChallengeTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.cryptoAuthModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, usersTableId: true, secretsTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, addressesTableId: true, userField: true, cryptoNetwork: true, signInRequestChallenge: true, signInRecordFailure: true, signUpWithKey: true, signInWithChallenge: true } }).execute(); // Create -const created = await db.cryptoAuthModule.create({ data: { databaseId: '', schemaId: '', usersTableId: '', secretsTableId: '', sessionsTableId: '', sessionCredentialsTableId: '', addressesTableId: '', userField: '', cryptoNetwork: '', signInRequestChallenge: '', signInRecordFailure: '', signUpWithKey: '', signInWithChallenge: '', userFieldTrgmSimilarity: '', cryptoNetworkTrgmSimilarity: '', signInRequestChallengeTrgmSimilarity: '', signInRecordFailureTrgmSimilarity: '', signUpWithKeyTrgmSimilarity: '', signInWithChallengeTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.cryptoAuthModule.create({ data: { databaseId: '', schemaId: '', usersTableId: '', secretsTableId: '', sessionsTableId: '', sessionCredentialsTableId: '', addressesTableId: '', userField: '', cryptoNetwork: '', signInRequestChallenge: '', signInRecordFailure: '', signUpWithKey: '', signInWithChallenge: '' }, select: { id: true } }).execute(); // Update -const updated = await db.cryptoAuthModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.cryptoAuthModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.cryptoAuthModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.cryptoAuthModule.delete({ where: { id: '' } }).execute(); ``` ### `db.defaultIdsModule` @@ -1876,16 +1871,16 @@ CRUD operations for DefaultIdsModule records. const items = await db.defaultIdsModule.findMany({ select: { id: true, databaseId: true } }).execute(); // Get one by id -const item = await db.defaultIdsModule.findOne({ id: '', select: { id: true, databaseId: true } }).execute(); +const item = await db.defaultIdsModule.findOne({ id: '', select: { id: true, databaseId: true } }).execute(); // Create -const created = await db.defaultIdsModule.create({ data: { databaseId: '' }, select: { id: true } }).execute(); +const created = await db.defaultIdsModule.create({ data: { databaseId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.defaultIdsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.defaultIdsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.defaultIdsModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.defaultIdsModule.delete({ where: { id: '' } }).execute(); ``` ### `db.denormalizedTableField` @@ -1908,26 +1903,24 @@ CRUD operations for DenormalizedTableField records. | `updateDefaults` | Boolean | Yes | | `funcName` | String | Yes | | `funcOrder` | Int | Yes | -| `funcNameTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all denormalizedTableField records -const items = await db.denormalizedTableField.findMany({ select: { id: true, databaseId: true, tableId: true, fieldId: true, setIds: true, refTableId: true, refFieldId: true, refIds: true, useUpdates: true, updateDefaults: true, funcName: true, funcOrder: true, funcNameTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.denormalizedTableField.findMany({ select: { id: true, databaseId: true, tableId: true, fieldId: true, setIds: true, refTableId: true, refFieldId: true, refIds: true, useUpdates: true, updateDefaults: true, funcName: true, funcOrder: true } }).execute(); // Get one by id -const item = await db.denormalizedTableField.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, fieldId: true, setIds: true, refTableId: true, refFieldId: true, refIds: true, useUpdates: true, updateDefaults: true, funcName: true, funcOrder: true, funcNameTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.denormalizedTableField.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, fieldId: true, setIds: true, refTableId: true, refFieldId: true, refIds: true, useUpdates: true, updateDefaults: true, funcName: true, funcOrder: true } }).execute(); // Create -const created = await db.denormalizedTableField.create({ data: { databaseId: '', tableId: '', fieldId: '', setIds: '', refTableId: '', refFieldId: '', refIds: '', useUpdates: '', updateDefaults: '', funcName: '', funcOrder: '', funcNameTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.denormalizedTableField.create({ data: { databaseId: '', tableId: '', fieldId: '', setIds: '', refTableId: '', refFieldId: '', refIds: '', useUpdates: '', updateDefaults: '', funcName: '', funcOrder: '' }, select: { id: true } }).execute(); // Update -const updated = await db.denormalizedTableField.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.denormalizedTableField.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.denormalizedTableField.delete({ where: { id: '' } }).execute(); +const deleted = await db.denormalizedTableField.delete({ where: { id: '' } }).execute(); ``` ### `db.emailsModule` @@ -1945,26 +1938,24 @@ CRUD operations for EmailsModule records. | `tableId` | UUID | Yes | | `ownerTableId` | UUID | Yes | | `tableName` | String | Yes | -| `tableNameTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all emailsModule records -const items = await db.emailsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, tableNameTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.emailsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true } }).execute(); // Get one by id -const item = await db.emailsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, tableNameTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.emailsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true } }).execute(); // Create -const created = await db.emailsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '', tableNameTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.emailsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.emailsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.emailsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.emailsModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.emailsModule.delete({ where: { id: '' } }).execute(); ``` ### `db.encryptedSecretsModule` @@ -1980,26 +1971,24 @@ CRUD operations for EncryptedSecretsModule records. | `schemaId` | UUID | Yes | | `tableId` | UUID | Yes | | `tableName` | String | Yes | -| `tableNameTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all encryptedSecretsModule records -const items = await db.encryptedSecretsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, tableNameTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.encryptedSecretsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }).execute(); // Get one by id -const item = await db.encryptedSecretsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, tableNameTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.encryptedSecretsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }).execute(); // Create -const created = await db.encryptedSecretsModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '', tableNameTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.encryptedSecretsModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.encryptedSecretsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.encryptedSecretsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.encryptedSecretsModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.encryptedSecretsModule.delete({ where: { id: '' } }).execute(); ``` ### `db.fieldModule` @@ -2019,26 +2008,24 @@ CRUD operations for FieldModule records. | `data` | JSON | Yes | | `triggers` | String | Yes | | `functions` | String | Yes | -| `nodeTypeTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all fieldModule records -const items = await db.fieldModule.findMany({ select: { id: true, databaseId: true, privateSchemaId: true, tableId: true, fieldId: true, nodeType: true, data: true, triggers: true, functions: true, nodeTypeTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.fieldModule.findMany({ select: { id: true, databaseId: true, privateSchemaId: true, tableId: true, fieldId: true, nodeType: true, data: true, triggers: true, functions: true } }).execute(); // Get one by id -const item = await db.fieldModule.findOne({ id: '', select: { id: true, databaseId: true, privateSchemaId: true, tableId: true, fieldId: true, nodeType: true, data: true, triggers: true, functions: true, nodeTypeTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.fieldModule.findOne({ id: '', select: { id: true, databaseId: true, privateSchemaId: true, tableId: true, fieldId: true, nodeType: true, data: true, triggers: true, functions: true } }).execute(); // Create -const created = await db.fieldModule.create({ data: { databaseId: '', privateSchemaId: '', tableId: '', fieldId: '', nodeType: '', data: '', triggers: '', functions: '', nodeTypeTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.fieldModule.create({ data: { databaseId: '', privateSchemaId: '', tableId: '', fieldId: '', nodeType: '', data: '', triggers: '', functions: '' }, select: { id: true } }).execute(); // Update -const updated = await db.fieldModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.fieldModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.fieldModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.fieldModule.delete({ where: { id: '' } }).execute(); ``` ### `db.invitesModule` @@ -2063,29 +2050,24 @@ CRUD operations for InvitesModule records. | `prefix` | String | Yes | | `membershipType` | Int | Yes | | `entityTableId` | UUID | Yes | -| `invitesTableNameTrgmSimilarity` | Float | Yes | -| `claimedInvitesTableNameTrgmSimilarity` | Float | Yes | -| `submitInviteCodeFunctionTrgmSimilarity` | Float | Yes | -| `prefixTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all invitesModule records -const items = await db.invitesModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, emailsTableId: true, usersTableId: true, invitesTableId: true, claimedInvitesTableId: true, invitesTableName: true, claimedInvitesTableName: true, submitInviteCodeFunction: true, prefix: true, membershipType: true, entityTableId: true, invitesTableNameTrgmSimilarity: true, claimedInvitesTableNameTrgmSimilarity: true, submitInviteCodeFunctionTrgmSimilarity: true, prefixTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.invitesModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, emailsTableId: true, usersTableId: true, invitesTableId: true, claimedInvitesTableId: true, invitesTableName: true, claimedInvitesTableName: true, submitInviteCodeFunction: true, prefix: true, membershipType: true, entityTableId: true } }).execute(); // Get one by id -const item = await db.invitesModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, emailsTableId: true, usersTableId: true, invitesTableId: true, claimedInvitesTableId: true, invitesTableName: true, claimedInvitesTableName: true, submitInviteCodeFunction: true, prefix: true, membershipType: true, entityTableId: true, invitesTableNameTrgmSimilarity: true, claimedInvitesTableNameTrgmSimilarity: true, submitInviteCodeFunctionTrgmSimilarity: true, prefixTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.invitesModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, emailsTableId: true, usersTableId: true, invitesTableId: true, claimedInvitesTableId: true, invitesTableName: true, claimedInvitesTableName: true, submitInviteCodeFunction: true, prefix: true, membershipType: true, entityTableId: true } }).execute(); // Create -const created = await db.invitesModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', emailsTableId: '', usersTableId: '', invitesTableId: '', claimedInvitesTableId: '', invitesTableName: '', claimedInvitesTableName: '', submitInviteCodeFunction: '', prefix: '', membershipType: '', entityTableId: '', invitesTableNameTrgmSimilarity: '', claimedInvitesTableNameTrgmSimilarity: '', submitInviteCodeFunctionTrgmSimilarity: '', prefixTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.invitesModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', emailsTableId: '', usersTableId: '', invitesTableId: '', claimedInvitesTableId: '', invitesTableName: '', claimedInvitesTableName: '', submitInviteCodeFunction: '', prefix: '', membershipType: '', entityTableId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.invitesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.invitesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.invitesModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.invitesModule.delete({ where: { id: '' } }).execute(); ``` ### `db.levelsModule` @@ -2122,40 +2104,24 @@ CRUD operations for LevelsModule records. | `membershipType` | Int | Yes | | `entityTableId` | UUID | Yes | | `actorTableId` | UUID | Yes | -| `stepsTableNameTrgmSimilarity` | Float | Yes | -| `achievementsTableNameTrgmSimilarity` | Float | Yes | -| `levelsTableNameTrgmSimilarity` | Float | Yes | -| `levelRequirementsTableNameTrgmSimilarity` | Float | Yes | -| `completedStepTrgmSimilarity` | Float | Yes | -| `incompletedStepTrgmSimilarity` | Float | Yes | -| `tgAchievementTrgmSimilarity` | Float | Yes | -| `tgAchievementToggleTrgmSimilarity` | Float | Yes | -| `tgAchievementToggleBooleanTrgmSimilarity` | Float | Yes | -| `tgAchievementBooleanTrgmSimilarity` | Float | Yes | -| `upsertAchievementTrgmSimilarity` | Float | Yes | -| `tgUpdateAchievementsTrgmSimilarity` | Float | Yes | -| `stepsRequiredTrgmSimilarity` | Float | Yes | -| `levelAchievedTrgmSimilarity` | Float | Yes | -| `prefixTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all levelsModule records -const items = await db.levelsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, stepsTableId: true, stepsTableName: true, achievementsTableId: true, achievementsTableName: true, levelsTableId: true, levelsTableName: true, levelRequirementsTableId: true, levelRequirementsTableName: true, completedStep: true, incompletedStep: true, tgAchievement: true, tgAchievementToggle: true, tgAchievementToggleBoolean: true, tgAchievementBoolean: true, upsertAchievement: true, tgUpdateAchievements: true, stepsRequired: true, levelAchieved: true, prefix: true, membershipType: true, entityTableId: true, actorTableId: true, stepsTableNameTrgmSimilarity: true, achievementsTableNameTrgmSimilarity: true, levelsTableNameTrgmSimilarity: true, levelRequirementsTableNameTrgmSimilarity: true, completedStepTrgmSimilarity: true, incompletedStepTrgmSimilarity: true, tgAchievementTrgmSimilarity: true, tgAchievementToggleTrgmSimilarity: true, tgAchievementToggleBooleanTrgmSimilarity: true, tgAchievementBooleanTrgmSimilarity: true, upsertAchievementTrgmSimilarity: true, tgUpdateAchievementsTrgmSimilarity: true, stepsRequiredTrgmSimilarity: true, levelAchievedTrgmSimilarity: true, prefixTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.levelsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, stepsTableId: true, stepsTableName: true, achievementsTableId: true, achievementsTableName: true, levelsTableId: true, levelsTableName: true, levelRequirementsTableId: true, levelRequirementsTableName: true, completedStep: true, incompletedStep: true, tgAchievement: true, tgAchievementToggle: true, tgAchievementToggleBoolean: true, tgAchievementBoolean: true, upsertAchievement: true, tgUpdateAchievements: true, stepsRequired: true, levelAchieved: true, prefix: true, membershipType: true, entityTableId: true, actorTableId: true } }).execute(); // Get one by id -const item = await db.levelsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, stepsTableId: true, stepsTableName: true, achievementsTableId: true, achievementsTableName: true, levelsTableId: true, levelsTableName: true, levelRequirementsTableId: true, levelRequirementsTableName: true, completedStep: true, incompletedStep: true, tgAchievement: true, tgAchievementToggle: true, tgAchievementToggleBoolean: true, tgAchievementBoolean: true, upsertAchievement: true, tgUpdateAchievements: true, stepsRequired: true, levelAchieved: true, prefix: true, membershipType: true, entityTableId: true, actorTableId: true, stepsTableNameTrgmSimilarity: true, achievementsTableNameTrgmSimilarity: true, levelsTableNameTrgmSimilarity: true, levelRequirementsTableNameTrgmSimilarity: true, completedStepTrgmSimilarity: true, incompletedStepTrgmSimilarity: true, tgAchievementTrgmSimilarity: true, tgAchievementToggleTrgmSimilarity: true, tgAchievementToggleBooleanTrgmSimilarity: true, tgAchievementBooleanTrgmSimilarity: true, upsertAchievementTrgmSimilarity: true, tgUpdateAchievementsTrgmSimilarity: true, stepsRequiredTrgmSimilarity: true, levelAchievedTrgmSimilarity: true, prefixTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.levelsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, stepsTableId: true, stepsTableName: true, achievementsTableId: true, achievementsTableName: true, levelsTableId: true, levelsTableName: true, levelRequirementsTableId: true, levelRequirementsTableName: true, completedStep: true, incompletedStep: true, tgAchievement: true, tgAchievementToggle: true, tgAchievementToggleBoolean: true, tgAchievementBoolean: true, upsertAchievement: true, tgUpdateAchievements: true, stepsRequired: true, levelAchieved: true, prefix: true, membershipType: true, entityTableId: true, actorTableId: true } }).execute(); // Create -const created = await db.levelsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', stepsTableId: '', stepsTableName: '', achievementsTableId: '', achievementsTableName: '', levelsTableId: '', levelsTableName: '', levelRequirementsTableId: '', levelRequirementsTableName: '', completedStep: '', incompletedStep: '', tgAchievement: '', tgAchievementToggle: '', tgAchievementToggleBoolean: '', tgAchievementBoolean: '', upsertAchievement: '', tgUpdateAchievements: '', stepsRequired: '', levelAchieved: '', prefix: '', membershipType: '', entityTableId: '', actorTableId: '', stepsTableNameTrgmSimilarity: '', achievementsTableNameTrgmSimilarity: '', levelsTableNameTrgmSimilarity: '', levelRequirementsTableNameTrgmSimilarity: '', completedStepTrgmSimilarity: '', incompletedStepTrgmSimilarity: '', tgAchievementTrgmSimilarity: '', tgAchievementToggleTrgmSimilarity: '', tgAchievementToggleBooleanTrgmSimilarity: '', tgAchievementBooleanTrgmSimilarity: '', upsertAchievementTrgmSimilarity: '', tgUpdateAchievementsTrgmSimilarity: '', stepsRequiredTrgmSimilarity: '', levelAchievedTrgmSimilarity: '', prefixTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.levelsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', stepsTableId: '', stepsTableName: '', achievementsTableId: '', achievementsTableName: '', levelsTableId: '', levelsTableName: '', levelRequirementsTableId: '', levelRequirementsTableName: '', completedStep: '', incompletedStep: '', tgAchievement: '', tgAchievementToggle: '', tgAchievementToggleBoolean: '', tgAchievementBoolean: '', upsertAchievement: '', tgUpdateAchievements: '', stepsRequired: '', levelAchieved: '', prefix: '', membershipType: '', entityTableId: '', actorTableId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.levelsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.levelsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.levelsModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.levelsModule.delete({ where: { id: '' } }).execute(); ``` ### `db.limitsModule` @@ -2184,34 +2150,24 @@ CRUD operations for LimitsModule records. | `membershipType` | Int | Yes | | `entityTableId` | UUID | Yes | | `actorTableId` | UUID | Yes | -| `tableNameTrgmSimilarity` | Float | Yes | -| `defaultTableNameTrgmSimilarity` | Float | Yes | -| `limitIncrementFunctionTrgmSimilarity` | Float | Yes | -| `limitDecrementFunctionTrgmSimilarity` | Float | Yes | -| `limitIncrementTriggerTrgmSimilarity` | Float | Yes | -| `limitDecrementTriggerTrgmSimilarity` | Float | Yes | -| `limitUpdateTriggerTrgmSimilarity` | Float | Yes | -| `limitCheckFunctionTrgmSimilarity` | Float | Yes | -| `prefixTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all limitsModule records -const items = await db.limitsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, limitIncrementFunction: true, limitDecrementFunction: true, limitIncrementTrigger: true, limitDecrementTrigger: true, limitUpdateTrigger: true, limitCheckFunction: true, prefix: true, membershipType: true, entityTableId: true, actorTableId: true, tableNameTrgmSimilarity: true, defaultTableNameTrgmSimilarity: true, limitIncrementFunctionTrgmSimilarity: true, limitDecrementFunctionTrgmSimilarity: true, limitIncrementTriggerTrgmSimilarity: true, limitDecrementTriggerTrgmSimilarity: true, limitUpdateTriggerTrgmSimilarity: true, limitCheckFunctionTrgmSimilarity: true, prefixTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.limitsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, limitIncrementFunction: true, limitDecrementFunction: true, limitIncrementTrigger: true, limitDecrementTrigger: true, limitUpdateTrigger: true, limitCheckFunction: true, prefix: true, membershipType: true, entityTableId: true, actorTableId: true } }).execute(); // Get one by id -const item = await db.limitsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, limitIncrementFunction: true, limitDecrementFunction: true, limitIncrementTrigger: true, limitDecrementTrigger: true, limitUpdateTrigger: true, limitCheckFunction: true, prefix: true, membershipType: true, entityTableId: true, actorTableId: true, tableNameTrgmSimilarity: true, defaultTableNameTrgmSimilarity: true, limitIncrementFunctionTrgmSimilarity: true, limitDecrementFunctionTrgmSimilarity: true, limitIncrementTriggerTrgmSimilarity: true, limitDecrementTriggerTrgmSimilarity: true, limitUpdateTriggerTrgmSimilarity: true, limitCheckFunctionTrgmSimilarity: true, prefixTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.limitsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, limitIncrementFunction: true, limitDecrementFunction: true, limitIncrementTrigger: true, limitDecrementTrigger: true, limitUpdateTrigger: true, limitCheckFunction: true, prefix: true, membershipType: true, entityTableId: true, actorTableId: true } }).execute(); // Create -const created = await db.limitsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', limitIncrementFunction: '', limitDecrementFunction: '', limitIncrementTrigger: '', limitDecrementTrigger: '', limitUpdateTrigger: '', limitCheckFunction: '', prefix: '', membershipType: '', entityTableId: '', actorTableId: '', tableNameTrgmSimilarity: '', defaultTableNameTrgmSimilarity: '', limitIncrementFunctionTrgmSimilarity: '', limitDecrementFunctionTrgmSimilarity: '', limitIncrementTriggerTrgmSimilarity: '', limitDecrementTriggerTrgmSimilarity: '', limitUpdateTriggerTrgmSimilarity: '', limitCheckFunctionTrgmSimilarity: '', prefixTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.limitsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', limitIncrementFunction: '', limitDecrementFunction: '', limitIncrementTrigger: '', limitDecrementTrigger: '', limitUpdateTrigger: '', limitCheckFunction: '', prefix: '', membershipType: '', entityTableId: '', actorTableId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.limitsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.limitsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.limitsModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.limitsModule.delete({ where: { id: '' } }).execute(); ``` ### `db.membershipTypesModule` @@ -2227,26 +2183,24 @@ CRUD operations for MembershipTypesModule records. | `schemaId` | UUID | Yes | | `tableId` | UUID | Yes | | `tableName` | String | Yes | -| `tableNameTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all membershipTypesModule records -const items = await db.membershipTypesModule.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, tableNameTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.membershipTypesModule.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }).execute(); // Get one by id -const item = await db.membershipTypesModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, tableNameTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.membershipTypesModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }).execute(); // Create -const created = await db.membershipTypesModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '', tableNameTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.membershipTypesModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.membershipTypesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.membershipTypesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.membershipTypesModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.membershipTypesModule.delete({ where: { id: '' } }).execute(); ``` ### `db.membershipsModule` @@ -2288,37 +2242,24 @@ CRUD operations for MembershipsModule records. | `entityIdsByMask` | String | Yes | | `entityIdsByPerm` | String | Yes | | `entityIdsFunction` | String | Yes | -| `membershipsTableNameTrgmSimilarity` | Float | Yes | -| `membersTableNameTrgmSimilarity` | Float | Yes | -| `membershipDefaultsTableNameTrgmSimilarity` | Float | Yes | -| `grantsTableNameTrgmSimilarity` | Float | Yes | -| `adminGrantsTableNameTrgmSimilarity` | Float | Yes | -| `ownerGrantsTableNameTrgmSimilarity` | Float | Yes | -| `prefixTrgmSimilarity` | Float | Yes | -| `actorMaskCheckTrgmSimilarity` | Float | Yes | -| `actorPermCheckTrgmSimilarity` | Float | Yes | -| `entityIdsByMaskTrgmSimilarity` | Float | Yes | -| `entityIdsByPermTrgmSimilarity` | Float | Yes | -| `entityIdsFunctionTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all membershipsModule records -const items = await db.membershipsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, membershipsTableId: true, membershipsTableName: true, membersTableId: true, membersTableName: true, membershipDefaultsTableId: true, membershipDefaultsTableName: true, grantsTableId: true, grantsTableName: true, actorTableId: true, limitsTableId: true, defaultLimitsTableId: true, permissionsTableId: true, defaultPermissionsTableId: true, sprtTableId: true, adminGrantsTableId: true, adminGrantsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, membershipType: true, entityTableId: true, entityTableOwnerId: true, prefix: true, actorMaskCheck: true, actorPermCheck: true, entityIdsByMask: true, entityIdsByPerm: true, entityIdsFunction: true, membershipsTableNameTrgmSimilarity: true, membersTableNameTrgmSimilarity: true, membershipDefaultsTableNameTrgmSimilarity: true, grantsTableNameTrgmSimilarity: true, adminGrantsTableNameTrgmSimilarity: true, ownerGrantsTableNameTrgmSimilarity: true, prefixTrgmSimilarity: true, actorMaskCheckTrgmSimilarity: true, actorPermCheckTrgmSimilarity: true, entityIdsByMaskTrgmSimilarity: true, entityIdsByPermTrgmSimilarity: true, entityIdsFunctionTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.membershipsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, membershipsTableId: true, membershipsTableName: true, membersTableId: true, membersTableName: true, membershipDefaultsTableId: true, membershipDefaultsTableName: true, grantsTableId: true, grantsTableName: true, actorTableId: true, limitsTableId: true, defaultLimitsTableId: true, permissionsTableId: true, defaultPermissionsTableId: true, sprtTableId: true, adminGrantsTableId: true, adminGrantsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, membershipType: true, entityTableId: true, entityTableOwnerId: true, prefix: true, actorMaskCheck: true, actorPermCheck: true, entityIdsByMask: true, entityIdsByPerm: true, entityIdsFunction: true } }).execute(); // Get one by id -const item = await db.membershipsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, membershipsTableId: true, membershipsTableName: true, membersTableId: true, membersTableName: true, membershipDefaultsTableId: true, membershipDefaultsTableName: true, grantsTableId: true, grantsTableName: true, actorTableId: true, limitsTableId: true, defaultLimitsTableId: true, permissionsTableId: true, defaultPermissionsTableId: true, sprtTableId: true, adminGrantsTableId: true, adminGrantsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, membershipType: true, entityTableId: true, entityTableOwnerId: true, prefix: true, actorMaskCheck: true, actorPermCheck: true, entityIdsByMask: true, entityIdsByPerm: true, entityIdsFunction: true, membershipsTableNameTrgmSimilarity: true, membersTableNameTrgmSimilarity: true, membershipDefaultsTableNameTrgmSimilarity: true, grantsTableNameTrgmSimilarity: true, adminGrantsTableNameTrgmSimilarity: true, ownerGrantsTableNameTrgmSimilarity: true, prefixTrgmSimilarity: true, actorMaskCheckTrgmSimilarity: true, actorPermCheckTrgmSimilarity: true, entityIdsByMaskTrgmSimilarity: true, entityIdsByPermTrgmSimilarity: true, entityIdsFunctionTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.membershipsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, membershipsTableId: true, membershipsTableName: true, membersTableId: true, membersTableName: true, membershipDefaultsTableId: true, membershipDefaultsTableName: true, grantsTableId: true, grantsTableName: true, actorTableId: true, limitsTableId: true, defaultLimitsTableId: true, permissionsTableId: true, defaultPermissionsTableId: true, sprtTableId: true, adminGrantsTableId: true, adminGrantsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, membershipType: true, entityTableId: true, entityTableOwnerId: true, prefix: true, actorMaskCheck: true, actorPermCheck: true, entityIdsByMask: true, entityIdsByPerm: true, entityIdsFunction: true } }).execute(); // Create -const created = await db.membershipsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', membershipsTableId: '', membershipsTableName: '', membersTableId: '', membersTableName: '', membershipDefaultsTableId: '', membershipDefaultsTableName: '', grantsTableId: '', grantsTableName: '', actorTableId: '', limitsTableId: '', defaultLimitsTableId: '', permissionsTableId: '', defaultPermissionsTableId: '', sprtTableId: '', adminGrantsTableId: '', adminGrantsTableName: '', ownerGrantsTableId: '', ownerGrantsTableName: '', membershipType: '', entityTableId: '', entityTableOwnerId: '', prefix: '', actorMaskCheck: '', actorPermCheck: '', entityIdsByMask: '', entityIdsByPerm: '', entityIdsFunction: '', membershipsTableNameTrgmSimilarity: '', membersTableNameTrgmSimilarity: '', membershipDefaultsTableNameTrgmSimilarity: '', grantsTableNameTrgmSimilarity: '', adminGrantsTableNameTrgmSimilarity: '', ownerGrantsTableNameTrgmSimilarity: '', prefixTrgmSimilarity: '', actorMaskCheckTrgmSimilarity: '', actorPermCheckTrgmSimilarity: '', entityIdsByMaskTrgmSimilarity: '', entityIdsByPermTrgmSimilarity: '', entityIdsFunctionTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.membershipsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', membershipsTableId: '', membershipsTableName: '', membersTableId: '', membersTableName: '', membershipDefaultsTableId: '', membershipDefaultsTableName: '', grantsTableId: '', grantsTableName: '', actorTableId: '', limitsTableId: '', defaultLimitsTableId: '', permissionsTableId: '', defaultPermissionsTableId: '', sprtTableId: '', adminGrantsTableId: '', adminGrantsTableName: '', ownerGrantsTableId: '', ownerGrantsTableName: '', membershipType: '', entityTableId: '', entityTableOwnerId: '', prefix: '', actorMaskCheck: '', actorPermCheck: '', entityIdsByMask: '', entityIdsByPerm: '', entityIdsFunction: '' }, select: { id: true } }).execute(); // Update -const updated = await db.membershipsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.membershipsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.membershipsModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.membershipsModule.delete({ where: { id: '' } }).execute(); ``` ### `db.permissionsModule` @@ -2346,32 +2287,24 @@ CRUD operations for PermissionsModule records. | `getMask` | String | Yes | | `getByMask` | String | Yes | | `getMaskByName` | String | Yes | -| `tableNameTrgmSimilarity` | Float | Yes | -| `defaultTableNameTrgmSimilarity` | Float | Yes | -| `prefixTrgmSimilarity` | Float | Yes | -| `getPaddedMaskTrgmSimilarity` | Float | Yes | -| `getMaskTrgmSimilarity` | Float | Yes | -| `getByMaskTrgmSimilarity` | Float | Yes | -| `getMaskByNameTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all permissionsModule records -const items = await db.permissionsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, bitlen: true, membershipType: true, entityTableId: true, actorTableId: true, prefix: true, getPaddedMask: true, getMask: true, getByMask: true, getMaskByName: true, tableNameTrgmSimilarity: true, defaultTableNameTrgmSimilarity: true, prefixTrgmSimilarity: true, getPaddedMaskTrgmSimilarity: true, getMaskTrgmSimilarity: true, getByMaskTrgmSimilarity: true, getMaskByNameTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.permissionsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, bitlen: true, membershipType: true, entityTableId: true, actorTableId: true, prefix: true, getPaddedMask: true, getMask: true, getByMask: true, getMaskByName: true } }).execute(); // Get one by id -const item = await db.permissionsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, bitlen: true, membershipType: true, entityTableId: true, actorTableId: true, prefix: true, getPaddedMask: true, getMask: true, getByMask: true, getMaskByName: true, tableNameTrgmSimilarity: true, defaultTableNameTrgmSimilarity: true, prefixTrgmSimilarity: true, getPaddedMaskTrgmSimilarity: true, getMaskTrgmSimilarity: true, getByMaskTrgmSimilarity: true, getMaskByNameTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.permissionsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, bitlen: true, membershipType: true, entityTableId: true, actorTableId: true, prefix: true, getPaddedMask: true, getMask: true, getByMask: true, getMaskByName: true } }).execute(); // Create -const created = await db.permissionsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', bitlen: '', membershipType: '', entityTableId: '', actorTableId: '', prefix: '', getPaddedMask: '', getMask: '', getByMask: '', getMaskByName: '', tableNameTrgmSimilarity: '', defaultTableNameTrgmSimilarity: '', prefixTrgmSimilarity: '', getPaddedMaskTrgmSimilarity: '', getMaskTrgmSimilarity: '', getByMaskTrgmSimilarity: '', getMaskByNameTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.permissionsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', bitlen: '', membershipType: '', entityTableId: '', actorTableId: '', prefix: '', getPaddedMask: '', getMask: '', getByMask: '', getMaskByName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.permissionsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.permissionsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.permissionsModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.permissionsModule.delete({ where: { id: '' } }).execute(); ``` ### `db.phoneNumbersModule` @@ -2389,26 +2322,24 @@ CRUD operations for PhoneNumbersModule records. | `tableId` | UUID | Yes | | `ownerTableId` | UUID | Yes | | `tableName` | String | Yes | -| `tableNameTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all phoneNumbersModule records -const items = await db.phoneNumbersModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, tableNameTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.phoneNumbersModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true } }).execute(); // Get one by id -const item = await db.phoneNumbersModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, tableNameTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.phoneNumbersModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true } }).execute(); // Create -const created = await db.phoneNumbersModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '', tableNameTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.phoneNumbersModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.phoneNumbersModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.phoneNumbersModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.phoneNumbersModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.phoneNumbersModule.delete({ where: { id: '' } }).execute(); ``` ### `db.profilesModule` @@ -2437,30 +2368,24 @@ CRUD operations for ProfilesModule records. | `permissionsTableId` | UUID | Yes | | `membershipsTableId` | UUID | Yes | | `prefix` | String | Yes | -| `tableNameTrgmSimilarity` | Float | Yes | -| `profilePermissionsTableNameTrgmSimilarity` | Float | Yes | -| `profileGrantsTableNameTrgmSimilarity` | Float | Yes | -| `profileDefinitionGrantsTableNameTrgmSimilarity` | Float | Yes | -| `prefixTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all profilesModule records -const items = await db.profilesModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, membershipType: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, prefix: true, tableNameTrgmSimilarity: true, profilePermissionsTableNameTrgmSimilarity: true, profileGrantsTableNameTrgmSimilarity: true, profileDefinitionGrantsTableNameTrgmSimilarity: true, prefixTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.profilesModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, membershipType: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, prefix: true } }).execute(); // Get one by id -const item = await db.profilesModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, membershipType: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, prefix: true, tableNameTrgmSimilarity: true, profilePermissionsTableNameTrgmSimilarity: true, profileGrantsTableNameTrgmSimilarity: true, profileDefinitionGrantsTableNameTrgmSimilarity: true, prefixTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.profilesModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, membershipType: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, prefix: true } }).execute(); // Create -const created = await db.profilesModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', profilePermissionsTableId: '', profilePermissionsTableName: '', profileGrantsTableId: '', profileGrantsTableName: '', profileDefinitionGrantsTableId: '', profileDefinitionGrantsTableName: '', membershipType: '', entityTableId: '', actorTableId: '', permissionsTableId: '', membershipsTableId: '', prefix: '', tableNameTrgmSimilarity: '', profilePermissionsTableNameTrgmSimilarity: '', profileGrantsTableNameTrgmSimilarity: '', profileDefinitionGrantsTableNameTrgmSimilarity: '', prefixTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.profilesModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', profilePermissionsTableId: '', profilePermissionsTableName: '', profileGrantsTableId: '', profileGrantsTableName: '', profileDefinitionGrantsTableId: '', profileDefinitionGrantsTableName: '', membershipType: '', entityTableId: '', actorTableId: '', permissionsTableId: '', membershipsTableId: '', prefix: '' }, select: { id: true } }).execute(); // Update -const updated = await db.profilesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.profilesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.profilesModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.profilesModule.delete({ where: { id: '' } }).execute(); ``` ### `db.secretsModule` @@ -2476,26 +2401,24 @@ CRUD operations for SecretsModule records. | `schemaId` | UUID | Yes | | `tableId` | UUID | Yes | | `tableName` | String | Yes | -| `tableNameTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all secretsModule records -const items = await db.secretsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, tableNameTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.secretsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }).execute(); // Get one by id -const item = await db.secretsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, tableNameTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.secretsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }).execute(); // Create -const created = await db.secretsModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '', tableNameTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.secretsModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.secretsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.secretsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.secretsModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.secretsModule.delete({ where: { id: '' } }).execute(); ``` ### `db.sessionsModule` @@ -2517,28 +2440,24 @@ CRUD operations for SessionsModule records. | `sessionsTable` | String | Yes | | `sessionCredentialsTable` | String | Yes | | `authSettingsTable` | String | Yes | -| `sessionsTableTrgmSimilarity` | Float | Yes | -| `sessionCredentialsTableTrgmSimilarity` | Float | Yes | -| `authSettingsTableTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all sessionsModule records -const items = await db.sessionsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, sessionsTableId: true, sessionCredentialsTableId: true, authSettingsTableId: true, usersTableId: true, sessionsDefaultExpiration: true, sessionsTable: true, sessionCredentialsTable: true, authSettingsTable: true, sessionsTableTrgmSimilarity: true, sessionCredentialsTableTrgmSimilarity: true, authSettingsTableTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.sessionsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, sessionsTableId: true, sessionCredentialsTableId: true, authSettingsTableId: true, usersTableId: true, sessionsDefaultExpiration: true, sessionsTable: true, sessionCredentialsTable: true, authSettingsTable: true } }).execute(); // Get one by id -const item = await db.sessionsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, sessionsTableId: true, sessionCredentialsTableId: true, authSettingsTableId: true, usersTableId: true, sessionsDefaultExpiration: true, sessionsTable: true, sessionCredentialsTable: true, authSettingsTable: true, sessionsTableTrgmSimilarity: true, sessionCredentialsTableTrgmSimilarity: true, authSettingsTableTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.sessionsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, sessionsTableId: true, sessionCredentialsTableId: true, authSettingsTableId: true, usersTableId: true, sessionsDefaultExpiration: true, sessionsTable: true, sessionCredentialsTable: true, authSettingsTable: true } }).execute(); // Create -const created = await db.sessionsModule.create({ data: { databaseId: '', schemaId: '', sessionsTableId: '', sessionCredentialsTableId: '', authSettingsTableId: '', usersTableId: '', sessionsDefaultExpiration: '', sessionsTable: '', sessionCredentialsTable: '', authSettingsTable: '', sessionsTableTrgmSimilarity: '', sessionCredentialsTableTrgmSimilarity: '', authSettingsTableTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.sessionsModule.create({ data: { databaseId: '', schemaId: '', sessionsTableId: '', sessionCredentialsTableId: '', authSettingsTableId: '', usersTableId: '', sessionsDefaultExpiration: '', sessionsTable: '', sessionCredentialsTable: '', authSettingsTable: '' }, select: { id: true } }).execute(); // Update -const updated = await db.sessionsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.sessionsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.sessionsModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.sessionsModule.delete({ where: { id: '' } }).execute(); ``` ### `db.userAuthModule` @@ -2575,41 +2494,24 @@ CRUD operations for UserAuthModule records. | `signInOneTimeTokenFunction` | String | Yes | | `oneTimeTokenFunction` | String | Yes | | `extendTokenExpires` | String | Yes | -| `auditsTableNameTrgmSimilarity` | Float | Yes | -| `signInFunctionTrgmSimilarity` | Float | Yes | -| `signUpFunctionTrgmSimilarity` | Float | Yes | -| `signOutFunctionTrgmSimilarity` | Float | Yes | -| `setPasswordFunctionTrgmSimilarity` | Float | Yes | -| `resetPasswordFunctionTrgmSimilarity` | Float | Yes | -| `forgotPasswordFunctionTrgmSimilarity` | Float | Yes | -| `sendVerificationEmailFunctionTrgmSimilarity` | Float | Yes | -| `verifyEmailFunctionTrgmSimilarity` | Float | Yes | -| `verifyPasswordFunctionTrgmSimilarity` | Float | Yes | -| `checkPasswordFunctionTrgmSimilarity` | Float | Yes | -| `sendAccountDeletionEmailFunctionTrgmSimilarity` | Float | Yes | -| `deleteAccountFunctionTrgmSimilarity` | Float | Yes | -| `signInOneTimeTokenFunctionTrgmSimilarity` | Float | Yes | -| `oneTimeTokenFunctionTrgmSimilarity` | Float | Yes | -| `extendTokenExpiresTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all userAuthModule records -const items = await db.userAuthModule.findMany({ select: { id: true, databaseId: true, schemaId: true, emailsTableId: true, usersTableId: true, secretsTableId: true, encryptedTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, auditsTableId: true, auditsTableName: true, signInFunction: true, signUpFunction: true, signOutFunction: true, setPasswordFunction: true, resetPasswordFunction: true, forgotPasswordFunction: true, sendVerificationEmailFunction: true, verifyEmailFunction: true, verifyPasswordFunction: true, checkPasswordFunction: true, sendAccountDeletionEmailFunction: true, deleteAccountFunction: true, signInOneTimeTokenFunction: true, oneTimeTokenFunction: true, extendTokenExpires: true, auditsTableNameTrgmSimilarity: true, signInFunctionTrgmSimilarity: true, signUpFunctionTrgmSimilarity: true, signOutFunctionTrgmSimilarity: true, setPasswordFunctionTrgmSimilarity: true, resetPasswordFunctionTrgmSimilarity: true, forgotPasswordFunctionTrgmSimilarity: true, sendVerificationEmailFunctionTrgmSimilarity: true, verifyEmailFunctionTrgmSimilarity: true, verifyPasswordFunctionTrgmSimilarity: true, checkPasswordFunctionTrgmSimilarity: true, sendAccountDeletionEmailFunctionTrgmSimilarity: true, deleteAccountFunctionTrgmSimilarity: true, signInOneTimeTokenFunctionTrgmSimilarity: true, oneTimeTokenFunctionTrgmSimilarity: true, extendTokenExpiresTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.userAuthModule.findMany({ select: { id: true, databaseId: true, schemaId: true, emailsTableId: true, usersTableId: true, secretsTableId: true, encryptedTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, auditsTableId: true, auditsTableName: true, signInFunction: true, signUpFunction: true, signOutFunction: true, setPasswordFunction: true, resetPasswordFunction: true, forgotPasswordFunction: true, sendVerificationEmailFunction: true, verifyEmailFunction: true, verifyPasswordFunction: true, checkPasswordFunction: true, sendAccountDeletionEmailFunction: true, deleteAccountFunction: true, signInOneTimeTokenFunction: true, oneTimeTokenFunction: true, extendTokenExpires: true } }).execute(); // Get one by id -const item = await db.userAuthModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, emailsTableId: true, usersTableId: true, secretsTableId: true, encryptedTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, auditsTableId: true, auditsTableName: true, signInFunction: true, signUpFunction: true, signOutFunction: true, setPasswordFunction: true, resetPasswordFunction: true, forgotPasswordFunction: true, sendVerificationEmailFunction: true, verifyEmailFunction: true, verifyPasswordFunction: true, checkPasswordFunction: true, sendAccountDeletionEmailFunction: true, deleteAccountFunction: true, signInOneTimeTokenFunction: true, oneTimeTokenFunction: true, extendTokenExpires: true, auditsTableNameTrgmSimilarity: true, signInFunctionTrgmSimilarity: true, signUpFunctionTrgmSimilarity: true, signOutFunctionTrgmSimilarity: true, setPasswordFunctionTrgmSimilarity: true, resetPasswordFunctionTrgmSimilarity: true, forgotPasswordFunctionTrgmSimilarity: true, sendVerificationEmailFunctionTrgmSimilarity: true, verifyEmailFunctionTrgmSimilarity: true, verifyPasswordFunctionTrgmSimilarity: true, checkPasswordFunctionTrgmSimilarity: true, sendAccountDeletionEmailFunctionTrgmSimilarity: true, deleteAccountFunctionTrgmSimilarity: true, signInOneTimeTokenFunctionTrgmSimilarity: true, oneTimeTokenFunctionTrgmSimilarity: true, extendTokenExpiresTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.userAuthModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, emailsTableId: true, usersTableId: true, secretsTableId: true, encryptedTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, auditsTableId: true, auditsTableName: true, signInFunction: true, signUpFunction: true, signOutFunction: true, setPasswordFunction: true, resetPasswordFunction: true, forgotPasswordFunction: true, sendVerificationEmailFunction: true, verifyEmailFunction: true, verifyPasswordFunction: true, checkPasswordFunction: true, sendAccountDeletionEmailFunction: true, deleteAccountFunction: true, signInOneTimeTokenFunction: true, oneTimeTokenFunction: true, extendTokenExpires: true } }).execute(); // Create -const created = await db.userAuthModule.create({ data: { databaseId: '', schemaId: '', emailsTableId: '', usersTableId: '', secretsTableId: '', encryptedTableId: '', sessionsTableId: '', sessionCredentialsTableId: '', auditsTableId: '', auditsTableName: '', signInFunction: '', signUpFunction: '', signOutFunction: '', setPasswordFunction: '', resetPasswordFunction: '', forgotPasswordFunction: '', sendVerificationEmailFunction: '', verifyEmailFunction: '', verifyPasswordFunction: '', checkPasswordFunction: '', sendAccountDeletionEmailFunction: '', deleteAccountFunction: '', signInOneTimeTokenFunction: '', oneTimeTokenFunction: '', extendTokenExpires: '', auditsTableNameTrgmSimilarity: '', signInFunctionTrgmSimilarity: '', signUpFunctionTrgmSimilarity: '', signOutFunctionTrgmSimilarity: '', setPasswordFunctionTrgmSimilarity: '', resetPasswordFunctionTrgmSimilarity: '', forgotPasswordFunctionTrgmSimilarity: '', sendVerificationEmailFunctionTrgmSimilarity: '', verifyEmailFunctionTrgmSimilarity: '', verifyPasswordFunctionTrgmSimilarity: '', checkPasswordFunctionTrgmSimilarity: '', sendAccountDeletionEmailFunctionTrgmSimilarity: '', deleteAccountFunctionTrgmSimilarity: '', signInOneTimeTokenFunctionTrgmSimilarity: '', oneTimeTokenFunctionTrgmSimilarity: '', extendTokenExpiresTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.userAuthModule.create({ data: { databaseId: '', schemaId: '', emailsTableId: '', usersTableId: '', secretsTableId: '', encryptedTableId: '', sessionsTableId: '', sessionCredentialsTableId: '', auditsTableId: '', auditsTableName: '', signInFunction: '', signUpFunction: '', signOutFunction: '', setPasswordFunction: '', resetPasswordFunction: '', forgotPasswordFunction: '', sendVerificationEmailFunction: '', verifyEmailFunction: '', verifyPasswordFunction: '', checkPasswordFunction: '', sendAccountDeletionEmailFunction: '', deleteAccountFunction: '', signInOneTimeTokenFunction: '', oneTimeTokenFunction: '', extendTokenExpires: '' }, select: { id: true } }).execute(); // Update -const updated = await db.userAuthModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.userAuthModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.userAuthModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.userAuthModule.delete({ where: { id: '' } }).execute(); ``` ### `db.usersModule` @@ -2627,63 +2529,117 @@ CRUD operations for UsersModule records. | `tableName` | String | Yes | | `typeTableId` | UUID | Yes | | `typeTableName` | String | Yes | -| `tableNameTrgmSimilarity` | Float | Yes | -| `typeTableNameTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all usersModule records -const items = await db.usersModule.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, typeTableId: true, typeTableName: true, tableNameTrgmSimilarity: true, typeTableNameTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.usersModule.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, typeTableId: true, typeTableName: true } }).execute(); // Get one by id -const item = await db.usersModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, typeTableId: true, typeTableName: true, tableNameTrgmSimilarity: true, typeTableNameTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.usersModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, typeTableId: true, typeTableName: true } }).execute(); // Create -const created = await db.usersModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '', typeTableId: '', typeTableName: '', tableNameTrgmSimilarity: '', typeTableNameTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.usersModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '', typeTableId: '', typeTableName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.usersModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.usersModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.usersModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.usersModule.delete({ where: { id: '' } }).execute(); ``` -### `db.uuidModule` +### `db.blueprint` -CRUD operations for UuidModule records. +CRUD operations for Blueprint records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | +| `ownerId` | UUID | Yes | | `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `uuidFunction` | String | Yes | -| `uuidSeed` | String | Yes | -| `uuidFunctionTrgmSimilarity` | Float | Yes | -| `uuidSeedTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | +| `name` | String | Yes | +| `displayName` | String | Yes | +| `description` | String | Yes | +| `definition` | JSON | Yes | +| `templateId` | UUID | Yes | +| `status` | String | Yes | +| `constructedAt` | Datetime | Yes | +| `errorDetails` | String | Yes | +| `refMap` | JSON | Yes | +| `constructedDefinition` | JSON | Yes | +| `definitionHash` | UUID | Yes | +| `tableHashes` | JSON | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all blueprint records +const items = await db.blueprint.findMany({ select: { id: true, ownerId: true, databaseId: true, name: true, displayName: true, description: true, definition: true, templateId: true, status: true, constructedAt: true, errorDetails: true, refMap: true, constructedDefinition: true, definitionHash: true, tableHashes: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.blueprint.findOne({ id: '', select: { id: true, ownerId: true, databaseId: true, name: true, displayName: true, description: true, definition: true, templateId: true, status: true, constructedAt: true, errorDetails: true, refMap: true, constructedDefinition: true, definitionHash: true, tableHashes: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.blueprint.create({ data: { ownerId: '', databaseId: '', name: '', displayName: '', description: '', definition: '', templateId: '', status: '', constructedAt: '', errorDetails: '', refMap: '', constructedDefinition: '', definitionHash: '', tableHashes: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.blueprint.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.blueprint.delete({ where: { id: '' } }).execute(); +``` + +### `db.blueprintTemplate` + +CRUD operations for BlueprintTemplate records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `version` | String | Yes | +| `displayName` | String | Yes | +| `description` | String | Yes | +| `ownerId` | UUID | Yes | +| `visibility` | String | Yes | +| `categories` | String | Yes | +| `tags` | String | Yes | +| `definition` | JSON | Yes | +| `definitionSchemaVersion` | String | Yes | +| `source` | String | Yes | +| `complexity` | String | Yes | +| `copyCount` | Int | Yes | +| `forkCount` | Int | Yes | +| `forkedFromId` | UUID | Yes | +| `definitionHash` | UUID | Yes | +| `tableHashes` | JSON | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | **Operations:** ```typescript -// List all uuidModule records -const items = await db.uuidModule.findMany({ select: { id: true, databaseId: true, schemaId: true, uuidFunction: true, uuidSeed: true, uuidFunctionTrgmSimilarity: true, uuidSeedTrgmSimilarity: true, searchScore: true } }).execute(); +// List all blueprintTemplate records +const items = await db.blueprintTemplate.findMany({ select: { id: true, name: true, version: true, displayName: true, description: true, ownerId: true, visibility: true, categories: true, tags: true, definition: true, definitionSchemaVersion: true, source: true, complexity: true, copyCount: true, forkCount: true, forkedFromId: true, definitionHash: true, tableHashes: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.uuidModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, uuidFunction: true, uuidSeed: true, uuidFunctionTrgmSimilarity: true, uuidSeedTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.blueprintTemplate.findOne({ id: '', select: { id: true, name: true, version: true, displayName: true, description: true, ownerId: true, visibility: true, categories: true, tags: true, definition: true, definitionSchemaVersion: true, source: true, complexity: true, copyCount: true, forkCount: true, forkedFromId: true, definitionHash: true, tableHashes: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.uuidModule.create({ data: { databaseId: '', schemaId: '', uuidFunction: '', uuidSeed: '', uuidFunctionTrgmSimilarity: '', uuidSeedTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.blueprintTemplate.create({ data: { name: '', version: '', displayName: '', description: '', ownerId: '', visibility: '', categories: '', tags: '', definition: '', definitionSchemaVersion: '', source: '', complexity: '', copyCount: '', forkCount: '', forkedFromId: '', definitionHash: '', tableHashes: '' }, select: { id: true } }).execute(); // Update -const updated = await db.uuidModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.blueprintTemplate.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.uuidModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.blueprintTemplate.delete({ where: { id: '' } }).execute(); ``` ### `db.databaseProvisionModule` @@ -2708,30 +2664,24 @@ CRUD operations for DatabaseProvisionModule records. | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | | `completedAt` | Datetime | Yes | -| `databaseNameTrgmSimilarity` | Float | Yes | -| `subdomainTrgmSimilarity` | Float | Yes | -| `domainTrgmSimilarity` | Float | Yes | -| `statusTrgmSimilarity` | Float | Yes | -| `errorMessageTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all databaseProvisionModule records -const items = await db.databaseProvisionModule.findMany({ select: { id: true, databaseName: true, ownerId: true, subdomain: true, domain: true, modules: true, options: true, bootstrapUser: true, status: true, errorMessage: true, databaseId: true, createdAt: true, updatedAt: true, completedAt: true, databaseNameTrgmSimilarity: true, subdomainTrgmSimilarity: true, domainTrgmSimilarity: true, statusTrgmSimilarity: true, errorMessageTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.databaseProvisionModule.findMany({ select: { id: true, databaseName: true, ownerId: true, subdomain: true, domain: true, modules: true, options: true, bootstrapUser: true, status: true, errorMessage: true, databaseId: true, createdAt: true, updatedAt: true, completedAt: true } }).execute(); // Get one by id -const item = await db.databaseProvisionModule.findOne({ id: '', select: { id: true, databaseName: true, ownerId: true, subdomain: true, domain: true, modules: true, options: true, bootstrapUser: true, status: true, errorMessage: true, databaseId: true, createdAt: true, updatedAt: true, completedAt: true, databaseNameTrgmSimilarity: true, subdomainTrgmSimilarity: true, domainTrgmSimilarity: true, statusTrgmSimilarity: true, errorMessageTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.databaseProvisionModule.findOne({ id: '', select: { id: true, databaseName: true, ownerId: true, subdomain: true, domain: true, modules: true, options: true, bootstrapUser: true, status: true, errorMessage: true, databaseId: true, createdAt: true, updatedAt: true, completedAt: true } }).execute(); // Create -const created = await db.databaseProvisionModule.create({ data: { databaseName: '', ownerId: '', subdomain: '', domain: '', modules: '', options: '', bootstrapUser: '', status: '', errorMessage: '', databaseId: '', completedAt: '', databaseNameTrgmSimilarity: '', subdomainTrgmSimilarity: '', domainTrgmSimilarity: '', statusTrgmSimilarity: '', errorMessageTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.databaseProvisionModule.create({ data: { databaseName: '', ownerId: '', subdomain: '', domain: '', modules: '', options: '', bootstrapUser: '', status: '', errorMessage: '', databaseId: '', completedAt: '' }, select: { id: true } }).execute(); // Update -const updated = await db.databaseProvisionModule.update({ where: { id: '' }, data: { databaseName: '' }, select: { id: true } }).execute(); +const updated = await db.databaseProvisionModule.update({ where: { id: '' }, data: { databaseName: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.databaseProvisionModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.databaseProvisionModule.delete({ where: { id: '' } }).execute(); ``` ### `db.appAdminGrant` @@ -2756,16 +2706,16 @@ CRUD operations for AppAdminGrant records. const items = await db.appAdminGrant.findMany({ select: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.appAdminGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.appAdminGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.appAdminGrant.create({ data: { isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute(); +const created = await db.appAdminGrant.create({ data: { isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appAdminGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); +const updated = await db.appAdminGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appAdminGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.appAdminGrant.delete({ where: { id: '' } }).execute(); ``` ### `db.appOwnerGrant` @@ -2790,16 +2740,16 @@ CRUD operations for AppOwnerGrant records. const items = await db.appOwnerGrant.findMany({ select: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.appOwnerGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.appOwnerGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.appOwnerGrant.create({ data: { isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute(); +const created = await db.appOwnerGrant.create({ data: { isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appOwnerGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); +const updated = await db.appOwnerGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appOwnerGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.appOwnerGrant.delete({ where: { id: '' } }).execute(); ``` ### `db.appGrant` @@ -2825,16 +2775,16 @@ CRUD operations for AppGrant records. const items = await db.appGrant.findMany({ select: { id: true, permissions: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.appGrant.findOne({ id: '', select: { id: true, permissions: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.appGrant.findOne({ id: '', select: { id: true, permissions: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.appGrant.create({ data: { permissions: '', isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute(); +const created = await db.appGrant.create({ data: { permissions: '', isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appGrant.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); +const updated = await db.appGrant.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.appGrant.delete({ where: { id: '' } }).execute(); ``` ### `db.orgMembership` @@ -2869,16 +2819,16 @@ CRUD operations for OrgMembership records. const items = await db.orgMembership.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, profileId: true } }).execute(); // Get one by id -const item = await db.orgMembership.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, profileId: true } }).execute(); +const item = await db.orgMembership.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, profileId: true } }).execute(); // Create -const created = await db.orgMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '', profileId: '' }, select: { id: true } }).execute(); +const created = await db.orgMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '', profileId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); +const updated = await db.orgMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgMembership.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgMembership.delete({ where: { id: '' } }).execute(); ``` ### `db.orgMember` @@ -2901,16 +2851,16 @@ CRUD operations for OrgMember records. const items = await db.orgMember.findMany({ select: { id: true, isAdmin: true, actorId: true, entityId: true } }).execute(); // Get one by id -const item = await db.orgMember.findOne({ id: '', select: { id: true, isAdmin: true, actorId: true, entityId: true } }).execute(); +const item = await db.orgMember.findOne({ id: '', select: { id: true, isAdmin: true, actorId: true, entityId: true } }).execute(); // Create -const created = await db.orgMember.create({ data: { isAdmin: '', actorId: '', entityId: '' }, select: { id: true } }).execute(); +const created = await db.orgMember.create({ data: { isAdmin: '', actorId: '', entityId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgMember.update({ where: { id: '' }, data: { isAdmin: '' }, select: { id: true } }).execute(); +const updated = await db.orgMember.update({ where: { id: '' }, data: { isAdmin: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgMember.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgMember.delete({ where: { id: '' } }).execute(); ``` ### `db.orgAdminGrant` @@ -2936,16 +2886,16 @@ CRUD operations for OrgAdminGrant records. const items = await db.orgAdminGrant.findMany({ select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.orgAdminGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.orgAdminGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.orgAdminGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); +const created = await db.orgAdminGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgAdminGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); +const updated = await db.orgAdminGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgAdminGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgAdminGrant.delete({ where: { id: '' } }).execute(); ``` ### `db.orgOwnerGrant` @@ -2971,16 +2921,16 @@ CRUD operations for OrgOwnerGrant records. const items = await db.orgOwnerGrant.findMany({ select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.orgOwnerGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.orgOwnerGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.orgOwnerGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); +const created = await db.orgOwnerGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgOwnerGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); +const updated = await db.orgOwnerGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgOwnerGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgOwnerGrant.delete({ where: { id: '' } }).execute(); ``` ### `db.orgGrant` @@ -3007,16 +2957,16 @@ CRUD operations for OrgGrant records. const items = await db.orgGrant.findMany({ select: { id: true, permissions: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.orgGrant.findOne({ id: '', select: { id: true, permissions: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.orgGrant.findOne({ id: '', select: { id: true, permissions: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.orgGrant.create({ data: { permissions: '', isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); +const created = await db.orgGrant.create({ data: { permissions: '', isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgGrant.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); +const updated = await db.orgGrant.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgGrant.delete({ where: { id: '' } }).execute(); ``` ### `db.orgChartEdge` @@ -3035,26 +2985,24 @@ CRUD operations for OrgChartEdge records. | `parentId` | UUID | Yes | | `positionTitle` | String | Yes | | `positionLevel` | Int | Yes | -| `positionTitleTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all orgChartEdge records -const items = await db.orgChartEdge.findMany({ select: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true, positionTitleTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.orgChartEdge.findMany({ select: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true } }).execute(); // Get one by id -const item = await db.orgChartEdge.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true, positionTitleTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.orgChartEdge.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true } }).execute(); // Create -const created = await db.orgChartEdge.create({ data: { entityId: '', childId: '', parentId: '', positionTitle: '', positionLevel: '', positionTitleTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.orgChartEdge.create({ data: { entityId: '', childId: '', parentId: '', positionTitle: '', positionLevel: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgChartEdge.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); +const updated = await db.orgChartEdge.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgChartEdge.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgChartEdge.delete({ where: { id: '' } }).execute(); ``` ### `db.orgChartEdgeGrant` @@ -3074,26 +3022,55 @@ CRUD operations for OrgChartEdgeGrant records. | `positionTitle` | String | Yes | | `positionLevel` | Int | Yes | | `createdAt` | Datetime | No | -| `positionTitleTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all orgChartEdgeGrant records -const items = await db.orgChartEdgeGrant.findMany({ select: { id: true, entityId: true, childId: true, parentId: true, grantorId: true, isGrant: true, positionTitle: true, positionLevel: true, createdAt: true, positionTitleTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.orgChartEdgeGrant.findMany({ select: { id: true, entityId: true, childId: true, parentId: true, grantorId: true, isGrant: true, positionTitle: true, positionLevel: true, createdAt: true } }).execute(); + +// Get one by id +const item = await db.orgChartEdgeGrant.findOne({ id: '', select: { id: true, entityId: true, childId: true, parentId: true, grantorId: true, isGrant: true, positionTitle: true, positionLevel: true, createdAt: true } }).execute(); + +// Create +const created = await db.orgChartEdgeGrant.create({ data: { entityId: '', childId: '', parentId: '', grantorId: '', isGrant: '', positionTitle: '', positionLevel: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgChartEdgeGrant.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgChartEdgeGrant.delete({ where: { id: '' } }).execute(); +``` + +### `db.orgPermissionDefault` + +CRUD operations for OrgPermissionDefault records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `permissions` | BitString | Yes | +| `entityId` | UUID | Yes | + +**Operations:** + +```typescript +// List all orgPermissionDefault records +const items = await db.orgPermissionDefault.findMany({ select: { id: true, permissions: true, entityId: true } }).execute(); // Get one by id -const item = await db.orgChartEdgeGrant.findOne({ id: '', select: { id: true, entityId: true, childId: true, parentId: true, grantorId: true, isGrant: true, positionTitle: true, positionLevel: true, createdAt: true, positionTitleTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.orgPermissionDefault.findOne({ id: '', select: { id: true, permissions: true, entityId: true } }).execute(); // Create -const created = await db.orgChartEdgeGrant.create({ data: { entityId: '', childId: '', parentId: '', grantorId: '', isGrant: '', positionTitle: '', positionLevel: '', positionTitleTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.orgPermissionDefault.create({ data: { permissions: '', entityId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgChartEdgeGrant.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); +const updated = await db.orgPermissionDefault.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgChartEdgeGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgPermissionDefault.delete({ where: { id: '' } }).execute(); ``` ### `db.appLimit` @@ -3117,16 +3094,16 @@ CRUD operations for AppLimit records. const items = await db.appLimit.findMany({ select: { id: true, name: true, actorId: true, num: true, max: true } }).execute(); // Get one by id -const item = await db.appLimit.findOne({ id: '', select: { id: true, name: true, actorId: true, num: true, max: true } }).execute(); +const item = await db.appLimit.findOne({ id: '', select: { id: true, name: true, actorId: true, num: true, max: true } }).execute(); // Create -const created = await db.appLimit.create({ data: { name: '', actorId: '', num: '', max: '' }, select: { id: true } }).execute(); +const created = await db.appLimit.create({ data: { name: '', actorId: '', num: '', max: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appLimit.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.appLimit.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appLimit.delete({ where: { id: '' } }).execute(); +const deleted = await db.appLimit.delete({ where: { id: '' } }).execute(); ``` ### `db.orgLimit` @@ -3151,16 +3128,16 @@ CRUD operations for OrgLimit records. const items = await db.orgLimit.findMany({ select: { id: true, name: true, actorId: true, num: true, max: true, entityId: true } }).execute(); // Get one by id -const item = await db.orgLimit.findOne({ id: '', select: { id: true, name: true, actorId: true, num: true, max: true, entityId: true } }).execute(); +const item = await db.orgLimit.findOne({ id: '', select: { id: true, name: true, actorId: true, num: true, max: true, entityId: true } }).execute(); // Create -const created = await db.orgLimit.create({ data: { name: '', actorId: '', num: '', max: '', entityId: '' }, select: { id: true } }).execute(); +const created = await db.orgLimit.create({ data: { name: '', actorId: '', num: '', max: '', entityId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgLimit.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.orgLimit.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgLimit.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgLimit.delete({ where: { id: '' } }).execute(); ``` ### `db.appStep` @@ -3185,16 +3162,16 @@ CRUD operations for AppStep records. const items = await db.appStep.findMany({ select: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.appStep.findOne({ id: '', select: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.appStep.findOne({ id: '', select: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.appStep.create({ data: { actorId: '', name: '', count: '' }, select: { id: true } }).execute(); +const created = await db.appStep.create({ data: { actorId: '', name: '', count: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appStep.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); +const updated = await db.appStep.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appStep.delete({ where: { id: '' } }).execute(); +const deleted = await db.appStep.delete({ where: { id: '' } }).execute(); ``` ### `db.appAchievement` @@ -3219,444 +3196,511 @@ CRUD operations for AppAchievement records. const items = await db.appAchievement.findMany({ select: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.appAchievement.findOne({ id: '', select: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.appAchievement.findOne({ id: '', select: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.appAchievement.create({ data: { actorId: '', name: '', count: '' }, select: { id: true } }).execute(); +const created = await db.appAchievement.create({ data: { actorId: '', name: '', count: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appAchievement.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); +const updated = await db.appAchievement.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appAchievement.delete({ where: { id: '' } }).execute(); +const deleted = await db.appAchievement.delete({ where: { id: '' } }).execute(); ``` -### `db.invite` +### `db.appLevel` -CRUD operations for Invite records. +CRUD operations for AppLevel records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `email` | ConstructiveInternalTypeEmail | Yes | -| `senderId` | UUID | Yes | -| `inviteToken` | String | Yes | -| `inviteValid` | Boolean | Yes | -| `inviteLimit` | Int | Yes | -| `inviteCount` | Int | Yes | -| `multiple` | Boolean | Yes | -| `data` | JSON | Yes | -| `expiresAt` | Datetime | Yes | +| `name` | String | Yes | +| `description` | String | Yes | +| `image` | ConstructiveInternalTypeImage | Yes | +| `ownerId` | UUID | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `inviteTokenTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript -// List all invite records -const items = await db.invite.findMany({ select: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true, inviteTokenTrgmSimilarity: true, searchScore: true } }).execute(); +// List all appLevel records +const items = await db.appLevel.findMany({ select: { id: true, name: true, description: true, image: true, ownerId: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.invite.findOne({ id: '', select: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true, inviteTokenTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.appLevel.findOne({ id: '', select: { id: true, name: true, description: true, image: true, ownerId: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.invite.create({ data: { email: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '', inviteTokenTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.appLevel.create({ data: { name: '', description: '', image: '', ownerId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.invite.update({ where: { id: '' }, data: { email: '' }, select: { id: true } }).execute(); +const updated = await db.appLevel.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.invite.delete({ where: { id: '' } }).execute(); +const deleted = await db.appLevel.delete({ where: { id: '' } }).execute(); ``` -### `db.claimedInvite` +### `db.email` -CRUD operations for ClaimedInvite records. +CRUD operations for Email records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `data` | JSON | Yes | -| `senderId` | UUID | Yes | -| `receiverId` | UUID | Yes | +| `ownerId` | UUID | Yes | +| `email` | ConstructiveInternalTypeEmail | Yes | +| `isVerified` | Boolean | Yes | +| `isPrimary` | Boolean | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | **Operations:** ```typescript -// List all claimedInvite records -const items = await db.claimedInvite.findMany({ select: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true } }).execute(); +// List all email records +const items = await db.email.findMany({ select: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.claimedInvite.findOne({ id: '', select: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.email.findOne({ id: '', select: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.claimedInvite.create({ data: { data: '', senderId: '', receiverId: '' }, select: { id: true } }).execute(); +const created = await db.email.create({ data: { ownerId: '', email: '', isVerified: '', isPrimary: '' }, select: { id: true } }).execute(); // Update -const updated = await db.claimedInvite.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); +const updated = await db.email.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.claimedInvite.delete({ where: { id: '' } }).execute(); +const deleted = await db.email.delete({ where: { id: '' } }).execute(); ``` -### `db.orgInvite` +### `db.phoneNumber` -CRUD operations for OrgInvite records. +CRUD operations for PhoneNumber records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `email` | ConstructiveInternalTypeEmail | Yes | -| `senderId` | UUID | Yes | -| `receiverId` | UUID | Yes | -| `inviteToken` | String | Yes | -| `inviteValid` | Boolean | Yes | -| `inviteLimit` | Int | Yes | -| `inviteCount` | Int | Yes | -| `multiple` | Boolean | Yes | -| `data` | JSON | Yes | -| `expiresAt` | Datetime | Yes | +| `ownerId` | UUID | Yes | +| `cc` | String | Yes | +| `number` | String | Yes | +| `isVerified` | Boolean | Yes | +| `isPrimary` | Boolean | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `entityId` | UUID | Yes | -| `inviteTokenTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript -// List all orgInvite records -const items = await db.orgInvite.findMany({ select: { id: true, email: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true, inviteTokenTrgmSimilarity: true, searchScore: true } }).execute(); +// List all phoneNumber records +const items = await db.phoneNumber.findMany({ select: { id: true, ownerId: true, cc: true, number: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.orgInvite.findOne({ id: '', select: { id: true, email: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true, inviteTokenTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.phoneNumber.findOne({ id: '', select: { id: true, ownerId: true, cc: true, number: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.orgInvite.create({ data: { email: '', senderId: '', receiverId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '', entityId: '', inviteTokenTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.phoneNumber.create({ data: { ownerId: '', cc: '', number: '', isVerified: '', isPrimary: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgInvite.update({ where: { id: '' }, data: { email: '' }, select: { id: true } }).execute(); +const updated = await db.phoneNumber.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgInvite.delete({ where: { id: '' } }).execute(); +const deleted = await db.phoneNumber.delete({ where: { id: '' } }).execute(); ``` -### `db.orgClaimedInvite` +### `db.cryptoAddress` -CRUD operations for OrgClaimedInvite records. +CRUD operations for CryptoAddress records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `data` | JSON | Yes | -| `senderId` | UUID | Yes | -| `receiverId` | UUID | Yes | +| `ownerId` | UUID | Yes | +| `address` | String | Yes | +| `isVerified` | Boolean | Yes | +| `isPrimary` | Boolean | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `entityId` | UUID | Yes | **Operations:** ```typescript -// List all orgClaimedInvite records -const items = await db.orgClaimedInvite.findMany({ select: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true, entityId: true } }).execute(); +// List all cryptoAddress records +const items = await db.cryptoAddress.findMany({ select: { id: true, ownerId: true, address: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.orgClaimedInvite.findOne({ id: '', select: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true, entityId: true } }).execute(); +const item = await db.cryptoAddress.findOne({ id: '', select: { id: true, ownerId: true, address: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.orgClaimedInvite.create({ data: { data: '', senderId: '', receiverId: '', entityId: '' }, select: { id: true } }).execute(); +const created = await db.cryptoAddress.create({ data: { ownerId: '', address: '', isVerified: '', isPrimary: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgClaimedInvite.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); +const updated = await db.cryptoAddress.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgClaimedInvite.delete({ where: { id: '' } }).execute(); +const deleted = await db.cryptoAddress.delete({ where: { id: '' } }).execute(); ``` -### `db.ref` +### `db.connectedAccount` -CRUD operations for Ref records. +CRUD operations for ConnectedAccount records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `name` | String | Yes | -| `databaseId` | UUID | Yes | -| `storeId` | UUID | Yes | -| `commitId` | UUID | Yes | -| `nameTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | +| `ownerId` | UUID | Yes | +| `service` | String | Yes | +| `identifier` | String | Yes | +| `details` | JSON | Yes | +| `isVerified` | Boolean | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | **Operations:** ```typescript -// List all ref records -const items = await db.ref.findMany({ select: { id: true, name: true, databaseId: true, storeId: true, commitId: true, nameTrgmSimilarity: true, searchScore: true } }).execute(); +// List all connectedAccount records +const items = await db.connectedAccount.findMany({ select: { id: true, ownerId: true, service: true, identifier: true, details: true, isVerified: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.ref.findOne({ id: '', select: { id: true, name: true, databaseId: true, storeId: true, commitId: true, nameTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.connectedAccount.findOne({ id: '', select: { id: true, ownerId: true, service: true, identifier: true, details: true, isVerified: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.ref.create({ data: { name: '', databaseId: '', storeId: '', commitId: '', nameTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.connectedAccount.create({ data: { ownerId: '', service: '', identifier: '', details: '', isVerified: '' }, select: { id: true } }).execute(); // Update -const updated = await db.ref.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.connectedAccount.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.ref.delete({ where: { id: '' } }).execute(); +const deleted = await db.connectedAccount.delete({ where: { id: '' } }).execute(); ``` -### `db.store` +### `db.invite` -CRUD operations for Store records. +CRUD operations for Invite records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `name` | String | Yes | -| `databaseId` | UUID | Yes | -| `hash` | UUID | Yes | +| `email` | ConstructiveInternalTypeEmail | Yes | +| `senderId` | UUID | Yes | +| `inviteToken` | String | Yes | +| `inviteValid` | Boolean | Yes | +| `inviteLimit` | Int | Yes | +| `inviteCount` | Int | Yes | +| `multiple` | Boolean | Yes | +| `data` | JSON | Yes | +| `expiresAt` | Datetime | Yes | | `createdAt` | Datetime | No | -| `nameTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | +| `updatedAt` | Datetime | No | **Operations:** ```typescript -// List all store records -const items = await db.store.findMany({ select: { id: true, name: true, databaseId: true, hash: true, createdAt: true, nameTrgmSimilarity: true, searchScore: true } }).execute(); +// List all invite records +const items = await db.invite.findMany({ select: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.store.findOne({ id: '', select: { id: true, name: true, databaseId: true, hash: true, createdAt: true, nameTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.invite.findOne({ id: '', select: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.store.create({ data: { name: '', databaseId: '', hash: '', nameTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.invite.create({ data: { email: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '' }, select: { id: true } }).execute(); // Update -const updated = await db.store.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.invite.update({ where: { id: '' }, data: { email: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.store.delete({ where: { id: '' } }).execute(); +const deleted = await db.invite.delete({ where: { id: '' } }).execute(); ``` -### `db.appPermissionDefault` +### `db.claimedInvite` -CRUD operations for AppPermissionDefault records. +CRUD operations for ClaimedInvite records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `permissions` | BitString | Yes | +| `data` | JSON | Yes | +| `senderId` | UUID | Yes | +| `receiverId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | **Operations:** ```typescript -// List all appPermissionDefault records -const items = await db.appPermissionDefault.findMany({ select: { id: true, permissions: true } }).execute(); +// List all claimedInvite records +const items = await db.claimedInvite.findMany({ select: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.appPermissionDefault.findOne({ id: '', select: { id: true, permissions: true } }).execute(); +const item = await db.claimedInvite.findOne({ id: '', select: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.appPermissionDefault.create({ data: { permissions: '' }, select: { id: true } }).execute(); +const created = await db.claimedInvite.create({ data: { data: '', senderId: '', receiverId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appPermissionDefault.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); +const updated = await db.claimedInvite.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appPermissionDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.claimedInvite.delete({ where: { id: '' } }).execute(); ``` -### `db.cryptoAddress` +### `db.orgInvite` -CRUD operations for CryptoAddress records. +CRUD operations for OrgInvite records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `ownerId` | UUID | Yes | -| `address` | String | Yes | -| `isVerified` | Boolean | Yes | -| `isPrimary` | Boolean | Yes | +| `email` | ConstructiveInternalTypeEmail | Yes | +| `senderId` | UUID | Yes | +| `receiverId` | UUID | Yes | +| `inviteToken` | String | Yes | +| `inviteValid` | Boolean | Yes | +| `inviteLimit` | Int | Yes | +| `inviteCount` | Int | Yes | +| `multiple` | Boolean | Yes | +| `data` | JSON | Yes | +| `expiresAt` | Datetime | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `addressTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | +| `entityId` | UUID | Yes | **Operations:** ```typescript -// List all cryptoAddress records -const items = await db.cryptoAddress.findMany({ select: { id: true, ownerId: true, address: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true, addressTrgmSimilarity: true, searchScore: true } }).execute(); +// List all orgInvite records +const items = await db.orgInvite.findMany({ select: { id: true, email: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true } }).execute(); // Get one by id -const item = await db.cryptoAddress.findOne({ id: '', select: { id: true, ownerId: true, address: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true, addressTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.orgInvite.findOne({ id: '', select: { id: true, email: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true } }).execute(); // Create -const created = await db.cryptoAddress.create({ data: { ownerId: '', address: '', isVerified: '', isPrimary: '', addressTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.orgInvite.create({ data: { email: '', senderId: '', receiverId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '', entityId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.cryptoAddress.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); +const updated = await db.orgInvite.update({ where: { id: '' }, data: { email: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.cryptoAddress.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgInvite.delete({ where: { id: '' } }).execute(); ``` -### `db.roleType` +### `db.orgClaimedInvite` -CRUD operations for RoleType records. +CRUD operations for OrgClaimedInvite records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `id` | Int | No | -| `name` | String | Yes | +| `id` | UUID | No | +| `data` | JSON | Yes | +| `senderId` | UUID | Yes | +| `receiverId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `entityId` | UUID | Yes | **Operations:** ```typescript -// List all roleType records -const items = await db.roleType.findMany({ select: { id: true, name: true } }).execute(); +// List all orgClaimedInvite records +const items = await db.orgClaimedInvite.findMany({ select: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true, entityId: true } }).execute(); // Get one by id -const item = await db.roleType.findOne({ id: '', select: { id: true, name: true } }).execute(); +const item = await db.orgClaimedInvite.findOne({ id: '', select: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true, entityId: true } }).execute(); // Create -const created = await db.roleType.create({ data: { name: '' }, select: { id: true } }).execute(); +const created = await db.orgClaimedInvite.create({ data: { data: '', senderId: '', receiverId: '', entityId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.roleType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.orgClaimedInvite.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.roleType.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgClaimedInvite.delete({ where: { id: '' } }).execute(); ``` -### `db.orgPermissionDefault` +### `db.auditLog` -CRUD operations for OrgPermissionDefault records. +CRUD operations for AuditLog records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `permissions` | BitString | Yes | -| `entityId` | UUID | Yes | +| `event` | String | Yes | +| `actorId` | UUID | Yes | +| `origin` | ConstructiveInternalTypeOrigin | Yes | +| `userAgent` | String | Yes | +| `ipAddress` | InternetAddress | Yes | +| `success` | Boolean | Yes | +| `createdAt` | Datetime | No | **Operations:** ```typescript -// List all orgPermissionDefault records -const items = await db.orgPermissionDefault.findMany({ select: { id: true, permissions: true, entityId: true } }).execute(); +// List all auditLog records +const items = await db.auditLog.findMany({ select: { id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true, createdAt: true } }).execute(); // Get one by id -const item = await db.orgPermissionDefault.findOne({ id: '', select: { id: true, permissions: true, entityId: true } }).execute(); +const item = await db.auditLog.findOne({ id: '', select: { id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true, createdAt: true } }).execute(); // Create -const created = await db.orgPermissionDefault.create({ data: { permissions: '', entityId: '' }, select: { id: true } }).execute(); +const created = await db.auditLog.create({ data: { event: '', actorId: '', origin: '', userAgent: '', ipAddress: '', success: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgPermissionDefault.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); +const updated = await db.auditLog.update({ where: { id: '' }, data: { event: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgPermissionDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.auditLog.delete({ where: { id: '' } }).execute(); ``` -### `db.phoneNumber` +### `db.ref` -CRUD operations for PhoneNumber records. +CRUD operations for Ref records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `ownerId` | UUID | Yes | -| `cc` | String | Yes | -| `number` | String | Yes | -| `isVerified` | Boolean | Yes | -| `isPrimary` | Boolean | Yes | +| `name` | String | Yes | +| `databaseId` | UUID | Yes | +| `storeId` | UUID | Yes | +| `commitId` | UUID | Yes | + +**Operations:** + +```typescript +// List all ref records +const items = await db.ref.findMany({ select: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }).execute(); + +// Get one by id +const item = await db.ref.findOne({ id: '', select: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }).execute(); + +// Create +const created = await db.ref.create({ data: { name: '', databaseId: '', storeId: '', commitId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.ref.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.ref.delete({ where: { id: '' } }).execute(); +``` + +### `db.store` + +CRUD operations for Store records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `databaseId` | UUID | Yes | +| `hash` | UUID | Yes | | `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `ccTrgmSimilarity` | Float | Yes | -| `numberTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript -// List all phoneNumber records -const items = await db.phoneNumber.findMany({ select: { id: true, ownerId: true, cc: true, number: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true, ccTrgmSimilarity: true, numberTrgmSimilarity: true, searchScore: true } }).execute(); +// List all store records +const items = await db.store.findMany({ select: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }).execute(); // Get one by id -const item = await db.phoneNumber.findOne({ id: '', select: { id: true, ownerId: true, cc: true, number: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true, ccTrgmSimilarity: true, numberTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.store.findOne({ id: '', select: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }).execute(); // Create -const created = await db.phoneNumber.create({ data: { ownerId: '', cc: '', number: '', isVerified: '', isPrimary: '', ccTrgmSimilarity: '', numberTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.store.create({ data: { name: '', databaseId: '', hash: '' }, select: { id: true } }).execute(); // Update -const updated = await db.phoneNumber.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); +const updated = await db.store.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.phoneNumber.delete({ where: { id: '' } }).execute(); +const deleted = await db.store.delete({ where: { id: '' } }).execute(); ``` -### `db.appLimitDefault` +### `db.appPermissionDefault` -CRUD operations for AppLimitDefault records. +CRUD operations for AppPermissionDefault records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | +| `permissions` | BitString | Yes | + +**Operations:** + +```typescript +// List all appPermissionDefault records +const items = await db.appPermissionDefault.findMany({ select: { id: true, permissions: true } }).execute(); + +// Get one by id +const item = await db.appPermissionDefault.findOne({ id: '', select: { id: true, permissions: true } }).execute(); + +// Create +const created = await db.appPermissionDefault.create({ data: { permissions: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appPermissionDefault.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appPermissionDefault.delete({ where: { id: '' } }).execute(); +``` + +### `db.roleType` + +CRUD operations for RoleType records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | Int | No | | `name` | String | Yes | -| `max` | Int | Yes | **Operations:** ```typescript -// List all appLimitDefault records -const items = await db.appLimitDefault.findMany({ select: { id: true, name: true, max: true } }).execute(); +// List all roleType records +const items = await db.roleType.findMany({ select: { id: true, name: true } }).execute(); // Get one by id -const item = await db.appLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true } }).execute(); +const item = await db.roleType.findOne({ id: '', select: { id: true, name: true } }).execute(); // Create -const created = await db.appLimitDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute(); +const created = await db.roleType.create({ data: { name: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.roleType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appLimitDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.roleType.delete({ where: { id: '' } }).execute(); ``` -### `db.orgLimitDefault` +### `db.appLimitDefault` -CRUD operations for OrgLimitDefault records. +CRUD operations for AppLimitDefault records. **Fields:** @@ -3669,59 +3713,51 @@ CRUD operations for OrgLimitDefault records. **Operations:** ```typescript -// List all orgLimitDefault records -const items = await db.orgLimitDefault.findMany({ select: { id: true, name: true, max: true } }).execute(); +// List all appLimitDefault records +const items = await db.appLimitDefault.findMany({ select: { id: true, name: true, max: true } }).execute(); // Get one by id -const item = await db.orgLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true } }).execute(); +const item = await db.appLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true } }).execute(); // Create -const created = await db.orgLimitDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute(); +const created = await db.appLimitDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.appLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgLimitDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.appLimitDefault.delete({ where: { id: '' } }).execute(); ``` -### `db.connectedAccount` +### `db.orgLimitDefault` -CRUD operations for ConnectedAccount records. +CRUD operations for OrgLimitDefault records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `ownerId` | UUID | Yes | -| `service` | String | Yes | -| `identifier` | String | Yes | -| `details` | JSON | Yes | -| `isVerified` | Boolean | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `serviceTrgmSimilarity` | Float | Yes | -| `identifierTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | +| `name` | String | Yes | +| `max` | Int | Yes | **Operations:** ```typescript -// List all connectedAccount records -const items = await db.connectedAccount.findMany({ select: { id: true, ownerId: true, service: true, identifier: true, details: true, isVerified: true, createdAt: true, updatedAt: true, serviceTrgmSimilarity: true, identifierTrgmSimilarity: true, searchScore: true } }).execute(); +// List all orgLimitDefault records +const items = await db.orgLimitDefault.findMany({ select: { id: true, name: true, max: true } }).execute(); // Get one by id -const item = await db.connectedAccount.findOne({ id: '', select: { id: true, ownerId: true, service: true, identifier: true, details: true, isVerified: true, createdAt: true, updatedAt: true, serviceTrgmSimilarity: true, identifierTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.orgLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true } }).execute(); // Create -const created = await db.connectedAccount.create({ data: { ownerId: '', service: '', identifier: '', details: '', isVerified: '', serviceTrgmSimilarity: '', identifierTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.orgLimitDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute(); // Update -const updated = await db.connectedAccount.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); +const updated = await db.orgLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.connectedAccount.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgLimitDefault.delete({ where: { id: '' } }).execute(); ``` ### `db.nodeTypeRegistry` @@ -3741,30 +3777,24 @@ CRUD operations for NodeTypeRegistry records. | `tags` | String | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `nameTrgmSimilarity` | Float | Yes | -| `slugTrgmSimilarity` | Float | Yes | -| `categoryTrgmSimilarity` | Float | Yes | -| `displayNameTrgmSimilarity` | Float | Yes | -| `descriptionTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all nodeTypeRegistry records -const items = await db.nodeTypeRegistry.findMany({ select: { name: true, slug: true, category: true, displayName: true, description: true, parameterSchema: true, tags: true, createdAt: true, updatedAt: true, nameTrgmSimilarity: true, slugTrgmSimilarity: true, categoryTrgmSimilarity: true, displayNameTrgmSimilarity: true, descriptionTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.nodeTypeRegistry.findMany({ select: { name: true, slug: true, category: true, displayName: true, description: true, parameterSchema: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Get one by name -const item = await db.nodeTypeRegistry.findOne({ name: '', select: { name: true, slug: true, category: true, displayName: true, description: true, parameterSchema: true, tags: true, createdAt: true, updatedAt: true, nameTrgmSimilarity: true, slugTrgmSimilarity: true, categoryTrgmSimilarity: true, displayNameTrgmSimilarity: true, descriptionTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.nodeTypeRegistry.findOne({ name: '', select: { name: true, slug: true, category: true, displayName: true, description: true, parameterSchema: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.nodeTypeRegistry.create({ data: { slug: '', category: '', displayName: '', description: '', parameterSchema: '', tags: '', nameTrgmSimilarity: '', slugTrgmSimilarity: '', categoryTrgmSimilarity: '', displayNameTrgmSimilarity: '', descriptionTrgmSimilarity: '', searchScore: '' }, select: { name: true } }).execute(); +const created = await db.nodeTypeRegistry.create({ data: { slug: '', category: '', displayName: '', description: '', parameterSchema: '', tags: '' }, select: { name: true } }).execute(); // Update -const updated = await db.nodeTypeRegistry.update({ where: { name: '' }, data: { slug: '' }, select: { name: true } }).execute(); +const updated = await db.nodeTypeRegistry.update({ where: { name: '' }, data: { slug: '' }, select: { name: true } }).execute(); // Delete -const deleted = await db.nodeTypeRegistry.delete({ where: { name: '' } }).execute(); +const deleted = await db.nodeTypeRegistry.delete({ where: { name: '' } }).execute(); ``` ### `db.membershipType` @@ -3779,27 +3809,24 @@ CRUD operations for MembershipType records. | `name` | String | Yes | | `description` | String | Yes | | `prefix` | String | Yes | -| `descriptionTrgmSimilarity` | Float | Yes | -| `prefixTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all membershipType records -const items = await db.membershipType.findMany({ select: { id: true, name: true, description: true, prefix: true, descriptionTrgmSimilarity: true, prefixTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.membershipType.findMany({ select: { id: true, name: true, description: true, prefix: true } }).execute(); // Get one by id -const item = await db.membershipType.findOne({ id: '', select: { id: true, name: true, description: true, prefix: true, descriptionTrgmSimilarity: true, prefixTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.membershipType.findOne({ id: '', select: { id: true, name: true, description: true, prefix: true } }).execute(); // Create -const created = await db.membershipType.create({ data: { name: '', description: '', prefix: '', descriptionTrgmSimilarity: '', prefixTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.membershipType.create({ data: { name: '', description: '', prefix: '' }, select: { id: true } }).execute(); // Update -const updated = await db.membershipType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.membershipType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.membershipType.delete({ where: { id: '' } }).execute(); +const deleted = await db.membershipType.delete({ where: { id: '' } }).execute(); ``` ### `db.commit` @@ -3819,26 +3846,24 @@ CRUD operations for Commit records. | `committerId` | UUID | Yes | | `treeId` | UUID | Yes | | `date` | Datetime | Yes | -| `messageTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all commit records -const items = await db.commit.findMany({ select: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true, messageTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.commit.findMany({ select: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }).execute(); // Get one by id -const item = await db.commit.findOne({ id: '', select: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true, messageTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.commit.findOne({ id: '', select: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }).execute(); // Create -const created = await db.commit.create({ data: { message: '', databaseId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '', messageTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.commit.create({ data: { message: '', databaseId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }, select: { id: true } }).execute(); // Update -const updated = await db.commit.update({ where: { id: '' }, data: { message: '' }, select: { id: true } }).execute(); +const updated = await db.commit.update({ where: { id: '' }, data: { message: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.commit.delete({ where: { id: '' } }).execute(); +const deleted = await db.commit.delete({ where: { id: '' } }).execute(); ``` ### `db.appMembershipDefault` @@ -3864,16 +3889,16 @@ CRUD operations for AppMembershipDefault records. const items = await db.appMembershipDefault.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }).execute(); // Get one by id -const item = await db.appMembershipDefault.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }).execute(); +const item = await db.appMembershipDefault.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }).execute(); // Create -const created = await db.appMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isVerified: '' }, select: { id: true } }).execute(); +const created = await db.appMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isVerified: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); +const updated = await db.appMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appMembershipDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.appMembershipDefault.delete({ where: { id: '' } }).execute(); ``` ### `db.rlsModule` @@ -3895,29 +3920,24 @@ CRUD operations for RlsModule records. | `authenticateStrict` | String | Yes | | `currentRole` | String | Yes | | `currentRoleId` | String | Yes | -| `authenticateTrgmSimilarity` | Float | Yes | -| `authenticateStrictTrgmSimilarity` | Float | Yes | -| `currentRoleTrgmSimilarity` | Float | Yes | -| `currentRoleIdTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all rlsModule records -const items = await db.rlsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, sessionCredentialsTableId: true, sessionsTableId: true, usersTableId: true, authenticate: true, authenticateStrict: true, currentRole: true, currentRoleId: true, authenticateTrgmSimilarity: true, authenticateStrictTrgmSimilarity: true, currentRoleTrgmSimilarity: true, currentRoleIdTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.rlsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, sessionCredentialsTableId: true, sessionsTableId: true, usersTableId: true, authenticate: true, authenticateStrict: true, currentRole: true, currentRoleId: true } }).execute(); // Get one by id -const item = await db.rlsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, sessionCredentialsTableId: true, sessionsTableId: true, usersTableId: true, authenticate: true, authenticateStrict: true, currentRole: true, currentRoleId: true, authenticateTrgmSimilarity: true, authenticateStrictTrgmSimilarity: true, currentRoleTrgmSimilarity: true, currentRoleIdTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.rlsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, sessionCredentialsTableId: true, sessionsTableId: true, usersTableId: true, authenticate: true, authenticateStrict: true, currentRole: true, currentRoleId: true } }).execute(); // Create -const created = await db.rlsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', sessionCredentialsTableId: '', sessionsTableId: '', usersTableId: '', authenticate: '', authenticateStrict: '', currentRole: '', currentRoleId: '', authenticateTrgmSimilarity: '', authenticateStrictTrgmSimilarity: '', currentRoleTrgmSimilarity: '', currentRoleIdTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.rlsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', sessionCredentialsTableId: '', sessionsTableId: '', usersTableId: '', authenticate: '', authenticateStrict: '', currentRole: '', currentRoleId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.rlsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.rlsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.rlsModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.rlsModule.delete({ where: { id: '' } }).execute(); ``` ### `db.orgMembershipDefault` @@ -3945,91 +3965,16 @@ CRUD operations for OrgMembershipDefault records. const items = await db.orgMembershipDefault.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true, deleteMemberCascadeGroups: true, createGroupsCascadeMembers: true } }).execute(); // Get one by id -const item = await db.orgMembershipDefault.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true, deleteMemberCascadeGroups: true, createGroupsCascadeMembers: true } }).execute(); - -// Create -const created = await db.orgMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', entityId: '', deleteMemberCascadeGroups: '', createGroupsCascadeMembers: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgMembershipDefault.delete({ where: { id: '' } }).execute(); -``` - -### `db.auditLog` - -CRUD operations for AuditLog records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `event` | String | Yes | -| `actorId` | UUID | Yes | -| `origin` | ConstructiveInternalTypeOrigin | Yes | -| `userAgent` | String | Yes | -| `ipAddress` | InternetAddress | Yes | -| `success` | Boolean | Yes | -| `createdAt` | Datetime | No | -| `userAgentTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | - -**Operations:** - -```typescript -// List all auditLog records -const items = await db.auditLog.findMany({ select: { id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true, createdAt: true, userAgentTrgmSimilarity: true, searchScore: true } }).execute(); - -// Get one by id -const item = await db.auditLog.findOne({ id: '', select: { id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true, createdAt: true, userAgentTrgmSimilarity: true, searchScore: true } }).execute(); - -// Create -const created = await db.auditLog.create({ data: { event: '', actorId: '', origin: '', userAgent: '', ipAddress: '', success: '', userAgentTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.auditLog.update({ where: { id: '' }, data: { event: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.auditLog.delete({ where: { id: '' } }).execute(); -``` - -### `db.appLevel` - -CRUD operations for AppLevel records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `name` | String | Yes | -| `description` | String | Yes | -| `image` | ConstructiveInternalTypeImage | Yes | -| `ownerId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `descriptionTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | - -**Operations:** - -```typescript -// List all appLevel records -const items = await db.appLevel.findMany({ select: { id: true, name: true, description: true, image: true, ownerId: true, createdAt: true, updatedAt: true, descriptionTrgmSimilarity: true, searchScore: true } }).execute(); - -// Get one by id -const item = await db.appLevel.findOne({ id: '', select: { id: true, name: true, description: true, image: true, ownerId: true, createdAt: true, updatedAt: true, descriptionTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.orgMembershipDefault.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true, deleteMemberCascadeGroups: true, createGroupsCascadeMembers: true } }).execute(); // Create -const created = await db.appLevel.create({ data: { name: '', description: '', image: '', ownerId: '', descriptionTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.orgMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', entityId: '', deleteMemberCascadeGroups: '', createGroupsCascadeMembers: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appLevel.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.orgMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appLevel.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgMembershipDefault.delete({ where: { id: '' } }).execute(); ``` ### `db.sqlMigration` @@ -4053,66 +3998,24 @@ CRUD operations for SqlMigration records. | `action` | String | Yes | | `actionId` | UUID | Yes | | `actorId` | UUID | Yes | -| `nameTrgmSimilarity` | Float | Yes | -| `deployTrgmSimilarity` | Float | Yes | -| `contentTrgmSimilarity` | Float | Yes | -| `revertTrgmSimilarity` | Float | Yes | -| `verifyTrgmSimilarity` | Float | Yes | -| `actionTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all sqlMigration records -const items = await db.sqlMigration.findMany({ select: { id: true, name: true, databaseId: true, deploy: true, deps: true, payload: true, content: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true, nameTrgmSimilarity: true, deployTrgmSimilarity: true, contentTrgmSimilarity: true, revertTrgmSimilarity: true, verifyTrgmSimilarity: true, actionTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.sqlMigration.findMany({ select: { id: true, name: true, databaseId: true, deploy: true, deps: true, payload: true, content: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } }).execute(); // Get one by id -const item = await db.sqlMigration.findOne({ id: '', select: { id: true, name: true, databaseId: true, deploy: true, deps: true, payload: true, content: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true, nameTrgmSimilarity: true, deployTrgmSimilarity: true, contentTrgmSimilarity: true, revertTrgmSimilarity: true, verifyTrgmSimilarity: true, actionTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.sqlMigration.findOne({ id: '', select: { id: true, name: true, databaseId: true, deploy: true, deps: true, payload: true, content: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } }).execute(); // Create -const created = await db.sqlMigration.create({ data: { name: '', databaseId: '', deploy: '', deps: '', payload: '', content: '', revert: '', verify: '', action: '', actionId: '', actorId: '', nameTrgmSimilarity: '', deployTrgmSimilarity: '', contentTrgmSimilarity: '', revertTrgmSimilarity: '', verifyTrgmSimilarity: '', actionTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.sqlMigration.create({ data: { name: '', databaseId: '', deploy: '', deps: '', payload: '', content: '', revert: '', verify: '', action: '', actionId: '', actorId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.sqlMigration.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.sqlMigration.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.sqlMigration.delete({ where: { id: '' } }).execute(); -``` - -### `db.email` - -CRUD operations for Email records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `ownerId` | UUID | Yes | -| `email` | ConstructiveInternalTypeEmail | Yes | -| `isVerified` | Boolean | Yes | -| `isPrimary` | Boolean | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all email records -const items = await db.email.findMany({ select: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.email.findOne({ id: '', select: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.email.create({ data: { ownerId: '', email: '', isVerified: '', isPrimary: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.email.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.email.delete({ where: { id: '' } }).execute(); +const deleted = await db.sqlMigration.delete({ where: { id: '' } }).execute(); ``` ### `db.user` @@ -4142,16 +4045,16 @@ CRUD operations for User records. const items = await db.user.findMany({ select: { id: true, username: true, displayName: true, profilePicture: true, searchTsv: true, type: true, createdAt: true, updatedAt: true, searchTsvRank: true, displayNameTrgmSimilarity: true, searchScore: true } }).execute(); // Get one by id -const item = await db.user.findOne({ id: '', select: { id: true, username: true, displayName: true, profilePicture: true, searchTsv: true, type: true, createdAt: true, updatedAt: true, searchTsvRank: true, displayNameTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.user.findOne({ id: '', select: { id: true, username: true, displayName: true, profilePicture: true, searchTsv: true, type: true, createdAt: true, updatedAt: true, searchTsvRank: true, displayNameTrgmSimilarity: true, searchScore: true } }).execute(); // Create -const created = await db.user.create({ data: { username: '', displayName: '', profilePicture: '', searchTsv: '', type: '', searchTsvRank: '', displayNameTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.user.create({ data: { username: '', displayName: '', profilePicture: '', searchTsv: '', type: '', searchTsvRank: '', displayNameTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); // Update -const updated = await db.user.update({ where: { id: '' }, data: { username: '' }, select: { id: true } }).execute(); +const updated = await db.user.update({ where: { id: '' }, data: { username: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.user.delete({ where: { id: '' } }).execute(); +const deleted = await db.user.delete({ where: { id: '' } }).execute(); ``` ### `db.astMigration` @@ -4175,26 +4078,24 @@ CRUD operations for AstMigration records. | `action` | String | Yes | | `actionId` | UUID | Yes | | `actorId` | UUID | Yes | -| `actionTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all astMigration records -const items = await db.astMigration.findMany({ select: { id: true, databaseId: true, name: true, requires: true, payload: true, deploys: true, deploy: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true, actionTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.astMigration.findMany({ select: { id: true, databaseId: true, name: true, requires: true, payload: true, deploys: true, deploy: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } }).execute(); // Get one by id -const item = await db.astMigration.findOne({ id: '', select: { id: true, databaseId: true, name: true, requires: true, payload: true, deploys: true, deploy: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true, actionTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.astMigration.findOne({ id: '', select: { id: true, databaseId: true, name: true, requires: true, payload: true, deploys: true, deploy: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } }).execute(); // Create -const created = await db.astMigration.create({ data: { databaseId: '', name: '', requires: '', payload: '', deploys: '', deploy: '', revert: '', verify: '', action: '', actionId: '', actorId: '', actionTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.astMigration.create({ data: { databaseId: '', name: '', requires: '', payload: '', deploys: '', deploy: '', revert: '', verify: '', action: '', actionId: '', actorId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.astMigration.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.astMigration.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.astMigration.delete({ where: { id: '' } }).execute(); +const deleted = await db.astMigration.delete({ where: { id: '' } }).execute(); ``` ### `db.appMembership` @@ -4229,16 +4130,16 @@ CRUD operations for AppMembership records. const items = await db.appMembership.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }).execute(); // Get one by id -const item = await db.appMembership.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }).execute(); +const item = await db.appMembership.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }).execute(); // Create -const created = await db.appMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', profileId: '' }, select: { id: true } }).execute(); +const created = await db.appMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', profileId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); +const updated = await db.appMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appMembership.delete({ where: { id: '' } }).execute(); +const deleted = await db.appMembership.delete({ where: { id: '' } }).execute(); ``` ### `db.hierarchyModule` @@ -4269,35 +4170,24 @@ CRUD operations for HierarchyModule records. | `getManagersFunction` | String | Yes | | `isManagerOfFunction` | String | Yes | | `createdAt` | Datetime | No | -| `chartEdgesTableNameTrgmSimilarity` | Float | Yes | -| `hierarchySprtTableNameTrgmSimilarity` | Float | Yes | -| `chartEdgeGrantsTableNameTrgmSimilarity` | Float | Yes | -| `prefixTrgmSimilarity` | Float | Yes | -| `privateSchemaNameTrgmSimilarity` | Float | Yes | -| `sprtTableNameTrgmSimilarity` | Float | Yes | -| `rebuildHierarchyFunctionTrgmSimilarity` | Float | Yes | -| `getSubordinatesFunctionTrgmSimilarity` | Float | Yes | -| `getManagersFunctionTrgmSimilarity` | Float | Yes | -| `isManagerOfFunctionTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all hierarchyModule records -const items = await db.hierarchyModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, chartEdgesTableId: true, chartEdgesTableName: true, hierarchySprtTableId: true, hierarchySprtTableName: true, chartEdgeGrantsTableId: true, chartEdgeGrantsTableName: true, entityTableId: true, usersTableId: true, prefix: true, privateSchemaName: true, sprtTableName: true, rebuildHierarchyFunction: true, getSubordinatesFunction: true, getManagersFunction: true, isManagerOfFunction: true, createdAt: true, chartEdgesTableNameTrgmSimilarity: true, hierarchySprtTableNameTrgmSimilarity: true, chartEdgeGrantsTableNameTrgmSimilarity: true, prefixTrgmSimilarity: true, privateSchemaNameTrgmSimilarity: true, sprtTableNameTrgmSimilarity: true, rebuildHierarchyFunctionTrgmSimilarity: true, getSubordinatesFunctionTrgmSimilarity: true, getManagersFunctionTrgmSimilarity: true, isManagerOfFunctionTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.hierarchyModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, chartEdgesTableId: true, chartEdgesTableName: true, hierarchySprtTableId: true, hierarchySprtTableName: true, chartEdgeGrantsTableId: true, chartEdgeGrantsTableName: true, entityTableId: true, usersTableId: true, prefix: true, privateSchemaName: true, sprtTableName: true, rebuildHierarchyFunction: true, getSubordinatesFunction: true, getManagersFunction: true, isManagerOfFunction: true, createdAt: true } }).execute(); // Get one by id -const item = await db.hierarchyModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, chartEdgesTableId: true, chartEdgesTableName: true, hierarchySprtTableId: true, hierarchySprtTableName: true, chartEdgeGrantsTableId: true, chartEdgeGrantsTableName: true, entityTableId: true, usersTableId: true, prefix: true, privateSchemaName: true, sprtTableName: true, rebuildHierarchyFunction: true, getSubordinatesFunction: true, getManagersFunction: true, isManagerOfFunction: true, createdAt: true, chartEdgesTableNameTrgmSimilarity: true, hierarchySprtTableNameTrgmSimilarity: true, chartEdgeGrantsTableNameTrgmSimilarity: true, prefixTrgmSimilarity: true, privateSchemaNameTrgmSimilarity: true, sprtTableNameTrgmSimilarity: true, rebuildHierarchyFunctionTrgmSimilarity: true, getSubordinatesFunctionTrgmSimilarity: true, getManagersFunctionTrgmSimilarity: true, isManagerOfFunctionTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.hierarchyModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, chartEdgesTableId: true, chartEdgesTableName: true, hierarchySprtTableId: true, hierarchySprtTableName: true, chartEdgeGrantsTableId: true, chartEdgeGrantsTableName: true, entityTableId: true, usersTableId: true, prefix: true, privateSchemaName: true, sprtTableName: true, rebuildHierarchyFunction: true, getSubordinatesFunction: true, getManagersFunction: true, isManagerOfFunction: true, createdAt: true } }).execute(); // Create -const created = await db.hierarchyModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', chartEdgesTableId: '', chartEdgesTableName: '', hierarchySprtTableId: '', hierarchySprtTableName: '', chartEdgeGrantsTableId: '', chartEdgeGrantsTableName: '', entityTableId: '', usersTableId: '', prefix: '', privateSchemaName: '', sprtTableName: '', rebuildHierarchyFunction: '', getSubordinatesFunction: '', getManagersFunction: '', isManagerOfFunction: '', chartEdgesTableNameTrgmSimilarity: '', hierarchySprtTableNameTrgmSimilarity: '', chartEdgeGrantsTableNameTrgmSimilarity: '', prefixTrgmSimilarity: '', privateSchemaNameTrgmSimilarity: '', sprtTableNameTrgmSimilarity: '', rebuildHierarchyFunctionTrgmSimilarity: '', getSubordinatesFunctionTrgmSimilarity: '', getManagersFunctionTrgmSimilarity: '', isManagerOfFunctionTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.hierarchyModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', chartEdgesTableId: '', chartEdgesTableName: '', hierarchySprtTableId: '', hierarchySprtTableName: '', chartEdgeGrantsTableId: '', chartEdgeGrantsTableName: '', entityTableId: '', usersTableId: '', prefix: '', privateSchemaName: '', sprtTableName: '', rebuildHierarchyFunction: '', getSubordinatesFunction: '', getManagersFunction: '', isManagerOfFunction: '' }, select: { id: true } }).execute(); // Update -const updated = await db.hierarchyModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.hierarchyModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.hierarchyModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.hierarchyModule.delete({ where: { id: '' } }).execute(); ``` ## Custom Operations @@ -4347,7 +4237,7 @@ appPermissionsGetPaddedMask | `mask` | BitString | ```typescript -const result = await db.query.appPermissionsGetPaddedMask({ mask: '' }).execute(); +const result = await db.query.appPermissionsGetPaddedMask({ mask: '' }).execute(); ``` ### `db.query.orgPermissionsGetPaddedMask` @@ -4362,7 +4252,7 @@ orgPermissionsGetPaddedMask | `mask` | BitString | ```typescript -const result = await db.query.orgPermissionsGetPaddedMask({ mask: '' }).execute(); +const result = await db.query.orgPermissionsGetPaddedMask({ mask: '' }).execute(); ``` ### `db.query.stepsAchieved` @@ -4378,7 +4268,7 @@ stepsAchieved | `vroleId` | UUID | ```typescript -const result = await db.query.stepsAchieved({ vlevel: '', vroleId: '' }).execute(); +const result = await db.query.stepsAchieved({ vlevel: '', vroleId: '' }).execute(); ``` ### `db.query.revParse` @@ -4395,7 +4285,7 @@ revParse | `refname` | String | ```typescript -const result = await db.query.revParse({ dbId: '', storeId: '', refname: '' }).execute(); +const result = await db.query.revParse({ dbId: '', storeId: '', refname: '' }).execute(); ``` ### `db.query.orgIsManagerOf` @@ -4413,7 +4303,7 @@ orgIsManagerOf | `pMaxDepth` | Int | ```typescript -const result = await db.query.orgIsManagerOf({ pEntityId: '', pManagerId: '', pUserId: '', pMaxDepth: '' }).execute(); +const result = await db.query.orgIsManagerOf({ pEntityId: '', pManagerId: '', pUserId: '', pMaxDepth: '' }).execute(); ``` ### `db.query.appPermissionsGetMask` @@ -4428,7 +4318,7 @@ appPermissionsGetMask | `ids` | [UUID] | ```typescript -const result = await db.query.appPermissionsGetMask({ ids: '' }).execute(); +const result = await db.query.appPermissionsGetMask({ ids: '' }).execute(); ``` ### `db.query.orgPermissionsGetMask` @@ -4443,7 +4333,7 @@ orgPermissionsGetMask | `ids` | [UUID] | ```typescript -const result = await db.query.orgPermissionsGetMask({ ids: '' }).execute(); +const result = await db.query.orgPermissionsGetMask({ ids: '' }).execute(); ``` ### `db.query.appPermissionsGetMaskByNames` @@ -4458,7 +4348,7 @@ appPermissionsGetMaskByNames | `names` | [String] | ```typescript -const result = await db.query.appPermissionsGetMaskByNames({ names: '' }).execute(); +const result = await db.query.appPermissionsGetMaskByNames({ names: '' }).execute(); ``` ### `db.query.orgPermissionsGetMaskByNames` @@ -4473,7 +4363,7 @@ orgPermissionsGetMaskByNames | `names` | [String] | ```typescript -const result = await db.query.orgPermissionsGetMaskByNames({ names: '' }).execute(); +const result = await db.query.orgPermissionsGetMaskByNames({ names: '' }).execute(); ``` ### `db.query.getAllObjectsFromRoot` @@ -4492,7 +4382,7 @@ Reads and enables pagination through a set of `Object`. | `after` | Cursor | ```typescript -const result = await db.query.getAllObjectsFromRoot({ databaseId: '', id: '', first: '', offset: '', after: '' }).execute(); +const result = await db.query.getAllObjectsFromRoot({ databaseId: '', id: '', first: '', offset: '', after: '' }).execute(); ``` ### `db.query.getPathObjectsFromRoot` @@ -4512,7 +4402,7 @@ Reads and enables pagination through a set of `Object`. | `after` | Cursor | ```typescript -const result = await db.query.getPathObjectsFromRoot({ databaseId: '', id: '', path: '', first: '', offset: '', after: '' }).execute(); +const result = await db.query.getPathObjectsFromRoot({ databaseId: '', id: '', path: '', first: '', offset: '', after: '' }).execute(); ``` ### `db.query.getObjectAtPath` @@ -4530,7 +4420,7 @@ getObjectAtPath | `refname` | String | ```typescript -const result = await db.query.getObjectAtPath({ dbId: '', storeId: '', path: '', refname: '' }).execute(); +const result = await db.query.getObjectAtPath({ dbId: '', storeId: '', path: '', refname: '' }).execute(); ``` ### `db.query.appPermissionsGetByMask` @@ -4548,7 +4438,7 @@ Reads and enables pagination through a set of `AppPermission`. | `after` | Cursor | ```typescript -const result = await db.query.appPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute(); +const result = await db.query.appPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute(); ``` ### `db.query.orgPermissionsGetByMask` @@ -4566,7 +4456,7 @@ Reads and enables pagination through a set of `OrgPermission`. | `after` | Cursor | ```typescript -const result = await db.query.orgPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute(); +const result = await db.query.orgPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute(); ``` ### `db.query.stepsRequired` @@ -4585,7 +4475,7 @@ Reads and enables pagination through a set of `AppLevelRequirement`. | `after` | Cursor | ```typescript -const result = await db.query.stepsRequired({ vlevel: '', vroleId: '', first: '', offset: '', after: '' }).execute(); +const result = await db.query.stepsRequired({ vlevel: '', vroleId: '', first: '', offset: '', after: '' }).execute(); ``` ### `db.query.currentUser` @@ -4599,6 +4489,21 @@ currentUser const result = await db.query.currentUser().execute(); ``` +### `db.mutation.sendAccountDeletionEmail` + +sendAccountDeletionEmail + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SendAccountDeletionEmailInput (required) | + +```typescript +const result = await db.mutation.sendAccountDeletionEmail({ input: '' }).execute(); +``` + ### `db.mutation.signOut` signOut @@ -4611,97 +4516,97 @@ signOut | `input` | SignOutInput (required) | ```typescript -const result = await db.mutation.signOut({ input: '' }).execute(); +const result = await db.mutation.signOut({ input: '' }).execute(); ``` -### `db.mutation.sendAccountDeletionEmail` +### `db.mutation.acceptDatabaseTransfer` -sendAccountDeletionEmail +acceptDatabaseTransfer - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | SendAccountDeletionEmailInput (required) | + | `input` | AcceptDatabaseTransferInput (required) | ```typescript -const result = await db.mutation.sendAccountDeletionEmail({ input: '' }).execute(); +const result = await db.mutation.acceptDatabaseTransfer({ input: { transferId: '' } }).execute(); ``` -### `db.mutation.checkPassword` +### `db.mutation.cancelDatabaseTransfer` -checkPassword +cancelDatabaseTransfer - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | CheckPasswordInput (required) | + | `input` | CancelDatabaseTransferInput (required) | ```typescript -const result = await db.mutation.checkPassword({ input: '' }).execute(); +const result = await db.mutation.cancelDatabaseTransfer({ input: { transferId: '' } }).execute(); ``` -### `db.mutation.submitInviteCode` +### `db.mutation.rejectDatabaseTransfer` -submitInviteCode +rejectDatabaseTransfer - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | SubmitInviteCodeInput (required) | + | `input` | RejectDatabaseTransferInput (required) | ```typescript -const result = await db.mutation.submitInviteCode({ input: '' }).execute(); +const result = await db.mutation.rejectDatabaseTransfer({ input: { transferId: '' } }).execute(); ``` -### `db.mutation.submitOrgInviteCode` +### `db.mutation.submitInviteCode` -submitOrgInviteCode +submitInviteCode - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | SubmitOrgInviteCodeInput (required) | + | `input` | SubmitInviteCodeInput (required) | ```typescript -const result = await db.mutation.submitOrgInviteCode({ input: '' }).execute(); +const result = await db.mutation.submitInviteCode({ input: { token: '' } }).execute(); ``` -### `db.mutation.freezeObjects` +### `db.mutation.submitOrgInviteCode` -freezeObjects +submitOrgInviteCode - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | FreezeObjectsInput (required) | + | `input` | SubmitOrgInviteCodeInput (required) | ```typescript -const result = await db.mutation.freezeObjects({ input: '' }).execute(); +const result = await db.mutation.submitOrgInviteCode({ input: { token: '' } }).execute(); ``` -### `db.mutation.initEmptyRepo` +### `db.mutation.checkPassword` -initEmptyRepo +checkPassword - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | InitEmptyRepoInput (required) | + | `input` | CheckPasswordInput (required) | ```typescript -const result = await db.mutation.initEmptyRepo({ input: '' }).execute(); +const result = await db.mutation.checkPassword({ input: { password: '' } }).execute(); ``` ### `db.mutation.confirmDeleteAccount` @@ -4716,7 +4621,7 @@ confirmDeleteAccount | `input` | ConfirmDeleteAccountInput (required) | ```typescript -const result = await db.mutation.confirmDeleteAccount({ input: '' }).execute(); +const result = await db.mutation.confirmDeleteAccount({ input: { userId: '', token: '' } }).execute(); ``` ### `db.mutation.setPassword` @@ -4731,7 +4636,7 @@ setPassword | `input` | SetPasswordInput (required) | ```typescript -const result = await db.mutation.setPassword({ input: '' }).execute(); +const result = await db.mutation.setPassword({ input: { currentPassword: '', newPassword: '' } }).execute(); ``` ### `db.mutation.verifyEmail` @@ -4746,67 +4651,82 @@ verifyEmail | `input` | VerifyEmailInput (required) | ```typescript -const result = await db.mutation.verifyEmail({ input: '' }).execute(); +const result = await db.mutation.verifyEmail({ input: { emailId: '', token: '' } }).execute(); ``` -### `db.mutation.removeNodeAtPath` +### `db.mutation.freezeObjects` -removeNodeAtPath +freezeObjects - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | RemoveNodeAtPathInput (required) | + | `input` | FreezeObjectsInput (required) | ```typescript -const result = await db.mutation.removeNodeAtPath({ input: '' }).execute(); +const result = await db.mutation.freezeObjects({ input: { databaseId: '', id: '' } }).execute(); ``` -### `db.mutation.resetPassword` +### `db.mutation.initEmptyRepo` -resetPassword +initEmptyRepo - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | ResetPasswordInput (required) | + | `input` | InitEmptyRepoInput (required) | ```typescript -const result = await db.mutation.resetPassword({ input: '' }).execute(); +const result = await db.mutation.initEmptyRepo({ input: { dbId: '', storeId: '' } }).execute(); ``` -### `db.mutation.bootstrapUser` +### `db.mutation.constructBlueprint` -bootstrapUser +Executes a draft blueprint definition. Four phases: (1) create tables with nodes[], fields, and policies[], (2) create relations between tables, (3) create indexes on table fields (supports BTREE, HNSW, GIN, GIST, BM25, etc.), (4) create full-text search configurations with weighted multi-field TSVector support. nodes[] entries can be strings or {$type, data} objects. Relations use $type for relation_type with junction config in data. Indexes reference table_ref + column name(s) and are resolved to field_ids. Full-text searches reference table_ref + tsvector field + source fields with weights/langs. Builds a ref_map of local ref names to created table UUIDs. Updates blueprint status to constructed (or failed with error_details). Returns the ref_map. - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | BootstrapUserInput (required) | + | `input` | ConstructBlueprintInput (required) | ```typescript -const result = await db.mutation.bootstrapUser({ input: '' }).execute(); +const result = await db.mutation.constructBlueprint({ input: { blueprintId: '', schemaId: '' } }).execute(); ``` -### `db.mutation.setFieldOrder` +### `db.mutation.resetPassword` -setFieldOrder +resetPassword - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | SetFieldOrderInput (required) | + | `input` | ResetPasswordInput (required) | + +```typescript +const result = await db.mutation.resetPassword({ input: { roleId: '', resetToken: '', newPassword: '' } }).execute(); +``` + +### `db.mutation.removeNodeAtPath` + +removeNodeAtPath + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | RemoveNodeAtPathInput (required) | ```typescript -const result = await db.mutation.setFieldOrder({ input: '' }).execute(); +const result = await db.mutation.removeNodeAtPath({ input: { dbId: '', root: '', path: '' } }).execute(); ``` ### `db.mutation.setDataAtPath` @@ -4821,7 +4741,7 @@ setDataAtPath | `input` | SetDataAtPathInput (required) | ```typescript -const result = await db.mutation.setDataAtPath({ input: '' }).execute(); +const result = await db.mutation.setDataAtPath({ input: { dbId: '', root: '', path: '', data: '' } }).execute(); ``` ### `db.mutation.setPropsAndCommit` @@ -4836,7 +4756,22 @@ setPropsAndCommit | `input` | SetPropsAndCommitInput (required) | ```typescript -const result = await db.mutation.setPropsAndCommit({ input: '' }).execute(); +const result = await db.mutation.setPropsAndCommit({ input: { dbId: '', storeId: '', refname: '', path: '', data: '' } }).execute(); +``` + +### `db.mutation.copyTemplateToBlueprint` + +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. + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | CopyTemplateToBlueprintInput (required) | + +```typescript +const result = await db.mutation.copyTemplateToBlueprint({ input: { templateId: '', databaseId: '', ownerId: '', nameOverride: '', displayNameOverride: '' } }).execute(); ``` ### `db.mutation.provisionDatabaseWithUser` @@ -4851,7 +4786,37 @@ provisionDatabaseWithUser | `input` | ProvisionDatabaseWithUserInput (required) | ```typescript -const result = await db.mutation.provisionDatabaseWithUser({ input: '' }).execute(); +const result = await db.mutation.provisionDatabaseWithUser({ input: { pDatabaseName: '', pDomain: '', pSubdomain: '', pModules: '', pOptions: '' } }).execute(); +``` + +### `db.mutation.bootstrapUser` + +bootstrapUser + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | BootstrapUserInput (required) | + +```typescript +const result = await db.mutation.bootstrapUser({ input: '' }).execute(); +``` + +### `db.mutation.setFieldOrder` + +setFieldOrder + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SetFieldOrderInput (required) | + +```typescript +const result = await db.mutation.setFieldOrder({ input: { fieldIds: '' } }).execute(); ``` ### `db.mutation.insertNodeAtPath` @@ -4866,7 +4831,7 @@ insertNodeAtPath | `input` | InsertNodeAtPathInput (required) | ```typescript -const result = await db.mutation.insertNodeAtPath({ input: '' }).execute(); +const result = await db.mutation.insertNodeAtPath({ input: '' }).execute(); ``` ### `db.mutation.updateNodeAtPath` @@ -4881,7 +4846,7 @@ updateNodeAtPath | `input` | UpdateNodeAtPathInput (required) | ```typescript -const result = await db.mutation.updateNodeAtPath({ input: '' }).execute(); +const result = await db.mutation.updateNodeAtPath({ input: '' }).execute(); ``` ### `db.mutation.setAndCommit` @@ -4896,7 +4861,7 @@ setAndCommit | `input` | SetAndCommitInput (required) | ```typescript -const result = await db.mutation.setAndCommit({ input: '' }).execute(); +const result = await db.mutation.setAndCommit({ input: '' }).execute(); ``` ### `db.mutation.applyRls` @@ -4911,7 +4876,7 @@ applyRls | `input` | ApplyRlsInput (required) | ```typescript -const result = await db.mutation.applyRls({ input: '' }).execute(); +const result = await db.mutation.applyRls({ input: '' }).execute(); ``` ### `db.mutation.signInOneTimeToken` @@ -4926,7 +4891,7 @@ signInOneTimeToken | `input` | SignInOneTimeTokenInput (required) | ```typescript -const result = await db.mutation.signInOneTimeToken({ input: '' }).execute(); +const result = await db.mutation.signInOneTimeToken({ input: { token: '', credentialKind: '' } }).execute(); ``` ### `db.mutation.createUserDatabase` @@ -4957,7 +4922,7 @@ Example usage: | `input` | CreateUserDatabaseInput (required) | ```typescript -const result = await db.mutation.createUserDatabase({ input: '' }).execute(); +const result = await db.mutation.createUserDatabase({ input: '' }).execute(); ``` ### `db.mutation.extendTokenExpires` @@ -4972,7 +4937,7 @@ extendTokenExpires | `input` | ExtendTokenExpiresInput (required) | ```typescript -const result = await db.mutation.extendTokenExpires({ input: '' }).execute(); +const result = await db.mutation.extendTokenExpires({ input: { amount: '' } }).execute(); ``` ### `db.mutation.signIn` @@ -4987,7 +4952,7 @@ signIn | `input` | SignInInput (required) | ```typescript -const result = await db.mutation.signIn({ input: '' }).execute(); +const result = await db.mutation.signIn({ input: { email: '', password: '', rememberMe: '', credentialKind: '', csrfToken: '' } }).execute(); ``` ### `db.mutation.signUp` @@ -5002,7 +4967,7 @@ signUp | `input` | SignUpInput (required) | ```typescript -const result = await db.mutation.signUp({ input: '' }).execute(); +const result = await db.mutation.signUp({ input: { email: '', password: '', rememberMe: '', credentialKind: '', csrfToken: '' } }).execute(); ``` ### `db.mutation.oneTimeToken` @@ -5017,37 +4982,37 @@ oneTimeToken | `input` | OneTimeTokenInput (required) | ```typescript -const result = await db.mutation.oneTimeToken({ input: '' }).execute(); +const result = await db.mutation.oneTimeToken({ input: { email: '', password: '', origin: '', rememberMe: '' } }).execute(); ``` -### `db.mutation.forgotPassword` +### `db.mutation.sendVerificationEmail` -forgotPassword +sendVerificationEmail - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | ForgotPasswordInput (required) | + | `input` | SendVerificationEmailInput (required) | ```typescript -const result = await db.mutation.forgotPassword({ input: '' }).execute(); +const result = await db.mutation.sendVerificationEmail({ input: { email: '' } }).execute(); ``` -### `db.mutation.sendVerificationEmail` +### `db.mutation.forgotPassword` -sendVerificationEmail +forgotPassword - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | SendVerificationEmailInput (required) | + | `input` | ForgotPasswordInput (required) | ```typescript -const result = await db.mutation.sendVerificationEmail({ input: '' }).execute(); +const result = await db.mutation.forgotPassword({ input: { email: '' } }).execute(); ``` ### `db.mutation.verifyPassword` @@ -5062,7 +5027,7 @@ verifyPassword | `input` | VerifyPasswordInput (required) | ```typescript -const result = await db.mutation.verifyPassword({ input: '' }).execute(); +const result = await db.mutation.verifyPassword({ input: { password: '' } }).execute(); ``` ### `db.mutation.verifyTotp` @@ -5077,7 +5042,7 @@ verifyTotp | `input` | VerifyTotpInput (required) | ```typescript -const result = await db.mutation.verifyTotp({ input: '' }).execute(); +const result = await db.mutation.verifyTotp({ input: { totpValue: '' } }).execute(); ``` --- diff --git a/sdk/constructive-cli/src/public/orm/index.ts b/sdk/constructive-cli/src/public/orm/index.ts index 6a3b7a11a..d759fa015 100644 --- a/sdk/constructive-cli/src/public/orm/index.ts +++ b/sdk/constructive-cli/src/public/orm/index.ts @@ -5,9 +5,9 @@ */ import { OrmClient } from './client'; import type { OrmClientConfig } from './client'; +import { GetAllRecordModel } from './models/getAllRecord'; import { OrgGetManagersRecordModel } from './models/orgGetManagersRecord'; import { OrgGetSubordinatesRecordModel } from './models/orgGetSubordinatesRecord'; -import { GetAllRecordModel } from './models/getAllRecord'; import { ObjectModel } from './models/object'; import { AppPermissionModel } from './models/appPermission'; import { OrgPermissionModel } from './models/orgPermission'; @@ -29,11 +29,13 @@ import { ViewModel } from './models/view'; import { ViewTableModel } from './models/viewTable'; import { ViewGrantModel } from './models/viewGrant'; import { ViewRuleModel } from './models/viewRule'; +import { EmbeddingChunkModel } from './models/embeddingChunk'; import { TableTemplateModuleModel } from './models/tableTemplateModule'; import { SecureTableProvisionModel } from './models/secureTableProvision'; import { RelationProvisionModel } from './models/relationProvision'; import { SchemaGrantModel } from './models/schemaGrant'; import { DefaultPrivilegeModel } from './models/defaultPrivilege'; +import { EnumModel } from './models/enum'; import { ApiSchemaModel } from './models/apiSchema'; import { ApiModuleModel } from './models/apiModule'; import { DomainModel } from './models/domain'; @@ -41,6 +43,7 @@ import { SiteMetadatumModel } from './models/siteMetadatum'; import { SiteModuleModel } from './models/siteModule'; import { SiteThemeModel } from './models/siteTheme'; import { TriggerFunctionModel } from './models/triggerFunction'; +import { DatabaseTransferModel } from './models/databaseTransfer'; import { ApiModel } from './models/api'; import { SiteModel } from './models/site'; import { AppModel } from './models/app'; @@ -64,7 +67,8 @@ import { SecretsModuleModel } from './models/secretsModule'; import { SessionsModuleModel } from './models/sessionsModule'; import { UserAuthModuleModel } from './models/userAuthModule'; import { UsersModuleModel } from './models/usersModule'; -import { UuidModuleModel } from './models/uuidModule'; +import { BlueprintModel } from './models/blueprint'; +import { BlueprintTemplateModel } from './models/blueprintTemplate'; import { DatabaseProvisionModuleModel } from './models/databaseProvisionModule'; import { AppAdminGrantModel } from './models/appAdminGrant'; import { AppOwnerGrantModel } from './models/appOwnerGrant'; @@ -76,34 +80,34 @@ import { OrgOwnerGrantModel } from './models/orgOwnerGrant'; import { OrgGrantModel } from './models/orgGrant'; import { OrgChartEdgeModel } from './models/orgChartEdge'; import { OrgChartEdgeGrantModel } from './models/orgChartEdgeGrant'; +import { OrgPermissionDefaultModel } from './models/orgPermissionDefault'; import { AppLimitModel } from './models/appLimit'; import { OrgLimitModel } from './models/orgLimit'; import { AppStepModel } from './models/appStep'; import { AppAchievementModel } from './models/appAchievement'; +import { AppLevelModel } from './models/appLevel'; +import { EmailModel } from './models/email'; +import { PhoneNumberModel } from './models/phoneNumber'; +import { CryptoAddressModel } from './models/cryptoAddress'; +import { ConnectedAccountModel } from './models/connectedAccount'; import { InviteModel } from './models/invite'; import { ClaimedInviteModel } from './models/claimedInvite'; import { OrgInviteModel } from './models/orgInvite'; import { OrgClaimedInviteModel } from './models/orgClaimedInvite'; +import { AuditLogModel } from './models/auditLog'; import { RefModel } from './models/ref'; import { StoreModel } from './models/store'; import { AppPermissionDefaultModel } from './models/appPermissionDefault'; -import { CryptoAddressModel } from './models/cryptoAddress'; import { RoleTypeModel } from './models/roleType'; -import { OrgPermissionDefaultModel } from './models/orgPermissionDefault'; -import { PhoneNumberModel } from './models/phoneNumber'; import { AppLimitDefaultModel } from './models/appLimitDefault'; import { OrgLimitDefaultModel } from './models/orgLimitDefault'; -import { ConnectedAccountModel } from './models/connectedAccount'; import { NodeTypeRegistryModel } from './models/nodeTypeRegistry'; import { MembershipTypeModel } from './models/membershipType'; import { CommitModel } from './models/commit'; import { AppMembershipDefaultModel } from './models/appMembershipDefault'; import { RlsModuleModel } from './models/rlsModule'; import { OrgMembershipDefaultModel } from './models/orgMembershipDefault'; -import { AuditLogModel } from './models/auditLog'; -import { AppLevelModel } from './models/appLevel'; import { SqlMigrationModel } from './models/sqlMigration'; -import { EmailModel } from './models/email'; import { UserModel } from './models/user'; import { AstMigrationModel } from './models/astMigration'; import { AppMembershipModel } from './models/appMembership'; @@ -144,9 +148,9 @@ export { createMutationOperations } from './mutation'; export function createClient(config: OrmClientConfig) { const client = new OrmClient(config); return { + getAllRecord: new GetAllRecordModel(client), orgGetManagersRecord: new OrgGetManagersRecordModel(client), orgGetSubordinatesRecord: new OrgGetSubordinatesRecordModel(client), - getAllRecord: new GetAllRecordModel(client), object: new ObjectModel(client), appPermission: new AppPermissionModel(client), orgPermission: new OrgPermissionModel(client), @@ -168,11 +172,13 @@ export function createClient(config: OrmClientConfig) { viewTable: new ViewTableModel(client), viewGrant: new ViewGrantModel(client), viewRule: new ViewRuleModel(client), + embeddingChunk: new EmbeddingChunkModel(client), tableTemplateModule: new TableTemplateModuleModel(client), secureTableProvision: new SecureTableProvisionModel(client), relationProvision: new RelationProvisionModel(client), schemaGrant: new SchemaGrantModel(client), defaultPrivilege: new DefaultPrivilegeModel(client), + enum: new EnumModel(client), apiSchema: new ApiSchemaModel(client), apiModule: new ApiModuleModel(client), domain: new DomainModel(client), @@ -180,6 +186,7 @@ export function createClient(config: OrmClientConfig) { siteModule: new SiteModuleModel(client), siteTheme: new SiteThemeModel(client), triggerFunction: new TriggerFunctionModel(client), + databaseTransfer: new DatabaseTransferModel(client), api: new ApiModel(client), site: new SiteModel(client), app: new AppModel(client), @@ -203,7 +210,8 @@ export function createClient(config: OrmClientConfig) { sessionsModule: new SessionsModuleModel(client), userAuthModule: new UserAuthModuleModel(client), usersModule: new UsersModuleModel(client), - uuidModule: new UuidModuleModel(client), + blueprint: new BlueprintModel(client), + blueprintTemplate: new BlueprintTemplateModel(client), databaseProvisionModule: new DatabaseProvisionModuleModel(client), appAdminGrant: new AppAdminGrantModel(client), appOwnerGrant: new AppOwnerGrantModel(client), @@ -215,34 +223,34 @@ export function createClient(config: OrmClientConfig) { orgGrant: new OrgGrantModel(client), orgChartEdge: new OrgChartEdgeModel(client), orgChartEdgeGrant: new OrgChartEdgeGrantModel(client), + orgPermissionDefault: new OrgPermissionDefaultModel(client), appLimit: new AppLimitModel(client), orgLimit: new OrgLimitModel(client), appStep: new AppStepModel(client), appAchievement: new AppAchievementModel(client), + appLevel: new AppLevelModel(client), + email: new EmailModel(client), + phoneNumber: new PhoneNumberModel(client), + cryptoAddress: new CryptoAddressModel(client), + connectedAccount: new ConnectedAccountModel(client), invite: new InviteModel(client), claimedInvite: new ClaimedInviteModel(client), orgInvite: new OrgInviteModel(client), orgClaimedInvite: new OrgClaimedInviteModel(client), + auditLog: new AuditLogModel(client), ref: new RefModel(client), store: new StoreModel(client), appPermissionDefault: new AppPermissionDefaultModel(client), - cryptoAddress: new CryptoAddressModel(client), roleType: new RoleTypeModel(client), - orgPermissionDefault: new OrgPermissionDefaultModel(client), - phoneNumber: new PhoneNumberModel(client), appLimitDefault: new AppLimitDefaultModel(client), orgLimitDefault: new OrgLimitDefaultModel(client), - connectedAccount: new ConnectedAccountModel(client), nodeTypeRegistry: new NodeTypeRegistryModel(client), membershipType: new MembershipTypeModel(client), commit: new CommitModel(client), appMembershipDefault: new AppMembershipDefaultModel(client), rlsModule: new RlsModuleModel(client), orgMembershipDefault: new OrgMembershipDefaultModel(client), - auditLog: new AuditLogModel(client), - appLevel: new AppLevelModel(client), sqlMigration: new SqlMigrationModel(client), - email: new EmailModel(client), user: new UserModel(client), astMigration: new AstMigrationModel(client), appMembership: new AppMembershipModel(client), diff --git a/sdk/constructive-cli/src/public/orm/input-types.ts b/sdk/constructive-cli/src/public/orm/input-types.ts index f4141b254..e14d65708 100644 --- a/sdk/constructive-cli/src/public/orm/input-types.ts +++ b/sdk/constructive-cli/src/public/orm/input-types.ts @@ -240,6 +240,10 @@ export type ConstructiveInternalTypeImage = unknown; export type ConstructiveInternalTypeOrigin = unknown; export type ConstructiveInternalTypeUrl = unknown; // ============ Entity Types ============ +export interface GetAllRecord { + path?: string[] | null; + data?: Record | null; +} export interface OrgGetManagersRecord { userId?: string | null; depth?: number | null; @@ -248,16 +252,12 @@ export interface OrgGetSubordinatesRecord { userId?: string | null; depth?: number | null; } -export interface GetAllRecord { - path?: string | null; - data?: Record | null; -} export interface Object { hashUuid?: string | null; id: string; databaseId?: string | null; - kids?: string | null; - ktree?: string | null; + kids?: string[] | null; + ktree?: string[] | null; data?: Record | null; frzn?: boolean | null; createdAt?: string | null; @@ -273,10 +273,6 @@ export interface AppPermission { bitstr?: string | null; /** Human-readable description of what this permission allows */ description?: string | null; - /** TRGM similarity when searching `description`. Returns null when no trgm search filter is active. */ - descriptionTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } /** Defines available permissions as named bits within a bitmask, used by the RBAC system for access control */ export interface OrgPermission { @@ -289,10 +285,6 @@ export interface OrgPermission { bitstr?: string | null; /** Human-readable description of what this permission allows */ description?: string | null; - /** TRGM similarity when searching `description`. Returns null when no trgm search filter is active. */ - descriptionTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } /** Defines the specific requirements that must be met to achieve a level */ export interface AppLevelRequirement { @@ -309,10 +301,6 @@ export interface AppLevelRequirement { priority?: number | null; createdAt?: string | null; updatedAt?: string | null; - /** TRGM similarity when searching `description`. Returns null when no trgm search filter is active. */ - descriptionTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface Database { id: string; @@ -323,14 +311,6 @@ export interface Database { hash?: string | null; createdAt?: string | null; updatedAt?: string | null; - /** TRGM similarity when searching `schemaHash`. Returns null when no trgm search filter is active. */ - schemaHashTrgmSimilarity?: number | null; - /** TRGM similarity when searching `name`. Returns null when no trgm search filter is active. */ - nameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `label`. Returns null when no trgm search filter is active. */ - labelTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface Schema { id: string; @@ -343,22 +323,10 @@ export interface Schema { category?: ObjectCategory | null; module?: string | null; scope?: number | null; - tags?: string | null; + tags?: string[] | null; isPublic?: boolean | null; createdAt?: string | null; updatedAt?: string | null; - /** TRGM similarity when searching `name`. Returns null when no trgm search filter is active. */ - nameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `schemaName`. Returns null when no trgm search filter is active. */ - schemaNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `label`. Returns null when no trgm search filter is active. */ - labelTrgmSimilarity?: number | null; - /** TRGM similarity when searching `description`. Returns null when no trgm search filter is active. */ - descriptionTrgmSimilarity?: number | null; - /** TRGM similarity when searching `module`. Returns null when no trgm search filter is active. */ - moduleTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface Table { id: string; @@ -376,24 +344,10 @@ export interface Table { peoplestamps?: boolean | null; pluralName?: string | null; singularName?: string | null; - tags?: string | null; + tags?: string[] | null; inheritsId?: string | null; createdAt?: string | null; updatedAt?: string | null; - /** TRGM similarity when searching `name`. Returns null when no trgm search filter is active. */ - nameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `label`. Returns null when no trgm search filter is active. */ - labelTrgmSimilarity?: number | null; - /** TRGM similarity when searching `description`. Returns null when no trgm search filter is active. */ - descriptionTrgmSimilarity?: number | null; - /** TRGM similarity when searching `module`. Returns null when no trgm search filter is active. */ - moduleTrgmSimilarity?: number | null; - /** TRGM similarity when searching `pluralName`. Returns null when no trgm search filter is active. */ - pluralNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `singularName`. Returns null when no trgm search filter is active. */ - singularNameTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface CheckConstraint { id: string; @@ -401,23 +355,15 @@ export interface CheckConstraint { tableId?: string | null; name?: string | null; type?: string | null; - fieldIds?: string | null; + fieldIds?: string[] | null; expr?: Record | null; smartTags?: Record | null; category?: ObjectCategory | null; module?: string | null; scope?: number | null; - tags?: string | null; + tags?: string[] | null; createdAt?: string | null; updatedAt?: string | null; - /** TRGM similarity when searching `name`. Returns null when no trgm search filter is active. */ - nameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `type`. Returns null when no trgm search filter is active. */ - typeTrgmSimilarity?: number | null; - /** TRGM similarity when searching `module`. Returns null when no trgm search filter is active. */ - moduleTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface Field { id: string; @@ -428,6 +374,7 @@ export interface Field { description?: string | null; smartTags?: Record | null; isRequired?: boolean | null; + apiRequired?: boolean | null; defaultValue?: string | null; defaultValueAst?: Record | null; isHidden?: boolean | null; @@ -438,26 +385,12 @@ export interface Field { chkExpr?: Record | null; min?: number | null; max?: number | null; - tags?: string | null; + tags?: string[] | null; category?: ObjectCategory | null; module?: string | null; scope?: number | null; createdAt?: string | null; updatedAt?: string | null; - /** TRGM similarity when searching `name`. Returns null when no trgm search filter is active. */ - nameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `label`. Returns null when no trgm search filter is active. */ - labelTrgmSimilarity?: number | null; - /** TRGM similarity when searching `description`. Returns null when no trgm search filter is active. */ - descriptionTrgmSimilarity?: number | null; - /** TRGM similarity when searching `defaultValue`. Returns null when no trgm search filter is active. */ - defaultValueTrgmSimilarity?: number | null; - /** TRGM similarity when searching `regexp`. Returns null when no trgm search filter is active. */ - regexpTrgmSimilarity?: number | null; - /** TRGM similarity when searching `module`. Returns null when no trgm search filter is active. */ - moduleTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface ForeignKeyConstraint { id: string; @@ -467,40 +400,26 @@ export interface ForeignKeyConstraint { description?: string | null; smartTags?: Record | null; type?: string | null; - fieldIds?: string | null; + fieldIds?: string[] | null; refTableId?: string | null; - refFieldIds?: string | null; + refFieldIds?: string[] | null; deleteAction?: string | null; updateAction?: string | null; category?: ObjectCategory | null; module?: string | null; scope?: number | null; - tags?: string | null; + tags?: string[] | null; createdAt?: string | null; updatedAt?: string | null; - /** TRGM similarity when searching `name`. Returns null when no trgm search filter is active. */ - nameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `description`. Returns null when no trgm search filter is active. */ - descriptionTrgmSimilarity?: number | null; - /** TRGM similarity when searching `type`. Returns null when no trgm search filter is active. */ - typeTrgmSimilarity?: number | null; - /** TRGM similarity when searching `deleteAction`. Returns null when no trgm search filter is active. */ - deleteActionTrgmSimilarity?: number | null; - /** TRGM similarity when searching `updateAction`. Returns null when no trgm search filter is active. */ - updateActionTrgmSimilarity?: number | null; - /** TRGM similarity when searching `module`. Returns null when no trgm search filter is active. */ - moduleTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface FullTextSearch { id: string; databaseId?: string | null; tableId?: string | null; fieldId?: string | null; - fieldIds?: string | null; - weights?: string | null; - langs?: string | null; + fieldIds?: string[] | null; + weights?: string[] | null; + langs?: string[] | null; createdAt?: string | null; updatedAt?: string | null; } @@ -509,29 +428,21 @@ export interface Index { databaseId?: string | null; tableId?: string | null; name?: string | null; - fieldIds?: string | null; - includeFieldIds?: string | null; + fieldIds?: string[] | null; + includeFieldIds?: string[] | null; accessMethod?: string | null; indexParams?: Record | null; whereClause?: Record | null; isUnique?: boolean | null; options?: Record | null; - opClasses?: string | null; + opClasses?: string[] | null; smartTags?: Record | null; category?: ObjectCategory | null; module?: string | null; scope?: number | null; - tags?: string | null; + tags?: string[] | null; createdAt?: string | null; updatedAt?: string | null; - /** TRGM similarity when searching `name`. Returns null when no trgm search filter is active. */ - nameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `accessMethod`. Returns null when no trgm search filter is active. */ - accessMethodTrgmSimilarity?: number | null; - /** TRGM similarity when searching `module`. Returns null when no trgm search filter is active. */ - moduleTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface Policy { id: string; @@ -548,21 +459,9 @@ export interface Policy { category?: ObjectCategory | null; module?: string | null; scope?: number | null; - tags?: string | null; + tags?: string[] | null; createdAt?: string | null; updatedAt?: string | null; - /** TRGM similarity when searching `name`. Returns null when no trgm search filter is active. */ - nameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `granteeName`. Returns null when no trgm search filter is active. */ - granteeNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `privilege`. Returns null when no trgm search filter is active. */ - privilegeTrgmSimilarity?: number | null; - /** TRGM similarity when searching `policyType`. Returns null when no trgm search filter is active. */ - policyTypeTrgmSimilarity?: number | null; - /** TRGM similarity when searching `module`. Returns null when no trgm search filter is active. */ - moduleTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface PrimaryKeyConstraint { id: string; @@ -570,22 +469,14 @@ export interface PrimaryKeyConstraint { tableId?: string | null; name?: string | null; type?: string | null; - fieldIds?: string | null; + fieldIds?: string[] | null; smartTags?: Record | null; category?: ObjectCategory | null; module?: string | null; scope?: number | null; - tags?: string | null; + tags?: string[] | null; createdAt?: string | null; updatedAt?: string | null; - /** TRGM similarity when searching `name`. Returns null when no trgm search filter is active. */ - nameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `type`. Returns null when no trgm search filter is active. */ - typeTrgmSimilarity?: number | null; - /** TRGM similarity when searching `module`. Returns null when no trgm search filter is active. */ - moduleTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface TableGrant { id: string; @@ -593,16 +484,10 @@ export interface TableGrant { tableId?: string | null; privilege?: string | null; granteeName?: string | null; - fieldIds?: string | null; + fieldIds?: string[] | null; isGrant?: boolean | null; createdAt?: string | null; updatedAt?: string | null; - /** TRGM similarity when searching `privilege`. Returns null when no trgm search filter is active. */ - privilegeTrgmSimilarity?: number | null; - /** TRGM similarity when searching `granteeName`. Returns null when no trgm search filter is active. */ - granteeNameTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface Trigger { id: string; @@ -615,19 +500,9 @@ export interface Trigger { category?: ObjectCategory | null; module?: string | null; scope?: number | null; - tags?: string | null; + tags?: string[] | null; createdAt?: string | null; updatedAt?: string | null; - /** TRGM similarity when searching `name`. Returns null when no trgm search filter is active. */ - nameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `event`. Returns null when no trgm search filter is active. */ - eventTrgmSimilarity?: number | null; - /** TRGM similarity when searching `functionName`. Returns null when no trgm search filter is active. */ - functionNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `module`. Returns null when no trgm search filter is active. */ - moduleTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface UniqueConstraint { id: string; @@ -637,23 +512,13 @@ export interface UniqueConstraint { description?: string | null; smartTags?: Record | null; type?: string | null; - fieldIds?: string | null; + fieldIds?: string[] | null; category?: ObjectCategory | null; module?: string | null; scope?: number | null; - tags?: string | null; + tags?: string[] | null; createdAt?: string | null; updatedAt?: string | null; - /** TRGM similarity when searching `name`. Returns null when no trgm search filter is active. */ - nameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `description`. Returns null when no trgm search filter is active. */ - descriptionTrgmSimilarity?: number | null; - /** TRGM similarity when searching `type`. Returns null when no trgm search filter is active. */ - typeTrgmSimilarity?: number | null; - /** TRGM similarity when searching `module`. Returns null when no trgm search filter is active. */ - moduleTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface View { id: string; @@ -671,17 +536,7 @@ export interface View { category?: ObjectCategory | null; module?: string | null; scope?: number | null; - tags?: string | null; - /** TRGM similarity when searching `name`. Returns null when no trgm search filter is active. */ - nameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `viewType`. Returns null when no trgm search filter is active. */ - viewTypeTrgmSimilarity?: number | null; - /** TRGM similarity when searching `filterType`. Returns null when no trgm search filter is active. */ - filterTypeTrgmSimilarity?: number | null; - /** TRGM similarity when searching `module`. Returns null when no trgm search filter is active. */ - moduleTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; + tags?: string[] | null; } /** Junction table linking views to their joined tables for referential integrity */ export interface ViewTable { @@ -698,12 +553,6 @@ export interface ViewGrant { privilege?: string | null; withGrantOption?: boolean | null; isGrant?: boolean | null; - /** TRGM similarity when searching `granteeName`. Returns null when no trgm search filter is active. */ - granteeNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `privilege`. Returns null when no trgm search filter is active. */ - privilegeTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } /** DO INSTEAD rules for views (e.g., read-only enforcement) */ export interface ViewRule { @@ -715,14 +564,26 @@ export interface ViewRule { event?: string | null; /** NOTHING (for read-only) or custom action */ action?: string | null; - /** TRGM similarity when searching `name`. Returns null when no trgm search filter is active. */ - nameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `event`. Returns null when no trgm search filter is active. */ - eventTrgmSimilarity?: number | null; - /** TRGM similarity when searching `action`. Returns null when no trgm search filter is active. */ - actionTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; +} +export interface EmbeddingChunk { + id: string; + databaseId?: string | null; + tableId?: string | null; + embeddingFieldId?: string | null; + chunksTableId?: string | null; + chunksTableName?: string | null; + contentFieldName?: string | null; + dimensions?: number | null; + metric?: string | null; + chunkSize?: number | null; + chunkOverlap?: number | null; + chunkStrategy?: string | null; + metadataFields?: Record | null; + enqueueChunkingJob?: boolean | null; + chunkingTaskName?: string | null; + parentFkFieldId?: string | null; + createdAt?: string | null; + updatedAt?: string | null; } export interface TableTemplateModule { id: string; @@ -734,12 +595,6 @@ export interface TableTemplateModule { tableName?: string | null; nodeType?: string | null; data?: Record | null; - /** TRGM similarity when searching `tableName`. Returns null when no trgm search filter is active. */ - tableNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `nodeType`. Returns null when no trgm search filter is active. */ - nodeTypeTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } /** Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via node_type, (2) grant privileges via grant_privileges, (3) create RLS policies via policy_type. Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent. */ export interface SecureTableProvision { @@ -757,18 +612,18 @@ export interface SecureTableProvision { nodeType?: string | null; /** If true and Row Level Security is not yet enabled on the target table, enable it. Automatically set to true by the trigger when policy_type is provided. Defaults to true. */ useRls?: boolean | null; - /** Configuration passed to the generator function for field creation (only used when node_type is set). Known keys include: field_name (text, default 'id') for DataId, owner_field_name (text, default 'owner_id') for DataDirectOwner/DataOwnershipInEntity, entity_field_name (text, default 'entity_id') for DataEntityMembership/DataOwnershipInEntity, include_id (boolean, default true) for most node_types, include_user_fk (boolean, default true) to add FK to users table. Defaults to '{}'. */ + /** Configuration passed to the generator function for field creation (only used when node_type is set). Known keys include: field_name (text, default 'id') for DataId, owner_field_name (text, default 'owner_id') for DataDirectOwner/DataOwnershipInEntity, entity_field_name (text, default 'entity_id') for DataEntityMembership/DataOwnershipInEntity, include_id (boolean, default true) for most node_types, include_user_fk (boolean, default true) to add FK to users table, create_index (boolean, default true) to create btree indexes on FK fields for join and cascade performance. Defaults to '{}'. */ nodeData?: Record | null; - /** JSON array of field definition objects to create on the target table. Each object has keys: "name" (text, required), "type" (text, required), "default" (text, optional), "is_required" (boolean, optional, defaults to false), "min" (float, optional), "max" (float, optional), "regexp" (text, optional). min/max generate CHECK constraints: for text/citext they constrain character_length, for integer/float types they constrain the value. regexp generates a CHECK (col ~ pattern) constraint for text/citext. Fields are created via metaschema.create_field() after any node_type generator runs, and their IDs are appended to out_fields. Example: [{"name":"username","type":"citext","max":256,"regexp":"^[a-z0-9_]+$"},{"name":"score","type":"integer","min":0,"max":100}]. Defaults to '[]' (no additional fields). */ - fields?: Record | null; + /** PostgreSQL array of jsonb field definition objects to create on the target table. Each object has keys: "name" (text, required), "type" (text, required), "default" (text, optional), "is_required" (boolean, optional, defaults to false), "min" (float, optional), "max" (float, optional), "regexp" (text, optional), "index" (boolean, optional, defaults to false — creates a btree index on the field). min/max generate CHECK constraints: for text/citext they constrain character_length, for integer/float types they constrain the value. regexp generates a CHECK (col ~ pattern) constraint for text/citext. Fields are created via metaschema.create_field() after any node_type generator runs, and their IDs are appended to out_fields. Example: ARRAY['{"name":"username","type":"citext","max":256,"regexp":"^[a-z0-9_]+$"}'::jsonb, '{"name":"score","type":"integer","min":0,"max":100}'::jsonb]. Defaults to '{}' (no additional fields). */ + fields?: Record[] | null; /** Database roles to grant privileges to. Supports multiple roles, e.g. ARRAY['authenticated', 'admin']. Each role receives all privileges defined in grant_privileges. Defaults to ARRAY['authenticated']. */ - grantRoles?: string | null; - /** Array of [privilege, columns] tuples defining table grants. Examples: [["select","*"],["insert","*"]] for full access, or [["update",["name","bio"]]] for column-level grants. "*" means all columns; an array means column-level grant. Defaults to '[]' (no grants). The trigger validates this is a proper jsonb array. */ - grantPrivileges?: Record | null; + grantRoles?: string[] | null; + /** PostgreSQL array of jsonb [privilege, columns] tuples defining table grants. Examples: ARRAY['["select","*"]'::jsonb, '["insert","*"]'::jsonb] for full access, or ARRAY['["update",["name","bio"]]'::jsonb] for column-level grants. "*" means all columns; an array means column-level grant. Defaults to '{}' (no grants). Type safety is enforced by PostgreSQL at INSERT time. */ + grantPrivileges?: Record[] | null; /** Policy generator type, e.g. 'AuthzEntityMembership', 'AuthzMembership', 'AuthzAllowAll'. NULL means no policy is created. When set, the trigger automatically enables RLS on the target table. */ policyType?: string | null; /** Privileges the policy applies to, e.g. ARRAY['select','update']. NULL means privileges are derived from the grant_privileges verbs. */ - policyPrivileges?: string | null; + policyPrivileges?: string[] | null; /** Role the policy targets. NULL means it falls back to the first role in grant_roles. */ policyRole?: string | null; /** Whether the policy is PERMISSIVE (true) or RESTRICTIVE (false). Defaults to true. */ @@ -778,19 +633,7 @@ export interface SecureTableProvision { /** Opaque configuration passed through to metaschema.create_policy(). Structure varies by policy_type and is not interpreted by this trigger. Defaults to '{}'. */ policyData?: Record | null; /** Output column populated by the trigger after field creation. Contains the UUIDs of the metaschema fields created on the target table by this provision row's generator. NULL when node_type is NULL or before the trigger runs. Callers should not set this directly. */ - outFields?: string | null; - /** TRGM similarity when searching `tableName`. Returns null when no trgm search filter is active. */ - tableNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `nodeType`. Returns null when no trgm search filter is active. */ - nodeTypeTrgmSimilarity?: number | null; - /** TRGM similarity when searching `policyType`. Returns null when no trgm search filter is active. */ - policyTypeTrgmSimilarity?: number | null; - /** TRGM similarity when searching `policyRole`. Returns null when no trgm search filter is active. */ - policyRoleTrgmSimilarity?: number | null; - /** TRGM similarity when searching `policyName`. Returns null when no trgm search filter is active. */ - policyNameTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; + outFields?: string[] | null; } /** * Provisions relational structure between tables. Supports four relation types: @@ -850,6 +693,13 @@ export interface RelationProvision { * Ignored for RelationManyToMany (junction FK fields are always required). */ isRequired?: boolean | null; + /** + * Whether the FK field should be required at the API level even though it is nullable at the database level. Defaults to false. + * When true and is_required is false, the field is created as nullable (allowing SET NULL cascade) but a @requiredInput smart tag is added so PostGraphile treats it as non-null in create/update input types. + * When is_required is true, api_required is ignored (the field is already required at both levels). + * Ignored for RelationManyToMany (junction FK fields are always required). + */ + apiRequired?: boolean | null; /** * For RelationManyToMany: an existing junction table to use. Defaults to uuid_nil(). * - When uuid_nil(): the trigger creates a new junction table via secure_table_provision using junction_table_name. @@ -873,6 +723,26 @@ export interface RelationProvision { * Ignored for RelationBelongsTo/RelationHasOne. */ useCompositeKey?: boolean | null; + /** + * Whether to create a btree index on FK fields created by this relation. Defaults to true. + * PostgreSQL does not automatically index foreign key columns (only the referenced PK side is indexed). + * Without indexes on FK columns, JOINs, CASCADE deletes, and RLS policy lookups perform sequential scans. + * - RelationBelongsTo: creates an index on the FK field on the source table. + * - RelationHasMany: creates an index on the FK field on the target table. + * - RelationHasOne: skipped — the unique constraint already creates an implicit index. + * - RelationManyToMany: creates indexes on both FK fields on the junction table. + * Set to false only for very small tables or write-heavy tables where index maintenance cost outweighs read performance. + */ + createIndex?: boolean | null; + /** + * For RelationManyToMany: whether to expose the M:N shortcut fields in the GraphQL API. Defaults to true. + * When true, sets @behavior +manyToMany on the junction table smart_tags so PostGraphile generates + * clean M:N connection fields (e.g., event.contacts instead of event.contactEventsByEventId). + * When false (or toggled off via UPDATE), the behavior tag is removed and the M:N fields disappear from GraphQL. + * Toggling is supported: UPDATE expose_in_api to true/false and the smart tag is added/removed automatically. + * Ignored for RelationBelongsTo/RelationHasOne/RelationHasMany. + */ + exposeInApi?: boolean | null; /** * For RelationManyToMany: which generator to invoke for field creation on the junction table. Forwarded to secure_table_provision as-is. The trigger does not interpret or validate this value. * Examples: DataId (creates UUID primary key), DataDirectOwner (creates owner_id field), DataEntityMembership (creates entity_id field), DataOwnershipInEntity (creates both owner_id and entity_id), DataTimestamps, DataPeoplestamps, DataPublishable, DataSoftDelete. @@ -891,9 +761,9 @@ export interface RelationProvision { */ nodeData?: Record | null; /** For RelationManyToMany: database roles to grant privileges to on the junction table. Forwarded to secure_table_provision as-is. Supports multiple roles, e.g. ARRAY['authenticated', 'admin']. Each role receives all privileges defined in grant_privileges. Defaults to ARRAY['authenticated']. Ignored for RelationBelongsTo/RelationHasOne. */ - grantRoles?: string | null; - /** For RelationManyToMany: privilege grants for the junction table. Forwarded to secure_table_provision as-is. Format: array of [privilege, columns] tuples. Examples: [["select","*"],["insert","*"]] for full access, or [["update",["name","bio"]]] for column-level grants. "*" means all columns. Defaults to select/insert/delete for all columns. Ignored for RelationBelongsTo/RelationHasOne. */ - grantPrivileges?: Record | null; + grantRoles?: string[] | null; + /** For RelationManyToMany: privilege grants for the junction table. Forwarded to secure_table_provision as-is. Format: PostgreSQL array of jsonb [privilege, columns] tuples. Examples: ARRAY['["select","*"]'::jsonb, '["insert","*"]'::jsonb] for full access, or ARRAY['["update",["name","bio"]]'::jsonb] for column-level grants. "*" means all columns. Defaults to select/insert/delete for all columns. Ignored for RelationBelongsTo/RelationHasOne. */ + grantPrivileges?: Record[] | null; /** * For RelationManyToMany: RLS policy type for the junction table. Forwarded to secure_table_provision as-is. The trigger does not interpret or validate this value. * Examples: AuthzEntityMembership, AuthzMembership, AuthzAllowAll, AuthzDirectOwner, AuthzOrgHierarchy. @@ -902,7 +772,7 @@ export interface RelationProvision { */ policyType?: string | null; /** For RelationManyToMany: privileges the policy applies to, e.g. ARRAY['select','insert','delete']. Forwarded to secure_table_provision as-is. NULL means privileges are derived from the grant_privileges verbs by secure_table_provision. Ignored for RelationBelongsTo/RelationHasOne. */ - policyPrivileges?: string | null; + policyPrivileges?: string[] | null; /** For RelationManyToMany: database role the policy targets, e.g. 'authenticated'. Forwarded to secure_table_provision as-is. NULL means secure_table_provision falls back to the first role in grant_roles. Ignored for RelationBelongsTo/RelationHasOne. */ policyRole?: string | null; /** For RelationManyToMany: whether the policy is PERMISSIVE (true) or RESTRICTIVE (false). Forwarded to secure_table_provision as-is. Defaults to true. Ignored for RelationBelongsTo/RelationHasOne. */ @@ -926,28 +796,6 @@ export interface RelationProvision { outSourceFieldId?: string | null; /** Output column for RelationManyToMany: the UUID of the FK field on the junction table referencing the target table. Populated by the trigger. NULL for RelationBelongsTo/RelationHasOne. Callers should not set this directly. */ outTargetFieldId?: string | null; - /** TRGM similarity when searching `relationType`. Returns null when no trgm search filter is active. */ - relationTypeTrgmSimilarity?: number | null; - /** TRGM similarity when searching `fieldName`. Returns null when no trgm search filter is active. */ - fieldNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `deleteAction`. Returns null when no trgm search filter is active. */ - deleteActionTrgmSimilarity?: number | null; - /** TRGM similarity when searching `junctionTableName`. Returns null when no trgm search filter is active. */ - junctionTableNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `sourceFieldName`. Returns null when no trgm search filter is active. */ - sourceFieldNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `targetFieldName`. Returns null when no trgm search filter is active. */ - targetFieldNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `nodeType`. Returns null when no trgm search filter is active. */ - nodeTypeTrgmSimilarity?: number | null; - /** TRGM similarity when searching `policyType`. Returns null when no trgm search filter is active. */ - policyTypeTrgmSimilarity?: number | null; - /** TRGM similarity when searching `policyRole`. Returns null when no trgm search filter is active. */ - policyRoleTrgmSimilarity?: number | null; - /** TRGM similarity when searching `policyName`. Returns null when no trgm search filter is active. */ - policyNameTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface SchemaGrant { id: string; @@ -956,10 +804,6 @@ export interface SchemaGrant { granteeName?: string | null; createdAt?: string | null; updatedAt?: string | null; - /** TRGM similarity when searching `granteeName`. Returns null when no trgm search filter is active. */ - granteeNameTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface DefaultPrivilege { id: string; @@ -969,14 +813,20 @@ export interface DefaultPrivilege { privilege?: string | null; granteeName?: string | null; isGrant?: boolean | null; - /** TRGM similarity when searching `objectType`. Returns null when no trgm search filter is active. */ - objectTypeTrgmSimilarity?: number | null; - /** TRGM similarity when searching `privilege`. Returns null when no trgm search filter is active. */ - privilegeTrgmSimilarity?: number | null; - /** TRGM similarity when searching `granteeName`. Returns null when no trgm search filter is active. */ - granteeNameTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; +} +export interface Enum { + id: string; + databaseId?: string | null; + schemaId?: string | null; + name?: string | null; + label?: string | null; + description?: string | null; + values?: string[] | null; + smartTags?: Record | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + tags?: string[] | null; } /** Join table linking APIs to the database schemas they expose; controls which schemas are accessible through each API */ export interface ApiSchema { @@ -1001,10 +851,6 @@ export interface ApiModule { name?: string | null; /** JSON configuration data for this module */ data?: Record | null; - /** TRGM similarity when searching `name`. Returns null when no trgm search filter is active. */ - nameTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } /** DNS domain and subdomain routing: maps hostnames to either an API endpoint or a site */ export interface Domain { @@ -1035,12 +881,6 @@ export interface SiteMetadatum { description?: string | null; /** Open Graph image for social media previews */ ogImage?: ConstructiveInternalTypeImage | null; - /** TRGM similarity when searching `title`. Returns null when no trgm search filter is active. */ - titleTrgmSimilarity?: number | null; - /** TRGM similarity when searching `description`. Returns null when no trgm search filter is active. */ - descriptionTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } /** Site-level module configuration; stores module name and JSON settings used by the frontend or server for each site */ export interface SiteModule { @@ -1054,10 +894,6 @@ export interface SiteModule { name?: string | null; /** JSON configuration data for this module */ data?: Record | null; - /** TRGM similarity when searching `name`. Returns null when no trgm search filter is active. */ - nameTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } /** Theme configuration for a site; stores design tokens, colors, and typography as JSONB */ export interface SiteTheme { @@ -1077,12 +913,22 @@ export interface TriggerFunction { code?: string | null; createdAt?: string | null; updatedAt?: string | null; - /** TRGM similarity when searching `name`. Returns null when no trgm search filter is active. */ - nameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `code`. Returns null when no trgm search filter is active. */ - codeTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; +} +export interface DatabaseTransfer { + id: string; + databaseId?: string | null; + targetOwnerId?: string | null; + sourceApproved?: boolean | null; + targetApproved?: boolean | null; + sourceApprovedAt?: string | null; + targetApprovedAt?: string | null; + status?: string | null; + initiatedBy?: string | null; + notes?: string | null; + expiresAt?: string | null; + createdAt?: string | null; + updatedAt?: string | null; + completedAt?: string | null; } /** API endpoint configurations: each record defines a PostGraphile/PostgREST API with its database role and public access settings */ export interface Api { @@ -1100,16 +946,6 @@ export interface Api { anonRole?: string | null; /** Whether this API is publicly accessible without authentication */ isPublic?: boolean | null; - /** TRGM similarity when searching `name`. Returns null when no trgm search filter is active. */ - nameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `dbname`. Returns null when no trgm search filter is active. */ - dbnameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `roleName`. Returns null when no trgm search filter is active. */ - roleNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `anonRole`. Returns null when no trgm search filter is active. */ - anonRoleTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } /** Top-level site configuration: branding assets, title, and description for a deployed application */ export interface Site { @@ -1131,14 +967,6 @@ export interface Site { logo?: ConstructiveInternalTypeImage | null; /** PostgreSQL database name this site connects to */ dbname?: string | null; - /** TRGM similarity when searching `title`. Returns null when no trgm search filter is active. */ - titleTrgmSimilarity?: number | null; - /** TRGM similarity when searching `description`. Returns null when no trgm search filter is active. */ - descriptionTrgmSimilarity?: number | null; - /** TRGM similarity when searching `dbname`. Returns null when no trgm search filter is active. */ - dbnameTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } /** Mobile and native app configuration linked to a site, including store links and identifiers */ export interface App { @@ -1160,14 +988,6 @@ export interface App { appIdPrefix?: string | null; /** URL to the Google Play Store listing */ playStoreLink?: ConstructiveInternalTypeUrl | null; - /** TRGM similarity when searching `name`. Returns null when no trgm search filter is active. */ - nameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `appStoreId`. Returns null when no trgm search filter is active. */ - appStoreIdTrgmSimilarity?: number | null; - /** TRGM similarity when searching `appIdPrefix`. Returns null when no trgm search filter is active. */ - appIdPrefixTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface ConnectedAccountsModule { id: string; @@ -1177,10 +997,6 @@ export interface ConnectedAccountsModule { tableId?: string | null; ownerTableId?: string | null; tableName?: string | null; - /** TRGM similarity when searching `tableName`. Returns null when no trgm search filter is active. */ - tableNameTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface CryptoAddressesModule { id: string; @@ -1191,12 +1007,6 @@ export interface CryptoAddressesModule { ownerTableId?: string | null; tableName?: string | null; cryptoNetwork?: string | null; - /** TRGM similarity when searching `tableName`. Returns null when no trgm search filter is active. */ - tableNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `cryptoNetwork`. Returns null when no trgm search filter is active. */ - cryptoNetworkTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface CryptoAuthModule { id: string; @@ -1213,20 +1023,6 @@ export interface CryptoAuthModule { signInRecordFailure?: string | null; signUpWithKey?: string | null; signInWithChallenge?: string | null; - /** TRGM similarity when searching `userField`. Returns null when no trgm search filter is active. */ - userFieldTrgmSimilarity?: number | null; - /** TRGM similarity when searching `cryptoNetwork`. Returns null when no trgm search filter is active. */ - cryptoNetworkTrgmSimilarity?: number | null; - /** TRGM similarity when searching `signInRequestChallenge`. Returns null when no trgm search filter is active. */ - signInRequestChallengeTrgmSimilarity?: number | null; - /** TRGM similarity when searching `signInRecordFailure`. Returns null when no trgm search filter is active. */ - signInRecordFailureTrgmSimilarity?: number | null; - /** TRGM similarity when searching `signUpWithKey`. Returns null when no trgm search filter is active. */ - signUpWithKeyTrgmSimilarity?: number | null; - /** TRGM similarity when searching `signInWithChallenge`. Returns null when no trgm search filter is active. */ - signInWithChallengeTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface DefaultIdsModule { id: string; @@ -1237,18 +1033,14 @@ export interface DenormalizedTableField { databaseId?: string | null; tableId?: string | null; fieldId?: string | null; - setIds?: string | null; + setIds?: string[] | null; refTableId?: string | null; refFieldId?: string | null; - refIds?: string | null; + refIds?: string[] | null; useUpdates?: boolean | null; updateDefaults?: boolean | null; funcName?: string | null; funcOrder?: number | null; - /** TRGM similarity when searching `funcName`. Returns null when no trgm search filter is active. */ - funcNameTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface EmailsModule { id: string; @@ -1258,10 +1050,6 @@ export interface EmailsModule { tableId?: string | null; ownerTableId?: string | null; tableName?: string | null; - /** TRGM similarity when searching `tableName`. Returns null when no trgm search filter is active. */ - tableNameTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface EncryptedSecretsModule { id: string; @@ -1269,10 +1057,6 @@ export interface EncryptedSecretsModule { schemaId?: string | null; tableId?: string | null; tableName?: string | null; - /** TRGM similarity when searching `tableName`. Returns null when no trgm search filter is active. */ - tableNameTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface FieldModule { id: string; @@ -1282,12 +1066,8 @@ export interface FieldModule { fieldId?: string | null; nodeType?: string | null; data?: Record | null; - triggers?: string | null; - functions?: string | null; - /** TRGM similarity when searching `nodeType`. Returns null when no trgm search filter is active. */ - nodeTypeTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; + triggers?: string[] | null; + functions?: string[] | null; } export interface InvitesModule { id: string; @@ -1304,16 +1084,6 @@ export interface InvitesModule { prefix?: string | null; membershipType?: number | null; entityTableId?: string | null; - /** TRGM similarity when searching `invitesTableName`. Returns null when no trgm search filter is active. */ - invitesTableNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `claimedInvitesTableName`. Returns null when no trgm search filter is active. */ - claimedInvitesTableNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `submitInviteCodeFunction`. Returns null when no trgm search filter is active. */ - submitInviteCodeFunctionTrgmSimilarity?: number | null; - /** TRGM similarity when searching `prefix`. Returns null when no trgm search filter is active. */ - prefixTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface LevelsModule { id: string; @@ -1342,38 +1112,6 @@ export interface LevelsModule { membershipType?: number | null; entityTableId?: string | null; actorTableId?: string | null; - /** TRGM similarity when searching `stepsTableName`. Returns null when no trgm search filter is active. */ - stepsTableNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `achievementsTableName`. Returns null when no trgm search filter is active. */ - achievementsTableNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `levelsTableName`. Returns null when no trgm search filter is active. */ - levelsTableNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `levelRequirementsTableName`. Returns null when no trgm search filter is active. */ - levelRequirementsTableNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `completedStep`. Returns null when no trgm search filter is active. */ - completedStepTrgmSimilarity?: number | null; - /** TRGM similarity when searching `incompletedStep`. Returns null when no trgm search filter is active. */ - incompletedStepTrgmSimilarity?: number | null; - /** TRGM similarity when searching `tgAchievement`. Returns null when no trgm search filter is active. */ - tgAchievementTrgmSimilarity?: number | null; - /** TRGM similarity when searching `tgAchievementToggle`. Returns null when no trgm search filter is active. */ - tgAchievementToggleTrgmSimilarity?: number | null; - /** TRGM similarity when searching `tgAchievementToggleBoolean`. Returns null when no trgm search filter is active. */ - tgAchievementToggleBooleanTrgmSimilarity?: number | null; - /** TRGM similarity when searching `tgAchievementBoolean`. Returns null when no trgm search filter is active. */ - tgAchievementBooleanTrgmSimilarity?: number | null; - /** TRGM similarity when searching `upsertAchievement`. Returns null when no trgm search filter is active. */ - upsertAchievementTrgmSimilarity?: number | null; - /** TRGM similarity when searching `tgUpdateAchievements`. Returns null when no trgm search filter is active. */ - tgUpdateAchievementsTrgmSimilarity?: number | null; - /** TRGM similarity when searching `stepsRequired`. Returns null when no trgm search filter is active. */ - stepsRequiredTrgmSimilarity?: number | null; - /** TRGM similarity when searching `levelAchieved`. Returns null when no trgm search filter is active. */ - levelAchievedTrgmSimilarity?: number | null; - /** TRGM similarity when searching `prefix`. Returns null when no trgm search filter is active. */ - prefixTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface LimitsModule { id: string; @@ -1394,26 +1132,6 @@ export interface LimitsModule { membershipType?: number | null; entityTableId?: string | null; actorTableId?: string | null; - /** TRGM similarity when searching `tableName`. Returns null when no trgm search filter is active. */ - tableNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `defaultTableName`. Returns null when no trgm search filter is active. */ - defaultTableNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `limitIncrementFunction`. Returns null when no trgm search filter is active. */ - limitIncrementFunctionTrgmSimilarity?: number | null; - /** TRGM similarity when searching `limitDecrementFunction`. Returns null when no trgm search filter is active. */ - limitDecrementFunctionTrgmSimilarity?: number | null; - /** TRGM similarity when searching `limitIncrementTrigger`. Returns null when no trgm search filter is active. */ - limitIncrementTriggerTrgmSimilarity?: number | null; - /** TRGM similarity when searching `limitDecrementTrigger`. Returns null when no trgm search filter is active. */ - limitDecrementTriggerTrgmSimilarity?: number | null; - /** TRGM similarity when searching `limitUpdateTrigger`. Returns null when no trgm search filter is active. */ - limitUpdateTriggerTrgmSimilarity?: number | null; - /** TRGM similarity when searching `limitCheckFunction`. Returns null when no trgm search filter is active. */ - limitCheckFunctionTrgmSimilarity?: number | null; - /** TRGM similarity when searching `prefix`. Returns null when no trgm search filter is active. */ - prefixTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface MembershipTypesModule { id: string; @@ -1421,10 +1139,6 @@ export interface MembershipTypesModule { schemaId?: string | null; tableId?: string | null; tableName?: string | null; - /** TRGM similarity when searching `tableName`. Returns null when no trgm search filter is active. */ - tableNameTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface MembershipsModule { id: string; @@ -1458,32 +1172,6 @@ export interface MembershipsModule { entityIdsByMask?: string | null; entityIdsByPerm?: string | null; entityIdsFunction?: string | null; - /** TRGM similarity when searching `membershipsTableName`. Returns null when no trgm search filter is active. */ - membershipsTableNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `membersTableName`. Returns null when no trgm search filter is active. */ - membersTableNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `membershipDefaultsTableName`. Returns null when no trgm search filter is active. */ - membershipDefaultsTableNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `grantsTableName`. Returns null when no trgm search filter is active. */ - grantsTableNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `adminGrantsTableName`. Returns null when no trgm search filter is active. */ - adminGrantsTableNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `ownerGrantsTableName`. Returns null when no trgm search filter is active. */ - ownerGrantsTableNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `prefix`. Returns null when no trgm search filter is active. */ - prefixTrgmSimilarity?: number | null; - /** TRGM similarity when searching `actorMaskCheck`. Returns null when no trgm search filter is active. */ - actorMaskCheckTrgmSimilarity?: number | null; - /** TRGM similarity when searching `actorPermCheck`. Returns null when no trgm search filter is active. */ - actorPermCheckTrgmSimilarity?: number | null; - /** TRGM similarity when searching `entityIdsByMask`. Returns null when no trgm search filter is active. */ - entityIdsByMaskTrgmSimilarity?: number | null; - /** TRGM similarity when searching `entityIdsByPerm`. Returns null when no trgm search filter is active. */ - entityIdsByPermTrgmSimilarity?: number | null; - /** TRGM similarity when searching `entityIdsFunction`. Returns null when no trgm search filter is active. */ - entityIdsFunctionTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface PermissionsModule { id: string; @@ -1503,22 +1191,6 @@ export interface PermissionsModule { getMask?: string | null; getByMask?: string | null; getMaskByName?: string | null; - /** TRGM similarity when searching `tableName`. Returns null when no trgm search filter is active. */ - tableNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `defaultTableName`. Returns null when no trgm search filter is active. */ - defaultTableNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `prefix`. Returns null when no trgm search filter is active. */ - prefixTrgmSimilarity?: number | null; - /** TRGM similarity when searching `getPaddedMask`. Returns null when no trgm search filter is active. */ - getPaddedMaskTrgmSimilarity?: number | null; - /** TRGM similarity when searching `getMask`. Returns null when no trgm search filter is active. */ - getMaskTrgmSimilarity?: number | null; - /** TRGM similarity when searching `getByMask`. Returns null when no trgm search filter is active. */ - getByMaskTrgmSimilarity?: number | null; - /** TRGM similarity when searching `getMaskByName`. Returns null when no trgm search filter is active. */ - getMaskByNameTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface PhoneNumbersModule { id: string; @@ -1528,10 +1200,6 @@ export interface PhoneNumbersModule { tableId?: string | null; ownerTableId?: string | null; tableName?: string | null; - /** TRGM similarity when searching `tableName`. Returns null when no trgm search filter is active. */ - tableNameTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface ProfilesModule { id: string; @@ -1552,18 +1220,6 @@ export interface ProfilesModule { permissionsTableId?: string | null; membershipsTableId?: string | null; prefix?: string | null; - /** TRGM similarity when searching `tableName`. Returns null when no trgm search filter is active. */ - tableNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `profilePermissionsTableName`. Returns null when no trgm search filter is active. */ - profilePermissionsTableNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `profileGrantsTableName`. Returns null when no trgm search filter is active. */ - profileGrantsTableNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `profileDefinitionGrantsTableName`. Returns null when no trgm search filter is active. */ - profileDefinitionGrantsTableNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `prefix`. Returns null when no trgm search filter is active. */ - prefixTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface SecretsModule { id: string; @@ -1571,10 +1227,6 @@ export interface SecretsModule { schemaId?: string | null; tableId?: string | null; tableName?: string | null; - /** TRGM similarity when searching `tableName`. Returns null when no trgm search filter is active. */ - tableNameTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface SessionsModule { id: string; @@ -1588,14 +1240,6 @@ export interface SessionsModule { sessionsTable?: string | null; sessionCredentialsTable?: string | null; authSettingsTable?: string | null; - /** TRGM similarity when searching `sessionsTable`. Returns null when no trgm search filter is active. */ - sessionsTableTrgmSimilarity?: number | null; - /** TRGM similarity when searching `sessionCredentialsTable`. Returns null when no trgm search filter is active. */ - sessionCredentialsTableTrgmSimilarity?: number | null; - /** TRGM similarity when searching `authSettingsTable`. Returns null when no trgm search filter is active. */ - authSettingsTableTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface UserAuthModule { id: string; @@ -1624,40 +1268,6 @@ export interface UserAuthModule { signInOneTimeTokenFunction?: string | null; oneTimeTokenFunction?: string | null; extendTokenExpires?: string | null; - /** TRGM similarity when searching `auditsTableName`. Returns null when no trgm search filter is active. */ - auditsTableNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `signInFunction`. Returns null when no trgm search filter is active. */ - signInFunctionTrgmSimilarity?: number | null; - /** TRGM similarity when searching `signUpFunction`. Returns null when no trgm search filter is active. */ - signUpFunctionTrgmSimilarity?: number | null; - /** TRGM similarity when searching `signOutFunction`. Returns null when no trgm search filter is active. */ - signOutFunctionTrgmSimilarity?: number | null; - /** TRGM similarity when searching `setPasswordFunction`. Returns null when no trgm search filter is active. */ - setPasswordFunctionTrgmSimilarity?: number | null; - /** TRGM similarity when searching `resetPasswordFunction`. Returns null when no trgm search filter is active. */ - resetPasswordFunctionTrgmSimilarity?: number | null; - /** TRGM similarity when searching `forgotPasswordFunction`. Returns null when no trgm search filter is active. */ - forgotPasswordFunctionTrgmSimilarity?: number | null; - /** TRGM similarity when searching `sendVerificationEmailFunction`. Returns null when no trgm search filter is active. */ - sendVerificationEmailFunctionTrgmSimilarity?: number | null; - /** TRGM similarity when searching `verifyEmailFunction`. Returns null when no trgm search filter is active. */ - verifyEmailFunctionTrgmSimilarity?: number | null; - /** TRGM similarity when searching `verifyPasswordFunction`. Returns null when no trgm search filter is active. */ - verifyPasswordFunctionTrgmSimilarity?: number | null; - /** TRGM similarity when searching `checkPasswordFunction`. Returns null when no trgm search filter is active. */ - checkPasswordFunctionTrgmSimilarity?: number | null; - /** TRGM similarity when searching `sendAccountDeletionEmailFunction`. Returns null when no trgm search filter is active. */ - sendAccountDeletionEmailFunctionTrgmSimilarity?: number | null; - /** TRGM similarity when searching `deleteAccountFunction`. Returns null when no trgm search filter is active. */ - deleteAccountFunctionTrgmSimilarity?: number | null; - /** TRGM similarity when searching `signInOneTimeTokenFunction`. Returns null when no trgm search filter is active. */ - signInOneTimeTokenFunctionTrgmSimilarity?: number | null; - /** TRGM similarity when searching `oneTimeTokenFunction`. Returns null when no trgm search filter is active. */ - oneTimeTokenFunctionTrgmSimilarity?: number | null; - /** TRGM similarity when searching `extendTokenExpires`. Returns null when no trgm search filter is active. */ - extendTokenExpiresTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface UsersModule { id: string; @@ -1667,25 +1277,86 @@ export interface UsersModule { tableName?: string | null; typeTableId?: string | null; typeTableName?: string | null; - /** TRGM similarity when searching `tableName`. Returns null when no trgm search filter is active. */ - tableNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `typeTableName`. Returns null when no trgm search filter is active. */ - typeTableNameTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } -export interface UuidModule { +/** An owned, executable blueprint scoped to a specific database. Created by copying from a blueprint_template via copy_template_to_blueprint() or built from scratch. The owner can customize the definition before executing it with construct_blueprint(). Each blueprint tracks its execution status (draft/constructed/failed) and stores the ref_map of created table IDs after construction. */ +export interface Blueprint { + /** Unique identifier for this blueprint. */ id: string; + /** The user who owns this blueprint. */ + ownerId?: string | null; + /** The database this blueprint is scoped to. Tables created by construct_blueprint() are provisioned in this database. */ databaseId?: string | null; - schemaId?: string | null; - uuidFunction?: string | null; - uuidSeed?: string | null; - /** TRGM similarity when searching `uuidFunction`. Returns null when no trgm search filter is active. */ - uuidFunctionTrgmSimilarity?: number | null; - /** TRGM similarity when searching `uuidSeed`. Returns null when no trgm search filter is active. */ - uuidSeedTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; + /** Machine-readable name for the blueprint. Must be unique per database. */ + name?: string | null; + /** Human-readable display name for the blueprint. */ + displayName?: string | null; + /** Optional description of the blueprint. */ + description?: string | null; + /** The blueprint definition as a JSONB document. Same format as blueprint_template.definition: contains tables[] (with nodes[], fields[], grants[], policies[] using $type) and relations[] (using $type). This is a mutable copy that the owner can customize before executing. */ + definition?: Record | null; + /** If this blueprint was created by copying a template, the ID of the source template. NULL if built from scratch. */ + templateId?: string | null; + /** Execution state of the blueprint. draft: not yet executed (definition can still be modified). constructed: successfully executed via construct_blueprint(). failed: execution failed (see error_details). Defaults to draft. */ + status?: string | null; + /** Timestamp when construct_blueprint() successfully completed. NULL until constructed. */ + constructedAt?: string | null; + /** Error message from the most recent failed construct_blueprint() attempt. NULL unless status is failed. */ + errorDetails?: string | null; + /** Mapping of ref names to created table UUIDs, populated by construct_blueprint() after successful execution. Format: {"products": "uuid", "categories": "uuid", ...}. Defaults to empty object. */ + refMap?: Record | null; + /** Immutable snapshot of the definition at construct-time. Preserved so the exact definition that was executed is recorded even if the user later modifies the definition for re-execution. NULL until constructed. */ + constructedDefinition?: Record | null; + /** UUIDv5 Merkle root hash of the definition. Computed automatically via trigger from the ordered table_hashes. Used for content-addressable deduplication and provenance tracking. Backend-computed — clients should never set this directly. */ + definitionHash?: string | null; + /** JSONB map of table ref names to their individual UUIDv5 content hashes. Each table hash is computed from the canonical jsonb::text of the table entry. Enables structural comparison at the table level across blueprints and templates. Backend-computed via trigger. */ + tableHashes?: Record | null; + /** Timestamp when this blueprint was created. */ + createdAt?: string | null; + /** Timestamp when this blueprint was last modified. */ + updatedAt?: string | null; +} +/** A shareable, versioned schema recipe for the blueprint marketplace. Templates define arrays of secure_table_provision + relation_provision inputs that together describe a complete domain schema (e.g. e-commerce, telemedicine, habit tracker). Templates are never executed directly — they are copied into a blueprint first via copy_template_to_blueprint(). Can be private (owner-only) or public (marketplace-visible). */ +export interface BlueprintTemplate { + /** Unique identifier for this template. */ + id: string; + /** Machine-readable name for the template (e.g. e_commerce_basic). Must be unique per owner + version. */ + name?: string | null; + /** Semantic version string. Defaults to 1.0.0. */ + version?: string | null; + /** Human-readable display name for the template (e.g. E-Commerce Basic). */ + displayName?: string | null; + /** Optional description of what the template provisions. */ + description?: string | null; + /** The user who created or published this template. */ + ownerId?: string | null; + /** Access control for the template. private: only the owner can see and copy. public: anyone can browse and copy from the marketplace. Defaults to private. */ + visibility?: string | null; + /** Domain categories for marketplace browsing (e.g. e-commerce, healthcare, social). Defaults to empty array. */ + categories?: string[] | null; + /** Freeform tags for search and discovery (e.g. products, orders, payments). Defaults to empty array. */ + tags?: string[] | null; + /** The blueprint definition as a JSONB document. Contains tables[] (each with nodes[] for data behaviors via string shorthand or {"$type": "...", "data": {...}} objects, fields[], grants[], and policies[] using {"$type": "...", "data": {...}}), and relations[] (using $type for relation_type with junction config in data). This is the core payload that gets copied into a blueprint for execution. */ + definition?: Record | null; + /** Version of the definition format schema. Used for forward-compatible parsing. Defaults to 1. */ + definitionSchemaVersion?: string | null; + /** Provenance of the template. user: manually created by a human. system: official curated template from the Constructive team. agent: AI-generated. Defaults to user. */ + source?: string | null; + /** Complexity indicator for marketplace filtering. simple: 3-5 tables. moderate: 6-12 tables. complex: 13+ tables. NULL if not categorized. */ + complexity?: string | null; + /** Denormalized count of how many blueprints have been created from this template via copy_template_to_blueprint(). Incremented automatically. Defaults to 0. */ + copyCount?: number | null; + /** Denormalized count of how many derivative templates have been forked from this template. Defaults to 0. */ + forkCount?: number | null; + /** If this template was forked from another template, the ID of the parent. NULL for original templates. */ + forkedFromId?: string | null; + /** UUIDv5 Merkle root hash of the definition. Computed automatically via trigger from the ordered table_hashes. Used for content-addressable deduplication, provenance tracking, and cross-blueprint structural comparison. NULL columns are backend-computed — clients should never set this directly. */ + definitionHash?: string | null; + /** JSONB map of table ref names to their individual UUIDv5 content hashes (e.g. {"products": "uuid", "categories": "uuid"}). Each table hash is computed from the canonical jsonb::text of the table entry. Enables structural comparison at the table level across different blueprints. Backend-computed via trigger. */ + tableHashes?: Record | null; + /** Timestamp when this template was created. */ + createdAt?: string | null; + /** Timestamp when this template was last modified. */ + updatedAt?: string | null; } /** Tracks database provisioning requests and their status. The BEFORE INSERT trigger creates the database and sets database_id before RLS policies are evaluated. */ export interface DatabaseProvisionModule { @@ -1699,7 +1370,7 @@ export interface DatabaseProvisionModule { /** Base domain for the database (e.g., example.com) */ domain?: string | null; /** Array of module IDs to install, or ["all"] for all modules */ - modules?: string | null; + modules?: string[] | null; /** Additional configuration options for provisioning */ options?: Record | null; /** When true, copies the owner user and password hash from source database to the newly provisioned database */ @@ -1712,18 +1383,6 @@ export interface DatabaseProvisionModule { createdAt?: string | null; updatedAt?: string | null; completedAt?: string | null; - /** TRGM similarity when searching `databaseName`. Returns null when no trgm search filter is active. */ - databaseNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `subdomain`. Returns null when no trgm search filter is active. */ - subdomainTrgmSimilarity?: number | null; - /** TRGM similarity when searching `domain`. Returns null when no trgm search filter is active. */ - domainTrgmSimilarity?: number | null; - /** TRGM similarity when searching `status`. Returns null when no trgm search filter is active. */ - statusTrgmSimilarity?: number | null; - /** TRGM similarity when searching `errorMessage`. Returns null when no trgm search filter is active. */ - errorMessageTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } /** Records of admin role grants and revocations between members */ export interface AppAdminGrant { @@ -1855,10 +1514,6 @@ export interface OrgChartEdge { positionTitle?: string | null; /** Numeric seniority level for this position (higher = more senior) */ positionLevel?: number | null; - /** TRGM similarity when searching `positionTitle`. Returns null when no trgm search filter is active. */ - positionTitleTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } /** Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table */ export interface OrgChartEdgeGrant { @@ -1869,7 +1524,7 @@ export interface OrgChartEdgeGrant { childId?: string | null; /** User ID of the manager being assigned; NULL for top-level positions */ parentId?: string | null; - /** User ID of the admin who performed this grant or revocation */ + /** User ID of the admin who performed this grant or revocation; NULL if grantor was deleted */ grantorId?: string | null; /** TRUE to add/update the edge, FALSE to remove it */ isGrant?: boolean | null; @@ -1879,10 +1534,14 @@ export interface OrgChartEdgeGrant { positionLevel?: number | null; /** Timestamp when this grant or revocation was recorded */ createdAt?: string | null; - /** TRGM similarity when searching `positionTitle`. Returns null when no trgm search filter is active. */ - positionTitleTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; +} +/** Stores the default permission bitmask assigned to new members upon joining */ +export interface OrgPermissionDefault { + id: string; + /** Default permission bitmask applied to new members */ + permissions?: string | null; + /** References the entity these default permissions apply to */ + entityId?: string | null; } /** Tracks per-actor usage counts against configurable maximum limits */ export interface AppLimit { @@ -1931,6 +1590,76 @@ export interface AppAchievement { createdAt?: string | null; updatedAt?: string | null; } +/** Defines available levels that users can achieve by completing requirements */ +export interface AppLevel { + id: string; + /** Unique name of the level */ + name?: string | null; + /** Human-readable description of what this level represents */ + description?: string | null; + /** Badge or icon image associated with this level */ + image?: ConstructiveInternalTypeImage | null; + /** Optional owner (actor) who created or manages this level */ + ownerId?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} +/** User email addresses with verification and primary-email management */ +export interface Email { + id: string; + ownerId?: string | null; + /** The email address */ + email?: ConstructiveInternalTypeEmail | null; + /** Whether the email address has been verified via confirmation link */ + isVerified?: boolean | null; + /** Whether this is the user's primary email address */ + isPrimary?: boolean | null; + createdAt?: string | null; + updatedAt?: string | null; +} +/** User phone numbers with country code, verification, and primary-number management */ +export interface PhoneNumber { + id: string; + ownerId?: string | null; + /** Country calling code (e.g. +1, +44) */ + cc?: string | null; + /** The phone number without country code */ + number?: string | null; + /** Whether the phone number has been verified via SMS code */ + isVerified?: boolean | null; + /** Whether this is the user's primary phone number */ + isPrimary?: boolean | null; + createdAt?: string | null; + updatedAt?: string | null; +} +/** Cryptocurrency wallet addresses owned by users, with network-specific validation and verification */ +export interface CryptoAddress { + id: string; + ownerId?: string | null; + /** The cryptocurrency wallet address, validated against network-specific patterns */ + address?: string | null; + /** Whether ownership of this address has been cryptographically verified */ + isVerified?: boolean | null; + /** Whether this is the user's primary cryptocurrency address */ + isPrimary?: boolean | null; + createdAt?: string | null; + updatedAt?: string | null; +} +/** OAuth and social login connections linking external service accounts to users */ +export interface ConnectedAccount { + id: string; + ownerId?: string | null; + /** The service used, e.g. `twitter` or `github`. */ + service?: string | null; + /** A unique identifier for the user within the service */ + identifier?: string | null; + /** Additional profile details extracted from this login method */ + details?: Record | null; + /** Whether this connected account has been verified */ + isVerified?: boolean | null; + createdAt?: string | null; + updatedAt?: string | null; +} /** Invitation records sent to prospective members via email, with token-based redemption and expiration */ export interface Invite { id: string; @@ -1954,10 +1683,6 @@ export interface Invite { expiresAt?: string | null; createdAt?: string | null; updatedAt?: string | null; - /** TRGM similarity when searching `inviteToken`. Returns null when no trgm search filter is active. */ - inviteTokenTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } /** Records of successfully claimed invitations, linking senders to receivers */ export interface ClaimedInvite { @@ -1997,10 +1722,6 @@ export interface OrgInvite { createdAt?: string | null; updatedAt?: string | null; entityId?: string | null; - /** TRGM similarity when searching `inviteToken`. Returns null when no trgm search filter is active. */ - inviteTokenTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } /** Records of successfully claimed invitations, linking senders to receivers */ export interface OrgClaimedInvite { @@ -2015,6 +1736,24 @@ export interface OrgClaimedInvite { updatedAt?: string | null; entityId?: string | null; } +/** Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) */ +export interface AuditLog { + id: string; + /** Type of authentication event (e.g. sign_in, sign_up, password_change, verify_email) */ + event?: string | null; + /** User who performed the authentication action; NULL if user was deleted */ + actorId?: string | null; + /** Request origin (domain) where the auth event occurred */ + origin?: ConstructiveInternalTypeOrigin | null; + /** Browser or client user-agent string from the request */ + userAgent?: string | null; + /** IP address of the client that initiated the auth event */ + ipAddress?: string | null; + /** Whether the authentication attempt succeeded */ + success?: boolean | null; + /** Timestamp when the audit event was recorded */ + createdAt?: string | null; +} /** A ref is a data structure for pointing to a commit. */ export interface Ref { /** The primary unique identifier for the ref. */ @@ -2024,10 +1763,6 @@ export interface Ref { databaseId?: string | null; storeId?: string | null; commitId?: string | null; - /** TRGM similarity when searching `name`. Returns null when no trgm search filter is active. */ - nameTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } /** A store represents an isolated object repository within a database. */ export interface Store { @@ -2040,10 +1775,6 @@ export interface Store { /** The current head tree_id for this store. */ hash?: string | null; createdAt?: string | null; - /** TRGM similarity when searching `name`. Returns null when no trgm search filter is active. */ - nameTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } /** Stores the default permission bitmask assigned to new members upon joining */ export interface AppPermissionDefault { @@ -2051,56 +1782,10 @@ export interface AppPermissionDefault { /** Default permission bitmask applied to new members */ permissions?: string | null; } -/** Cryptocurrency wallet addresses owned by users, with network-specific validation and verification */ -export interface CryptoAddress { - id: string; - ownerId?: string | null; - /** The cryptocurrency wallet address, validated against network-specific patterns */ - address?: string | null; - /** Whether ownership of this address has been cryptographically verified */ - isVerified?: boolean | null; - /** Whether this is the user's primary cryptocurrency address */ - isPrimary?: boolean | null; - createdAt?: string | null; - updatedAt?: string | null; - /** TRGM similarity when searching `address`. Returns null when no trgm search filter is active. */ - addressTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; -} export interface RoleType { id: number; name?: string | null; } -/** Stores the default permission bitmask assigned to new members upon joining */ -export interface OrgPermissionDefault { - id: string; - /** Default permission bitmask applied to new members */ - permissions?: string | null; - /** References the entity these default permissions apply to */ - entityId?: string | null; -} -/** User phone numbers with country code, verification, and primary-number management */ -export interface PhoneNumber { - id: string; - ownerId?: string | null; - /** Country calling code (e.g. +1, +44) */ - cc?: string | null; - /** The phone number without country code */ - number?: string | null; - /** Whether the phone number has been verified via SMS code */ - isVerified?: boolean | null; - /** Whether this is the user's primary phone number */ - isPrimary?: boolean | null; - createdAt?: string | null; - updatedAt?: string | null; - /** TRGM similarity when searching `cc`. Returns null when no trgm search filter is active. */ - ccTrgmSimilarity?: number | null; - /** TRGM similarity when searching `number`. Returns null when no trgm search filter is active. */ - numberTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; -} /** Default maximum values for each named limit, applied when no per-actor override exists */ export interface AppLimitDefault { id: string; @@ -2117,27 +1802,6 @@ export interface OrgLimitDefault { /** Default maximum usage allowed for this limit */ max?: number | null; } -/** OAuth and social login connections linking external service accounts to users */ -export interface ConnectedAccount { - id: string; - ownerId?: string | null; - /** The service used, e.g. `twitter` or `github`. */ - service?: string | null; - /** A unique identifier for the user within the service */ - identifier?: string | null; - /** Additional profile details extracted from this login method */ - details?: Record | null; - /** Whether this connected account has been verified */ - isVerified?: boolean | null; - createdAt?: string | null; - updatedAt?: string | null; - /** TRGM similarity when searching `service`. Returns null when no trgm search filter is active. */ - serviceTrgmSimilarity?: number | null; - /** TRGM similarity when searching `identifier`. Returns null when no trgm search filter is active. */ - identifierTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; -} /** Registry of high-level semantic AST node types using domain-prefixed naming. These IR nodes compile to multiple targets (Postgres RLS, egress, ingress, etc.). */ export interface NodeTypeRegistry { /** PascalCase domain-prefixed node type name (e.g., AuthzDirectOwner, DataTimestamps, FieldImmutable) */ @@ -2153,21 +1817,9 @@ export interface NodeTypeRegistry { /** JSON Schema defining valid parameters for this node type */ parameterSchema?: Record | null; /** Tags for categorization and filtering (e.g., ownership, membership, temporal, rls) */ - tags?: string | null; + tags?: string[] | null; createdAt?: string | null; updatedAt?: string | null; - /** TRGM similarity when searching `name`. Returns null when no trgm search filter is active. */ - nameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `slug`. Returns null when no trgm search filter is active. */ - slugTrgmSimilarity?: number | null; - /** TRGM similarity when searching `category`. Returns null when no trgm search filter is active. */ - categoryTrgmSimilarity?: number | null; - /** TRGM similarity when searching `displayName`. Returns null when no trgm search filter is active. */ - displayNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `description`. Returns null when no trgm search filter is active. */ - descriptionTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } /** Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) */ export interface MembershipType { @@ -2179,12 +1831,6 @@ export interface MembershipType { description?: string | null; /** Short prefix used to namespace tables and functions for this membership scope */ prefix?: string | null; - /** TRGM similarity when searching `description`. Returns null when no trgm search filter is active. */ - descriptionTrgmSimilarity?: number | null; - /** TRGM similarity when searching `prefix`. Returns null when no trgm search filter is active. */ - prefixTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } /** A commit records changes to the repository. */ export interface Commit { @@ -2196,7 +1842,7 @@ export interface Commit { databaseId?: string | null; storeId?: string | null; /** Parent commits */ - parentIds?: string | null; + parentIds?: string[] | null; /** The author of the commit */ authorId?: string | null; /** The committer of the commit */ @@ -2204,10 +1850,6 @@ export interface Commit { /** The root of the tree */ treeId?: string | null; date?: string | null; - /** TRGM similarity when searching `message`. Returns null when no trgm search filter is active. */ - messageTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } /** Default membership settings per entity, controlling initial approval and verification state for new members */ export interface AppMembershipDefault { @@ -2233,16 +1875,6 @@ export interface RlsModule { authenticateStrict?: string | null; currentRole?: string | null; currentRoleId?: string | null; - /** TRGM similarity when searching `authenticate`. Returns null when no trgm search filter is active. */ - authenticateTrgmSimilarity?: number | null; - /** TRGM similarity when searching `authenticateStrict`. Returns null when no trgm search filter is active. */ - authenticateStrictTrgmSimilarity?: number | null; - /** TRGM similarity when searching `currentRole`. Returns null when no trgm search filter is active. */ - currentRoleTrgmSimilarity?: number | null; - /** TRGM similarity when searching `currentRoleId`. Returns null when no trgm search filter is active. */ - currentRoleIdTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } /** Default membership settings per entity, controlling initial approval and verification state for new members */ export interface OrgMembershipDefault { @@ -2260,52 +1892,12 @@ export interface OrgMembershipDefault { /** When a group is created, whether to auto-add existing org members as group members */ createGroupsCascadeMembers?: boolean | null; } -/** Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) */ -export interface AuditLog { - id: string; - /** Type of authentication event (e.g. sign_in, sign_up, password_change, verify_email) */ - event?: string | null; - /** User who performed the authentication action */ - actorId?: string | null; - /** Request origin (domain) where the auth event occurred */ - origin?: ConstructiveInternalTypeOrigin | null; - /** Browser or client user-agent string from the request */ - userAgent?: string | null; - /** IP address of the client that initiated the auth event */ - ipAddress?: string | null; - /** Whether the authentication attempt succeeded */ - success?: boolean | null; - /** Timestamp when the audit event was recorded */ - createdAt?: string | null; - /** TRGM similarity when searching `userAgent`. Returns null when no trgm search filter is active. */ - userAgentTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; -} -/** Defines available levels that users can achieve by completing requirements */ -export interface AppLevel { - id: string; - /** Unique name of the level */ - name?: string | null; - /** Human-readable description of what this level represents */ - description?: string | null; - /** Badge or icon image associated with this level */ - image?: ConstructiveInternalTypeImage | null; - /** Optional owner (actor) who created or manages this level */ - ownerId?: string | null; - createdAt?: string | null; - updatedAt?: string | null; - /** TRGM similarity when searching `description`. Returns null when no trgm search filter is active. */ - descriptionTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; -} export interface SqlMigration { id: number; name?: string | null; databaseId?: string | null; deploy?: string | null; - deps?: string | null; + deps?: string[] | null; payload?: Record | null; content?: string | null; revert?: string | null; @@ -2314,33 +1906,6 @@ export interface SqlMigration { action?: string | null; actionId?: string | null; actorId?: string | null; - /** TRGM similarity when searching `name`. Returns null when no trgm search filter is active. */ - nameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `deploy`. Returns null when no trgm search filter is active. */ - deployTrgmSimilarity?: number | null; - /** TRGM similarity when searching `content`. Returns null when no trgm search filter is active. */ - contentTrgmSimilarity?: number | null; - /** TRGM similarity when searching `revert`. Returns null when no trgm search filter is active. */ - revertTrgmSimilarity?: number | null; - /** TRGM similarity when searching `verify`. Returns null when no trgm search filter is active. */ - verifyTrgmSimilarity?: number | null; - /** TRGM similarity when searching `action`. Returns null when no trgm search filter is active. */ - actionTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; -} -/** User email addresses with verification and primary-email management */ -export interface Email { - id: string; - ownerId?: string | null; - /** The email address */ - email?: ConstructiveInternalTypeEmail | null; - /** Whether the email address has been verified via confirmation link */ - isVerified?: boolean | null; - /** Whether this is the user's primary email address */ - isPrimary?: boolean | null; - createdAt?: string | null; - updatedAt?: string | null; } export interface User { id: string; @@ -2355,14 +1920,14 @@ export interface User { searchTsvRank?: number | null; /** TRGM similarity when searching `displayName`. Returns null when no trgm search filter is active. */ displayNameTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ + /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. */ searchScore?: number | null; } export interface AstMigration { id: number; databaseId?: string | null; name?: string | null; - requires?: string | null; + requires?: string[] | null; payload?: Record | null; deploys?: string | null; deploy?: Record | null; @@ -2372,10 +1937,6 @@ export interface AstMigration { action?: string | null; actionId?: string | null; actorId?: string | null; - /** TRGM similarity when searching `action`. Returns null when no trgm search filter is active. */ - actionTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } /** Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status */ export interface AppMembership { @@ -2427,28 +1988,6 @@ export interface HierarchyModule { getManagersFunction?: string | null; isManagerOfFunction?: string | null; createdAt?: string | null; - /** TRGM similarity when searching `chartEdgesTableName`. Returns null when no trgm search filter is active. */ - chartEdgesTableNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `hierarchySprtTableName`. Returns null when no trgm search filter is active. */ - hierarchySprtTableNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `chartEdgeGrantsTableName`. Returns null when no trgm search filter is active. */ - chartEdgeGrantsTableNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `prefix`. Returns null when no trgm search filter is active. */ - prefixTrgmSimilarity?: number | null; - /** TRGM similarity when searching `privateSchemaName`. Returns null when no trgm search filter is active. */ - privateSchemaNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `sprtTableName`. Returns null when no trgm search filter is active. */ - sprtTableNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `rebuildHierarchyFunction`. Returns null when no trgm search filter is active. */ - rebuildHierarchyFunctionTrgmSimilarity?: number | null; - /** TRGM similarity when searching `getSubordinatesFunction`. Returns null when no trgm search filter is active. */ - getSubordinatesFunctionTrgmSimilarity?: number | null; - /** TRGM similarity when searching `getManagersFunction`. Returns null when no trgm search filter is active. */ - getManagersFunctionTrgmSimilarity?: number | null; - /** TRGM similarity when searching `isManagerOfFunction`. Returns null when no trgm search filter is active. */ - isManagerOfFunctionTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } // ============ Relation Helper Types ============ export interface ConnectionResult { @@ -2463,9 +2002,9 @@ export interface PageInfo { endCursor?: string | null; } // ============ Entity Relation Types ============ +export interface GetAllRecordRelations {} export interface OrgGetManagersRecordRelations {} export interface OrgGetSubordinatesRecordRelations {} -export interface GetAllRecordRelations {} export interface ObjectRelations {} export interface AppPermissionRelations {} export interface OrgPermissionRelations {} @@ -2492,6 +2031,9 @@ export interface DatabaseRelations { viewGrants?: ConnectionResult; viewRules?: ConnectionResult; defaultPrivileges?: ConnectionResult; + enums?: ConnectionResult; + embeddingChunks?: ConnectionResult; + databaseTransfers?: ConnectionResult; apis?: ConnectionResult; apiModules?: ConnectionResult; apiSchemas?: ConnectionResult; @@ -2521,10 +2063,10 @@ export interface DatabaseRelations { sessionsModules?: ConnectionResult; userAuthModules?: ConnectionResult; usersModules?: ConnectionResult; - uuidModules?: ConnectionResult; tableTemplateModules?: ConnectionResult; secureTableProvisions?: ConnectionResult; relationProvisions?: ConnectionResult; + blueprints?: ConnectionResult; databaseProvisionModules?: ConnectionResult; } export interface SchemaRelations { @@ -2533,6 +2075,7 @@ export interface SchemaRelations { schemaGrants?: ConnectionResult; views?: ConnectionResult; defaultPrivileges?: ConnectionResult; + enums?: ConnectionResult; apiSchemas?: ConnectionResult; tableTemplateModulesByPrivateSchemaId?: ConnectionResult; tableTemplateModules?: ConnectionResult; @@ -2553,6 +2096,8 @@ export interface TableRelations { uniqueConstraints?: ConnectionResult; views?: ConnectionResult; viewTables?: ConnectionResult; + embeddingChunksByChunksTableId?: ConnectionResult; + embeddingChunks?: ConnectionResult; tableTemplateModulesByOwnerTableId?: ConnectionResult; tableTemplateModules?: ConnectionResult; secureTableProvisions?: ConnectionResult; @@ -2620,6 +2165,13 @@ export interface ViewRuleRelations { database?: Database | null; view?: View | null; } +export interface EmbeddingChunkRelations { + chunksTable?: Table | null; + database?: Database | null; + embeddingField?: Field | null; + parentFkField?: Field | null; + table?: Table | null; +} export interface TableTemplateModuleRelations { database?: Database | null; ownerTable?: Table | null; @@ -2645,6 +2197,10 @@ export interface DefaultPrivilegeRelations { database?: Database | null; schema?: Schema | null; } +export interface EnumRelations { + database?: Database | null; + schema?: Schema | null; +} export interface ApiSchemaRelations { api?: Api | null; database?: Database | null; @@ -2674,6 +2230,9 @@ export interface SiteThemeRelations { export interface TriggerFunctionRelations { database?: Database | null; } +export interface DatabaseTransferRelations { + database?: Database | null; +} export interface ApiRelations { database?: Database | null; apiModules?: ConnectionResult; @@ -2852,9 +2411,14 @@ export interface UsersModuleRelations { table?: Table | null; typeTable?: Table | null; } -export interface UuidModuleRelations { +export interface BlueprintRelations { database?: Database | null; - schema?: Schema | null; + template?: BlueprintTemplate | null; +} +export interface BlueprintTemplateRelations { + forkedFrom?: BlueprintTemplate | null; + blueprintTemplatesByForkedFromId?: ConnectionResult; + blueprintsByTemplateId?: ConnectionResult; } export interface DatabaseProvisionModuleRelations { database?: Database | null; @@ -2905,6 +2469,9 @@ export interface OrgChartEdgeGrantRelations { grantor?: User | null; parent?: User | null; } +export interface OrgPermissionDefaultRelations { + entity?: User | null; +} export interface AppLimitRelations { actor?: User | null; } @@ -2918,6 +2485,21 @@ export interface AppStepRelations { export interface AppAchievementRelations { actor?: User | null; } +export interface AppLevelRelations { + owner?: User | null; +} +export interface EmailRelations { + owner?: User | null; +} +export interface PhoneNumberRelations { + owner?: User | null; +} +export interface CryptoAddressRelations { + owner?: User | null; +} +export interface ConnectedAccountRelations { + owner?: User | null; +} export interface InviteRelations { sender?: User | null; } @@ -2935,24 +2517,15 @@ export interface OrgClaimedInviteRelations { receiver?: User | null; sender?: User | null; } +export interface AuditLogRelations { + actor?: User | null; +} export interface RefRelations {} export interface StoreRelations {} export interface AppPermissionDefaultRelations {} -export interface CryptoAddressRelations { - owner?: User | null; -} export interface RoleTypeRelations {} -export interface OrgPermissionDefaultRelations { - entity?: User | null; -} -export interface PhoneNumberRelations { - owner?: User | null; -} export interface AppLimitDefaultRelations {} export interface OrgLimitDefaultRelations {} -export interface ConnectedAccountRelations { - owner?: User | null; -} export interface NodeTypeRegistryRelations {} export interface MembershipTypeRelations {} export interface CommitRelations {} @@ -2968,32 +2541,29 @@ export interface RlsModuleRelations { export interface OrgMembershipDefaultRelations { entity?: User | null; } -export interface AuditLogRelations { - actor?: User | null; -} -export interface AppLevelRelations { - owner?: User | null; -} export interface SqlMigrationRelations {} -export interface EmailRelations { - owner?: User | null; -} export interface UserRelations { roleType?: RoleType | null; appMembershipByActorId?: AppMembership | null; orgMembershipDefaultByEntityId?: OrgMembershipDefault | null; ownedDatabases?: ConnectionResult; + appAdminGrantsByActorId?: ConnectionResult; appAdminGrantsByGrantorId?: ConnectionResult; + appOwnerGrantsByActorId?: ConnectionResult; appOwnerGrantsByGrantorId?: ConnectionResult; + appGrantsByActorId?: ConnectionResult; appGrantsByGrantorId?: ConnectionResult; orgMembershipsByActorId?: ConnectionResult; orgMembershipsByEntityId?: ConnectionResult; orgMembersByActorId?: ConnectionResult; orgMembersByEntityId?: ConnectionResult; + orgAdminGrantsByActorId?: ConnectionResult; orgAdminGrantsByEntityId?: ConnectionResult; orgAdminGrantsByGrantorId?: ConnectionResult; + orgOwnerGrantsByActorId?: ConnectionResult; orgOwnerGrantsByEntityId?: ConnectionResult; orgOwnerGrantsByGrantorId?: ConnectionResult; + orgGrantsByActorId?: ConnectionResult; orgGrantsByEntityId?: ConnectionResult; orgGrantsByGrantorId?: ConnectionResult; parentOrgChartEdges?: ConnectionResult; @@ -3003,18 +2573,27 @@ export interface UserRelations { orgChartEdgeGrantsByEntityId?: ConnectionResult; orgChartEdgeGrantsByGrantorId?: ConnectionResult; childOrgChartEdgeGrants?: ConnectionResult; + orgPermissionDefaultsByEntityId?: ConnectionResult; appLimitsByActorId?: ConnectionResult; orgLimitsByActorId?: ConnectionResult; orgLimitsByEntityId?: ConnectionResult; appStepsByActorId?: ConnectionResult; appAchievementsByActorId?: ConnectionResult; + ownedAppLevels?: ConnectionResult; + ownedEmails?: ConnectionResult; + ownedPhoneNumbers?: ConnectionResult; + ownedCryptoAddresses?: ConnectionResult; + ownedConnectedAccounts?: ConnectionResult; invitesBySenderId?: ConnectionResult; claimedInvitesByReceiverId?: ConnectionResult; claimedInvitesBySenderId?: ConnectionResult; orgInvitesByEntityId?: ConnectionResult; + orgInvitesByReceiverId?: ConnectionResult; orgInvitesBySenderId?: ConnectionResult; + orgClaimedInvitesByEntityId?: ConnectionResult; orgClaimedInvitesByReceiverId?: ConnectionResult; orgClaimedInvitesBySenderId?: ConnectionResult; + auditLogsByActorId?: ConnectionResult; } export interface AstMigrationRelations {} export interface AppMembershipRelations { @@ -3031,11 +2610,11 @@ export interface HierarchyModuleRelations { usersTable?: Table | null; } // ============ Entity Types With Relations ============ +export type GetAllRecordWithRelations = GetAllRecord & GetAllRecordRelations; export type OrgGetManagersRecordWithRelations = OrgGetManagersRecord & OrgGetManagersRecordRelations; export type OrgGetSubordinatesRecordWithRelations = OrgGetSubordinatesRecord & OrgGetSubordinatesRecordRelations; -export type GetAllRecordWithRelations = GetAllRecord & GetAllRecordRelations; export type ObjectWithRelations = Object & ObjectRelations; export type AppPermissionWithRelations = AppPermission & AppPermissionRelations; export type OrgPermissionWithRelations = OrgPermission & OrgPermissionRelations; @@ -3059,12 +2638,14 @@ export type ViewWithRelations = View & ViewRelations; export type ViewTableWithRelations = ViewTable & ViewTableRelations; export type ViewGrantWithRelations = ViewGrant & ViewGrantRelations; export type ViewRuleWithRelations = ViewRule & ViewRuleRelations; +export type EmbeddingChunkWithRelations = EmbeddingChunk & EmbeddingChunkRelations; export type TableTemplateModuleWithRelations = TableTemplateModule & TableTemplateModuleRelations; export type SecureTableProvisionWithRelations = SecureTableProvision & SecureTableProvisionRelations; export type RelationProvisionWithRelations = RelationProvision & RelationProvisionRelations; export type SchemaGrantWithRelations = SchemaGrant & SchemaGrantRelations; export type DefaultPrivilegeWithRelations = DefaultPrivilege & DefaultPrivilegeRelations; +export type EnumWithRelations = Enum & EnumRelations; export type ApiSchemaWithRelations = ApiSchema & ApiSchemaRelations; export type ApiModuleWithRelations = ApiModule & ApiModuleRelations; export type DomainWithRelations = Domain & DomainRelations; @@ -3072,6 +2653,7 @@ export type SiteMetadatumWithRelations = SiteMetadatum & SiteMetadatumRelations; export type SiteModuleWithRelations = SiteModule & SiteModuleRelations; export type SiteThemeWithRelations = SiteTheme & SiteThemeRelations; export type TriggerFunctionWithRelations = TriggerFunction & TriggerFunctionRelations; +export type DatabaseTransferWithRelations = DatabaseTransfer & DatabaseTransferRelations; export type ApiWithRelations = Api & ApiRelations; export type SiteWithRelations = Site & SiteRelations; export type AppWithRelations = App & AppRelations; @@ -3100,7 +2682,8 @@ export type SecretsModuleWithRelations = SecretsModule & SecretsModuleRelations; export type SessionsModuleWithRelations = SessionsModule & SessionsModuleRelations; export type UserAuthModuleWithRelations = UserAuthModule & UserAuthModuleRelations; export type UsersModuleWithRelations = UsersModule & UsersModuleRelations; -export type UuidModuleWithRelations = UuidModule & UuidModuleRelations; +export type BlueprintWithRelations = Blueprint & BlueprintRelations; +export type BlueprintTemplateWithRelations = BlueprintTemplate & BlueprintTemplateRelations; export type DatabaseProvisionModuleWithRelations = DatabaseProvisionModule & DatabaseProvisionModuleRelations; export type AppAdminGrantWithRelations = AppAdminGrant & AppAdminGrantRelations; @@ -3113,26 +2696,29 @@ export type OrgOwnerGrantWithRelations = OrgOwnerGrant & OrgOwnerGrantRelations; export type OrgGrantWithRelations = OrgGrant & OrgGrantRelations; export type OrgChartEdgeWithRelations = OrgChartEdge & OrgChartEdgeRelations; export type OrgChartEdgeGrantWithRelations = OrgChartEdgeGrant & OrgChartEdgeGrantRelations; +export type OrgPermissionDefaultWithRelations = OrgPermissionDefault & + OrgPermissionDefaultRelations; export type AppLimitWithRelations = AppLimit & AppLimitRelations; export type OrgLimitWithRelations = OrgLimit & OrgLimitRelations; export type AppStepWithRelations = AppStep & AppStepRelations; export type AppAchievementWithRelations = AppAchievement & AppAchievementRelations; +export type AppLevelWithRelations = AppLevel & AppLevelRelations; +export type EmailWithRelations = Email & EmailRelations; +export type PhoneNumberWithRelations = PhoneNumber & PhoneNumberRelations; +export type CryptoAddressWithRelations = CryptoAddress & CryptoAddressRelations; +export type ConnectedAccountWithRelations = ConnectedAccount & ConnectedAccountRelations; export type InviteWithRelations = Invite & InviteRelations; export type ClaimedInviteWithRelations = ClaimedInvite & ClaimedInviteRelations; export type OrgInviteWithRelations = OrgInvite & OrgInviteRelations; export type OrgClaimedInviteWithRelations = OrgClaimedInvite & OrgClaimedInviteRelations; +export type AuditLogWithRelations = AuditLog & AuditLogRelations; export type RefWithRelations = Ref & RefRelations; export type StoreWithRelations = Store & StoreRelations; export type AppPermissionDefaultWithRelations = AppPermissionDefault & AppPermissionDefaultRelations; -export type CryptoAddressWithRelations = CryptoAddress & CryptoAddressRelations; export type RoleTypeWithRelations = RoleType & RoleTypeRelations; -export type OrgPermissionDefaultWithRelations = OrgPermissionDefault & - OrgPermissionDefaultRelations; -export type PhoneNumberWithRelations = PhoneNumber & PhoneNumberRelations; export type AppLimitDefaultWithRelations = AppLimitDefault & AppLimitDefaultRelations; export type OrgLimitDefaultWithRelations = OrgLimitDefault & OrgLimitDefaultRelations; -export type ConnectedAccountWithRelations = ConnectedAccount & ConnectedAccountRelations; export type NodeTypeRegistryWithRelations = NodeTypeRegistry & NodeTypeRegistryRelations; export type MembershipTypeWithRelations = MembershipType & MembershipTypeRelations; export type CommitWithRelations = Commit & CommitRelations; @@ -3141,15 +2727,16 @@ export type AppMembershipDefaultWithRelations = AppMembershipDefault & export type RlsModuleWithRelations = RlsModule & RlsModuleRelations; export type OrgMembershipDefaultWithRelations = OrgMembershipDefault & OrgMembershipDefaultRelations; -export type AuditLogWithRelations = AuditLog & AuditLogRelations; -export type AppLevelWithRelations = AppLevel & AppLevelRelations; export type SqlMigrationWithRelations = SqlMigration & SqlMigrationRelations; -export type EmailWithRelations = Email & EmailRelations; export type UserWithRelations = User & UserRelations; export type AstMigrationWithRelations = AstMigration & AstMigrationRelations; export type AppMembershipWithRelations = AppMembership & AppMembershipRelations; export type HierarchyModuleWithRelations = HierarchyModule & HierarchyModuleRelations; // ============ Entity Select Types ============ +export type GetAllRecordSelect = { + path?: boolean; + data?: boolean; +}; export type OrgGetManagersRecordSelect = { userId?: boolean; depth?: boolean; @@ -3158,10 +2745,6 @@ export type OrgGetSubordinatesRecordSelect = { userId?: boolean; depth?: boolean; }; -export type GetAllRecordSelect = { - path?: boolean; - data?: boolean; -}; export type ObjectSelect = { hashUuid?: boolean; id?: boolean; @@ -3178,8 +2761,6 @@ export type AppPermissionSelect = { bitnum?: boolean; bitstr?: boolean; description?: boolean; - descriptionTrgmSimilarity?: boolean; - searchScore?: boolean; }; export type OrgPermissionSelect = { id?: boolean; @@ -3187,8 +2768,6 @@ export type OrgPermissionSelect = { bitnum?: boolean; bitstr?: boolean; description?: boolean; - descriptionTrgmSimilarity?: boolean; - searchScore?: boolean; }; export type AppLevelRequirementSelect = { id?: boolean; @@ -3199,8 +2778,6 @@ export type AppLevelRequirementSelect = { priority?: boolean; createdAt?: boolean; updatedAt?: boolean; - descriptionTrgmSimilarity?: boolean; - searchScore?: boolean; }; export type DatabaseSelect = { id?: boolean; @@ -3211,10 +2788,6 @@ export type DatabaseSelect = { hash?: boolean; createdAt?: boolean; updatedAt?: boolean; - schemaHashTrgmSimilarity?: boolean; - nameTrgmSimilarity?: boolean; - labelTrgmSimilarity?: boolean; - searchScore?: boolean; owner?: { select: UserSelect; }; @@ -3332,6 +2905,24 @@ export type DatabaseSelect = { filter?: DefaultPrivilegeFilter; orderBy?: DefaultPrivilegeOrderBy[]; }; + enums?: { + select: EnumSelect; + first?: number; + filter?: EnumFilter; + orderBy?: EnumOrderBy[]; + }; + embeddingChunks?: { + select: EmbeddingChunkSelect; + first?: number; + filter?: EmbeddingChunkFilter; + orderBy?: EmbeddingChunkOrderBy[]; + }; + databaseTransfers?: { + select: DatabaseTransferSelect; + first?: number; + filter?: DatabaseTransferFilter; + orderBy?: DatabaseTransferOrderBy[]; + }; apis?: { select: ApiSelect; first?: number; @@ -3506,12 +3097,6 @@ export type DatabaseSelect = { filter?: UsersModuleFilter; orderBy?: UsersModuleOrderBy[]; }; - uuidModules?: { - select: UuidModuleSelect; - first?: number; - filter?: UuidModuleFilter; - orderBy?: UuidModuleOrderBy[]; - }; tableTemplateModules?: { select: TableTemplateModuleSelect; first?: number; @@ -3530,6 +3115,12 @@ export type DatabaseSelect = { filter?: RelationProvisionFilter; orderBy?: RelationProvisionOrderBy[]; }; + blueprints?: { + select: BlueprintSelect; + first?: number; + filter?: BlueprintFilter; + orderBy?: BlueprintOrderBy[]; + }; databaseProvisionModules?: { select: DatabaseProvisionModuleSelect; first?: number; @@ -3552,12 +3143,6 @@ export type SchemaSelect = { isPublic?: boolean; createdAt?: boolean; updatedAt?: boolean; - nameTrgmSimilarity?: boolean; - schemaNameTrgmSimilarity?: boolean; - labelTrgmSimilarity?: boolean; - descriptionTrgmSimilarity?: boolean; - moduleTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -3585,6 +3170,12 @@ export type SchemaSelect = { filter?: DefaultPrivilegeFilter; orderBy?: DefaultPrivilegeOrderBy[]; }; + enums?: { + select: EnumSelect; + first?: number; + filter?: EnumFilter; + orderBy?: EnumOrderBy[]; + }; apiSchemas?: { select: ApiSchemaSelect; first?: number; @@ -3624,13 +3215,6 @@ export type TableSelect = { inheritsId?: boolean; createdAt?: boolean; updatedAt?: boolean; - nameTrgmSimilarity?: boolean; - labelTrgmSimilarity?: boolean; - descriptionTrgmSimilarity?: boolean; - moduleTrgmSimilarity?: boolean; - pluralNameTrgmSimilarity?: boolean; - singularNameTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -3712,6 +3296,18 @@ export type TableSelect = { filter?: ViewTableFilter; orderBy?: ViewTableOrderBy[]; }; + embeddingChunksByChunksTableId?: { + select: EmbeddingChunkSelect; + first?: number; + filter?: EmbeddingChunkFilter; + orderBy?: EmbeddingChunkOrderBy[]; + }; + embeddingChunks?: { + select: EmbeddingChunkSelect; + first?: number; + filter?: EmbeddingChunkFilter; + orderBy?: EmbeddingChunkOrderBy[]; + }; tableTemplateModulesByOwnerTableId?: { select: TableTemplateModuleSelect; first?: number; @@ -3758,10 +3354,6 @@ export type CheckConstraintSelect = { tags?: boolean; createdAt?: boolean; updatedAt?: boolean; - nameTrgmSimilarity?: boolean; - typeTrgmSimilarity?: boolean; - moduleTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -3778,6 +3370,7 @@ export type FieldSelect = { description?: boolean; smartTags?: boolean; isRequired?: boolean; + apiRequired?: boolean; defaultValue?: boolean; defaultValueAst?: boolean; isHidden?: boolean; @@ -3794,13 +3387,6 @@ export type FieldSelect = { scope?: boolean; createdAt?: boolean; updatedAt?: boolean; - nameTrgmSimilarity?: boolean; - labelTrgmSimilarity?: boolean; - descriptionTrgmSimilarity?: boolean; - defaultValueTrgmSimilarity?: boolean; - regexpTrgmSimilarity?: boolean; - moduleTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -3827,13 +3413,6 @@ export type ForeignKeyConstraintSelect = { tags?: boolean; createdAt?: boolean; updatedAt?: boolean; - nameTrgmSimilarity?: boolean; - descriptionTrgmSimilarity?: boolean; - typeTrgmSimilarity?: boolean; - deleteActionTrgmSimilarity?: boolean; - updateActionTrgmSimilarity?: boolean; - moduleTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -3881,10 +3460,6 @@ export type IndexSelect = { tags?: boolean; createdAt?: boolean; updatedAt?: boolean; - nameTrgmSimilarity?: boolean; - accessMethodTrgmSimilarity?: boolean; - moduleTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -3910,12 +3485,6 @@ export type PolicySelect = { tags?: boolean; createdAt?: boolean; updatedAt?: boolean; - nameTrgmSimilarity?: boolean; - granteeNameTrgmSimilarity?: boolean; - privilegeTrgmSimilarity?: boolean; - policyTypeTrgmSimilarity?: boolean; - moduleTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -3937,10 +3506,6 @@ export type PrimaryKeyConstraintSelect = { tags?: boolean; createdAt?: boolean; updatedAt?: boolean; - nameTrgmSimilarity?: boolean; - typeTrgmSimilarity?: boolean; - moduleTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -3958,9 +3523,6 @@ export type TableGrantSelect = { isGrant?: boolean; createdAt?: boolean; updatedAt?: boolean; - privilegeTrgmSimilarity?: boolean; - granteeNameTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -3982,11 +3544,6 @@ export type TriggerSelect = { tags?: boolean; createdAt?: boolean; updatedAt?: boolean; - nameTrgmSimilarity?: boolean; - eventTrgmSimilarity?: boolean; - functionNameTrgmSimilarity?: boolean; - moduleTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -4009,11 +3566,6 @@ export type UniqueConstraintSelect = { tags?: boolean; createdAt?: boolean; updatedAt?: boolean; - nameTrgmSimilarity?: boolean; - descriptionTrgmSimilarity?: boolean; - typeTrgmSimilarity?: boolean; - moduleTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -4038,11 +3590,6 @@ export type ViewSelect = { module?: boolean; scope?: boolean; tags?: boolean; - nameTrgmSimilarity?: boolean; - viewTypeTrgmSimilarity?: boolean; - filterTypeTrgmSimilarity?: boolean; - moduleTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -4091,9 +3638,6 @@ export type ViewGrantSelect = { privilege?: boolean; withGrantOption?: boolean; isGrant?: boolean; - granteeNameTrgmSimilarity?: boolean; - privilegeTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -4108,10 +3652,6 @@ export type ViewRuleSelect = { name?: boolean; event?: boolean; action?: boolean; - nameTrgmSimilarity?: boolean; - eventTrgmSimilarity?: boolean; - actionTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -4119,6 +3659,41 @@ export type ViewRuleSelect = { select: ViewSelect; }; }; +export type EmbeddingChunkSelect = { + id?: boolean; + databaseId?: boolean; + tableId?: boolean; + embeddingFieldId?: boolean; + chunksTableId?: boolean; + chunksTableName?: boolean; + contentFieldName?: boolean; + dimensions?: boolean; + metric?: boolean; + chunkSize?: boolean; + chunkOverlap?: boolean; + chunkStrategy?: boolean; + metadataFields?: boolean; + enqueueChunkingJob?: boolean; + chunkingTaskName?: boolean; + parentFkFieldId?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + chunksTable?: { + select: TableSelect; + }; + database?: { + select: DatabaseSelect; + }; + embeddingField?: { + select: FieldSelect; + }; + parentFkField?: { + select: FieldSelect; + }; + table?: { + select: TableSelect; + }; +}; export type TableTemplateModuleSelect = { id?: boolean; databaseId?: boolean; @@ -4129,9 +3704,6 @@ export type TableTemplateModuleSelect = { tableName?: boolean; nodeType?: boolean; data?: boolean; - tableNameTrgmSimilarity?: boolean; - nodeTypeTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -4167,12 +3739,6 @@ export type SecureTableProvisionSelect = { policyName?: boolean; policyData?: boolean; outFields?: boolean; - tableNameTrgmSimilarity?: boolean; - nodeTypeTrgmSimilarity?: boolean; - policyTypeTrgmSimilarity?: boolean; - policyRoleTrgmSimilarity?: boolean; - policyNameTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -4192,12 +3758,15 @@ export type RelationProvisionSelect = { fieldName?: boolean; deleteAction?: boolean; isRequired?: boolean; + apiRequired?: boolean; junctionTableId?: boolean; junctionTableName?: boolean; junctionSchemaId?: boolean; sourceFieldName?: boolean; targetFieldName?: boolean; useCompositeKey?: boolean; + createIndex?: boolean; + exposeInApi?: boolean; nodeType?: boolean; nodeData?: boolean; grantRoles?: boolean; @@ -4212,17 +3781,6 @@ export type RelationProvisionSelect = { outJunctionTableId?: boolean; outSourceFieldId?: boolean; outTargetFieldId?: boolean; - relationTypeTrgmSimilarity?: boolean; - fieldNameTrgmSimilarity?: boolean; - deleteActionTrgmSimilarity?: boolean; - junctionTableNameTrgmSimilarity?: boolean; - sourceFieldNameTrgmSimilarity?: boolean; - targetFieldNameTrgmSimilarity?: boolean; - nodeTypeTrgmSimilarity?: boolean; - policyTypeTrgmSimilarity?: boolean; - policyRoleTrgmSimilarity?: boolean; - policyNameTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -4240,8 +3798,6 @@ export type SchemaGrantSelect = { granteeName?: boolean; createdAt?: boolean; updatedAt?: boolean; - granteeNameTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -4257,10 +3813,26 @@ export type DefaultPrivilegeSelect = { privilege?: boolean; granteeName?: boolean; isGrant?: boolean; - objectTypeTrgmSimilarity?: boolean; - privilegeTrgmSimilarity?: boolean; - granteeNameTrgmSimilarity?: boolean; - searchScore?: boolean; + database?: { + select: DatabaseSelect; + }; + schema?: { + select: SchemaSelect; + }; +}; +export type EnumSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + name?: boolean; + label?: boolean; + description?: boolean; + values?: boolean; + smartTags?: boolean; + category?: boolean; + module?: boolean; + scope?: boolean; + tags?: boolean; database?: { select: DatabaseSelect; }; @@ -4289,8 +3861,6 @@ export type ApiModuleSelect = { apiId?: boolean; name?: boolean; data?: boolean; - nameTrgmSimilarity?: boolean; - searchScore?: boolean; api?: { select: ApiSelect; }; @@ -4322,9 +3892,6 @@ export type SiteMetadatumSelect = { title?: boolean; description?: boolean; ogImage?: boolean; - titleTrgmSimilarity?: boolean; - descriptionTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -4338,8 +3905,6 @@ export type SiteModuleSelect = { siteId?: boolean; name?: boolean; data?: boolean; - nameTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -4366,9 +3931,25 @@ export type TriggerFunctionSelect = { code?: boolean; createdAt?: boolean; updatedAt?: boolean; - nameTrgmSimilarity?: boolean; - codeTrgmSimilarity?: boolean; - searchScore?: boolean; + database?: { + select: DatabaseSelect; + }; +}; +export type DatabaseTransferSelect = { + id?: boolean; + databaseId?: boolean; + targetOwnerId?: boolean; + sourceApproved?: boolean; + targetApproved?: boolean; + sourceApprovedAt?: boolean; + targetApprovedAt?: boolean; + status?: boolean; + initiatedBy?: boolean; + notes?: boolean; + expiresAt?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + completedAt?: boolean; database?: { select: DatabaseSelect; }; @@ -4381,11 +3962,6 @@ export type ApiSelect = { roleName?: boolean; anonRole?: boolean; isPublic?: boolean; - nameTrgmSimilarity?: boolean; - dbnameTrgmSimilarity?: boolean; - roleNameTrgmSimilarity?: boolean; - anonRoleTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -4418,10 +3994,6 @@ export type SiteSelect = { appleTouchIcon?: boolean; logo?: boolean; dbname?: boolean; - titleTrgmSimilarity?: boolean; - descriptionTrgmSimilarity?: boolean; - dbnameTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -4463,10 +4035,6 @@ export type AppSelect = { appStoreId?: boolean; appIdPrefix?: boolean; playStoreLink?: boolean; - nameTrgmSimilarity?: boolean; - appStoreIdTrgmSimilarity?: boolean; - appIdPrefixTrgmSimilarity?: boolean; - searchScore?: boolean; site?: { select: SiteSelect; }; @@ -4482,8 +4050,6 @@ export type ConnectedAccountsModuleSelect = { tableId?: boolean; ownerTableId?: boolean; tableName?: boolean; - tableNameTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -4509,9 +4075,6 @@ export type CryptoAddressesModuleSelect = { ownerTableId?: boolean; tableName?: boolean; cryptoNetwork?: boolean; - tableNameTrgmSimilarity?: boolean; - cryptoNetworkTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -4543,13 +4106,6 @@ export type CryptoAuthModuleSelect = { signInRecordFailure?: boolean; signUpWithKey?: boolean; signInWithChallenge?: boolean; - userFieldTrgmSimilarity?: boolean; - cryptoNetworkTrgmSimilarity?: boolean; - signInRequestChallengeTrgmSimilarity?: boolean; - signInRecordFailureTrgmSimilarity?: boolean; - signUpWithKeyTrgmSimilarity?: boolean; - signInWithChallengeTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -4589,8 +4145,6 @@ export type DenormalizedTableFieldSelect = { updateDefaults?: boolean; funcName?: boolean; funcOrder?: boolean; - funcNameTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -4615,8 +4169,6 @@ export type EmailsModuleSelect = { tableId?: boolean; ownerTableId?: boolean; tableName?: boolean; - tableNameTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -4639,8 +4191,6 @@ export type EncryptedSecretsModuleSelect = { schemaId?: boolean; tableId?: boolean; tableName?: boolean; - tableNameTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -4661,8 +4211,6 @@ export type FieldModuleSelect = { data?: boolean; triggers?: boolean; functions?: boolean; - nodeTypeTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -4691,11 +4239,6 @@ export type InvitesModuleSelect = { prefix?: boolean; membershipType?: boolean; entityTableId?: boolean; - invitesTableNameTrgmSimilarity?: boolean; - claimedInvitesTableNameTrgmSimilarity?: boolean; - submitInviteCodeFunctionTrgmSimilarity?: boolean; - prefixTrgmSimilarity?: boolean; - searchScore?: boolean; claimedInvitesTable?: { select: TableSelect; }; @@ -4748,22 +4291,6 @@ export type LevelsModuleSelect = { membershipType?: boolean; entityTableId?: boolean; actorTableId?: boolean; - stepsTableNameTrgmSimilarity?: boolean; - achievementsTableNameTrgmSimilarity?: boolean; - levelsTableNameTrgmSimilarity?: boolean; - levelRequirementsTableNameTrgmSimilarity?: boolean; - completedStepTrgmSimilarity?: boolean; - incompletedStepTrgmSimilarity?: boolean; - tgAchievementTrgmSimilarity?: boolean; - tgAchievementToggleTrgmSimilarity?: boolean; - tgAchievementToggleBooleanTrgmSimilarity?: boolean; - tgAchievementBooleanTrgmSimilarity?: boolean; - upsertAchievementTrgmSimilarity?: boolean; - tgUpdateAchievementsTrgmSimilarity?: boolean; - stepsRequiredTrgmSimilarity?: boolean; - levelAchievedTrgmSimilarity?: boolean; - prefixTrgmSimilarity?: boolean; - searchScore?: boolean; achievementsTable?: { select: TableSelect; }; @@ -4811,16 +4338,6 @@ export type LimitsModuleSelect = { membershipType?: boolean; entityTableId?: boolean; actorTableId?: boolean; - tableNameTrgmSimilarity?: boolean; - defaultTableNameTrgmSimilarity?: boolean; - limitIncrementFunctionTrgmSimilarity?: boolean; - limitDecrementFunctionTrgmSimilarity?: boolean; - limitIncrementTriggerTrgmSimilarity?: boolean; - limitDecrementTriggerTrgmSimilarity?: boolean; - limitUpdateTriggerTrgmSimilarity?: boolean; - limitCheckFunctionTrgmSimilarity?: boolean; - prefixTrgmSimilarity?: boolean; - searchScore?: boolean; actorTable?: { select: TableSelect; }; @@ -4849,8 +4366,6 @@ export type MembershipTypesModuleSelect = { schemaId?: boolean; tableId?: boolean; tableName?: boolean; - tableNameTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -4893,19 +4408,6 @@ export type MembershipsModuleSelect = { entityIdsByMask?: boolean; entityIdsByPerm?: boolean; entityIdsFunction?: boolean; - membershipsTableNameTrgmSimilarity?: boolean; - membersTableNameTrgmSimilarity?: boolean; - membershipDefaultsTableNameTrgmSimilarity?: boolean; - grantsTableNameTrgmSimilarity?: boolean; - adminGrantsTableNameTrgmSimilarity?: boolean; - ownerGrantsTableNameTrgmSimilarity?: boolean; - prefixTrgmSimilarity?: boolean; - actorMaskCheckTrgmSimilarity?: boolean; - actorPermCheckTrgmSimilarity?: boolean; - entityIdsByMaskTrgmSimilarity?: boolean; - entityIdsByPermTrgmSimilarity?: boolean; - entityIdsFunctionTrgmSimilarity?: boolean; - searchScore?: boolean; actorTable?: { select: TableSelect; }; @@ -4970,14 +4472,6 @@ export type PermissionsModuleSelect = { getMask?: boolean; getByMask?: boolean; getMaskByName?: boolean; - tableNameTrgmSimilarity?: boolean; - defaultTableNameTrgmSimilarity?: boolean; - prefixTrgmSimilarity?: boolean; - getPaddedMaskTrgmSimilarity?: boolean; - getMaskTrgmSimilarity?: boolean; - getByMaskTrgmSimilarity?: boolean; - getMaskByNameTrgmSimilarity?: boolean; - searchScore?: boolean; actorTable?: { select: TableSelect; }; @@ -5008,8 +4502,6 @@ export type PhoneNumbersModuleSelect = { tableId?: boolean; ownerTableId?: boolean; tableName?: boolean; - tableNameTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -5045,12 +4537,6 @@ export type ProfilesModuleSelect = { permissionsTableId?: boolean; membershipsTableId?: boolean; prefix?: boolean; - tableNameTrgmSimilarity?: boolean; - profilePermissionsTableNameTrgmSimilarity?: boolean; - profileGrantsTableNameTrgmSimilarity?: boolean; - profileDefinitionGrantsTableNameTrgmSimilarity?: boolean; - prefixTrgmSimilarity?: boolean; - searchScore?: boolean; actorTable?: { select: TableSelect; }; @@ -5091,8 +4577,6 @@ export type SecretsModuleSelect = { schemaId?: boolean; tableId?: boolean; tableName?: boolean; - tableNameTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -5115,10 +4599,6 @@ export type SessionsModuleSelect = { sessionsTable?: boolean; sessionCredentialsTable?: boolean; authSettingsTable?: boolean; - sessionsTableTrgmSimilarity?: boolean; - sessionCredentialsTableTrgmSimilarity?: boolean; - authSettingsTableTrgmSimilarity?: boolean; - searchScore?: boolean; authSettingsTableByAuthSettingsTableId?: { select: TableSelect; }; @@ -5165,23 +4645,6 @@ export type UserAuthModuleSelect = { signInOneTimeTokenFunction?: boolean; oneTimeTokenFunction?: boolean; extendTokenExpires?: boolean; - auditsTableNameTrgmSimilarity?: boolean; - signInFunctionTrgmSimilarity?: boolean; - signUpFunctionTrgmSimilarity?: boolean; - signOutFunctionTrgmSimilarity?: boolean; - setPasswordFunctionTrgmSimilarity?: boolean; - resetPasswordFunctionTrgmSimilarity?: boolean; - forgotPasswordFunctionTrgmSimilarity?: boolean; - sendVerificationEmailFunctionTrgmSimilarity?: boolean; - verifyEmailFunctionTrgmSimilarity?: boolean; - verifyPasswordFunctionTrgmSimilarity?: boolean; - checkPasswordFunctionTrgmSimilarity?: boolean; - sendAccountDeletionEmailFunctionTrgmSimilarity?: boolean; - deleteAccountFunctionTrgmSimilarity?: boolean; - signInOneTimeTokenFunctionTrgmSimilarity?: boolean; - oneTimeTokenFunctionTrgmSimilarity?: boolean; - extendTokenExpiresTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -5215,9 +4678,6 @@ export type UsersModuleSelect = { tableName?: boolean; typeTableId?: boolean; typeTableName?: boolean; - tableNameTrgmSimilarity?: boolean; - typeTableNameTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -5231,20 +4691,66 @@ export type UsersModuleSelect = { select: TableSelect; }; }; -export type UuidModuleSelect = { +export type BlueprintSelect = { id?: boolean; + ownerId?: boolean; databaseId?: boolean; - schemaId?: boolean; - uuidFunction?: boolean; - uuidSeed?: boolean; - uuidFunctionTrgmSimilarity?: boolean; - uuidSeedTrgmSimilarity?: boolean; - searchScore?: boolean; - database?: { - select: DatabaseSelect; + name?: boolean; + displayName?: boolean; + description?: boolean; + definition?: boolean; + templateId?: boolean; + status?: boolean; + constructedAt?: boolean; + errorDetails?: boolean; + refMap?: boolean; + constructedDefinition?: boolean; + definitionHash?: boolean; + tableHashes?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + database?: { + select: DatabaseSelect; }; - schema?: { - select: SchemaSelect; + template?: { + select: BlueprintTemplateSelect; + }; +}; +export type BlueprintTemplateSelect = { + id?: boolean; + name?: boolean; + version?: boolean; + displayName?: boolean; + description?: boolean; + ownerId?: boolean; + visibility?: boolean; + categories?: boolean; + tags?: boolean; + definition?: boolean; + definitionSchemaVersion?: boolean; + source?: boolean; + complexity?: boolean; + copyCount?: boolean; + forkCount?: boolean; + forkedFromId?: boolean; + definitionHash?: boolean; + tableHashes?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + forkedFrom?: { + select: BlueprintTemplateSelect; + }; + blueprintTemplatesByForkedFromId?: { + select: BlueprintTemplateSelect; + first?: number; + filter?: BlueprintTemplateFilter; + orderBy?: BlueprintTemplateOrderBy[]; + }; + blueprintsByTemplateId?: { + select: BlueprintSelect; + first?: number; + filter?: BlueprintFilter; + orderBy?: BlueprintOrderBy[]; }; }; export type DatabaseProvisionModuleSelect = { @@ -5262,12 +4768,6 @@ export type DatabaseProvisionModuleSelect = { createdAt?: boolean; updatedAt?: boolean; completedAt?: boolean; - databaseNameTrgmSimilarity?: boolean; - subdomainTrgmSimilarity?: boolean; - domainTrgmSimilarity?: boolean; - statusTrgmSimilarity?: boolean; - errorMessageTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -5415,8 +4915,6 @@ export type OrgChartEdgeSelect = { parentId?: boolean; positionTitle?: boolean; positionLevel?: boolean; - positionTitleTrgmSimilarity?: boolean; - searchScore?: boolean; child?: { select: UserSelect; }; @@ -5437,8 +4935,6 @@ export type OrgChartEdgeGrantSelect = { positionTitle?: boolean; positionLevel?: boolean; createdAt?: boolean; - positionTitleTrgmSimilarity?: boolean; - searchScore?: boolean; child?: { select: UserSelect; }; @@ -5452,6 +4948,14 @@ export type OrgChartEdgeGrantSelect = { select: UserSelect; }; }; +export type OrgPermissionDefaultSelect = { + id?: boolean; + permissions?: boolean; + entityId?: boolean; + entity?: { + select: UserSelect; + }; +}; export type AppLimitSelect = { id?: boolean; name?: boolean; @@ -5498,6 +5002,68 @@ export type AppAchievementSelect = { select: UserSelect; }; }; +export type AppLevelSelect = { + id?: boolean; + name?: boolean; + description?: boolean; + image?: boolean; + ownerId?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + owner?: { + select: UserSelect; + }; +}; +export type EmailSelect = { + id?: boolean; + ownerId?: boolean; + email?: boolean; + isVerified?: boolean; + isPrimary?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + owner?: { + select: UserSelect; + }; +}; +export type PhoneNumberSelect = { + id?: boolean; + ownerId?: boolean; + cc?: boolean; + number?: boolean; + isVerified?: boolean; + isPrimary?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + owner?: { + select: UserSelect; + }; +}; +export type CryptoAddressSelect = { + id?: boolean; + ownerId?: boolean; + address?: boolean; + isVerified?: boolean; + isPrimary?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + owner?: { + select: UserSelect; + }; +}; +export type ConnectedAccountSelect = { + id?: boolean; + ownerId?: boolean; + service?: boolean; + identifier?: boolean; + details?: boolean; + isVerified?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + owner?: { + select: UserSelect; + }; +}; export type InviteSelect = { id?: boolean; email?: boolean; @@ -5511,8 +5077,6 @@ export type InviteSelect = { expiresAt?: boolean; createdAt?: boolean; updatedAt?: boolean; - inviteTokenTrgmSimilarity?: boolean; - searchScore?: boolean; sender?: { select: UserSelect; }; @@ -5546,8 +5110,6 @@ export type OrgInviteSelect = { createdAt?: boolean; updatedAt?: boolean; entityId?: boolean; - inviteTokenTrgmSimilarity?: boolean; - searchScore?: boolean; entity?: { select: UserSelect; }; @@ -5576,14 +5138,25 @@ export type OrgClaimedInviteSelect = { select: UserSelect; }; }; +export type AuditLogSelect = { + id?: boolean; + event?: boolean; + actorId?: boolean; + origin?: boolean; + userAgent?: boolean; + ipAddress?: boolean; + success?: boolean; + createdAt?: boolean; + actor?: { + select: UserSelect; + }; +}; export type RefSelect = { id?: boolean; name?: boolean; databaseId?: boolean; storeId?: boolean; commitId?: boolean; - nameTrgmSimilarity?: boolean; - searchScore?: boolean; }; export type StoreSelect = { id?: boolean; @@ -5591,55 +5164,15 @@ export type StoreSelect = { databaseId?: boolean; hash?: boolean; createdAt?: boolean; - nameTrgmSimilarity?: boolean; - searchScore?: boolean; }; export type AppPermissionDefaultSelect = { id?: boolean; permissions?: boolean; }; -export type CryptoAddressSelect = { - id?: boolean; - ownerId?: boolean; - address?: boolean; - isVerified?: boolean; - isPrimary?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - addressTrgmSimilarity?: boolean; - searchScore?: boolean; - owner?: { - select: UserSelect; - }; -}; export type RoleTypeSelect = { id?: boolean; name?: boolean; }; -export type OrgPermissionDefaultSelect = { - id?: boolean; - permissions?: boolean; - entityId?: boolean; - entity?: { - select: UserSelect; - }; -}; -export type PhoneNumberSelect = { - id?: boolean; - ownerId?: boolean; - cc?: boolean; - number?: boolean; - isVerified?: boolean; - isPrimary?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - ccTrgmSimilarity?: boolean; - numberTrgmSimilarity?: boolean; - searchScore?: boolean; - owner?: { - select: UserSelect; - }; -}; export type AppLimitDefaultSelect = { id?: boolean; name?: boolean; @@ -5650,22 +5183,6 @@ export type OrgLimitDefaultSelect = { name?: boolean; max?: boolean; }; -export type ConnectedAccountSelect = { - id?: boolean; - ownerId?: boolean; - service?: boolean; - identifier?: boolean; - details?: boolean; - isVerified?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - serviceTrgmSimilarity?: boolean; - identifierTrgmSimilarity?: boolean; - searchScore?: boolean; - owner?: { - select: UserSelect; - }; -}; export type NodeTypeRegistrySelect = { name?: boolean; slug?: boolean; @@ -5676,21 +5193,12 @@ export type NodeTypeRegistrySelect = { tags?: boolean; createdAt?: boolean; updatedAt?: boolean; - nameTrgmSimilarity?: boolean; - slugTrgmSimilarity?: boolean; - categoryTrgmSimilarity?: boolean; - displayNameTrgmSimilarity?: boolean; - descriptionTrgmSimilarity?: boolean; - searchScore?: boolean; }; export type MembershipTypeSelect = { id?: boolean; name?: boolean; description?: boolean; prefix?: boolean; - descriptionTrgmSimilarity?: boolean; - prefixTrgmSimilarity?: boolean; - searchScore?: boolean; }; export type CommitSelect = { id?: boolean; @@ -5702,8 +5210,6 @@ export type CommitSelect = { committerId?: boolean; treeId?: boolean; date?: boolean; - messageTrgmSimilarity?: boolean; - searchScore?: boolean; }; export type AppMembershipDefaultSelect = { id?: boolean; @@ -5726,11 +5232,6 @@ export type RlsModuleSelect = { authenticateStrict?: boolean; currentRole?: boolean; currentRoleId?: boolean; - authenticateTrgmSimilarity?: boolean; - authenticateStrictTrgmSimilarity?: boolean; - currentRoleTrgmSimilarity?: boolean; - currentRoleIdTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -5764,35 +5265,6 @@ export type OrgMembershipDefaultSelect = { select: UserSelect; }; }; -export type AuditLogSelect = { - id?: boolean; - event?: boolean; - actorId?: boolean; - origin?: boolean; - userAgent?: boolean; - ipAddress?: boolean; - success?: boolean; - createdAt?: boolean; - userAgentTrgmSimilarity?: boolean; - searchScore?: boolean; - actor?: { - select: UserSelect; - }; -}; -export type AppLevelSelect = { - id?: boolean; - name?: boolean; - description?: boolean; - image?: boolean; - ownerId?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - descriptionTrgmSimilarity?: boolean; - searchScore?: boolean; - owner?: { - select: UserSelect; - }; -}; export type SqlMigrationSelect = { id?: boolean; name?: boolean; @@ -5807,25 +5279,6 @@ export type SqlMigrationSelect = { action?: boolean; actionId?: boolean; actorId?: boolean; - nameTrgmSimilarity?: boolean; - deployTrgmSimilarity?: boolean; - contentTrgmSimilarity?: boolean; - revertTrgmSimilarity?: boolean; - verifyTrgmSimilarity?: boolean; - actionTrgmSimilarity?: boolean; - searchScore?: boolean; -}; -export type EmailSelect = { - id?: boolean; - ownerId?: boolean; - email?: boolean; - isVerified?: boolean; - isPrimary?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - owner?: { - select: UserSelect; - }; }; export type UserSelect = { id?: boolean; @@ -5854,18 +5307,36 @@ export type UserSelect = { filter?: DatabaseFilter; orderBy?: DatabaseOrderBy[]; }; + appAdminGrantsByActorId?: { + select: AppAdminGrantSelect; + first?: number; + filter?: AppAdminGrantFilter; + orderBy?: AppAdminGrantOrderBy[]; + }; appAdminGrantsByGrantorId?: { select: AppAdminGrantSelect; first?: number; filter?: AppAdminGrantFilter; orderBy?: AppAdminGrantOrderBy[]; }; + appOwnerGrantsByActorId?: { + select: AppOwnerGrantSelect; + first?: number; + filter?: AppOwnerGrantFilter; + orderBy?: AppOwnerGrantOrderBy[]; + }; appOwnerGrantsByGrantorId?: { select: AppOwnerGrantSelect; first?: number; filter?: AppOwnerGrantFilter; orderBy?: AppOwnerGrantOrderBy[]; }; + appGrantsByActorId?: { + select: AppGrantSelect; + first?: number; + filter?: AppGrantFilter; + orderBy?: AppGrantOrderBy[]; + }; appGrantsByGrantorId?: { select: AppGrantSelect; first?: number; @@ -5896,6 +5367,12 @@ export type UserSelect = { filter?: OrgMemberFilter; orderBy?: OrgMemberOrderBy[]; }; + orgAdminGrantsByActorId?: { + select: OrgAdminGrantSelect; + first?: number; + filter?: OrgAdminGrantFilter; + orderBy?: OrgAdminGrantOrderBy[]; + }; orgAdminGrantsByEntityId?: { select: OrgAdminGrantSelect; first?: number; @@ -5908,6 +5385,12 @@ export type UserSelect = { filter?: OrgAdminGrantFilter; orderBy?: OrgAdminGrantOrderBy[]; }; + orgOwnerGrantsByActorId?: { + select: OrgOwnerGrantSelect; + first?: number; + filter?: OrgOwnerGrantFilter; + orderBy?: OrgOwnerGrantOrderBy[]; + }; orgOwnerGrantsByEntityId?: { select: OrgOwnerGrantSelect; first?: number; @@ -5920,6 +5403,12 @@ export type UserSelect = { filter?: OrgOwnerGrantFilter; orderBy?: OrgOwnerGrantOrderBy[]; }; + orgGrantsByActorId?: { + select: OrgGrantSelect; + first?: number; + filter?: OrgGrantFilter; + orderBy?: OrgGrantOrderBy[]; + }; orgGrantsByEntityId?: { select: OrgGrantSelect; first?: number; @@ -5974,6 +5463,12 @@ export type UserSelect = { filter?: OrgChartEdgeGrantFilter; orderBy?: OrgChartEdgeGrantOrderBy[]; }; + orgPermissionDefaultsByEntityId?: { + select: OrgPermissionDefaultSelect; + first?: number; + filter?: OrgPermissionDefaultFilter; + orderBy?: OrgPermissionDefaultOrderBy[]; + }; appLimitsByActorId?: { select: AppLimitSelect; first?: number; @@ -6004,6 +5499,36 @@ export type UserSelect = { filter?: AppAchievementFilter; orderBy?: AppAchievementOrderBy[]; }; + ownedAppLevels?: { + select: AppLevelSelect; + first?: number; + filter?: AppLevelFilter; + orderBy?: AppLevelOrderBy[]; + }; + ownedEmails?: { + select: EmailSelect; + first?: number; + filter?: EmailFilter; + orderBy?: EmailOrderBy[]; + }; + ownedPhoneNumbers?: { + select: PhoneNumberSelect; + first?: number; + filter?: PhoneNumberFilter; + orderBy?: PhoneNumberOrderBy[]; + }; + ownedCryptoAddresses?: { + select: CryptoAddressSelect; + first?: number; + filter?: CryptoAddressFilter; + orderBy?: CryptoAddressOrderBy[]; + }; + ownedConnectedAccounts?: { + select: ConnectedAccountSelect; + first?: number; + filter?: ConnectedAccountFilter; + orderBy?: ConnectedAccountOrderBy[]; + }; invitesBySenderId?: { select: InviteSelect; first?: number; @@ -6028,12 +5553,24 @@ export type UserSelect = { filter?: OrgInviteFilter; orderBy?: OrgInviteOrderBy[]; }; + orgInvitesByReceiverId?: { + select: OrgInviteSelect; + first?: number; + filter?: OrgInviteFilter; + orderBy?: OrgInviteOrderBy[]; + }; orgInvitesBySenderId?: { select: OrgInviteSelect; first?: number; filter?: OrgInviteFilter; orderBy?: OrgInviteOrderBy[]; }; + orgClaimedInvitesByEntityId?: { + select: OrgClaimedInviteSelect; + first?: number; + filter?: OrgClaimedInviteFilter; + orderBy?: OrgClaimedInviteOrderBy[]; + }; orgClaimedInvitesByReceiverId?: { select: OrgClaimedInviteSelect; first?: number; @@ -6046,6 +5583,12 @@ export type UserSelect = { filter?: OrgClaimedInviteFilter; orderBy?: OrgClaimedInviteOrderBy[]; }; + auditLogsByActorId?: { + select: AuditLogSelect; + first?: number; + filter?: AuditLogFilter; + orderBy?: AuditLogOrderBy[]; + }; }; export type AstMigrationSelect = { id?: boolean; @@ -6061,8 +5604,6 @@ export type AstMigrationSelect = { action?: boolean; actionId?: boolean; actorId?: boolean; - actionTrgmSimilarity?: boolean; - searchScore?: boolean; }; export type AppMembershipSelect = { id?: boolean; @@ -6106,17 +5647,6 @@ export type HierarchyModuleSelect = { getManagersFunction?: boolean; isManagerOfFunction?: boolean; createdAt?: boolean; - chartEdgesTableNameTrgmSimilarity?: boolean; - hierarchySprtTableNameTrgmSimilarity?: boolean; - chartEdgeGrantsTableNameTrgmSimilarity?: boolean; - prefixTrgmSimilarity?: boolean; - privateSchemaNameTrgmSimilarity?: boolean; - sprtTableNameTrgmSimilarity?: boolean; - rebuildHierarchyFunctionTrgmSimilarity?: boolean; - getSubordinatesFunctionTrgmSimilarity?: boolean; - getManagersFunctionTrgmSimilarity?: boolean; - isManagerOfFunctionTrgmSimilarity?: boolean; - searchScore?: boolean; chartEdgeGrantsTable?: { select: TableSelect; }; @@ -6143,6 +5673,13 @@ export type HierarchyModuleSelect = { }; }; // ============ Table Filter Types ============ +export interface GetAllRecordFilter { + path?: StringListFilter; + data?: JSONFilter; + and?: GetAllRecordFilter[]; + or?: GetAllRecordFilter[]; + not?: GetAllRecordFilter; +} export interface OrgGetManagersRecordFilter { userId?: UUIDFilter; depth?: IntFilter; @@ -6157,19 +5694,12 @@ export interface OrgGetSubordinatesRecordFilter { or?: OrgGetSubordinatesRecordFilter[]; not?: OrgGetSubordinatesRecordFilter; } -export interface GetAllRecordFilter { - path?: StringFilter; - data?: JSONFilter; - and?: GetAllRecordFilter[]; - or?: GetAllRecordFilter[]; - not?: GetAllRecordFilter; -} export interface ObjectFilter { hashUuid?: UUIDFilter; id?: UUIDFilter; databaseId?: UUIDFilter; - kids?: UUIDFilter; - ktree?: StringFilter; + kids?: UUIDListFilter; + ktree?: StringListFilter; data?: JSONFilter; frzn?: BooleanFilter; createdAt?: DatetimeFilter; @@ -6183,8 +5713,6 @@ export interface AppPermissionFilter { bitnum?: IntFilter; bitstr?: BitStringFilter; description?: StringFilter; - descriptionTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: AppPermissionFilter[]; or?: AppPermissionFilter[]; not?: AppPermissionFilter; @@ -6195,8 +5723,6 @@ export interface OrgPermissionFilter { bitnum?: IntFilter; bitstr?: BitStringFilter; description?: StringFilter; - descriptionTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: OrgPermissionFilter[]; or?: OrgPermissionFilter[]; not?: OrgPermissionFilter; @@ -6210,8 +5736,6 @@ export interface AppLevelRequirementFilter { priority?: IntFilter; createdAt?: DatetimeFilter; updatedAt?: DatetimeFilter; - descriptionTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: AppLevelRequirementFilter[]; or?: AppLevelRequirementFilter[]; not?: AppLevelRequirementFilter; @@ -6225,10 +5749,6 @@ export interface DatabaseFilter { hash?: UUIDFilter; createdAt?: DatetimeFilter; updatedAt?: DatetimeFilter; - schemaHashTrgmSimilarity?: FloatFilter; - nameTrgmSimilarity?: FloatFilter; - labelTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: DatabaseFilter[]; or?: DatabaseFilter[]; not?: DatabaseFilter; @@ -6244,16 +5764,10 @@ export interface SchemaFilter { category?: StringFilter; module?: StringFilter; scope?: IntFilter; - tags?: StringFilter; + tags?: StringListFilter; isPublic?: BooleanFilter; createdAt?: DatetimeFilter; updatedAt?: DatetimeFilter; - nameTrgmSimilarity?: FloatFilter; - schemaNameTrgmSimilarity?: FloatFilter; - labelTrgmSimilarity?: FloatFilter; - descriptionTrgmSimilarity?: FloatFilter; - moduleTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: SchemaFilter[]; or?: SchemaFilter[]; not?: SchemaFilter; @@ -6274,17 +5788,10 @@ export interface TableFilter { peoplestamps?: BooleanFilter; pluralName?: StringFilter; singularName?: StringFilter; - tags?: StringFilter; + tags?: StringListFilter; inheritsId?: UUIDFilter; createdAt?: DatetimeFilter; updatedAt?: DatetimeFilter; - nameTrgmSimilarity?: FloatFilter; - labelTrgmSimilarity?: FloatFilter; - descriptionTrgmSimilarity?: FloatFilter; - moduleTrgmSimilarity?: FloatFilter; - pluralNameTrgmSimilarity?: FloatFilter; - singularNameTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: TableFilter[]; or?: TableFilter[]; not?: TableFilter; @@ -6295,19 +5802,15 @@ export interface CheckConstraintFilter { tableId?: UUIDFilter; name?: StringFilter; type?: StringFilter; - fieldIds?: UUIDFilter; + fieldIds?: UUIDListFilter; expr?: JSONFilter; smartTags?: JSONFilter; category?: StringFilter; module?: StringFilter; scope?: IntFilter; - tags?: StringFilter; + tags?: StringListFilter; createdAt?: DatetimeFilter; updatedAt?: DatetimeFilter; - nameTrgmSimilarity?: FloatFilter; - typeTrgmSimilarity?: FloatFilter; - moduleTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: CheckConstraintFilter[]; or?: CheckConstraintFilter[]; not?: CheckConstraintFilter; @@ -6321,6 +5824,7 @@ export interface FieldFilter { description?: StringFilter; smartTags?: JSONFilter; isRequired?: BooleanFilter; + apiRequired?: BooleanFilter; defaultValue?: StringFilter; defaultValueAst?: JSONFilter; isHidden?: BooleanFilter; @@ -6331,19 +5835,12 @@ export interface FieldFilter { chkExpr?: JSONFilter; min?: FloatFilter; max?: FloatFilter; - tags?: StringFilter; + tags?: StringListFilter; category?: StringFilter; module?: StringFilter; scope?: IntFilter; createdAt?: DatetimeFilter; updatedAt?: DatetimeFilter; - nameTrgmSimilarity?: FloatFilter; - labelTrgmSimilarity?: FloatFilter; - descriptionTrgmSimilarity?: FloatFilter; - defaultValueTrgmSimilarity?: FloatFilter; - regexpTrgmSimilarity?: FloatFilter; - moduleTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: FieldFilter[]; or?: FieldFilter[]; not?: FieldFilter; @@ -6356,24 +5853,17 @@ export interface ForeignKeyConstraintFilter { description?: StringFilter; smartTags?: JSONFilter; type?: StringFilter; - fieldIds?: UUIDFilter; + fieldIds?: UUIDListFilter; refTableId?: UUIDFilter; - refFieldIds?: UUIDFilter; + refFieldIds?: UUIDListFilter; deleteAction?: StringFilter; updateAction?: StringFilter; category?: StringFilter; module?: StringFilter; scope?: IntFilter; - tags?: StringFilter; + tags?: StringListFilter; createdAt?: DatetimeFilter; updatedAt?: DatetimeFilter; - nameTrgmSimilarity?: FloatFilter; - descriptionTrgmSimilarity?: FloatFilter; - typeTrgmSimilarity?: FloatFilter; - deleteActionTrgmSimilarity?: FloatFilter; - updateActionTrgmSimilarity?: FloatFilter; - moduleTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: ForeignKeyConstraintFilter[]; or?: ForeignKeyConstraintFilter[]; not?: ForeignKeyConstraintFilter; @@ -6383,9 +5873,9 @@ export interface FullTextSearchFilter { databaseId?: UUIDFilter; tableId?: UUIDFilter; fieldId?: UUIDFilter; - fieldIds?: UUIDFilter; - weights?: StringFilter; - langs?: StringFilter; + fieldIds?: UUIDListFilter; + weights?: StringListFilter; + langs?: StringListFilter; createdAt?: DatetimeFilter; updatedAt?: DatetimeFilter; and?: FullTextSearchFilter[]; @@ -6397,25 +5887,21 @@ export interface IndexFilter { databaseId?: UUIDFilter; tableId?: UUIDFilter; name?: StringFilter; - fieldIds?: UUIDFilter; - includeFieldIds?: UUIDFilter; + fieldIds?: UUIDListFilter; + includeFieldIds?: UUIDListFilter; accessMethod?: StringFilter; indexParams?: JSONFilter; whereClause?: JSONFilter; isUnique?: BooleanFilter; options?: JSONFilter; - opClasses?: StringFilter; + opClasses?: StringListFilter; smartTags?: JSONFilter; category?: StringFilter; module?: StringFilter; scope?: IntFilter; - tags?: StringFilter; + tags?: StringListFilter; createdAt?: DatetimeFilter; updatedAt?: DatetimeFilter; - nameTrgmSimilarity?: FloatFilter; - accessMethodTrgmSimilarity?: FloatFilter; - moduleTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: IndexFilter[]; or?: IndexFilter[]; not?: IndexFilter; @@ -6435,15 +5921,9 @@ export interface PolicyFilter { category?: StringFilter; module?: StringFilter; scope?: IntFilter; - tags?: StringFilter; + tags?: StringListFilter; createdAt?: DatetimeFilter; updatedAt?: DatetimeFilter; - nameTrgmSimilarity?: FloatFilter; - granteeNameTrgmSimilarity?: FloatFilter; - privilegeTrgmSimilarity?: FloatFilter; - policyTypeTrgmSimilarity?: FloatFilter; - moduleTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: PolicyFilter[]; or?: PolicyFilter[]; not?: PolicyFilter; @@ -6454,18 +5934,14 @@ export interface PrimaryKeyConstraintFilter { tableId?: UUIDFilter; name?: StringFilter; type?: StringFilter; - fieldIds?: UUIDFilter; + fieldIds?: UUIDListFilter; smartTags?: JSONFilter; category?: StringFilter; module?: StringFilter; scope?: IntFilter; - tags?: StringFilter; + tags?: StringListFilter; createdAt?: DatetimeFilter; updatedAt?: DatetimeFilter; - nameTrgmSimilarity?: FloatFilter; - typeTrgmSimilarity?: FloatFilter; - moduleTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: PrimaryKeyConstraintFilter[]; or?: PrimaryKeyConstraintFilter[]; not?: PrimaryKeyConstraintFilter; @@ -6476,13 +5952,10 @@ export interface TableGrantFilter { tableId?: UUIDFilter; privilege?: StringFilter; granteeName?: StringFilter; - fieldIds?: UUIDFilter; + fieldIds?: UUIDListFilter; isGrant?: BooleanFilter; createdAt?: DatetimeFilter; updatedAt?: DatetimeFilter; - privilegeTrgmSimilarity?: FloatFilter; - granteeNameTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: TableGrantFilter[]; or?: TableGrantFilter[]; not?: TableGrantFilter; @@ -6498,14 +5971,9 @@ export interface TriggerFilter { category?: StringFilter; module?: StringFilter; scope?: IntFilter; - tags?: StringFilter; + tags?: StringListFilter; createdAt?: DatetimeFilter; updatedAt?: DatetimeFilter; - nameTrgmSimilarity?: FloatFilter; - eventTrgmSimilarity?: FloatFilter; - functionNameTrgmSimilarity?: FloatFilter; - moduleTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: TriggerFilter[]; or?: TriggerFilter[]; not?: TriggerFilter; @@ -6518,18 +5986,13 @@ export interface UniqueConstraintFilter { description?: StringFilter; smartTags?: JSONFilter; type?: StringFilter; - fieldIds?: UUIDFilter; + fieldIds?: UUIDListFilter; category?: StringFilter; module?: StringFilter; scope?: IntFilter; - tags?: StringFilter; + tags?: StringListFilter; createdAt?: DatetimeFilter; updatedAt?: DatetimeFilter; - nameTrgmSimilarity?: FloatFilter; - descriptionTrgmSimilarity?: FloatFilter; - typeTrgmSimilarity?: FloatFilter; - moduleTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: UniqueConstraintFilter[]; or?: UniqueConstraintFilter[]; not?: UniqueConstraintFilter; @@ -6550,12 +6013,7 @@ export interface ViewFilter { category?: StringFilter; module?: StringFilter; scope?: IntFilter; - tags?: StringFilter; - nameTrgmSimilarity?: FloatFilter; - viewTypeTrgmSimilarity?: FloatFilter; - filterTypeTrgmSimilarity?: FloatFilter; - moduleTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; + tags?: StringListFilter; and?: ViewFilter[]; or?: ViewFilter[]; not?: ViewFilter; @@ -6577,9 +6035,6 @@ export interface ViewGrantFilter { privilege?: StringFilter; withGrantOption?: BooleanFilter; isGrant?: BooleanFilter; - granteeNameTrgmSimilarity?: FloatFilter; - privilegeTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: ViewGrantFilter[]; or?: ViewGrantFilter[]; not?: ViewGrantFilter; @@ -6591,14 +6046,33 @@ export interface ViewRuleFilter { name?: StringFilter; event?: StringFilter; action?: StringFilter; - nameTrgmSimilarity?: FloatFilter; - eventTrgmSimilarity?: FloatFilter; - actionTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: ViewRuleFilter[]; or?: ViewRuleFilter[]; not?: ViewRuleFilter; } +export interface EmbeddingChunkFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + tableId?: UUIDFilter; + embeddingFieldId?: UUIDFilter; + chunksTableId?: UUIDFilter; + chunksTableName?: StringFilter; + contentFieldName?: StringFilter; + dimensions?: IntFilter; + metric?: StringFilter; + chunkSize?: IntFilter; + chunkOverlap?: IntFilter; + chunkStrategy?: StringFilter; + metadataFields?: JSONFilter; + enqueueChunkingJob?: BooleanFilter; + chunkingTaskName?: StringFilter; + parentFkFieldId?: UUIDFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: EmbeddingChunkFilter[]; + or?: EmbeddingChunkFilter[]; + not?: EmbeddingChunkFilter; +} export interface TableTemplateModuleFilter { id?: UUIDFilter; databaseId?: UUIDFilter; @@ -6609,9 +6083,6 @@ export interface TableTemplateModuleFilter { tableName?: StringFilter; nodeType?: StringFilter; data?: JSONFilter; - tableNameTrgmSimilarity?: FloatFilter; - nodeTypeTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: TableTemplateModuleFilter[]; or?: TableTemplateModuleFilter[]; not?: TableTemplateModuleFilter; @@ -6625,22 +6096,16 @@ export interface SecureTableProvisionFilter { nodeType?: StringFilter; useRls?: BooleanFilter; nodeData?: JSONFilter; - fields?: JSONFilter; - grantRoles?: StringFilter; - grantPrivileges?: JSONFilter; + fields?: StringFilter; + grantRoles?: StringListFilter; + grantPrivileges?: StringFilter; policyType?: StringFilter; - policyPrivileges?: StringFilter; + policyPrivileges?: StringListFilter; policyRole?: StringFilter; policyPermissive?: BooleanFilter; policyName?: StringFilter; policyData?: JSONFilter; - outFields?: UUIDFilter; - tableNameTrgmSimilarity?: FloatFilter; - nodeTypeTrgmSimilarity?: FloatFilter; - policyTypeTrgmSimilarity?: FloatFilter; - policyRoleTrgmSimilarity?: FloatFilter; - policyNameTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; + outFields?: UUIDListFilter; and?: SecureTableProvisionFilter[]; or?: SecureTableProvisionFilter[]; not?: SecureTableProvisionFilter; @@ -6654,18 +6119,21 @@ export interface RelationProvisionFilter { fieldName?: StringFilter; deleteAction?: StringFilter; isRequired?: BooleanFilter; + apiRequired?: BooleanFilter; junctionTableId?: UUIDFilter; junctionTableName?: StringFilter; junctionSchemaId?: UUIDFilter; sourceFieldName?: StringFilter; targetFieldName?: StringFilter; useCompositeKey?: BooleanFilter; + createIndex?: BooleanFilter; + exposeInApi?: BooleanFilter; nodeType?: StringFilter; nodeData?: JSONFilter; - grantRoles?: StringFilter; - grantPrivileges?: JSONFilter; + grantRoles?: StringListFilter; + grantPrivileges?: StringFilter; policyType?: StringFilter; - policyPrivileges?: StringFilter; + policyPrivileges?: StringListFilter; policyRole?: StringFilter; policyPermissive?: BooleanFilter; policyName?: StringFilter; @@ -6674,17 +6142,6 @@ export interface RelationProvisionFilter { outJunctionTableId?: UUIDFilter; outSourceFieldId?: UUIDFilter; outTargetFieldId?: UUIDFilter; - relationTypeTrgmSimilarity?: FloatFilter; - fieldNameTrgmSimilarity?: FloatFilter; - deleteActionTrgmSimilarity?: FloatFilter; - junctionTableNameTrgmSimilarity?: FloatFilter; - sourceFieldNameTrgmSimilarity?: FloatFilter; - targetFieldNameTrgmSimilarity?: FloatFilter; - nodeTypeTrgmSimilarity?: FloatFilter; - policyTypeTrgmSimilarity?: FloatFilter; - policyRoleTrgmSimilarity?: FloatFilter; - policyNameTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: RelationProvisionFilter[]; or?: RelationProvisionFilter[]; not?: RelationProvisionFilter; @@ -6696,8 +6153,6 @@ export interface SchemaGrantFilter { granteeName?: StringFilter; createdAt?: DatetimeFilter; updatedAt?: DatetimeFilter; - granteeNameTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: SchemaGrantFilter[]; or?: SchemaGrantFilter[]; not?: SchemaGrantFilter; @@ -6710,14 +6165,27 @@ export interface DefaultPrivilegeFilter { privilege?: StringFilter; granteeName?: StringFilter; isGrant?: BooleanFilter; - objectTypeTrgmSimilarity?: FloatFilter; - privilegeTrgmSimilarity?: FloatFilter; - granteeNameTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: DefaultPrivilegeFilter[]; or?: DefaultPrivilegeFilter[]; not?: DefaultPrivilegeFilter; } +export interface EnumFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + schemaId?: UUIDFilter; + name?: StringFilter; + label?: StringFilter; + description?: StringFilter; + values?: StringListFilter; + smartTags?: JSONFilter; + category?: StringFilter; + module?: StringFilter; + scope?: IntFilter; + tags?: StringListFilter; + and?: EnumFilter[]; + or?: EnumFilter[]; + not?: EnumFilter; +} export interface ApiSchemaFilter { id?: UUIDFilter; databaseId?: UUIDFilter; @@ -6733,8 +6201,6 @@ export interface ApiModuleFilter { apiId?: UUIDFilter; name?: StringFilter; data?: JSONFilter; - nameTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: ApiModuleFilter[]; or?: ApiModuleFilter[]; not?: ApiModuleFilter; @@ -6757,9 +6223,6 @@ export interface SiteMetadatumFilter { title?: StringFilter; description?: StringFilter; ogImage?: StringFilter; - titleTrgmSimilarity?: FloatFilter; - descriptionTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: SiteMetadatumFilter[]; or?: SiteMetadatumFilter[]; not?: SiteMetadatumFilter; @@ -6770,8 +6233,6 @@ export interface SiteModuleFilter { siteId?: UUIDFilter; name?: StringFilter; data?: JSONFilter; - nameTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: SiteModuleFilter[]; or?: SiteModuleFilter[]; not?: SiteModuleFilter; @@ -6792,13 +6253,29 @@ export interface TriggerFunctionFilter { code?: StringFilter; createdAt?: DatetimeFilter; updatedAt?: DatetimeFilter; - nameTrgmSimilarity?: FloatFilter; - codeTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: TriggerFunctionFilter[]; or?: TriggerFunctionFilter[]; not?: TriggerFunctionFilter; } +export interface DatabaseTransferFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + targetOwnerId?: UUIDFilter; + sourceApproved?: BooleanFilter; + targetApproved?: BooleanFilter; + sourceApprovedAt?: DatetimeFilter; + targetApprovedAt?: DatetimeFilter; + status?: StringFilter; + initiatedBy?: UUIDFilter; + notes?: StringFilter; + expiresAt?: DatetimeFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + completedAt?: DatetimeFilter; + and?: DatabaseTransferFilter[]; + or?: DatabaseTransferFilter[]; + not?: DatabaseTransferFilter; +} export interface ApiFilter { id?: UUIDFilter; databaseId?: UUIDFilter; @@ -6807,11 +6284,6 @@ export interface ApiFilter { roleName?: StringFilter; anonRole?: StringFilter; isPublic?: BooleanFilter; - nameTrgmSimilarity?: FloatFilter; - dbnameTrgmSimilarity?: FloatFilter; - roleNameTrgmSimilarity?: FloatFilter; - anonRoleTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: ApiFilter[]; or?: ApiFilter[]; not?: ApiFilter; @@ -6826,10 +6298,6 @@ export interface SiteFilter { appleTouchIcon?: StringFilter; logo?: StringFilter; dbname?: StringFilter; - titleTrgmSimilarity?: FloatFilter; - descriptionTrgmSimilarity?: FloatFilter; - dbnameTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: SiteFilter[]; or?: SiteFilter[]; not?: SiteFilter; @@ -6844,10 +6312,6 @@ export interface AppFilter { appStoreId?: StringFilter; appIdPrefix?: StringFilter; playStoreLink?: StringFilter; - nameTrgmSimilarity?: FloatFilter; - appStoreIdTrgmSimilarity?: FloatFilter; - appIdPrefixTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: AppFilter[]; or?: AppFilter[]; not?: AppFilter; @@ -6860,8 +6324,6 @@ export interface ConnectedAccountsModuleFilter { tableId?: UUIDFilter; ownerTableId?: UUIDFilter; tableName?: StringFilter; - tableNameTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: ConnectedAccountsModuleFilter[]; or?: ConnectedAccountsModuleFilter[]; not?: ConnectedAccountsModuleFilter; @@ -6875,9 +6337,6 @@ export interface CryptoAddressesModuleFilter { ownerTableId?: UUIDFilter; tableName?: StringFilter; cryptoNetwork?: StringFilter; - tableNameTrgmSimilarity?: FloatFilter; - cryptoNetworkTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: CryptoAddressesModuleFilter[]; or?: CryptoAddressesModuleFilter[]; not?: CryptoAddressesModuleFilter; @@ -6897,13 +6356,6 @@ export interface CryptoAuthModuleFilter { signInRecordFailure?: StringFilter; signUpWithKey?: StringFilter; signInWithChallenge?: StringFilter; - userFieldTrgmSimilarity?: FloatFilter; - cryptoNetworkTrgmSimilarity?: FloatFilter; - signInRequestChallengeTrgmSimilarity?: FloatFilter; - signInRecordFailureTrgmSimilarity?: FloatFilter; - signUpWithKeyTrgmSimilarity?: FloatFilter; - signInWithChallengeTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: CryptoAuthModuleFilter[]; or?: CryptoAuthModuleFilter[]; not?: CryptoAuthModuleFilter; @@ -6920,16 +6372,14 @@ export interface DenormalizedTableFieldFilter { databaseId?: UUIDFilter; tableId?: UUIDFilter; fieldId?: UUIDFilter; - setIds?: UUIDFilter; + setIds?: UUIDListFilter; refTableId?: UUIDFilter; refFieldId?: UUIDFilter; - refIds?: UUIDFilter; + refIds?: UUIDListFilter; useUpdates?: BooleanFilter; updateDefaults?: BooleanFilter; funcName?: StringFilter; funcOrder?: IntFilter; - funcNameTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: DenormalizedTableFieldFilter[]; or?: DenormalizedTableFieldFilter[]; not?: DenormalizedTableFieldFilter; @@ -6942,8 +6392,6 @@ export interface EmailsModuleFilter { tableId?: UUIDFilter; ownerTableId?: UUIDFilter; tableName?: StringFilter; - tableNameTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: EmailsModuleFilter[]; or?: EmailsModuleFilter[]; not?: EmailsModuleFilter; @@ -6954,8 +6402,6 @@ export interface EncryptedSecretsModuleFilter { schemaId?: UUIDFilter; tableId?: UUIDFilter; tableName?: StringFilter; - tableNameTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: EncryptedSecretsModuleFilter[]; or?: EncryptedSecretsModuleFilter[]; not?: EncryptedSecretsModuleFilter; @@ -6968,10 +6414,8 @@ export interface FieldModuleFilter { fieldId?: UUIDFilter; nodeType?: StringFilter; data?: JSONFilter; - triggers?: StringFilter; - functions?: StringFilter; - nodeTypeTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; + triggers?: StringListFilter; + functions?: StringListFilter; and?: FieldModuleFilter[]; or?: FieldModuleFilter[]; not?: FieldModuleFilter; @@ -6991,11 +6435,6 @@ export interface InvitesModuleFilter { prefix?: StringFilter; membershipType?: IntFilter; entityTableId?: UUIDFilter; - invitesTableNameTrgmSimilarity?: FloatFilter; - claimedInvitesTableNameTrgmSimilarity?: FloatFilter; - submitInviteCodeFunctionTrgmSimilarity?: FloatFilter; - prefixTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: InvitesModuleFilter[]; or?: InvitesModuleFilter[]; not?: InvitesModuleFilter; @@ -7027,22 +6466,6 @@ export interface LevelsModuleFilter { membershipType?: IntFilter; entityTableId?: UUIDFilter; actorTableId?: UUIDFilter; - stepsTableNameTrgmSimilarity?: FloatFilter; - achievementsTableNameTrgmSimilarity?: FloatFilter; - levelsTableNameTrgmSimilarity?: FloatFilter; - levelRequirementsTableNameTrgmSimilarity?: FloatFilter; - completedStepTrgmSimilarity?: FloatFilter; - incompletedStepTrgmSimilarity?: FloatFilter; - tgAchievementTrgmSimilarity?: FloatFilter; - tgAchievementToggleTrgmSimilarity?: FloatFilter; - tgAchievementToggleBooleanTrgmSimilarity?: FloatFilter; - tgAchievementBooleanTrgmSimilarity?: FloatFilter; - upsertAchievementTrgmSimilarity?: FloatFilter; - tgUpdateAchievementsTrgmSimilarity?: FloatFilter; - stepsRequiredTrgmSimilarity?: FloatFilter; - levelAchievedTrgmSimilarity?: FloatFilter; - prefixTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: LevelsModuleFilter[]; or?: LevelsModuleFilter[]; not?: LevelsModuleFilter; @@ -7066,16 +6489,6 @@ export interface LimitsModuleFilter { membershipType?: IntFilter; entityTableId?: UUIDFilter; actorTableId?: UUIDFilter; - tableNameTrgmSimilarity?: FloatFilter; - defaultTableNameTrgmSimilarity?: FloatFilter; - limitIncrementFunctionTrgmSimilarity?: FloatFilter; - limitDecrementFunctionTrgmSimilarity?: FloatFilter; - limitIncrementTriggerTrgmSimilarity?: FloatFilter; - limitDecrementTriggerTrgmSimilarity?: FloatFilter; - limitUpdateTriggerTrgmSimilarity?: FloatFilter; - limitCheckFunctionTrgmSimilarity?: FloatFilter; - prefixTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: LimitsModuleFilter[]; or?: LimitsModuleFilter[]; not?: LimitsModuleFilter; @@ -7086,8 +6499,6 @@ export interface MembershipTypesModuleFilter { schemaId?: UUIDFilter; tableId?: UUIDFilter; tableName?: StringFilter; - tableNameTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: MembershipTypesModuleFilter[]; or?: MembershipTypesModuleFilter[]; not?: MembershipTypesModuleFilter; @@ -7124,19 +6535,6 @@ export interface MembershipsModuleFilter { entityIdsByMask?: StringFilter; entityIdsByPerm?: StringFilter; entityIdsFunction?: StringFilter; - membershipsTableNameTrgmSimilarity?: FloatFilter; - membersTableNameTrgmSimilarity?: FloatFilter; - membershipDefaultsTableNameTrgmSimilarity?: FloatFilter; - grantsTableNameTrgmSimilarity?: FloatFilter; - adminGrantsTableNameTrgmSimilarity?: FloatFilter; - ownerGrantsTableNameTrgmSimilarity?: FloatFilter; - prefixTrgmSimilarity?: FloatFilter; - actorMaskCheckTrgmSimilarity?: FloatFilter; - actorPermCheckTrgmSimilarity?: FloatFilter; - entityIdsByMaskTrgmSimilarity?: FloatFilter; - entityIdsByPermTrgmSimilarity?: FloatFilter; - entityIdsFunctionTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: MembershipsModuleFilter[]; or?: MembershipsModuleFilter[]; not?: MembershipsModuleFilter; @@ -7159,14 +6557,6 @@ export interface PermissionsModuleFilter { getMask?: StringFilter; getByMask?: StringFilter; getMaskByName?: StringFilter; - tableNameTrgmSimilarity?: FloatFilter; - defaultTableNameTrgmSimilarity?: FloatFilter; - prefixTrgmSimilarity?: FloatFilter; - getPaddedMaskTrgmSimilarity?: FloatFilter; - getMaskTrgmSimilarity?: FloatFilter; - getByMaskTrgmSimilarity?: FloatFilter; - getMaskByNameTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: PermissionsModuleFilter[]; or?: PermissionsModuleFilter[]; not?: PermissionsModuleFilter; @@ -7179,8 +6569,6 @@ export interface PhoneNumbersModuleFilter { tableId?: UUIDFilter; ownerTableId?: UUIDFilter; tableName?: StringFilter; - tableNameTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: PhoneNumbersModuleFilter[]; or?: PhoneNumbersModuleFilter[]; not?: PhoneNumbersModuleFilter; @@ -7204,12 +6592,6 @@ export interface ProfilesModuleFilter { permissionsTableId?: UUIDFilter; membershipsTableId?: UUIDFilter; prefix?: StringFilter; - tableNameTrgmSimilarity?: FloatFilter; - profilePermissionsTableNameTrgmSimilarity?: FloatFilter; - profileGrantsTableNameTrgmSimilarity?: FloatFilter; - profileDefinitionGrantsTableNameTrgmSimilarity?: FloatFilter; - prefixTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: ProfilesModuleFilter[]; or?: ProfilesModuleFilter[]; not?: ProfilesModuleFilter; @@ -7220,8 +6602,6 @@ export interface SecretsModuleFilter { schemaId?: UUIDFilter; tableId?: UUIDFilter; tableName?: StringFilter; - tableNameTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: SecretsModuleFilter[]; or?: SecretsModuleFilter[]; not?: SecretsModuleFilter; @@ -7238,10 +6618,6 @@ export interface SessionsModuleFilter { sessionsTable?: StringFilter; sessionCredentialsTable?: StringFilter; authSettingsTable?: StringFilter; - sessionsTableTrgmSimilarity?: FloatFilter; - sessionCredentialsTableTrgmSimilarity?: FloatFilter; - authSettingsTableTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: SessionsModuleFilter[]; or?: SessionsModuleFilter[]; not?: SessionsModuleFilter; @@ -7273,23 +6649,6 @@ export interface UserAuthModuleFilter { signInOneTimeTokenFunction?: StringFilter; oneTimeTokenFunction?: StringFilter; extendTokenExpires?: StringFilter; - auditsTableNameTrgmSimilarity?: FloatFilter; - signInFunctionTrgmSimilarity?: FloatFilter; - signUpFunctionTrgmSimilarity?: FloatFilter; - signOutFunctionTrgmSimilarity?: FloatFilter; - setPasswordFunctionTrgmSimilarity?: FloatFilter; - resetPasswordFunctionTrgmSimilarity?: FloatFilter; - forgotPasswordFunctionTrgmSimilarity?: FloatFilter; - sendVerificationEmailFunctionTrgmSimilarity?: FloatFilter; - verifyEmailFunctionTrgmSimilarity?: FloatFilter; - verifyPasswordFunctionTrgmSimilarity?: FloatFilter; - checkPasswordFunctionTrgmSimilarity?: FloatFilter; - sendAccountDeletionEmailFunctionTrgmSimilarity?: FloatFilter; - deleteAccountFunctionTrgmSimilarity?: FloatFilter; - signInOneTimeTokenFunctionTrgmSimilarity?: FloatFilter; - oneTimeTokenFunctionTrgmSimilarity?: FloatFilter; - extendTokenExpiresTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: UserAuthModuleFilter[]; or?: UserAuthModuleFilter[]; not?: UserAuthModuleFilter; @@ -7302,25 +6661,56 @@ export interface UsersModuleFilter { tableName?: StringFilter; typeTableId?: UUIDFilter; typeTableName?: StringFilter; - tableNameTrgmSimilarity?: FloatFilter; - typeTableNameTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: UsersModuleFilter[]; or?: UsersModuleFilter[]; not?: UsersModuleFilter; } -export interface UuidModuleFilter { +export interface BlueprintFilter { id?: UUIDFilter; + ownerId?: UUIDFilter; databaseId?: UUIDFilter; - schemaId?: UUIDFilter; - uuidFunction?: StringFilter; - uuidSeed?: StringFilter; - uuidFunctionTrgmSimilarity?: FloatFilter; - uuidSeedTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; - and?: UuidModuleFilter[]; - or?: UuidModuleFilter[]; - not?: UuidModuleFilter; + name?: StringFilter; + displayName?: StringFilter; + description?: StringFilter; + definition?: JSONFilter; + templateId?: UUIDFilter; + status?: StringFilter; + constructedAt?: DatetimeFilter; + errorDetails?: StringFilter; + refMap?: JSONFilter; + constructedDefinition?: JSONFilter; + definitionHash?: UUIDFilter; + tableHashes?: JSONFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: BlueprintFilter[]; + or?: BlueprintFilter[]; + not?: BlueprintFilter; +} +export interface BlueprintTemplateFilter { + id?: UUIDFilter; + name?: StringFilter; + version?: StringFilter; + displayName?: StringFilter; + description?: StringFilter; + ownerId?: UUIDFilter; + visibility?: StringFilter; + categories?: StringListFilter; + tags?: StringListFilter; + definition?: JSONFilter; + definitionSchemaVersion?: StringFilter; + source?: StringFilter; + complexity?: StringFilter; + copyCount?: IntFilter; + forkCount?: IntFilter; + forkedFromId?: UUIDFilter; + definitionHash?: UUIDFilter; + tableHashes?: JSONFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: BlueprintTemplateFilter[]; + or?: BlueprintTemplateFilter[]; + not?: BlueprintTemplateFilter; } export interface DatabaseProvisionModuleFilter { id?: UUIDFilter; @@ -7328,7 +6718,7 @@ export interface DatabaseProvisionModuleFilter { ownerId?: UUIDFilter; subdomain?: StringFilter; domain?: StringFilter; - modules?: StringFilter; + modules?: StringListFilter; options?: JSONFilter; bootstrapUser?: BooleanFilter; status?: StringFilter; @@ -7337,12 +6727,6 @@ export interface DatabaseProvisionModuleFilter { createdAt?: DatetimeFilter; updatedAt?: DatetimeFilter; completedAt?: DatetimeFilter; - databaseNameTrgmSimilarity?: FloatFilter; - subdomainTrgmSimilarity?: FloatFilter; - domainTrgmSimilarity?: FloatFilter; - statusTrgmSimilarity?: FloatFilter; - errorMessageTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: DatabaseProvisionModuleFilter[]; or?: DatabaseProvisionModuleFilter[]; not?: DatabaseProvisionModuleFilter; @@ -7457,8 +6841,6 @@ export interface OrgChartEdgeFilter { parentId?: UUIDFilter; positionTitle?: StringFilter; positionLevel?: IntFilter; - positionTitleTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: OrgChartEdgeFilter[]; or?: OrgChartEdgeFilter[]; not?: OrgChartEdgeFilter; @@ -7473,12 +6855,18 @@ export interface OrgChartEdgeGrantFilter { positionTitle?: StringFilter; positionLevel?: IntFilter; createdAt?: DatetimeFilter; - positionTitleTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: OrgChartEdgeGrantFilter[]; or?: OrgChartEdgeGrantFilter[]; not?: OrgChartEdgeGrantFilter; } +export interface OrgPermissionDefaultFilter { + id?: UUIDFilter; + permissions?: BitStringFilter; + entityId?: UUIDFilter; + and?: OrgPermissionDefaultFilter[]; + or?: OrgPermissionDefaultFilter[]; + not?: OrgPermissionDefaultFilter; +} export interface AppLimitFilter { id?: UUIDFilter; name?: StringFilter; @@ -7522,6 +6910,68 @@ export interface AppAchievementFilter { or?: AppAchievementFilter[]; not?: AppAchievementFilter; } +export interface AppLevelFilter { + id?: UUIDFilter; + name?: StringFilter; + description?: StringFilter; + image?: StringFilter; + ownerId?: UUIDFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: AppLevelFilter[]; + or?: AppLevelFilter[]; + not?: AppLevelFilter; +} +export interface EmailFilter { + id?: UUIDFilter; + ownerId?: UUIDFilter; + email?: StringFilter; + isVerified?: BooleanFilter; + isPrimary?: BooleanFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: EmailFilter[]; + or?: EmailFilter[]; + not?: EmailFilter; +} +export interface PhoneNumberFilter { + id?: UUIDFilter; + ownerId?: UUIDFilter; + cc?: StringFilter; + number?: StringFilter; + isVerified?: BooleanFilter; + isPrimary?: BooleanFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: PhoneNumberFilter[]; + or?: PhoneNumberFilter[]; + not?: PhoneNumberFilter; +} +export interface CryptoAddressFilter { + id?: UUIDFilter; + ownerId?: UUIDFilter; + address?: StringFilter; + isVerified?: BooleanFilter; + isPrimary?: BooleanFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: CryptoAddressFilter[]; + or?: CryptoAddressFilter[]; + not?: CryptoAddressFilter; +} +export interface ConnectedAccountFilter { + id?: UUIDFilter; + ownerId?: UUIDFilter; + service?: StringFilter; + identifier?: StringFilter; + details?: JSONFilter; + isVerified?: BooleanFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: ConnectedAccountFilter[]; + or?: ConnectedAccountFilter[]; + not?: ConnectedAccountFilter; +} export interface InviteFilter { id?: UUIDFilter; email?: StringFilter; @@ -7535,8 +6985,6 @@ export interface InviteFilter { expiresAt?: DatetimeFilter; createdAt?: DatetimeFilter; updatedAt?: DatetimeFilter; - inviteTokenTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: InviteFilter[]; or?: InviteFilter[]; not?: InviteFilter; @@ -7567,8 +7015,6 @@ export interface OrgInviteFilter { createdAt?: DatetimeFilter; updatedAt?: DatetimeFilter; entityId?: UUIDFilter; - inviteTokenTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: OrgInviteFilter[]; or?: OrgInviteFilter[]; not?: OrgInviteFilter; @@ -7585,14 +7031,25 @@ export interface OrgClaimedInviteFilter { or?: OrgClaimedInviteFilter[]; not?: OrgClaimedInviteFilter; } +export interface AuditLogFilter { + id?: UUIDFilter; + event?: StringFilter; + actorId?: UUIDFilter; + origin?: StringFilter; + userAgent?: StringFilter; + ipAddress?: InternetAddressFilter; + success?: BooleanFilter; + createdAt?: DatetimeFilter; + and?: AuditLogFilter[]; + or?: AuditLogFilter[]; + not?: AuditLogFilter; +} export interface RefFilter { id?: UUIDFilter; name?: StringFilter; databaseId?: UUIDFilter; storeId?: UUIDFilter; commitId?: UUIDFilter; - nameTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: RefFilter[]; or?: RefFilter[]; not?: RefFilter; @@ -7603,8 +7060,6 @@ export interface StoreFilter { databaseId?: UUIDFilter; hash?: UUIDFilter; createdAt?: DatetimeFilter; - nameTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: StoreFilter[]; or?: StoreFilter[]; not?: StoreFilter; @@ -7616,20 +7071,6 @@ export interface AppPermissionDefaultFilter { or?: AppPermissionDefaultFilter[]; not?: AppPermissionDefaultFilter; } -export interface CryptoAddressFilter { - id?: UUIDFilter; - ownerId?: UUIDFilter; - address?: StringFilter; - isVerified?: BooleanFilter; - isPrimary?: BooleanFilter; - createdAt?: DatetimeFilter; - updatedAt?: DatetimeFilter; - addressTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; - and?: CryptoAddressFilter[]; - or?: CryptoAddressFilter[]; - not?: CryptoAddressFilter; -} export interface RoleTypeFilter { id?: IntFilter; name?: StringFilter; @@ -7637,30 +7078,6 @@ export interface RoleTypeFilter { or?: RoleTypeFilter[]; not?: RoleTypeFilter; } -export interface OrgPermissionDefaultFilter { - id?: UUIDFilter; - permissions?: BitStringFilter; - entityId?: UUIDFilter; - and?: OrgPermissionDefaultFilter[]; - or?: OrgPermissionDefaultFilter[]; - not?: OrgPermissionDefaultFilter; -} -export interface PhoneNumberFilter { - id?: UUIDFilter; - ownerId?: UUIDFilter; - cc?: StringFilter; - number?: StringFilter; - isVerified?: BooleanFilter; - isPrimary?: BooleanFilter; - createdAt?: DatetimeFilter; - updatedAt?: DatetimeFilter; - ccTrgmSimilarity?: FloatFilter; - numberTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; - and?: PhoneNumberFilter[]; - or?: PhoneNumberFilter[]; - not?: PhoneNumberFilter; -} export interface AppLimitDefaultFilter { id?: UUIDFilter; name?: StringFilter; @@ -7677,22 +7094,6 @@ export interface OrgLimitDefaultFilter { or?: OrgLimitDefaultFilter[]; not?: OrgLimitDefaultFilter; } -export interface ConnectedAccountFilter { - id?: UUIDFilter; - ownerId?: UUIDFilter; - service?: StringFilter; - identifier?: StringFilter; - details?: JSONFilter; - isVerified?: BooleanFilter; - createdAt?: DatetimeFilter; - updatedAt?: DatetimeFilter; - serviceTrgmSimilarity?: FloatFilter; - identifierTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; - and?: ConnectedAccountFilter[]; - or?: ConnectedAccountFilter[]; - not?: ConnectedAccountFilter; -} export interface NodeTypeRegistryFilter { name?: StringFilter; slug?: StringFilter; @@ -7700,15 +7101,9 @@ export interface NodeTypeRegistryFilter { displayName?: StringFilter; description?: StringFilter; parameterSchema?: JSONFilter; - tags?: StringFilter; + tags?: StringListFilter; createdAt?: DatetimeFilter; updatedAt?: DatetimeFilter; - nameTrgmSimilarity?: FloatFilter; - slugTrgmSimilarity?: FloatFilter; - categoryTrgmSimilarity?: FloatFilter; - displayNameTrgmSimilarity?: FloatFilter; - descriptionTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: NodeTypeRegistryFilter[]; or?: NodeTypeRegistryFilter[]; not?: NodeTypeRegistryFilter; @@ -7718,9 +7113,6 @@ export interface MembershipTypeFilter { name?: StringFilter; description?: StringFilter; prefix?: StringFilter; - descriptionTrgmSimilarity?: FloatFilter; - prefixTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: MembershipTypeFilter[]; or?: MembershipTypeFilter[]; not?: MembershipTypeFilter; @@ -7730,13 +7122,11 @@ export interface CommitFilter { message?: StringFilter; databaseId?: UUIDFilter; storeId?: UUIDFilter; - parentIds?: UUIDFilter; + parentIds?: UUIDListFilter; authorId?: UUIDFilter; committerId?: UUIDFilter; treeId?: UUIDFilter; date?: DatetimeFilter; - messageTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: CommitFilter[]; or?: CommitFilter[]; not?: CommitFilter; @@ -7765,11 +7155,6 @@ export interface RlsModuleFilter { authenticateStrict?: StringFilter; currentRole?: StringFilter; currentRoleId?: StringFilter; - authenticateTrgmSimilarity?: FloatFilter; - authenticateStrictTrgmSimilarity?: FloatFilter; - currentRoleTrgmSimilarity?: FloatFilter; - currentRoleIdTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: RlsModuleFilter[]; or?: RlsModuleFilter[]; not?: RlsModuleFilter; @@ -7788,41 +7173,12 @@ export interface OrgMembershipDefaultFilter { or?: OrgMembershipDefaultFilter[]; not?: OrgMembershipDefaultFilter; } -export interface AuditLogFilter { - id?: UUIDFilter; - event?: StringFilter; - actorId?: UUIDFilter; - origin?: StringFilter; - userAgent?: StringFilter; - ipAddress?: InternetAddressFilter; - success?: BooleanFilter; - createdAt?: DatetimeFilter; - userAgentTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; - and?: AuditLogFilter[]; - or?: AuditLogFilter[]; - not?: AuditLogFilter; -} -export interface AppLevelFilter { - id?: UUIDFilter; - name?: StringFilter; - description?: StringFilter; - image?: StringFilter; - ownerId?: UUIDFilter; - createdAt?: DatetimeFilter; - updatedAt?: DatetimeFilter; - descriptionTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; - and?: AppLevelFilter[]; - or?: AppLevelFilter[]; - not?: AppLevelFilter; -} export interface SqlMigrationFilter { id?: IntFilter; name?: StringFilter; databaseId?: UUIDFilter; deploy?: StringFilter; - deps?: StringFilter; + deps?: StringListFilter; payload?: JSONFilter; content?: StringFilter; revert?: StringFilter; @@ -7831,29 +7187,10 @@ export interface SqlMigrationFilter { action?: StringFilter; actionId?: UUIDFilter; actorId?: UUIDFilter; - nameTrgmSimilarity?: FloatFilter; - deployTrgmSimilarity?: FloatFilter; - contentTrgmSimilarity?: FloatFilter; - revertTrgmSimilarity?: FloatFilter; - verifyTrgmSimilarity?: FloatFilter; - actionTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: SqlMigrationFilter[]; or?: SqlMigrationFilter[]; not?: SqlMigrationFilter; } -export interface EmailFilter { - id?: UUIDFilter; - ownerId?: UUIDFilter; - email?: StringFilter; - isVerified?: BooleanFilter; - isPrimary?: BooleanFilter; - createdAt?: DatetimeFilter; - updatedAt?: DatetimeFilter; - and?: EmailFilter[]; - or?: EmailFilter[]; - not?: EmailFilter; -} export interface UserFilter { id?: UUIDFilter; username?: StringFilter; @@ -7874,7 +7211,7 @@ export interface AstMigrationFilter { id?: IntFilter; databaseId?: UUIDFilter; name?: StringFilter; - requires?: StringFilter; + requires?: StringListFilter; payload?: JSONFilter; deploys?: StringFilter; deploy?: JSONFilter; @@ -7884,8 +7221,6 @@ export interface AstMigrationFilter { action?: StringFilter; actionId?: UUIDFilter; actorId?: UUIDFilter; - actionTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: AstMigrationFilter[]; or?: AstMigrationFilter[]; not?: AstMigrationFilter; @@ -7932,22 +7267,19 @@ export interface HierarchyModuleFilter { getManagersFunction?: StringFilter; isManagerOfFunction?: StringFilter; createdAt?: DatetimeFilter; - chartEdgesTableNameTrgmSimilarity?: FloatFilter; - hierarchySprtTableNameTrgmSimilarity?: FloatFilter; - chartEdgeGrantsTableNameTrgmSimilarity?: FloatFilter; - prefixTrgmSimilarity?: FloatFilter; - privateSchemaNameTrgmSimilarity?: FloatFilter; - sprtTableNameTrgmSimilarity?: FloatFilter; - rebuildHierarchyFunctionTrgmSimilarity?: FloatFilter; - getSubordinatesFunctionTrgmSimilarity?: FloatFilter; - getManagersFunctionTrgmSimilarity?: FloatFilter; - isManagerOfFunctionTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: HierarchyModuleFilter[]; or?: HierarchyModuleFilter[]; not?: HierarchyModuleFilter; } // ============ OrderBy Types ============ +export type GetAllRecordsOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'PATH_ASC' + | 'PATH_DESC' + | 'DATA_ASC' + | 'DATA_DESC'; export type OrgGetManagersRecordsOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -7964,126 +7296,70 @@ export type OrgGetSubordinatesRecordsOrderBy = | 'USER_ID_DESC' | 'DEPTH_ASC' | 'DEPTH_DESC'; -export type GetAllRecordsOrderBy = - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'NATURAL' - | 'PATH_ASC' - | 'PATH_DESC' - | 'DATA_ASC' - | 'DATA_DESC'; export type ObjectOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' - | 'HASH_UUID_ASC' - | 'HASH_UUID_DESC' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'KIDS_ASC' - | 'KIDS_DESC' - | 'KTREE_ASC' - | 'KTREE_DESC' - | 'DATA_ASC' - | 'DATA_DESC' | 'FRZN_ASC' - | 'FRZN_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC'; + | 'FRZN_DESC'; export type AppPermissionOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'BITNUM_ASC' - | 'BITNUM_DESC' - | 'BITSTR_ASC' - | 'BITSTR_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'DESCRIPTION_TRGM_SIMILARITY_ASC' - | 'DESCRIPTION_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'BITNUM_DESC'; export type OrgPermissionOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'BITNUM_ASC' - | 'BITNUM_DESC' - | 'BITSTR_ASC' - | 'BITSTR_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'DESCRIPTION_TRGM_SIMILARITY_ASC' - | 'DESCRIPTION_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'BITNUM_DESC'; export type AppLevelRequirementOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'LEVEL_ASC' | 'LEVEL_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'REQUIRED_COUNT_ASC' - | 'REQUIRED_COUNT_DESC' | 'PRIORITY_ASC' | 'PRIORITY_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'DESCRIPTION_TRGM_SIMILARITY_ASC' - | 'DESCRIPTION_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'UPDATED_AT_DESC'; export type DatabaseOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'OWNER_ID_ASC' | 'OWNER_ID_DESC' | 'SCHEMA_HASH_ASC' | 'SCHEMA_HASH_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'LABEL_ASC' - | 'LABEL_DESC' - | 'HASH_ASC' - | 'HASH_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'SCHEMA_HASH_TRGM_SIMILARITY_ASC' - | 'SCHEMA_HASH_TRGM_SIMILARITY_DESC' - | 'NAME_TRGM_SIMILARITY_ASC' - | 'NAME_TRGM_SIMILARITY_DESC' - | 'LABEL_TRGM_SIMILARITY_ASC' - | 'LABEL_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'UPDATED_AT_DESC'; export type SchemaOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' @@ -8092,42 +7368,14 @@ export type SchemaOrderBy = | 'NAME_DESC' | 'SCHEMA_NAME_ASC' | 'SCHEMA_NAME_DESC' - | 'LABEL_ASC' - | 'LABEL_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'SMART_TAGS_ASC' - | 'SMART_TAGS_DESC' - | 'CATEGORY_ASC' - | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'TAGS_ASC' - | 'TAGS_DESC' - | 'IS_PUBLIC_ASC' - | 'IS_PUBLIC_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'NAME_TRGM_SIMILARITY_ASC' - | 'NAME_TRGM_SIMILARITY_DESC' - | 'SCHEMA_NAME_TRGM_SIMILARITY_ASC' - | 'SCHEMA_NAME_TRGM_SIMILARITY_DESC' - | 'LABEL_TRGM_SIMILARITY_ASC' - | 'LABEL_TRGM_SIMILARITY_DESC' - | 'DESCRIPTION_TRGM_SIMILARITY_ASC' - | 'DESCRIPTION_TRGM_SIMILARITY_DESC' - | 'MODULE_TRGM_SIMILARITY_ASC' - | 'MODULE_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'UPDATED_AT_DESC'; export type TableOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' @@ -8136,54 +7384,14 @@ export type TableOrderBy = | 'SCHEMA_ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'LABEL_ASC' - | 'LABEL_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'SMART_TAGS_ASC' - | 'SMART_TAGS_DESC' - | 'CATEGORY_ASC' - | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'USE_RLS_ASC' - | 'USE_RLS_DESC' - | 'TIMESTAMPS_ASC' - | 'TIMESTAMPS_DESC' - | 'PEOPLESTAMPS_ASC' - | 'PEOPLESTAMPS_DESC' - | 'PLURAL_NAME_ASC' - | 'PLURAL_NAME_DESC' - | 'SINGULAR_NAME_ASC' - | 'SINGULAR_NAME_DESC' - | 'TAGS_ASC' - | 'TAGS_DESC' - | 'INHERITS_ID_ASC' - | 'INHERITS_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'NAME_TRGM_SIMILARITY_ASC' - | 'NAME_TRGM_SIMILARITY_DESC' - | 'LABEL_TRGM_SIMILARITY_ASC' - | 'LABEL_TRGM_SIMILARITY_DESC' - | 'DESCRIPTION_TRGM_SIMILARITY_ASC' - | 'DESCRIPTION_TRGM_SIMILARITY_DESC' - | 'MODULE_TRGM_SIMILARITY_ASC' - | 'MODULE_TRGM_SIMILARITY_DESC' - | 'PLURAL_NAME_TRGM_SIMILARITY_ASC' - | 'PLURAL_NAME_TRGM_SIMILARITY_DESC' - | 'SINGULAR_NAME_TRGM_SIMILARITY_ASC' - | 'SINGULAR_NAME_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'UPDATED_AT_DESC'; export type CheckConstraintOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' @@ -8192,38 +7400,14 @@ export type CheckConstraintOrderBy = | 'TABLE_ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'TYPE_ASC' - | 'TYPE_DESC' - | 'FIELD_IDS_ASC' - | 'FIELD_IDS_DESC' - | 'EXPR_ASC' - | 'EXPR_DESC' - | 'SMART_TAGS_ASC' - | 'SMART_TAGS_DESC' - | 'CATEGORY_ASC' - | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'TAGS_ASC' - | 'TAGS_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'NAME_TRGM_SIMILARITY_ASC' - | 'NAME_TRGM_SIMILARITY_DESC' - | 'TYPE_TRGM_SIMILARITY_ASC' - | 'TYPE_TRGM_SIMILARITY_DESC' - | 'MODULE_TRGM_SIMILARITY_ASC' - | 'MODULE_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'UPDATED_AT_DESC'; export type FieldOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' @@ -8232,64 +7416,14 @@ export type FieldOrderBy = | 'TABLE_ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'LABEL_ASC' - | 'LABEL_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'SMART_TAGS_ASC' - | 'SMART_TAGS_DESC' - | 'IS_REQUIRED_ASC' - | 'IS_REQUIRED_DESC' - | 'DEFAULT_VALUE_ASC' - | 'DEFAULT_VALUE_DESC' - | 'DEFAULT_VALUE_AST_ASC' - | 'DEFAULT_VALUE_AST_DESC' - | 'IS_HIDDEN_ASC' - | 'IS_HIDDEN_DESC' - | 'TYPE_ASC' - | 'TYPE_DESC' - | 'FIELD_ORDER_ASC' - | 'FIELD_ORDER_DESC' - | 'REGEXP_ASC' - | 'REGEXP_DESC' - | 'CHK_ASC' - | 'CHK_DESC' - | 'CHK_EXPR_ASC' - | 'CHK_EXPR_DESC' - | 'MIN_ASC' - | 'MIN_DESC' - | 'MAX_ASC' - | 'MAX_DESC' - | 'TAGS_ASC' - | 'TAGS_DESC' - | 'CATEGORY_ASC' - | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'NAME_TRGM_SIMILARITY_ASC' - | 'NAME_TRGM_SIMILARITY_DESC' - | 'LABEL_TRGM_SIMILARITY_ASC' - | 'LABEL_TRGM_SIMILARITY_DESC' - | 'DESCRIPTION_TRGM_SIMILARITY_ASC' - | 'DESCRIPTION_TRGM_SIMILARITY_DESC' - | 'DEFAULT_VALUE_TRGM_SIMILARITY_ASC' - | 'DEFAULT_VALUE_TRGM_SIMILARITY_DESC' - | 'REGEXP_TRGM_SIMILARITY_ASC' - | 'REGEXP_TRGM_SIMILARITY_DESC' - | 'MODULE_TRGM_SIMILARITY_ASC' - | 'MODULE_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'UPDATED_AT_DESC'; export type ForeignKeyConstraintOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' @@ -8298,74 +7432,28 @@ export type ForeignKeyConstraintOrderBy = | 'TABLE_ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'SMART_TAGS_ASC' - | 'SMART_TAGS_DESC' - | 'TYPE_ASC' - | 'TYPE_DESC' - | 'FIELD_IDS_ASC' - | 'FIELD_IDS_DESC' - | 'REF_TABLE_ID_ASC' - | 'REF_TABLE_ID_DESC' - | 'REF_FIELD_IDS_ASC' - | 'REF_FIELD_IDS_DESC' - | 'DELETE_ACTION_ASC' - | 'DELETE_ACTION_DESC' - | 'UPDATE_ACTION_ASC' - | 'UPDATE_ACTION_DESC' - | 'CATEGORY_ASC' - | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'TAGS_ASC' - | 'TAGS_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'NAME_TRGM_SIMILARITY_ASC' - | 'NAME_TRGM_SIMILARITY_DESC' - | 'DESCRIPTION_TRGM_SIMILARITY_ASC' - | 'DESCRIPTION_TRGM_SIMILARITY_DESC' - | 'TYPE_TRGM_SIMILARITY_ASC' - | 'TYPE_TRGM_SIMILARITY_DESC' - | 'DELETE_ACTION_TRGM_SIMILARITY_ASC' - | 'DELETE_ACTION_TRGM_SIMILARITY_DESC' - | 'UPDATE_ACTION_TRGM_SIMILARITY_ASC' - | 'UPDATE_ACTION_TRGM_SIMILARITY_DESC' - | 'MODULE_TRGM_SIMILARITY_ASC' - | 'MODULE_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'UPDATED_AT_DESC'; export type FullTextSearchOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'TABLE_ID_ASC' | 'TABLE_ID_DESC' - | 'FIELD_ID_ASC' - | 'FIELD_ID_DESC' - | 'FIELD_IDS_ASC' - | 'FIELD_IDS_DESC' - | 'WEIGHTS_ASC' - | 'WEIGHTS_DESC' - | 'LANGS_ASC' - | 'LANGS_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; export type IndexOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' @@ -8374,48 +7462,14 @@ export type IndexOrderBy = | 'TABLE_ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'FIELD_IDS_ASC' - | 'FIELD_IDS_DESC' - | 'INCLUDE_FIELD_IDS_ASC' - | 'INCLUDE_FIELD_IDS_DESC' - | 'ACCESS_METHOD_ASC' - | 'ACCESS_METHOD_DESC' - | 'INDEX_PARAMS_ASC' - | 'INDEX_PARAMS_DESC' - | 'WHERE_CLAUSE_ASC' - | 'WHERE_CLAUSE_DESC' - | 'IS_UNIQUE_ASC' - | 'IS_UNIQUE_DESC' - | 'OPTIONS_ASC' - | 'OPTIONS_DESC' - | 'OP_CLASSES_ASC' - | 'OP_CLASSES_DESC' - | 'SMART_TAGS_ASC' - | 'SMART_TAGS_DESC' - | 'CATEGORY_ASC' - | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'TAGS_ASC' - | 'TAGS_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'NAME_TRGM_SIMILARITY_ASC' - | 'NAME_TRGM_SIMILARITY_DESC' - | 'ACCESS_METHOD_TRGM_SIMILARITY_ASC' - | 'ACCESS_METHOD_TRGM_SIMILARITY_DESC' - | 'MODULE_TRGM_SIMILARITY_ASC' - | 'MODULE_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'UPDATED_AT_DESC'; export type PolicyOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' @@ -8424,48 +7478,14 @@ export type PolicyOrderBy = | 'TABLE_ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'GRANTEE_NAME_ASC' - | 'GRANTEE_NAME_DESC' - | 'PRIVILEGE_ASC' - | 'PRIVILEGE_DESC' - | 'PERMISSIVE_ASC' - | 'PERMISSIVE_DESC' - | 'DISABLED_ASC' - | 'DISABLED_DESC' - | 'POLICY_TYPE_ASC' - | 'POLICY_TYPE_DESC' - | 'DATA_ASC' - | 'DATA_DESC' - | 'SMART_TAGS_ASC' - | 'SMART_TAGS_DESC' - | 'CATEGORY_ASC' - | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'TAGS_ASC' - | 'TAGS_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'NAME_TRGM_SIMILARITY_ASC' - | 'NAME_TRGM_SIMILARITY_DESC' - | 'GRANTEE_NAME_TRGM_SIMILARITY_ASC' - | 'GRANTEE_NAME_TRGM_SIMILARITY_DESC' - | 'PRIVILEGE_TRGM_SIMILARITY_ASC' - | 'PRIVILEGE_TRGM_SIMILARITY_DESC' - | 'POLICY_TYPE_TRGM_SIMILARITY_ASC' - | 'POLICY_TYPE_TRGM_SIMILARITY_DESC' - | 'MODULE_TRGM_SIMILARITY_ASC' - | 'MODULE_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'UPDATED_AT_DESC'; export type PrimaryKeyConstraintOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' @@ -8474,64 +7494,28 @@ export type PrimaryKeyConstraintOrderBy = | 'TABLE_ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'TYPE_ASC' - | 'TYPE_DESC' - | 'FIELD_IDS_ASC' - | 'FIELD_IDS_DESC' - | 'SMART_TAGS_ASC' - | 'SMART_TAGS_DESC' - | 'CATEGORY_ASC' - | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'TAGS_ASC' - | 'TAGS_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'NAME_TRGM_SIMILARITY_ASC' - | 'NAME_TRGM_SIMILARITY_DESC' - | 'TYPE_TRGM_SIMILARITY_ASC' - | 'TYPE_TRGM_SIMILARITY_DESC' - | 'MODULE_TRGM_SIMILARITY_ASC' - | 'MODULE_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'UPDATED_AT_DESC'; export type TableGrantOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'TABLE_ID_ASC' | 'TABLE_ID_DESC' - | 'PRIVILEGE_ASC' - | 'PRIVILEGE_DESC' - | 'GRANTEE_NAME_ASC' - | 'GRANTEE_NAME_DESC' - | 'FIELD_IDS_ASC' - | 'FIELD_IDS_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'PRIVILEGE_TRGM_SIMILARITY_ASC' - | 'PRIVILEGE_TRGM_SIMILARITY_DESC' - | 'GRANTEE_NAME_TRGM_SIMILARITY_ASC' - | 'GRANTEE_NAME_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'UPDATED_AT_DESC'; export type TriggerOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' @@ -8540,38 +7524,14 @@ export type TriggerOrderBy = | 'TABLE_ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'EVENT_ASC' - | 'EVENT_DESC' - | 'FUNCTION_NAME_ASC' - | 'FUNCTION_NAME_DESC' - | 'SMART_TAGS_ASC' - | 'SMART_TAGS_DESC' - | 'CATEGORY_ASC' - | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'TAGS_ASC' - | 'TAGS_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'NAME_TRGM_SIMILARITY_ASC' - | 'NAME_TRGM_SIMILARITY_DESC' - | 'EVENT_TRGM_SIMILARITY_ASC' - | 'EVENT_TRGM_SIMILARITY_DESC' - | 'FUNCTION_NAME_TRGM_SIMILARITY_ASC' - | 'FUNCTION_NAME_TRGM_SIMILARITY_DESC' - | 'MODULE_TRGM_SIMILARITY_ASC' - | 'MODULE_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'UPDATED_AT_DESC'; export type UniqueConstraintOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' @@ -8580,40 +7540,14 @@ export type UniqueConstraintOrderBy = | 'TABLE_ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'SMART_TAGS_ASC' - | 'SMART_TAGS_DESC' - | 'TYPE_ASC' - | 'TYPE_DESC' - | 'FIELD_IDS_ASC' - | 'FIELD_IDS_DESC' - | 'CATEGORY_ASC' - | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'TAGS_ASC' - | 'TAGS_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'NAME_TRGM_SIMILARITY_ASC' - | 'NAME_TRGM_SIMILARITY_DESC' - | 'DESCRIPTION_TRGM_SIMILARITY_ASC' - | 'DESCRIPTION_TRGM_SIMILARITY_DESC' - | 'TYPE_TRGM_SIMILARITY_ASC' - | 'TYPE_TRGM_SIMILARITY_DESC' - | 'MODULE_TRGM_SIMILARITY_ASC' - | 'MODULE_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'UPDATED_AT_DESC'; export type ViewOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' @@ -8623,55 +7557,21 @@ export type ViewOrderBy = | 'NAME_ASC' | 'NAME_DESC' | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'VIEW_TYPE_ASC' - | 'VIEW_TYPE_DESC' - | 'DATA_ASC' - | 'DATA_DESC' - | 'FILTER_TYPE_ASC' - | 'FILTER_TYPE_DESC' - | 'FILTER_DATA_ASC' - | 'FILTER_DATA_DESC' - | 'SECURITY_INVOKER_ASC' - | 'SECURITY_INVOKER_DESC' - | 'IS_READ_ONLY_ASC' - | 'IS_READ_ONLY_DESC' - | 'SMART_TAGS_ASC' - | 'SMART_TAGS_DESC' - | 'CATEGORY_ASC' - | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'TAGS_ASC' - | 'TAGS_DESC' - | 'NAME_TRGM_SIMILARITY_ASC' - | 'NAME_TRGM_SIMILARITY_DESC' - | 'VIEW_TYPE_TRGM_SIMILARITY_ASC' - | 'VIEW_TYPE_TRGM_SIMILARITY_DESC' - | 'FILTER_TYPE_TRGM_SIMILARITY_ASC' - | 'FILTER_TYPE_TRGM_SIMILARITY_DESC' - | 'MODULE_TRGM_SIMILARITY_ASC' - | 'MODULE_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'TABLE_ID_DESC'; export type ViewTableOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'VIEW_ID_ASC' | 'VIEW_ID_DESC' | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'JOIN_ORDER_ASC' - | 'JOIN_ORDER_DESC'; + | 'TABLE_ID_DESC'; export type ViewGrantOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' @@ -8682,20 +7582,12 @@ export type ViewGrantOrderBy = | 'GRANTEE_NAME_DESC' | 'PRIVILEGE_ASC' | 'PRIVILEGE_DESC' - | 'WITH_GRANT_OPTION_ASC' - | 'WITH_GRANT_OPTION_DESC' | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' - | 'GRANTEE_NAME_TRGM_SIMILARITY_ASC' - | 'GRANTEE_NAME_TRGM_SIMILARITY_DESC' - | 'PRIVILEGE_TRGM_SIMILARITY_ASC' - | 'PRIVILEGE_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'IS_GRANT_DESC'; export type ViewRuleOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' @@ -8703,23 +7595,27 @@ export type ViewRuleOrderBy = | 'VIEW_ID_ASC' | 'VIEW_ID_DESC' | 'NAME_ASC' - | 'NAME_DESC' - | 'EVENT_ASC' - | 'EVENT_DESC' - | 'ACTION_ASC' - | 'ACTION_DESC' - | 'NAME_TRGM_SIMILARITY_ASC' - | 'NAME_TRGM_SIMILARITY_DESC' - | 'EVENT_TRGM_SIMILARITY_ASC' - | 'EVENT_TRGM_SIMILARITY_DESC' - | 'ACTION_TRGM_SIMILARITY_ASC' - | 'ACTION_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; -export type TableTemplateModuleOrderBy = + | 'NAME_DESC'; +export type EmbeddingChunkOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'CHUNKS_TABLE_ID_ASC' + | 'CHUNKS_TABLE_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type TableTemplateModuleOrderBy = | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' @@ -8732,74 +7628,24 @@ export type TableTemplateModuleOrderBy = | 'TABLE_ID_DESC' | 'OWNER_TABLE_ID_ASC' | 'OWNER_TABLE_ID_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC' | 'NODE_TYPE_ASC' - | 'NODE_TYPE_DESC' - | 'DATA_ASC' - | 'DATA_DESC' - | 'TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'NODE_TYPE_TRGM_SIMILARITY_ASC' - | 'NODE_TYPE_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'NODE_TYPE_DESC'; export type SecureTableProvisionOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' | 'TABLE_ID_ASC' | 'TABLE_ID_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC' | 'NODE_TYPE_ASC' - | 'NODE_TYPE_DESC' - | 'USE_RLS_ASC' - | 'USE_RLS_DESC' - | 'NODE_DATA_ASC' - | 'NODE_DATA_DESC' - | 'FIELDS_ASC' - | 'FIELDS_DESC' - | 'GRANT_ROLES_ASC' - | 'GRANT_ROLES_DESC' - | 'GRANT_PRIVILEGES_ASC' - | 'GRANT_PRIVILEGES_DESC' - | 'POLICY_TYPE_ASC' - | 'POLICY_TYPE_DESC' - | 'POLICY_PRIVILEGES_ASC' - | 'POLICY_PRIVILEGES_DESC' - | 'POLICY_ROLE_ASC' - | 'POLICY_ROLE_DESC' - | 'POLICY_PERMISSIVE_ASC' - | 'POLICY_PERMISSIVE_DESC' - | 'POLICY_NAME_ASC' - | 'POLICY_NAME_DESC' - | 'POLICY_DATA_ASC' - | 'POLICY_DATA_DESC' - | 'OUT_FIELDS_ASC' - | 'OUT_FIELDS_DESC' - | 'TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'NODE_TYPE_TRGM_SIMILARITY_ASC' - | 'NODE_TYPE_TRGM_SIMILARITY_DESC' - | 'POLICY_TYPE_TRGM_SIMILARITY_ASC' - | 'POLICY_TYPE_TRGM_SIMILARITY_DESC' - | 'POLICY_ROLE_TRGM_SIMILARITY_ASC' - | 'POLICY_ROLE_TRGM_SIMILARITY_DESC' - | 'POLICY_NAME_TRGM_SIMILARITY_ASC' - | 'POLICY_NAME_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'NODE_TYPE_DESC'; export type RelationProvisionOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' @@ -8809,99 +7655,25 @@ export type RelationProvisionOrderBy = | 'SOURCE_TABLE_ID_ASC' | 'SOURCE_TABLE_ID_DESC' | 'TARGET_TABLE_ID_ASC' - | 'TARGET_TABLE_ID_DESC' - | 'FIELD_NAME_ASC' - | 'FIELD_NAME_DESC' - | 'DELETE_ACTION_ASC' - | 'DELETE_ACTION_DESC' - | 'IS_REQUIRED_ASC' - | 'IS_REQUIRED_DESC' - | 'JUNCTION_TABLE_ID_ASC' - | 'JUNCTION_TABLE_ID_DESC' - | 'JUNCTION_TABLE_NAME_ASC' - | 'JUNCTION_TABLE_NAME_DESC' - | 'JUNCTION_SCHEMA_ID_ASC' - | 'JUNCTION_SCHEMA_ID_DESC' - | 'SOURCE_FIELD_NAME_ASC' - | 'SOURCE_FIELD_NAME_DESC' - | 'TARGET_FIELD_NAME_ASC' - | 'TARGET_FIELD_NAME_DESC' - | 'USE_COMPOSITE_KEY_ASC' - | 'USE_COMPOSITE_KEY_DESC' - | 'NODE_TYPE_ASC' - | 'NODE_TYPE_DESC' - | 'NODE_DATA_ASC' - | 'NODE_DATA_DESC' - | 'GRANT_ROLES_ASC' - | 'GRANT_ROLES_DESC' - | 'GRANT_PRIVILEGES_ASC' - | 'GRANT_PRIVILEGES_DESC' - | 'POLICY_TYPE_ASC' - | 'POLICY_TYPE_DESC' - | 'POLICY_PRIVILEGES_ASC' - | 'POLICY_PRIVILEGES_DESC' - | 'POLICY_ROLE_ASC' - | 'POLICY_ROLE_DESC' - | 'POLICY_PERMISSIVE_ASC' - | 'POLICY_PERMISSIVE_DESC' - | 'POLICY_NAME_ASC' - | 'POLICY_NAME_DESC' - | 'POLICY_DATA_ASC' - | 'POLICY_DATA_DESC' - | 'OUT_FIELD_ID_ASC' - | 'OUT_FIELD_ID_DESC' - | 'OUT_JUNCTION_TABLE_ID_ASC' - | 'OUT_JUNCTION_TABLE_ID_DESC' - | 'OUT_SOURCE_FIELD_ID_ASC' - | 'OUT_SOURCE_FIELD_ID_DESC' - | 'OUT_TARGET_FIELD_ID_ASC' - | 'OUT_TARGET_FIELD_ID_DESC' - | 'RELATION_TYPE_TRGM_SIMILARITY_ASC' - | 'RELATION_TYPE_TRGM_SIMILARITY_DESC' - | 'FIELD_NAME_TRGM_SIMILARITY_ASC' - | 'FIELD_NAME_TRGM_SIMILARITY_DESC' - | 'DELETE_ACTION_TRGM_SIMILARITY_ASC' - | 'DELETE_ACTION_TRGM_SIMILARITY_DESC' - | 'JUNCTION_TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'JUNCTION_TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'SOURCE_FIELD_NAME_TRGM_SIMILARITY_ASC' - | 'SOURCE_FIELD_NAME_TRGM_SIMILARITY_DESC' - | 'TARGET_FIELD_NAME_TRGM_SIMILARITY_ASC' - | 'TARGET_FIELD_NAME_TRGM_SIMILARITY_DESC' - | 'NODE_TYPE_TRGM_SIMILARITY_ASC' - | 'NODE_TYPE_TRGM_SIMILARITY_DESC' - | 'POLICY_TYPE_TRGM_SIMILARITY_ASC' - | 'POLICY_TYPE_TRGM_SIMILARITY_DESC' - | 'POLICY_ROLE_TRGM_SIMILARITY_ASC' - | 'POLICY_ROLE_TRGM_SIMILARITY_DESC' - | 'POLICY_NAME_TRGM_SIMILARITY_ASC' - | 'POLICY_NAME_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'TARGET_TABLE_ID_DESC'; export type SchemaGrantOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' - | 'GRANTEE_NAME_ASC' - | 'GRANTEE_NAME_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'GRANTEE_NAME_TRGM_SIMILARITY_ASC' - | 'GRANTEE_NAME_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'UPDATED_AT_DESC'; export type DefaultPrivilegeOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' @@ -8915,31 +7687,35 @@ export type DefaultPrivilegeOrderBy = | 'GRANTEE_NAME_ASC' | 'GRANTEE_NAME_DESC' | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' - | 'OBJECT_TYPE_TRGM_SIMILARITY_ASC' - | 'OBJECT_TYPE_TRGM_SIMILARITY_DESC' - | 'PRIVILEGE_TRGM_SIMILARITY_ASC' - | 'PRIVILEGE_TRGM_SIMILARITY_DESC' - | 'GRANTEE_NAME_TRGM_SIMILARITY_ASC' - | 'GRANTEE_NAME_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; -export type ApiSchemaOrderBy = + | 'IS_GRANT_DESC'; +export type EnumOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' - | 'API_ID_ASC' - | 'API_ID_DESC'; -export type ApiModuleOrderBy = + | 'NAME_ASC' + | 'NAME_DESC'; +export type ApiSchemaOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'API_ID_ASC' + | 'API_ID_DESC'; +export type ApiModuleOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' @@ -8947,17 +7723,11 @@ export type ApiModuleOrderBy = | 'API_ID_ASC' | 'API_ID_DESC' | 'NAME_ASC' - | 'NAME_DESC' - | 'DATA_ASC' - | 'DATA_DESC' - | 'NAME_TRGM_SIMILARITY_ASC' - | 'NAME_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'NAME_DESC'; export type DomainOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' @@ -8971,1033 +7741,307 @@ export type DomainOrderBy = | 'DOMAIN_ASC' | 'DOMAIN_DESC'; export type SiteMetadatumOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'SITE_ID_ASC' - | 'SITE_ID_DESC' - | 'TITLE_ASC' - | 'TITLE_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'OG_IMAGE_ASC' - | 'OG_IMAGE_DESC' - | 'TITLE_TRGM_SIMILARITY_ASC' - | 'TITLE_TRGM_SIMILARITY_DESC' - | 'DESCRIPTION_TRGM_SIMILARITY_ASC' - | 'DESCRIPTION_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'SITE_ID_DESC'; export type SiteModuleOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'SITE_ID_ASC' - | 'SITE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'DATA_ASC' - | 'DATA_DESC' - | 'NAME_TRGM_SIMILARITY_ASC' - | 'NAME_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'SITE_ID_DESC'; export type SiteThemeOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'SITE_ID_ASC' - | 'SITE_ID_DESC' - | 'THEME_ASC' - | 'THEME_DESC'; + | 'SITE_ID_DESC'; export type TriggerFunctionOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'CODE_ASC' - | 'CODE_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'NAME_TRGM_SIMILARITY_ASC' - | 'NAME_TRGM_SIMILARITY_DESC' - | 'CODE_TRGM_SIMILARITY_ASC' - | 'CODE_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; -export type ApiOrderBy = + | 'UPDATED_AT_DESC'; +export type DatabaseTransferOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'TARGET_OWNER_ID_ASC' + | 'TARGET_OWNER_ID_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC'; +export type ApiOrderBy = | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'NAME_ASC' - | 'NAME_DESC' - | 'DBNAME_ASC' - | 'DBNAME_DESC' - | 'ROLE_NAME_ASC' - | 'ROLE_NAME_DESC' - | 'ANON_ROLE_ASC' - | 'ANON_ROLE_DESC' - | 'IS_PUBLIC_ASC' - | 'IS_PUBLIC_DESC' - | 'NAME_TRGM_SIMILARITY_ASC' - | 'NAME_TRGM_SIMILARITY_DESC' - | 'DBNAME_TRGM_SIMILARITY_ASC' - | 'DBNAME_TRGM_SIMILARITY_DESC' - | 'ROLE_NAME_TRGM_SIMILARITY_ASC' - | 'ROLE_NAME_TRGM_SIMILARITY_DESC' - | 'ANON_ROLE_TRGM_SIMILARITY_ASC' - | 'ANON_ROLE_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'NAME_DESC'; export type SiteOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'TITLE_ASC' - | 'TITLE_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'OG_IMAGE_ASC' - | 'OG_IMAGE_DESC' - | 'FAVICON_ASC' - | 'FAVICON_DESC' - | 'APPLE_TOUCH_ICON_ASC' - | 'APPLE_TOUCH_ICON_DESC' - | 'LOGO_ASC' - | 'LOGO_DESC' - | 'DBNAME_ASC' - | 'DBNAME_DESC' - | 'TITLE_TRGM_SIMILARITY_ASC' - | 'TITLE_TRGM_SIMILARITY_DESC' - | 'DESCRIPTION_TRGM_SIMILARITY_ASC' - | 'DESCRIPTION_TRGM_SIMILARITY_DESC' - | 'DBNAME_TRGM_SIMILARITY_ASC' - | 'DBNAME_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'DATABASE_ID_DESC'; export type AppOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'SITE_ID_ASC' - | 'SITE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'APP_IMAGE_ASC' - | 'APP_IMAGE_DESC' - | 'APP_STORE_LINK_ASC' - | 'APP_STORE_LINK_DESC' - | 'APP_STORE_ID_ASC' - | 'APP_STORE_ID_DESC' - | 'APP_ID_PREFIX_ASC' - | 'APP_ID_PREFIX_DESC' - | 'PLAY_STORE_LINK_ASC' - | 'PLAY_STORE_LINK_DESC' - | 'NAME_TRGM_SIMILARITY_ASC' - | 'NAME_TRGM_SIMILARITY_DESC' - | 'APP_STORE_ID_TRGM_SIMILARITY_ASC' - | 'APP_STORE_ID_TRGM_SIMILARITY_DESC' - | 'APP_ID_PREFIX_TRGM_SIMILARITY_ASC' - | 'APP_ID_PREFIX_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'SITE_ID_DESC'; export type ConnectedAccountsModuleOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'OWNER_TABLE_ID_ASC' - | 'OWNER_TABLE_ID_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC' - | 'TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'DATABASE_ID_DESC'; export type CryptoAddressesModuleOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'OWNER_TABLE_ID_ASC' - | 'OWNER_TABLE_ID_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC' - | 'CRYPTO_NETWORK_ASC' - | 'CRYPTO_NETWORK_DESC' - | 'TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'CRYPTO_NETWORK_TRGM_SIMILARITY_ASC' - | 'CRYPTO_NETWORK_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'DATABASE_ID_DESC'; export type CryptoAuthModuleOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'USERS_TABLE_ID_ASC' - | 'USERS_TABLE_ID_DESC' - | 'SECRETS_TABLE_ID_ASC' - | 'SECRETS_TABLE_ID_DESC' - | 'SESSIONS_TABLE_ID_ASC' - | 'SESSIONS_TABLE_ID_DESC' - | 'SESSION_CREDENTIALS_TABLE_ID_ASC' - | 'SESSION_CREDENTIALS_TABLE_ID_DESC' - | 'ADDRESSES_TABLE_ID_ASC' - | 'ADDRESSES_TABLE_ID_DESC' - | 'USER_FIELD_ASC' - | 'USER_FIELD_DESC' - | 'CRYPTO_NETWORK_ASC' - | 'CRYPTO_NETWORK_DESC' - | 'SIGN_IN_REQUEST_CHALLENGE_ASC' - | 'SIGN_IN_REQUEST_CHALLENGE_DESC' - | 'SIGN_IN_RECORD_FAILURE_ASC' - | 'SIGN_IN_RECORD_FAILURE_DESC' - | 'SIGN_UP_WITH_KEY_ASC' - | 'SIGN_UP_WITH_KEY_DESC' - | 'SIGN_IN_WITH_CHALLENGE_ASC' - | 'SIGN_IN_WITH_CHALLENGE_DESC' - | 'USER_FIELD_TRGM_SIMILARITY_ASC' - | 'USER_FIELD_TRGM_SIMILARITY_DESC' - | 'CRYPTO_NETWORK_TRGM_SIMILARITY_ASC' - | 'CRYPTO_NETWORK_TRGM_SIMILARITY_DESC' - | 'SIGN_IN_REQUEST_CHALLENGE_TRGM_SIMILARITY_ASC' - | 'SIGN_IN_REQUEST_CHALLENGE_TRGM_SIMILARITY_DESC' - | 'SIGN_IN_RECORD_FAILURE_TRGM_SIMILARITY_ASC' - | 'SIGN_IN_RECORD_FAILURE_TRGM_SIMILARITY_DESC' - | 'SIGN_UP_WITH_KEY_TRGM_SIMILARITY_ASC' - | 'SIGN_UP_WITH_KEY_TRGM_SIMILARITY_DESC' - | 'SIGN_IN_WITH_CHALLENGE_TRGM_SIMILARITY_ASC' - | 'SIGN_IN_WITH_CHALLENGE_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'DATABASE_ID_DESC'; export type DefaultIdsModuleOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC'; export type DenormalizedTableFieldOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'FIELD_ID_ASC' - | 'FIELD_ID_DESC' - | 'SET_IDS_ASC' - | 'SET_IDS_DESC' - | 'REF_TABLE_ID_ASC' - | 'REF_TABLE_ID_DESC' - | 'REF_FIELD_ID_ASC' - | 'REF_FIELD_ID_DESC' - | 'REF_IDS_ASC' - | 'REF_IDS_DESC' - | 'USE_UPDATES_ASC' - | 'USE_UPDATES_DESC' - | 'UPDATE_DEFAULTS_ASC' - | 'UPDATE_DEFAULTS_DESC' - | 'FUNC_NAME_ASC' - | 'FUNC_NAME_DESC' - | 'FUNC_ORDER_ASC' - | 'FUNC_ORDER_DESC' - | 'FUNC_NAME_TRGM_SIMILARITY_ASC' - | 'FUNC_NAME_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'DATABASE_ID_DESC'; export type EmailsModuleOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'OWNER_TABLE_ID_ASC' - | 'OWNER_TABLE_ID_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC' - | 'TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'DATABASE_ID_DESC'; export type EncryptedSecretsModuleOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC' - | 'TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'DATABASE_ID_DESC'; export type FieldModuleOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'FIELD_ID_ASC' - | 'FIELD_ID_DESC' | 'NODE_TYPE_ASC' - | 'NODE_TYPE_DESC' - | 'DATA_ASC' - | 'DATA_DESC' - | 'TRIGGERS_ASC' - | 'TRIGGERS_DESC' - | 'FUNCTIONS_ASC' - | 'FUNCTIONS_DESC' - | 'NODE_TYPE_TRGM_SIMILARITY_ASC' - | 'NODE_TYPE_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'NODE_TYPE_DESC'; export type InvitesModuleOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'EMAILS_TABLE_ID_ASC' - | 'EMAILS_TABLE_ID_DESC' - | 'USERS_TABLE_ID_ASC' - | 'USERS_TABLE_ID_DESC' - | 'INVITES_TABLE_ID_ASC' - | 'INVITES_TABLE_ID_DESC' - | 'CLAIMED_INVITES_TABLE_ID_ASC' - | 'CLAIMED_INVITES_TABLE_ID_DESC' - | 'INVITES_TABLE_NAME_ASC' - | 'INVITES_TABLE_NAME_DESC' - | 'CLAIMED_INVITES_TABLE_NAME_ASC' - | 'CLAIMED_INVITES_TABLE_NAME_DESC' - | 'SUBMIT_INVITE_CODE_FUNCTION_ASC' - | 'SUBMIT_INVITE_CODE_FUNCTION_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'MEMBERSHIP_TYPE_ASC' - | 'MEMBERSHIP_TYPE_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' - | 'INVITES_TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'INVITES_TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'CLAIMED_INVITES_TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'CLAIMED_INVITES_TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'SUBMIT_INVITE_CODE_FUNCTION_TRGM_SIMILARITY_ASC' - | 'SUBMIT_INVITE_CODE_FUNCTION_TRGM_SIMILARITY_DESC' - | 'PREFIX_TRGM_SIMILARITY_ASC' - | 'PREFIX_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'DATABASE_ID_DESC'; export type LevelsModuleOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'STEPS_TABLE_ID_ASC' - | 'STEPS_TABLE_ID_DESC' - | 'STEPS_TABLE_NAME_ASC' - | 'STEPS_TABLE_NAME_DESC' - | 'ACHIEVEMENTS_TABLE_ID_ASC' - | 'ACHIEVEMENTS_TABLE_ID_DESC' - | 'ACHIEVEMENTS_TABLE_NAME_ASC' - | 'ACHIEVEMENTS_TABLE_NAME_DESC' - | 'LEVELS_TABLE_ID_ASC' - | 'LEVELS_TABLE_ID_DESC' - | 'LEVELS_TABLE_NAME_ASC' - | 'LEVELS_TABLE_NAME_DESC' - | 'LEVEL_REQUIREMENTS_TABLE_ID_ASC' - | 'LEVEL_REQUIREMENTS_TABLE_ID_DESC' - | 'LEVEL_REQUIREMENTS_TABLE_NAME_ASC' - | 'LEVEL_REQUIREMENTS_TABLE_NAME_DESC' - | 'COMPLETED_STEP_ASC' - | 'COMPLETED_STEP_DESC' - | 'INCOMPLETED_STEP_ASC' - | 'INCOMPLETED_STEP_DESC' - | 'TG_ACHIEVEMENT_ASC' - | 'TG_ACHIEVEMENT_DESC' - | 'TG_ACHIEVEMENT_TOGGLE_ASC' - | 'TG_ACHIEVEMENT_TOGGLE_DESC' - | 'TG_ACHIEVEMENT_TOGGLE_BOOLEAN_ASC' - | 'TG_ACHIEVEMENT_TOGGLE_BOOLEAN_DESC' - | 'TG_ACHIEVEMENT_BOOLEAN_ASC' - | 'TG_ACHIEVEMENT_BOOLEAN_DESC' - | 'UPSERT_ACHIEVEMENT_ASC' - | 'UPSERT_ACHIEVEMENT_DESC' - | 'TG_UPDATE_ACHIEVEMENTS_ASC' - | 'TG_UPDATE_ACHIEVEMENTS_DESC' - | 'STEPS_REQUIRED_ASC' - | 'STEPS_REQUIRED_DESC' - | 'LEVEL_ACHIEVED_ASC' - | 'LEVEL_ACHIEVED_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'MEMBERSHIP_TYPE_ASC' - | 'MEMBERSHIP_TYPE_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' - | 'ACTOR_TABLE_ID_ASC' - | 'ACTOR_TABLE_ID_DESC' - | 'STEPS_TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'STEPS_TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'ACHIEVEMENTS_TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'ACHIEVEMENTS_TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'LEVELS_TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'LEVELS_TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'LEVEL_REQUIREMENTS_TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'LEVEL_REQUIREMENTS_TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'COMPLETED_STEP_TRGM_SIMILARITY_ASC' - | 'COMPLETED_STEP_TRGM_SIMILARITY_DESC' - | 'INCOMPLETED_STEP_TRGM_SIMILARITY_ASC' - | 'INCOMPLETED_STEP_TRGM_SIMILARITY_DESC' - | 'TG_ACHIEVEMENT_TRGM_SIMILARITY_ASC' - | 'TG_ACHIEVEMENT_TRGM_SIMILARITY_DESC' - | 'TG_ACHIEVEMENT_TOGGLE_TRGM_SIMILARITY_ASC' - | 'TG_ACHIEVEMENT_TOGGLE_TRGM_SIMILARITY_DESC' - | 'TG_ACHIEVEMENT_TOGGLE_BOOLEAN_TRGM_SIMILARITY_ASC' - | 'TG_ACHIEVEMENT_TOGGLE_BOOLEAN_TRGM_SIMILARITY_DESC' - | 'TG_ACHIEVEMENT_BOOLEAN_TRGM_SIMILARITY_ASC' - | 'TG_ACHIEVEMENT_BOOLEAN_TRGM_SIMILARITY_DESC' - | 'UPSERT_ACHIEVEMENT_TRGM_SIMILARITY_ASC' - | 'UPSERT_ACHIEVEMENT_TRGM_SIMILARITY_DESC' - | 'TG_UPDATE_ACHIEVEMENTS_TRGM_SIMILARITY_ASC' - | 'TG_UPDATE_ACHIEVEMENTS_TRGM_SIMILARITY_DESC' - | 'STEPS_REQUIRED_TRGM_SIMILARITY_ASC' - | 'STEPS_REQUIRED_TRGM_SIMILARITY_DESC' - | 'LEVEL_ACHIEVED_TRGM_SIMILARITY_ASC' - | 'LEVEL_ACHIEVED_TRGM_SIMILARITY_DESC' - | 'PREFIX_TRGM_SIMILARITY_ASC' - | 'PREFIX_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'DATABASE_ID_DESC'; export type LimitsModuleOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC' - | 'DEFAULT_TABLE_ID_ASC' - | 'DEFAULT_TABLE_ID_DESC' - | 'DEFAULT_TABLE_NAME_ASC' - | 'DEFAULT_TABLE_NAME_DESC' - | 'LIMIT_INCREMENT_FUNCTION_ASC' - | 'LIMIT_INCREMENT_FUNCTION_DESC' - | 'LIMIT_DECREMENT_FUNCTION_ASC' - | 'LIMIT_DECREMENT_FUNCTION_DESC' - | 'LIMIT_INCREMENT_TRIGGER_ASC' - | 'LIMIT_INCREMENT_TRIGGER_DESC' - | 'LIMIT_DECREMENT_TRIGGER_ASC' - | 'LIMIT_DECREMENT_TRIGGER_DESC' - | 'LIMIT_UPDATE_TRIGGER_ASC' - | 'LIMIT_UPDATE_TRIGGER_DESC' - | 'LIMIT_CHECK_FUNCTION_ASC' - | 'LIMIT_CHECK_FUNCTION_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'MEMBERSHIP_TYPE_ASC' - | 'MEMBERSHIP_TYPE_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' - | 'ACTOR_TABLE_ID_ASC' - | 'ACTOR_TABLE_ID_DESC' - | 'TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'DEFAULT_TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'DEFAULT_TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'LIMIT_INCREMENT_FUNCTION_TRGM_SIMILARITY_ASC' - | 'LIMIT_INCREMENT_FUNCTION_TRGM_SIMILARITY_DESC' - | 'LIMIT_DECREMENT_FUNCTION_TRGM_SIMILARITY_ASC' - | 'LIMIT_DECREMENT_FUNCTION_TRGM_SIMILARITY_DESC' - | 'LIMIT_INCREMENT_TRIGGER_TRGM_SIMILARITY_ASC' - | 'LIMIT_INCREMENT_TRIGGER_TRGM_SIMILARITY_DESC' - | 'LIMIT_DECREMENT_TRIGGER_TRGM_SIMILARITY_ASC' - | 'LIMIT_DECREMENT_TRIGGER_TRGM_SIMILARITY_DESC' - | 'LIMIT_UPDATE_TRIGGER_TRGM_SIMILARITY_ASC' - | 'LIMIT_UPDATE_TRIGGER_TRGM_SIMILARITY_DESC' - | 'LIMIT_CHECK_FUNCTION_TRGM_SIMILARITY_ASC' - | 'LIMIT_CHECK_FUNCTION_TRGM_SIMILARITY_DESC' - | 'PREFIX_TRGM_SIMILARITY_ASC' - | 'PREFIX_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'DATABASE_ID_DESC'; export type MembershipTypesModuleOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC' - | 'TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'DATABASE_ID_DESC'; export type MembershipsModuleOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'MEMBERSHIPS_TABLE_ID_ASC' - | 'MEMBERSHIPS_TABLE_ID_DESC' - | 'MEMBERSHIPS_TABLE_NAME_ASC' - | 'MEMBERSHIPS_TABLE_NAME_DESC' - | 'MEMBERS_TABLE_ID_ASC' - | 'MEMBERS_TABLE_ID_DESC' - | 'MEMBERS_TABLE_NAME_ASC' - | 'MEMBERS_TABLE_NAME_DESC' - | 'MEMBERSHIP_DEFAULTS_TABLE_ID_ASC' - | 'MEMBERSHIP_DEFAULTS_TABLE_ID_DESC' - | 'MEMBERSHIP_DEFAULTS_TABLE_NAME_ASC' - | 'MEMBERSHIP_DEFAULTS_TABLE_NAME_DESC' - | 'GRANTS_TABLE_ID_ASC' - | 'GRANTS_TABLE_ID_DESC' - | 'GRANTS_TABLE_NAME_ASC' - | 'GRANTS_TABLE_NAME_DESC' - | 'ACTOR_TABLE_ID_ASC' - | 'ACTOR_TABLE_ID_DESC' - | 'LIMITS_TABLE_ID_ASC' - | 'LIMITS_TABLE_ID_DESC' - | 'DEFAULT_LIMITS_TABLE_ID_ASC' - | 'DEFAULT_LIMITS_TABLE_ID_DESC' - | 'PERMISSIONS_TABLE_ID_ASC' - | 'PERMISSIONS_TABLE_ID_DESC' - | 'DEFAULT_PERMISSIONS_TABLE_ID_ASC' - | 'DEFAULT_PERMISSIONS_TABLE_ID_DESC' - | 'SPRT_TABLE_ID_ASC' - | 'SPRT_TABLE_ID_DESC' - | 'ADMIN_GRANTS_TABLE_ID_ASC' - | 'ADMIN_GRANTS_TABLE_ID_DESC' - | 'ADMIN_GRANTS_TABLE_NAME_ASC' - | 'ADMIN_GRANTS_TABLE_NAME_DESC' - | 'OWNER_GRANTS_TABLE_ID_ASC' - | 'OWNER_GRANTS_TABLE_ID_DESC' - | 'OWNER_GRANTS_TABLE_NAME_ASC' - | 'OWNER_GRANTS_TABLE_NAME_DESC' - | 'MEMBERSHIP_TYPE_ASC' - | 'MEMBERSHIP_TYPE_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' - | 'ENTITY_TABLE_OWNER_ID_ASC' - | 'ENTITY_TABLE_OWNER_ID_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'ACTOR_MASK_CHECK_ASC' - | 'ACTOR_MASK_CHECK_DESC' - | 'ACTOR_PERM_CHECK_ASC' - | 'ACTOR_PERM_CHECK_DESC' - | 'ENTITY_IDS_BY_MASK_ASC' - | 'ENTITY_IDS_BY_MASK_DESC' - | 'ENTITY_IDS_BY_PERM_ASC' - | 'ENTITY_IDS_BY_PERM_DESC' - | 'ENTITY_IDS_FUNCTION_ASC' - | 'ENTITY_IDS_FUNCTION_DESC' - | 'MEMBERSHIPS_TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'MEMBERSHIPS_TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'MEMBERS_TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'MEMBERS_TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'MEMBERSHIP_DEFAULTS_TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'MEMBERSHIP_DEFAULTS_TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'GRANTS_TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'GRANTS_TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'ADMIN_GRANTS_TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'ADMIN_GRANTS_TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'OWNER_GRANTS_TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'OWNER_GRANTS_TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'PREFIX_TRGM_SIMILARITY_ASC' - | 'PREFIX_TRGM_SIMILARITY_DESC' - | 'ACTOR_MASK_CHECK_TRGM_SIMILARITY_ASC' - | 'ACTOR_MASK_CHECK_TRGM_SIMILARITY_DESC' - | 'ACTOR_PERM_CHECK_TRGM_SIMILARITY_ASC' - | 'ACTOR_PERM_CHECK_TRGM_SIMILARITY_DESC' - | 'ENTITY_IDS_BY_MASK_TRGM_SIMILARITY_ASC' - | 'ENTITY_IDS_BY_MASK_TRGM_SIMILARITY_DESC' - | 'ENTITY_IDS_BY_PERM_TRGM_SIMILARITY_ASC' - | 'ENTITY_IDS_BY_PERM_TRGM_SIMILARITY_DESC' - | 'ENTITY_IDS_FUNCTION_TRGM_SIMILARITY_ASC' - | 'ENTITY_IDS_FUNCTION_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'DATABASE_ID_DESC'; export type PermissionsModuleOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC' - | 'DEFAULT_TABLE_ID_ASC' - | 'DEFAULT_TABLE_ID_DESC' - | 'DEFAULT_TABLE_NAME_ASC' - | 'DEFAULT_TABLE_NAME_DESC' - | 'BITLEN_ASC' - | 'BITLEN_DESC' - | 'MEMBERSHIP_TYPE_ASC' - | 'MEMBERSHIP_TYPE_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' - | 'ACTOR_TABLE_ID_ASC' - | 'ACTOR_TABLE_ID_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'GET_PADDED_MASK_ASC' - | 'GET_PADDED_MASK_DESC' - | 'GET_MASK_ASC' - | 'GET_MASK_DESC' - | 'GET_BY_MASK_ASC' - | 'GET_BY_MASK_DESC' - | 'GET_MASK_BY_NAME_ASC' - | 'GET_MASK_BY_NAME_DESC' - | 'TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'DEFAULT_TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'DEFAULT_TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'PREFIX_TRGM_SIMILARITY_ASC' - | 'PREFIX_TRGM_SIMILARITY_DESC' - | 'GET_PADDED_MASK_TRGM_SIMILARITY_ASC' - | 'GET_PADDED_MASK_TRGM_SIMILARITY_DESC' - | 'GET_MASK_TRGM_SIMILARITY_ASC' - | 'GET_MASK_TRGM_SIMILARITY_DESC' - | 'GET_BY_MASK_TRGM_SIMILARITY_ASC' - | 'GET_BY_MASK_TRGM_SIMILARITY_DESC' - | 'GET_MASK_BY_NAME_TRGM_SIMILARITY_ASC' - | 'GET_MASK_BY_NAME_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'DATABASE_ID_DESC'; export type PhoneNumbersModuleOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'OWNER_TABLE_ID_ASC' - | 'OWNER_TABLE_ID_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC' - | 'TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'DATABASE_ID_DESC'; export type ProfilesModuleOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC' - | 'PROFILE_PERMISSIONS_TABLE_ID_ASC' - | 'PROFILE_PERMISSIONS_TABLE_ID_DESC' - | 'PROFILE_PERMISSIONS_TABLE_NAME_ASC' - | 'PROFILE_PERMISSIONS_TABLE_NAME_DESC' - | 'PROFILE_GRANTS_TABLE_ID_ASC' - | 'PROFILE_GRANTS_TABLE_ID_DESC' - | 'PROFILE_GRANTS_TABLE_NAME_ASC' - | 'PROFILE_GRANTS_TABLE_NAME_DESC' - | 'PROFILE_DEFINITION_GRANTS_TABLE_ID_ASC' - | 'PROFILE_DEFINITION_GRANTS_TABLE_ID_DESC' - | 'PROFILE_DEFINITION_GRANTS_TABLE_NAME_ASC' - | 'PROFILE_DEFINITION_GRANTS_TABLE_NAME_DESC' | 'MEMBERSHIP_TYPE_ASC' - | 'MEMBERSHIP_TYPE_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' - | 'ACTOR_TABLE_ID_ASC' - | 'ACTOR_TABLE_ID_DESC' - | 'PERMISSIONS_TABLE_ID_ASC' - | 'PERMISSIONS_TABLE_ID_DESC' - | 'MEMBERSHIPS_TABLE_ID_ASC' - | 'MEMBERSHIPS_TABLE_ID_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'PROFILE_PERMISSIONS_TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'PROFILE_PERMISSIONS_TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'PROFILE_GRANTS_TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'PROFILE_GRANTS_TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'PROFILE_DEFINITION_GRANTS_TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'PROFILE_DEFINITION_GRANTS_TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'PREFIX_TRGM_SIMILARITY_ASC' - | 'PREFIX_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'MEMBERSHIP_TYPE_DESC'; export type SecretsModuleOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC' - | 'TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'DATABASE_ID_DESC'; export type SessionsModuleOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'SESSIONS_TABLE_ID_ASC' - | 'SESSIONS_TABLE_ID_DESC' - | 'SESSION_CREDENTIALS_TABLE_ID_ASC' - | 'SESSION_CREDENTIALS_TABLE_ID_DESC' - | 'AUTH_SETTINGS_TABLE_ID_ASC' - | 'AUTH_SETTINGS_TABLE_ID_DESC' - | 'USERS_TABLE_ID_ASC' - | 'USERS_TABLE_ID_DESC' - | 'SESSIONS_DEFAULT_EXPIRATION_ASC' - | 'SESSIONS_DEFAULT_EXPIRATION_DESC' - | 'SESSIONS_TABLE_ASC' - | 'SESSIONS_TABLE_DESC' - | 'SESSION_CREDENTIALS_TABLE_ASC' - | 'SESSION_CREDENTIALS_TABLE_DESC' - | 'AUTH_SETTINGS_TABLE_ASC' - | 'AUTH_SETTINGS_TABLE_DESC' - | 'SESSIONS_TABLE_TRGM_SIMILARITY_ASC' - | 'SESSIONS_TABLE_TRGM_SIMILARITY_DESC' - | 'SESSION_CREDENTIALS_TABLE_TRGM_SIMILARITY_ASC' - | 'SESSION_CREDENTIALS_TABLE_TRGM_SIMILARITY_DESC' - | 'AUTH_SETTINGS_TABLE_TRGM_SIMILARITY_ASC' - | 'AUTH_SETTINGS_TABLE_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'DATABASE_ID_DESC'; export type UserAuthModuleOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'EMAILS_TABLE_ID_ASC' - | 'EMAILS_TABLE_ID_DESC' - | 'USERS_TABLE_ID_ASC' - | 'USERS_TABLE_ID_DESC' - | 'SECRETS_TABLE_ID_ASC' - | 'SECRETS_TABLE_ID_DESC' - | 'ENCRYPTED_TABLE_ID_ASC' - | 'ENCRYPTED_TABLE_ID_DESC' - | 'SESSIONS_TABLE_ID_ASC' - | 'SESSIONS_TABLE_ID_DESC' - | 'SESSION_CREDENTIALS_TABLE_ID_ASC' - | 'SESSION_CREDENTIALS_TABLE_ID_DESC' - | 'AUDITS_TABLE_ID_ASC' - | 'AUDITS_TABLE_ID_DESC' - | 'AUDITS_TABLE_NAME_ASC' - | 'AUDITS_TABLE_NAME_DESC' - | 'SIGN_IN_FUNCTION_ASC' - | 'SIGN_IN_FUNCTION_DESC' - | 'SIGN_UP_FUNCTION_ASC' - | 'SIGN_UP_FUNCTION_DESC' - | 'SIGN_OUT_FUNCTION_ASC' - | 'SIGN_OUT_FUNCTION_DESC' - | 'SET_PASSWORD_FUNCTION_ASC' - | 'SET_PASSWORD_FUNCTION_DESC' - | 'RESET_PASSWORD_FUNCTION_ASC' - | 'RESET_PASSWORD_FUNCTION_DESC' - | 'FORGOT_PASSWORD_FUNCTION_ASC' - | 'FORGOT_PASSWORD_FUNCTION_DESC' - | 'SEND_VERIFICATION_EMAIL_FUNCTION_ASC' - | 'SEND_VERIFICATION_EMAIL_FUNCTION_DESC' - | 'VERIFY_EMAIL_FUNCTION_ASC' - | 'VERIFY_EMAIL_FUNCTION_DESC' - | 'VERIFY_PASSWORD_FUNCTION_ASC' - | 'VERIFY_PASSWORD_FUNCTION_DESC' - | 'CHECK_PASSWORD_FUNCTION_ASC' - | 'CHECK_PASSWORD_FUNCTION_DESC' - | 'SEND_ACCOUNT_DELETION_EMAIL_FUNCTION_ASC' - | 'SEND_ACCOUNT_DELETION_EMAIL_FUNCTION_DESC' - | 'DELETE_ACCOUNT_FUNCTION_ASC' - | 'DELETE_ACCOUNT_FUNCTION_DESC' - | 'SIGN_IN_ONE_TIME_TOKEN_FUNCTION_ASC' - | 'SIGN_IN_ONE_TIME_TOKEN_FUNCTION_DESC' - | 'ONE_TIME_TOKEN_FUNCTION_ASC' - | 'ONE_TIME_TOKEN_FUNCTION_DESC' - | 'EXTEND_TOKEN_EXPIRES_ASC' - | 'EXTEND_TOKEN_EXPIRES_DESC' - | 'AUDITS_TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'AUDITS_TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'SIGN_IN_FUNCTION_TRGM_SIMILARITY_ASC' - | 'SIGN_IN_FUNCTION_TRGM_SIMILARITY_DESC' - | 'SIGN_UP_FUNCTION_TRGM_SIMILARITY_ASC' - | 'SIGN_UP_FUNCTION_TRGM_SIMILARITY_DESC' - | 'SIGN_OUT_FUNCTION_TRGM_SIMILARITY_ASC' - | 'SIGN_OUT_FUNCTION_TRGM_SIMILARITY_DESC' - | 'SET_PASSWORD_FUNCTION_TRGM_SIMILARITY_ASC' - | 'SET_PASSWORD_FUNCTION_TRGM_SIMILARITY_DESC' - | 'RESET_PASSWORD_FUNCTION_TRGM_SIMILARITY_ASC' - | 'RESET_PASSWORD_FUNCTION_TRGM_SIMILARITY_DESC' - | 'FORGOT_PASSWORD_FUNCTION_TRGM_SIMILARITY_ASC' - | 'FORGOT_PASSWORD_FUNCTION_TRGM_SIMILARITY_DESC' - | 'SEND_VERIFICATION_EMAIL_FUNCTION_TRGM_SIMILARITY_ASC' - | 'SEND_VERIFICATION_EMAIL_FUNCTION_TRGM_SIMILARITY_DESC' - | 'VERIFY_EMAIL_FUNCTION_TRGM_SIMILARITY_ASC' - | 'VERIFY_EMAIL_FUNCTION_TRGM_SIMILARITY_DESC' - | 'VERIFY_PASSWORD_FUNCTION_TRGM_SIMILARITY_ASC' - | 'VERIFY_PASSWORD_FUNCTION_TRGM_SIMILARITY_DESC' - | 'CHECK_PASSWORD_FUNCTION_TRGM_SIMILARITY_ASC' - | 'CHECK_PASSWORD_FUNCTION_TRGM_SIMILARITY_DESC' - | 'SEND_ACCOUNT_DELETION_EMAIL_FUNCTION_TRGM_SIMILARITY_ASC' - | 'SEND_ACCOUNT_DELETION_EMAIL_FUNCTION_TRGM_SIMILARITY_DESC' - | 'DELETE_ACCOUNT_FUNCTION_TRGM_SIMILARITY_ASC' - | 'DELETE_ACCOUNT_FUNCTION_TRGM_SIMILARITY_DESC' - | 'SIGN_IN_ONE_TIME_TOKEN_FUNCTION_TRGM_SIMILARITY_ASC' - | 'SIGN_IN_ONE_TIME_TOKEN_FUNCTION_TRGM_SIMILARITY_DESC' - | 'ONE_TIME_TOKEN_FUNCTION_TRGM_SIMILARITY_ASC' - | 'ONE_TIME_TOKEN_FUNCTION_TRGM_SIMILARITY_DESC' - | 'EXTEND_TOKEN_EXPIRES_TRGM_SIMILARITY_ASC' - | 'EXTEND_TOKEN_EXPIRES_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'DATABASE_ID_DESC'; export type UsersModuleOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC' - | 'TYPE_TABLE_ID_ASC' - | 'TYPE_TABLE_ID_DESC' - | 'TYPE_TABLE_NAME_ASC' - | 'TYPE_TABLE_NAME_DESC' - | 'TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'TYPE_TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'TYPE_TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; -export type UuidModuleOrderBy = + | 'DATABASE_ID_DESC'; +export type BlueprintOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'UUID_FUNCTION_ASC' - | 'UUID_FUNCTION_DESC' - | 'UUID_SEED_ASC' - | 'UUID_SEED_DESC' - | 'UUID_FUNCTION_TRGM_SIMILARITY_ASC' - | 'UUID_FUNCTION_TRGM_SIMILARITY_DESC' - | 'UUID_SEED_TRGM_SIMILARITY_ASC' - | 'UUID_SEED_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; -export type DatabaseProvisionModuleOrderBy = + | 'NAME_ASC' + | 'NAME_DESC' + | 'TEMPLATE_ID_ASC' + | 'TEMPLATE_ID_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'DEFINITION_HASH_ASC' + | 'DEFINITION_HASH_DESC'; +export type BlueprintTemplateOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'VERSION_ASC' + | 'VERSION_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'VISIBILITY_ASC' + | 'VISIBILITY_DESC' + | 'FORKED_FROM_ID_ASC' + | 'FORKED_FROM_ID_DESC' + | 'DEFINITION_HASH_ASC' + | 'DEFINITION_HASH_DESC'; +export type DatabaseProvisionModuleOrderBy = | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'DATABASE_NAME_ASC' - | 'DATABASE_NAME_DESC' | 'OWNER_ID_ASC' | 'OWNER_ID_DESC' - | 'SUBDOMAIN_ASC' - | 'SUBDOMAIN_DESC' - | 'DOMAIN_ASC' - | 'DOMAIN_DESC' - | 'MODULES_ASC' - | 'MODULES_DESC' - | 'OPTIONS_ASC' - | 'OPTIONS_DESC' - | 'BOOTSTRAP_USER_ASC' - | 'BOOTSTRAP_USER_DESC' | 'STATUS_ASC' | 'STATUS_DESC' - | 'ERROR_MESSAGE_ASC' - | 'ERROR_MESSAGE_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'COMPLETED_AT_ASC' - | 'COMPLETED_AT_DESC' - | 'DATABASE_NAME_TRGM_SIMILARITY_ASC' - | 'DATABASE_NAME_TRGM_SIMILARITY_DESC' - | 'SUBDOMAIN_TRGM_SIMILARITY_ASC' - | 'SUBDOMAIN_TRGM_SIMILARITY_DESC' - | 'DOMAIN_TRGM_SIMILARITY_ASC' - | 'DOMAIN_TRGM_SIMILARITY_DESC' - | 'STATUS_TRGM_SIMILARITY_ASC' - | 'STATUS_TRGM_SIMILARITY_DESC' - | 'ERROR_MESSAGE_TRGM_SIMILARITY_ASC' - | 'ERROR_MESSAGE_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'DATABASE_ID_DESC'; export type AppAdminGrantOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'GRANTOR_ID_ASC' @@ -10007,13 +8051,11 @@ export type AppAdminGrantOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; export type AppOwnerGrantOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'GRANTOR_ID_ASC' @@ -10023,15 +8065,11 @@ export type AppOwnerGrantOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; export type AppGrantOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'GRANTOR_ID_ASC' @@ -10041,9 +8079,9 @@ export type AppGrantOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; export type OrgMembershipOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'CREATED_AT_ASC' @@ -10054,22 +8092,10 @@ export type OrgMembershipOrderBy = | 'CREATED_BY_DESC' | 'UPDATED_BY_ASC' | 'UPDATED_BY_DESC' - | 'IS_APPROVED_ASC' - | 'IS_APPROVED_DESC' - | 'IS_BANNED_ASC' - | 'IS_BANNED_DESC' - | 'IS_DISABLED_ASC' - | 'IS_DISABLED_DESC' - | 'IS_ACTIVE_ASC' - | 'IS_ACTIVE_DESC' | 'IS_OWNER_ASC' | 'IS_OWNER_DESC' | 'IS_ADMIN_ASC' | 'IS_ADMIN_DESC' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC' - | 'GRANTED_ASC' - | 'GRANTED_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'ENTITY_ID_ASC' @@ -10077,9 +8103,9 @@ export type OrgMembershipOrderBy = | 'PROFILE_ID_ASC' | 'PROFILE_ID_DESC'; export type OrgMemberOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'IS_ADMIN_ASC' @@ -10089,13 +8115,11 @@ export type OrgMemberOrderBy = | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC'; export type OrgAdminGrantOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'ENTITY_ID_ASC' @@ -10107,13 +8131,11 @@ export type OrgAdminGrantOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; export type OrgOwnerGrantOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'ENTITY_ID_ASC' @@ -10125,15 +8147,11 @@ export type OrgOwnerGrantOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; export type OrgGrantOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'ENTITY_ID_ASC' @@ -10145,9 +8163,9 @@ export type OrgGrantOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; export type OrgChartEdgeOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'CREATED_AT_ASC' @@ -10159,19 +8177,11 @@ export type OrgChartEdgeOrderBy = | 'CHILD_ID_ASC' | 'CHILD_ID_DESC' | 'PARENT_ID_ASC' - | 'PARENT_ID_DESC' - | 'POSITION_TITLE_ASC' - | 'POSITION_TITLE_DESC' - | 'POSITION_LEVEL_ASC' - | 'POSITION_LEVEL_DESC' - | 'POSITION_TITLE_TRGM_SIMILARITY_ASC' - | 'POSITION_TITLE_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'PARENT_ID_DESC'; export type OrgChartEdgeGrantOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'ENTITY_ID_ASC' @@ -10181,85 +8191,141 @@ export type OrgChartEdgeGrantOrderBy = | 'PARENT_ID_ASC' | 'PARENT_ID_DESC' | 'GRANTOR_ID_ASC' - | 'GRANTOR_ID_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' - | 'POSITION_TITLE_ASC' - | 'POSITION_TITLE_DESC' - | 'POSITION_LEVEL_ASC' - | 'POSITION_LEVEL_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'POSITION_TITLE_TRGM_SIMILARITY_ASC' - | 'POSITION_TITLE_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; -export type AppLimitOrderBy = + | 'GRANTOR_ID_DESC'; +export type OrgPermissionDefaultOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC'; +export type AppLimitOrderBy = | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'NUM_ASC' - | 'NUM_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; + | 'ACTOR_ID_DESC'; export type OrgLimitOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' - | 'NUM_ASC' - | 'NUM_DESC' - | 'MAX_ASC' - | 'MAX_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC'; export type AppStepOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'COUNT_ASC' - | 'COUNT_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; export type AppAchievementOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'COUNT_ASC' - | 'COUNT_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type InviteOrderBy = +export type AppLevelOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type EmailOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'EMAIL_ASC' + | 'EMAIL_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type PhoneNumberOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'NUMBER_ASC' + | 'NUMBER_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type CryptoAddressOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'ADDRESS_ASC' + | 'ADDRESS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type ConnectedAccountOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'SERVICE_ASC' + | 'SERVICE_DESC' + | 'IDENTIFIER_ASC' + | 'IDENTIFIER_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type InviteOrderBy = | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'EMAIL_ASC' @@ -10270,32 +8336,18 @@ export type InviteOrderBy = | 'INVITE_TOKEN_DESC' | 'INVITE_VALID_ASC' | 'INVITE_VALID_DESC' - | 'INVITE_LIMIT_ASC' - | 'INVITE_LIMIT_DESC' - | 'INVITE_COUNT_ASC' - | 'INVITE_COUNT_DESC' - | 'MULTIPLE_ASC' - | 'MULTIPLE_DESC' - | 'DATA_ASC' - | 'DATA_DESC' | 'EXPIRES_AT_ASC' | 'EXPIRES_AT_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'INVITE_TOKEN_TRGM_SIMILARITY_ASC' - | 'INVITE_TOKEN_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'UPDATED_AT_DESC'; export type ClaimedInviteOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' - | 'DATA_ASC' - | 'DATA_DESC' | 'SENDER_ID_ASC' | 'SENDER_ID_DESC' | 'RECEIVER_ID_ASC' @@ -10305,9 +8357,9 @@ export type ClaimedInviteOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; export type OrgInviteOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'EMAIL_ASC' @@ -10320,14 +8372,6 @@ export type OrgInviteOrderBy = | 'INVITE_TOKEN_DESC' | 'INVITE_VALID_ASC' | 'INVITE_VALID_DESC' - | 'INVITE_LIMIT_ASC' - | 'INVITE_LIMIT_DESC' - | 'INVITE_COUNT_ASC' - | 'INVITE_COUNT_DESC' - | 'MULTIPLE_ASC' - | 'MULTIPLE_DESC' - | 'DATA_ASC' - | 'DATA_DESC' | 'EXPIRES_AT_ASC' | 'EXPIRES_AT_DESC' | 'CREATED_AT_ASC' @@ -10335,19 +8379,13 @@ export type OrgInviteOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'INVITE_TOKEN_TRGM_SIMILARITY_ASC' - | 'INVITE_TOKEN_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'ENTITY_ID_DESC'; export type OrgClaimedInviteOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' - | 'DATA_ASC' - | 'DATA_DESC' | 'SENDER_ID_ASC' | 'SENDER_ID_DESC' | 'RECEIVER_ID_ASC' @@ -10358,244 +8396,94 @@ export type OrgClaimedInviteOrderBy = | 'UPDATED_AT_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC'; -export type RefOrderBy = +export type AuditLogOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'EVENT_ASC' + | 'EVENT_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC'; +export type RefOrderBy = | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'STORE_ID_ASC' - | 'STORE_ID_DESC' - | 'COMMIT_ID_ASC' - | 'COMMIT_ID_DESC' - | 'NAME_TRGM_SIMILARITY_ASC' - | 'NAME_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'STORE_ID_DESC'; export type StoreOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'HASH_ASC' - | 'HASH_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'NAME_TRGM_SIMILARITY_ASC' - | 'NAME_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'DATABASE_ID_DESC'; export type AppPermissionDefaultOrderBy = - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' | 'NATURAL' - | 'ID_ASC' - | 'ID_DESC' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC'; -export type CryptoAddressOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' - | 'ID_DESC' - | 'OWNER_ID_ASC' - | 'OWNER_ID_DESC' - | 'ADDRESS_ASC' - | 'ADDRESS_DESC' - | 'IS_VERIFIED_ASC' - | 'IS_VERIFIED_DESC' - | 'IS_PRIMARY_ASC' - | 'IS_PRIMARY_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'ADDRESS_TRGM_SIMILARITY_ASC' - | 'ADDRESS_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'ID_DESC'; export type RoleTypeOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC'; -export type OrgPermissionDefaultOrderBy = +export type AppLimitDefaultOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC'; -export type PhoneNumberOrderBy = + | 'NAME_ASC' + | 'NAME_DESC'; +export type OrgLimitDefaultOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' - | 'ID_ASC' - | 'ID_DESC' - | 'OWNER_ID_ASC' - | 'OWNER_ID_DESC' - | 'CC_ASC' - | 'CC_DESC' - | 'NUMBER_ASC' - | 'NUMBER_DESC' - | 'IS_VERIFIED_ASC' - | 'IS_VERIFIED_DESC' - | 'IS_PRIMARY_ASC' - | 'IS_PRIMARY_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CC_TRGM_SIMILARITY_ASC' - | 'CC_TRGM_SIMILARITY_DESC' - | 'NUMBER_TRGM_SIMILARITY_ASC' - | 'NUMBER_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; -export type AppLimitDefaultOrderBy = - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'NATURAL' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; -export type OrgLimitDefaultOrderBy = - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' - | 'NAME_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; -export type ConnectedAccountOrderBy = - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'NATURAL' - | 'ID_ASC' - | 'ID_DESC' - | 'OWNER_ID_ASC' - | 'OWNER_ID_DESC' - | 'SERVICE_ASC' - | 'SERVICE_DESC' - | 'IDENTIFIER_ASC' - | 'IDENTIFIER_DESC' - | 'DETAILS_ASC' - | 'DETAILS_DESC' - | 'IS_VERIFIED_ASC' - | 'IS_VERIFIED_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'SERVICE_TRGM_SIMILARITY_ASC' - | 'SERVICE_TRGM_SIMILARITY_DESC' - | 'IDENTIFIER_TRGM_SIMILARITY_ASC' - | 'IDENTIFIER_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'NAME_DESC'; export type NodeTypeRegistryOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'NAME_ASC' | 'NAME_DESC' | 'SLUG_ASC' | 'SLUG_DESC' | 'CATEGORY_ASC' - | 'CATEGORY_DESC' - | 'DISPLAY_NAME_ASC' - | 'DISPLAY_NAME_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'PARAMETER_SCHEMA_ASC' - | 'PARAMETER_SCHEMA_DESC' - | 'TAGS_ASC' - | 'TAGS_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'NAME_TRGM_SIMILARITY_ASC' - | 'NAME_TRGM_SIMILARITY_DESC' - | 'SLUG_TRGM_SIMILARITY_ASC' - | 'SLUG_TRGM_SIMILARITY_DESC' - | 'CATEGORY_TRGM_SIMILARITY_ASC' - | 'CATEGORY_TRGM_SIMILARITY_DESC' - | 'DISPLAY_NAME_TRGM_SIMILARITY_ASC' - | 'DISPLAY_NAME_TRGM_SIMILARITY_DESC' - | 'DESCRIPTION_TRGM_SIMILARITY_ASC' - | 'DESCRIPTION_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'CATEGORY_DESC'; export type MembershipTypeOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' - | 'NAME_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'DESCRIPTION_TRGM_SIMILARITY_ASC' - | 'DESCRIPTION_TRGM_SIMILARITY_DESC' - | 'PREFIX_TRGM_SIMILARITY_ASC' - | 'PREFIX_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'NAME_DESC'; export type CommitOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' - | 'MESSAGE_ASC' - | 'MESSAGE_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'STORE_ID_ASC' - | 'STORE_ID_DESC' - | 'PARENT_IDS_ASC' - | 'PARENT_IDS_DESC' - | 'AUTHOR_ID_ASC' - | 'AUTHOR_ID_DESC' - | 'COMMITTER_ID_ASC' - | 'COMMITTER_ID_DESC' - | 'TREE_ID_ASC' - | 'TREE_ID_DESC' - | 'DATE_ASC' - | 'DATE_DESC' - | 'MESSAGE_TRGM_SIMILARITY_ASC' - | 'MESSAGE_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'DATABASE_ID_DESC'; export type AppMembershipDefaultOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'CREATED_AT_ASC' @@ -10605,51 +8493,19 @@ export type AppMembershipDefaultOrderBy = | 'CREATED_BY_ASC' | 'CREATED_BY_DESC' | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'IS_APPROVED_ASC' - | 'IS_APPROVED_DESC' - | 'IS_VERIFIED_ASC' - | 'IS_VERIFIED_DESC'; + | 'UPDATED_BY_DESC'; export type RlsModuleOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'SESSION_CREDENTIALS_TABLE_ID_ASC' - | 'SESSION_CREDENTIALS_TABLE_ID_DESC' - | 'SESSIONS_TABLE_ID_ASC' - | 'SESSIONS_TABLE_ID_DESC' - | 'USERS_TABLE_ID_ASC' - | 'USERS_TABLE_ID_DESC' - | 'AUTHENTICATE_ASC' - | 'AUTHENTICATE_DESC' - | 'AUTHENTICATE_STRICT_ASC' - | 'AUTHENTICATE_STRICT_DESC' - | 'CURRENT_ROLE_ASC' - | 'CURRENT_ROLE_DESC' - | 'CURRENT_ROLE_ID_ASC' - | 'CURRENT_ROLE_ID_DESC' - | 'AUTHENTICATE_TRGM_SIMILARITY_ASC' - | 'AUTHENTICATE_TRGM_SIMILARITY_DESC' - | 'AUTHENTICATE_STRICT_TRGM_SIMILARITY_ASC' - | 'AUTHENTICATE_STRICT_TRGM_SIMILARITY_DESC' - | 'CURRENT_ROLE_TRGM_SIMILARITY_ASC' - | 'CURRENT_ROLE_TRGM_SIMILARITY_DESC' - | 'CURRENT_ROLE_ID_TRGM_SIMILARITY_ASC' - | 'CURRENT_ROLE_ID_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'DATABASE_ID_DESC'; export type OrgMembershipDefaultOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'CREATED_AT_ASC' @@ -10660,63 +8516,9 @@ export type OrgMembershipDefaultOrderBy = | 'CREATED_BY_DESC' | 'UPDATED_BY_ASC' | 'UPDATED_BY_DESC' - | 'IS_APPROVED_ASC' - | 'IS_APPROVED_DESC' | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'DELETE_MEMBER_CASCADE_GROUPS_ASC' - | 'DELETE_MEMBER_CASCADE_GROUPS_DESC' - | 'CREATE_GROUPS_CASCADE_MEMBERS_ASC' - | 'CREATE_GROUPS_CASCADE_MEMBERS_DESC'; -export type AuditLogOrderBy = - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'NATURAL' - | 'ID_ASC' - | 'ID_DESC' - | 'EVENT_ASC' - | 'EVENT_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'ORIGIN_ASC' - | 'ORIGIN_DESC' - | 'USER_AGENT_ASC' - | 'USER_AGENT_DESC' - | 'IP_ADDRESS_ASC' - | 'IP_ADDRESS_DESC' - | 'SUCCESS_ASC' - | 'SUCCESS_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'USER_AGENT_TRGM_SIMILARITY_ASC' - | 'USER_AGENT_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; -export type AppLevelOrderBy = - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'NATURAL' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'IMAGE_ASC' - | 'IMAGE_DESC' - | 'OWNER_ID_ASC' - | 'OWNER_ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'DESCRIPTION_TRGM_SIMILARITY_ASC' - | 'DESCRIPTION_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'ENTITY_ID_DESC'; export type SqlMigrationOrderBy = - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' | 'NATURAL' | 'ID_ASC' | 'ID_DESC' @@ -10726,10 +8528,6 @@ export type SqlMigrationOrderBy = | 'DATABASE_ID_DESC' | 'DEPLOY_ASC' | 'DEPLOY_DESC' - | 'DEPS_ASC' - | 'DEPS_DESC' - | 'PAYLOAD_ASC' - | 'PAYLOAD_DESC' | 'CONTENT_ASC' | 'CONTENT_DESC' | 'REVERT_ASC' @@ -10743,55 +8541,15 @@ export type SqlMigrationOrderBy = | 'ACTION_ID_ASC' | 'ACTION_ID_DESC' | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'NAME_TRGM_SIMILARITY_ASC' - | 'NAME_TRGM_SIMILARITY_DESC' - | 'DEPLOY_TRGM_SIMILARITY_ASC' - | 'DEPLOY_TRGM_SIMILARITY_DESC' - | 'CONTENT_TRGM_SIMILARITY_ASC' - | 'CONTENT_TRGM_SIMILARITY_DESC' - | 'REVERT_TRGM_SIMILARITY_ASC' - | 'REVERT_TRGM_SIMILARITY_DESC' - | 'VERIFY_TRGM_SIMILARITY_ASC' - | 'VERIFY_TRGM_SIMILARITY_DESC' - | 'ACTION_TRGM_SIMILARITY_ASC' - | 'ACTION_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; -export type EmailOrderBy = - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'NATURAL' - | 'ID_ASC' - | 'ID_DESC' - | 'OWNER_ID_ASC' - | 'OWNER_ID_DESC' - | 'EMAIL_ASC' - | 'EMAIL_DESC' - | 'IS_VERIFIED_ASC' - | 'IS_VERIFIED_DESC' - | 'IS_PRIMARY_ASC' - | 'IS_PRIMARY_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; + | 'ACTOR_ID_DESC'; export type UserOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'USERNAME_ASC' | 'USERNAME_DESC' - | 'DISPLAY_NAME_ASC' - | 'DISPLAY_NAME_DESC' - | 'PROFILE_PICTURE_ASC' - | 'PROFILE_PICTURE_DESC' - | 'SEARCH_TSV_ASC' - | 'SEARCH_TSV_DESC' - | 'TYPE_ASC' - | 'TYPE_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' @@ -10803,8 +8561,6 @@ export type UserOrderBy = | 'SEARCH_SCORE_ASC' | 'SEARCH_SCORE_DESC'; export type AstMigrationOrderBy = - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' | 'NATURAL' | 'ID_ASC' | 'ID_DESC' @@ -10812,18 +8568,8 @@ export type AstMigrationOrderBy = | 'DATABASE_ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'REQUIRES_ASC' - | 'REQUIRES_DESC' - | 'PAYLOAD_ASC' - | 'PAYLOAD_DESC' | 'DEPLOYS_ASC' | 'DEPLOYS_DESC' - | 'DEPLOY_ASC' - | 'DEPLOY_DESC' - | 'REVERT_ASC' - | 'REVERT_DESC' - | 'VERIFY_ASC' - | 'VERIFY_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'ACTION_ASC' @@ -10831,15 +8577,11 @@ export type AstMigrationOrderBy = | 'ACTION_ID_ASC' | 'ACTION_ID_DESC' | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'ACTION_TRGM_SIMILARITY_ASC' - | 'ACTION_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'ACTOR_ID_DESC'; export type AppMembershipOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'CREATED_AT_ASC' @@ -10850,95 +8592,43 @@ export type AppMembershipOrderBy = | 'CREATED_BY_DESC' | 'UPDATED_BY_ASC' | 'UPDATED_BY_DESC' - | 'IS_APPROVED_ASC' - | 'IS_APPROVED_DESC' - | 'IS_BANNED_ASC' - | 'IS_BANNED_DESC' - | 'IS_DISABLED_ASC' - | 'IS_DISABLED_DESC' - | 'IS_VERIFIED_ASC' - | 'IS_VERIFIED_DESC' - | 'IS_ACTIVE_ASC' - | 'IS_ACTIVE_DESC' | 'IS_OWNER_ASC' | 'IS_OWNER_DESC' | 'IS_ADMIN_ASC' | 'IS_ADMIN_DESC' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC' - | 'GRANTED_ASC' - | 'GRANTED_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'PROFILE_ID_ASC' | 'PROFILE_ID_DESC'; export type HierarchyModuleOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'CHART_EDGES_TABLE_ID_ASC' - | 'CHART_EDGES_TABLE_ID_DESC' - | 'CHART_EDGES_TABLE_NAME_ASC' - | 'CHART_EDGES_TABLE_NAME_DESC' - | 'HIERARCHY_SPRT_TABLE_ID_ASC' - | 'HIERARCHY_SPRT_TABLE_ID_DESC' - | 'HIERARCHY_SPRT_TABLE_NAME_ASC' - | 'HIERARCHY_SPRT_TABLE_NAME_DESC' - | 'CHART_EDGE_GRANTS_TABLE_ID_ASC' - | 'CHART_EDGE_GRANTS_TABLE_ID_DESC' - | 'CHART_EDGE_GRANTS_TABLE_NAME_ASC' - | 'CHART_EDGE_GRANTS_TABLE_NAME_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' - | 'USERS_TABLE_ID_ASC' - | 'USERS_TABLE_ID_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'PRIVATE_SCHEMA_NAME_ASC' - | 'PRIVATE_SCHEMA_NAME_DESC' - | 'SPRT_TABLE_NAME_ASC' - | 'SPRT_TABLE_NAME_DESC' - | 'REBUILD_HIERARCHY_FUNCTION_ASC' - | 'REBUILD_HIERARCHY_FUNCTION_DESC' - | 'GET_SUBORDINATES_FUNCTION_ASC' - | 'GET_SUBORDINATES_FUNCTION_DESC' - | 'GET_MANAGERS_FUNCTION_ASC' - | 'GET_MANAGERS_FUNCTION_DESC' - | 'IS_MANAGER_OF_FUNCTION_ASC' - | 'IS_MANAGER_OF_FUNCTION_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'CHART_EDGES_TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'CHART_EDGES_TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'HIERARCHY_SPRT_TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'HIERARCHY_SPRT_TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'CHART_EDGE_GRANTS_TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'CHART_EDGE_GRANTS_TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'PREFIX_TRGM_SIMILARITY_ASC' - | 'PREFIX_TRGM_SIMILARITY_DESC' - | 'PRIVATE_SCHEMA_NAME_TRGM_SIMILARITY_ASC' - | 'PRIVATE_SCHEMA_NAME_TRGM_SIMILARITY_DESC' - | 'SPRT_TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'SPRT_TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'REBUILD_HIERARCHY_FUNCTION_TRGM_SIMILARITY_ASC' - | 'REBUILD_HIERARCHY_FUNCTION_TRGM_SIMILARITY_DESC' - | 'GET_SUBORDINATES_FUNCTION_TRGM_SIMILARITY_ASC' - | 'GET_SUBORDINATES_FUNCTION_TRGM_SIMILARITY_DESC' - | 'GET_MANAGERS_FUNCTION_TRGM_SIMILARITY_ASC' - | 'GET_MANAGERS_FUNCTION_TRGM_SIMILARITY_DESC' - | 'IS_MANAGER_OF_FUNCTION_TRGM_SIMILARITY_ASC' - | 'IS_MANAGER_OF_FUNCTION_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'DATABASE_ID_DESC'; // ============ CRUD Input Types ============ +export interface CreateGetAllRecordInput { + clientMutationId?: string; + getAllRecord: { + path?: string[]; + data?: Record; + }; +} +export interface GetAllRecordPatch { + path?: string[] | null; + data?: Record | null; +} +export interface UpdateGetAllRecordInput { + clientMutationId?: string; + id: string; + getAllRecordPatch: GetAllRecordPatch; +} +export interface DeleteGetAllRecordInput { + clientMutationId?: string; + id: string; +} export interface CreateOrgGetManagersRecordInput { clientMutationId?: string; orgGetManagersRecord: { @@ -10979,26 +8669,6 @@ export interface DeleteOrgGetSubordinatesRecordInput { clientMutationId?: string; id: string; } -export interface CreateGetAllRecordInput { - clientMutationId?: string; - getAllRecord: { - path?: string; - data?: Record; - }; -} -export interface GetAllRecordPatch { - path?: string | null; - data?: Record | null; -} -export interface UpdateGetAllRecordInput { - clientMutationId?: string; - id: string; - getAllRecordPatch: GetAllRecordPatch; -} -export interface DeleteGetAllRecordInput { - clientMutationId?: string; - id: string; -} export interface CreateObjectInput { clientMutationId?: string; object: { @@ -11010,10 +8680,9 @@ export interface CreateObjectInput { }; } export interface ObjectPatch { - hashUuid?: string | null; databaseId?: string | null; - kids?: string | null; - ktree?: string | null; + kids?: string[] | null; + ktree?: string[] | null; data?: Record | null; frzn?: boolean | null; } @@ -11040,8 +8709,6 @@ export interface AppPermissionPatch { bitnum?: number | null; bitstr?: string | null; description?: string | null; - descriptionTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateAppPermissionInput { clientMutationId?: string; @@ -11066,8 +8733,6 @@ export interface OrgPermissionPatch { bitnum?: number | null; bitstr?: string | null; description?: string | null; - descriptionTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateOrgPermissionInput { clientMutationId?: string; @@ -11094,8 +8759,6 @@ export interface AppLevelRequirementPatch { description?: string | null; requiredCount?: number | null; priority?: number | null; - descriptionTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateAppLevelRequirementInput { clientMutationId?: string; @@ -11122,10 +8785,6 @@ export interface DatabasePatch { name?: string | null; label?: string | null; hash?: string | null; - schemaHashTrgmSimilarity?: number | null; - nameTrgmSimilarity?: number | null; - labelTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateDatabaseInput { clientMutationId?: string; @@ -11162,14 +8821,8 @@ export interface SchemaPatch { category?: ObjectCategory | null; module?: string | null; scope?: number | null; - tags?: string | null; + tags?: string[] | null; isPublic?: boolean | null; - nameTrgmSimilarity?: number | null; - schemaNameTrgmSimilarity?: number | null; - labelTrgmSimilarity?: number | null; - descriptionTrgmSimilarity?: number | null; - moduleTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateSchemaInput { clientMutationId?: string; @@ -11216,15 +8869,8 @@ export interface TablePatch { peoplestamps?: boolean | null; pluralName?: string | null; singularName?: string | null; - tags?: string | null; + tags?: string[] | null; inheritsId?: string | null; - nameTrgmSimilarity?: number | null; - labelTrgmSimilarity?: number | null; - descriptionTrgmSimilarity?: number | null; - moduleTrgmSimilarity?: number | null; - pluralNameTrgmSimilarity?: number | null; - singularNameTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateTableInput { clientMutationId?: string; @@ -11256,17 +8902,13 @@ export interface CheckConstraintPatch { tableId?: string | null; name?: string | null; type?: string | null; - fieldIds?: string | null; + fieldIds?: string[] | null; expr?: Record | null; smartTags?: Record | null; category?: ObjectCategory | null; module?: string | null; scope?: number | null; - tags?: string | null; - nameTrgmSimilarity?: number | null; - typeTrgmSimilarity?: number | null; - moduleTrgmSimilarity?: number | null; - searchScore?: number | null; + tags?: string[] | null; } export interface UpdateCheckConstraintInput { clientMutationId?: string; @@ -11287,6 +8929,7 @@ export interface CreateFieldInput { description?: string; smartTags?: Record; isRequired?: boolean; + apiRequired?: boolean; defaultValue?: string; defaultValueAst?: Record; isHidden?: boolean; @@ -11311,6 +8954,7 @@ export interface FieldPatch { description?: string | null; smartTags?: Record | null; isRequired?: boolean | null; + apiRequired?: boolean | null; defaultValue?: string | null; defaultValueAst?: Record | null; isHidden?: boolean | null; @@ -11321,17 +8965,10 @@ export interface FieldPatch { chkExpr?: Record | null; min?: number | null; max?: number | null; - tags?: string | null; + tags?: string[] | null; category?: ObjectCategory | null; module?: string | null; scope?: number | null; - nameTrgmSimilarity?: number | null; - labelTrgmSimilarity?: number | null; - descriptionTrgmSimilarity?: number | null; - defaultValueTrgmSimilarity?: number | null; - regexpTrgmSimilarity?: number | null; - moduleTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateFieldInput { clientMutationId?: string; @@ -11369,22 +9006,15 @@ export interface ForeignKeyConstraintPatch { description?: string | null; smartTags?: Record | null; type?: string | null; - fieldIds?: string | null; + fieldIds?: string[] | null; refTableId?: string | null; - refFieldIds?: string | null; + refFieldIds?: string[] | null; deleteAction?: string | null; updateAction?: string | null; category?: ObjectCategory | null; module?: string | null; scope?: number | null; - tags?: string | null; - nameTrgmSimilarity?: number | null; - descriptionTrgmSimilarity?: number | null; - typeTrgmSimilarity?: number | null; - deleteActionTrgmSimilarity?: number | null; - updateActionTrgmSimilarity?: number | null; - moduleTrgmSimilarity?: number | null; - searchScore?: number | null; + tags?: string[] | null; } export interface UpdateForeignKeyConstraintInput { clientMutationId?: string; @@ -11410,9 +9040,9 @@ export interface FullTextSearchPatch { databaseId?: string | null; tableId?: string | null; fieldId?: string | null; - fieldIds?: string | null; - weights?: string | null; - langs?: string | null; + fieldIds?: string[] | null; + weights?: string[] | null; + langs?: string[] | null; } export interface UpdateFullTextSearchInput { clientMutationId?: string; @@ -11448,23 +9078,19 @@ export interface IndexPatch { databaseId?: string | null; tableId?: string | null; name?: string | null; - fieldIds?: string | null; - includeFieldIds?: string | null; + fieldIds?: string[] | null; + includeFieldIds?: string[] | null; accessMethod?: string | null; indexParams?: Record | null; whereClause?: Record | null; isUnique?: boolean | null; options?: Record | null; - opClasses?: string | null; + opClasses?: string[] | null; smartTags?: Record | null; category?: ObjectCategory | null; module?: string | null; scope?: number | null; - tags?: string | null; - nameTrgmSimilarity?: number | null; - accessMethodTrgmSimilarity?: number | null; - moduleTrgmSimilarity?: number | null; - searchScore?: number | null; + tags?: string[] | null; } export interface UpdateIndexInput { clientMutationId?: string; @@ -11508,13 +9134,7 @@ export interface PolicyPatch { category?: ObjectCategory | null; module?: string | null; scope?: number | null; - tags?: string | null; - nameTrgmSimilarity?: number | null; - granteeNameTrgmSimilarity?: number | null; - privilegeTrgmSimilarity?: number | null; - policyTypeTrgmSimilarity?: number | null; - moduleTrgmSimilarity?: number | null; - searchScore?: number | null; + tags?: string[] | null; } export interface UpdatePolicyInput { clientMutationId?: string; @@ -11545,16 +9165,12 @@ export interface PrimaryKeyConstraintPatch { tableId?: string | null; name?: string | null; type?: string | null; - fieldIds?: string | null; + fieldIds?: string[] | null; smartTags?: Record | null; category?: ObjectCategory | null; module?: string | null; scope?: number | null; - tags?: string | null; - nameTrgmSimilarity?: number | null; - typeTrgmSimilarity?: number | null; - moduleTrgmSimilarity?: number | null; - searchScore?: number | null; + tags?: string[] | null; } export interface UpdatePrimaryKeyConstraintInput { clientMutationId?: string; @@ -11581,11 +9197,8 @@ export interface TableGrantPatch { tableId?: string | null; privilege?: string | null; granteeName?: string | null; - fieldIds?: string | null; + fieldIds?: string[] | null; isGrant?: boolean | null; - privilegeTrgmSimilarity?: number | null; - granteeNameTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateTableGrantInput { clientMutationId?: string; @@ -11621,12 +9234,7 @@ export interface TriggerPatch { category?: ObjectCategory | null; module?: string | null; scope?: number | null; - tags?: string | null; - nameTrgmSimilarity?: number | null; - eventTrgmSimilarity?: number | null; - functionNameTrgmSimilarity?: number | null; - moduleTrgmSimilarity?: number | null; - searchScore?: number | null; + tags?: string[] | null; } export interface UpdateTriggerInput { clientMutationId?: string; @@ -11660,16 +9268,11 @@ export interface UniqueConstraintPatch { description?: string | null; smartTags?: Record | null; type?: string | null; - fieldIds?: string | null; + fieldIds?: string[] | null; category?: ObjectCategory | null; module?: string | null; scope?: number | null; - tags?: string | null; - nameTrgmSimilarity?: number | null; - descriptionTrgmSimilarity?: number | null; - typeTrgmSimilarity?: number | null; - moduleTrgmSimilarity?: number | null; - searchScore?: number | null; + tags?: string[] | null; } export interface UpdateUniqueConstraintInput { clientMutationId?: string; @@ -11715,12 +9318,7 @@ export interface ViewPatch { category?: ObjectCategory | null; module?: string | null; scope?: number | null; - tags?: string | null; - nameTrgmSimilarity?: number | null; - viewTypeTrgmSimilarity?: number | null; - filterTypeTrgmSimilarity?: number | null; - moduleTrgmSimilarity?: number | null; - searchScore?: number | null; + tags?: string[] | null; } export interface UpdateViewInput { clientMutationId?: string; @@ -11771,9 +9369,6 @@ export interface ViewGrantPatch { privilege?: string | null; withGrantOption?: boolean | null; isGrant?: boolean | null; - granteeNameTrgmSimilarity?: number | null; - privilegeTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateViewGrantInput { clientMutationId?: string; @@ -11800,10 +9395,6 @@ export interface ViewRulePatch { name?: string | null; event?: string | null; action?: string | null; - nameTrgmSimilarity?: number | null; - eventTrgmSimilarity?: number | null; - actionTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateViewRuleInput { clientMutationId?: string; @@ -11814,6 +9405,52 @@ export interface DeleteViewRuleInput { clientMutationId?: string; id: string; } +export interface CreateEmbeddingChunkInput { + clientMutationId?: string; + embeddingChunk: { + databaseId?: string; + tableId: string; + embeddingFieldId?: string; + chunksTableId?: string; + chunksTableName?: string; + contentFieldName?: string; + dimensions?: number; + metric?: string; + chunkSize?: number; + chunkOverlap?: number; + chunkStrategy?: string; + metadataFields?: Record; + enqueueChunkingJob?: boolean; + chunkingTaskName?: string; + parentFkFieldId?: string; + }; +} +export interface EmbeddingChunkPatch { + databaseId?: string | null; + tableId?: string | null; + embeddingFieldId?: string | null; + chunksTableId?: string | null; + chunksTableName?: string | null; + contentFieldName?: string | null; + dimensions?: number | null; + metric?: string | null; + chunkSize?: number | null; + chunkOverlap?: number | null; + chunkStrategy?: string | null; + metadataFields?: Record | null; + enqueueChunkingJob?: boolean | null; + chunkingTaskName?: string | null; + parentFkFieldId?: string | null; +} +export interface UpdateEmbeddingChunkInput { + clientMutationId?: string; + id: string; + embeddingChunkPatch: EmbeddingChunkPatch; +} +export interface DeleteEmbeddingChunkInput { + clientMutationId?: string; + id: string; +} export interface CreateTableTemplateModuleInput { clientMutationId?: string; tableTemplateModule: { @@ -11836,9 +9473,6 @@ export interface TableTemplateModulePatch { tableName?: string | null; nodeType?: string | null; data?: Record | null; - tableNameTrgmSimilarity?: number | null; - nodeTypeTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateTableTemplateModuleInput { clientMutationId?: string; @@ -11859,9 +9493,9 @@ export interface CreateSecureTableProvisionInput { nodeType?: string; useRls?: boolean; nodeData?: Record; - fields?: Record; + fields?: Record[]; grantRoles?: string[]; - grantPrivileges?: Record; + grantPrivileges?: Record[]; policyType?: string; policyPrivileges?: string[]; policyRole?: string; @@ -11879,22 +9513,16 @@ export interface SecureTableProvisionPatch { nodeType?: string | null; useRls?: boolean | null; nodeData?: Record | null; - fields?: Record | null; - grantRoles?: string | null; - grantPrivileges?: Record | null; + fields?: Record[] | null; + grantRoles?: string[] | null; + grantPrivileges?: Record[] | null; policyType?: string | null; - policyPrivileges?: string | null; + policyPrivileges?: string[] | null; policyRole?: string | null; policyPermissive?: boolean | null; policyName?: string | null; policyData?: Record | null; - outFields?: string | null; - tableNameTrgmSimilarity?: number | null; - nodeTypeTrgmSimilarity?: number | null; - policyTypeTrgmSimilarity?: number | null; - policyRoleTrgmSimilarity?: number | null; - policyNameTrgmSimilarity?: number | null; - searchScore?: number | null; + outFields?: string[] | null; } export interface UpdateSecureTableProvisionInput { clientMutationId?: string; @@ -11915,16 +9543,19 @@ export interface CreateRelationProvisionInput { fieldName?: string; deleteAction?: string; isRequired?: boolean; + apiRequired?: boolean; junctionTableId?: string; junctionTableName?: string; junctionSchemaId?: string; sourceFieldName?: string; targetFieldName?: string; useCompositeKey?: boolean; + createIndex?: boolean; + exposeInApi?: boolean; nodeType?: string; nodeData?: Record; grantRoles?: string[]; - grantPrivileges?: Record; + grantPrivileges?: Record[]; policyType?: string; policyPrivileges?: string[]; policyRole?: string; @@ -11945,18 +9576,21 @@ export interface RelationProvisionPatch { fieldName?: string | null; deleteAction?: string | null; isRequired?: boolean | null; + apiRequired?: boolean | null; junctionTableId?: string | null; junctionTableName?: string | null; junctionSchemaId?: string | null; sourceFieldName?: string | null; targetFieldName?: string | null; useCompositeKey?: boolean | null; + createIndex?: boolean | null; + exposeInApi?: boolean | null; nodeType?: string | null; nodeData?: Record | null; - grantRoles?: string | null; - grantPrivileges?: Record | null; + grantRoles?: string[] | null; + grantPrivileges?: Record[] | null; policyType?: string | null; - policyPrivileges?: string | null; + policyPrivileges?: string[] | null; policyRole?: string | null; policyPermissive?: boolean | null; policyName?: string | null; @@ -11965,17 +9599,6 @@ export interface RelationProvisionPatch { outJunctionTableId?: string | null; outSourceFieldId?: string | null; outTargetFieldId?: string | null; - relationTypeTrgmSimilarity?: number | null; - fieldNameTrgmSimilarity?: number | null; - deleteActionTrgmSimilarity?: number | null; - junctionTableNameTrgmSimilarity?: number | null; - sourceFieldNameTrgmSimilarity?: number | null; - targetFieldNameTrgmSimilarity?: number | null; - nodeTypeTrgmSimilarity?: number | null; - policyTypeTrgmSimilarity?: number | null; - policyRoleTrgmSimilarity?: number | null; - policyNameTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateRelationProvisionInput { clientMutationId?: string; @@ -11998,8 +9621,6 @@ export interface SchemaGrantPatch { databaseId?: string | null; schemaId?: string | null; granteeName?: string | null; - granteeNameTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateSchemaGrantInput { clientMutationId?: string; @@ -12028,10 +9649,6 @@ export interface DefaultPrivilegePatch { privilege?: string | null; granteeName?: string | null; isGrant?: boolean | null; - objectTypeTrgmSimilarity?: number | null; - privilegeTrgmSimilarity?: number | null; - granteeNameTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateDefaultPrivilegeInput { clientMutationId?: string; @@ -12042,31 +9659,69 @@ export interface DeleteDefaultPrivilegeInput { clientMutationId?: string; id: string; } -export interface CreateApiSchemaInput { +export interface CreateEnumInput { clientMutationId?: string; - apiSchema: { + enum: { databaseId: string; schemaId: string; - apiId: string; + name: string; + label?: string; + description?: string; + values?: string[]; + smartTags?: Record; + category?: ObjectCategory; + module?: string; + scope?: number; + tags?: string[]; }; } -export interface ApiSchemaPatch { +export interface EnumPatch { databaseId?: string | null; schemaId?: string | null; - apiId?: string | null; + name?: string | null; + label?: string | null; + description?: string | null; + values?: string[] | null; + smartTags?: Record | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + tags?: string[] | null; } -export interface UpdateApiSchemaInput { +export interface UpdateEnumInput { clientMutationId?: string; id: string; - apiSchemaPatch: ApiSchemaPatch; + enumPatch: EnumPatch; } -export interface DeleteApiSchemaInput { +export interface DeleteEnumInput { clientMutationId?: string; id: string; } -export interface CreateApiModuleInput { +export interface CreateApiSchemaInput { clientMutationId?: string; - apiModule: { + apiSchema: { + databaseId: string; + schemaId: string; + apiId: string; + }; +} +export interface ApiSchemaPatch { + databaseId?: string | null; + schemaId?: string | null; + apiId?: string | null; +} +export interface UpdateApiSchemaInput { + clientMutationId?: string; + id: string; + apiSchemaPatch: ApiSchemaPatch; +} +export interface DeleteApiSchemaInput { + clientMutationId?: string; + id: string; +} +export interface CreateApiModuleInput { + clientMutationId?: string; + apiModule: { databaseId: string; apiId: string; name: string; @@ -12078,8 +9733,6 @@ export interface ApiModulePatch { apiId?: string | null; name?: string | null; data?: Record | null; - nameTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateApiModuleInput { clientMutationId?: string; @@ -12132,9 +9785,7 @@ export interface SiteMetadatumPatch { title?: string | null; description?: string | null; ogImage?: ConstructiveInternalTypeImage | null; - titleTrgmSimilarity?: number | null; - descriptionTrgmSimilarity?: number | null; - searchScore?: number | null; + ogImageUpload?: File | null; } export interface UpdateSiteMetadatumInput { clientMutationId?: string; @@ -12159,8 +9810,6 @@ export interface SiteModulePatch { siteId?: string | null; name?: string | null; data?: Record | null; - nameTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateSiteModuleInput { clientMutationId?: string; @@ -12205,9 +9854,6 @@ export interface TriggerFunctionPatch { databaseId?: string | null; name?: string | null; code?: string | null; - nameTrgmSimilarity?: number | null; - codeTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateTriggerFunctionInput { clientMutationId?: string; @@ -12218,6 +9864,44 @@ export interface DeleteTriggerFunctionInput { clientMutationId?: string; id: string; } +export interface CreateDatabaseTransferInput { + clientMutationId?: string; + databaseTransfer: { + databaseId: string; + targetOwnerId: string; + sourceApproved?: boolean; + targetApproved?: boolean; + sourceApprovedAt?: string; + targetApprovedAt?: string; + status?: string; + initiatedBy: string; + notes?: string; + expiresAt?: string; + completedAt?: string; + }; +} +export interface DatabaseTransferPatch { + databaseId?: string | null; + targetOwnerId?: string | null; + sourceApproved?: boolean | null; + targetApproved?: boolean | null; + sourceApprovedAt?: string | null; + targetApprovedAt?: string | null; + status?: string | null; + initiatedBy?: string | null; + notes?: string | null; + expiresAt?: string | null; + completedAt?: string | null; +} +export interface UpdateDatabaseTransferInput { + clientMutationId?: string; + id: string; + databaseTransferPatch: DatabaseTransferPatch; +} +export interface DeleteDatabaseTransferInput { + clientMutationId?: string; + id: string; +} export interface CreateApiInput { clientMutationId?: string; api: { @@ -12236,11 +9920,6 @@ export interface ApiPatch { roleName?: string | null; anonRole?: string | null; isPublic?: boolean | null; - nameTrgmSimilarity?: number | null; - dbnameTrgmSimilarity?: number | null; - roleNameTrgmSimilarity?: number | null; - anonRoleTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateApiInput { clientMutationId?: string; @@ -12273,10 +9952,10 @@ export interface SitePatch { appleTouchIcon?: ConstructiveInternalTypeImage | null; logo?: ConstructiveInternalTypeImage | null; dbname?: string | null; - titleTrgmSimilarity?: number | null; - descriptionTrgmSimilarity?: number | null; - dbnameTrgmSimilarity?: number | null; - searchScore?: number | null; + ogImageUpload?: File | null; + faviconUpload?: File | null; + appleTouchIconUpload?: File | null; + logoUpload?: File | null; } export interface UpdateSiteInput { clientMutationId?: string; @@ -12309,10 +9988,7 @@ export interface AppPatch { appStoreId?: string | null; appIdPrefix?: string | null; playStoreLink?: ConstructiveInternalTypeUrl | null; - nameTrgmSimilarity?: number | null; - appStoreIdTrgmSimilarity?: number | null; - appIdPrefixTrgmSimilarity?: number | null; - searchScore?: number | null; + appImageUpload?: File | null; } export interface UpdateAppInput { clientMutationId?: string; @@ -12341,8 +10017,6 @@ export interface ConnectedAccountsModulePatch { tableId?: string | null; ownerTableId?: string | null; tableName?: string | null; - tableNameTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateConnectedAccountsModuleInput { clientMutationId?: string; @@ -12373,9 +10047,6 @@ export interface CryptoAddressesModulePatch { ownerTableId?: string | null; tableName?: string | null; cryptoNetwork?: string | null; - tableNameTrgmSimilarity?: number | null; - cryptoNetworkTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateCryptoAddressesModuleInput { clientMutationId?: string; @@ -12418,13 +10089,6 @@ export interface CryptoAuthModulePatch { signInRecordFailure?: string | null; signUpWithKey?: string | null; signInWithChallenge?: string | null; - userFieldTrgmSimilarity?: number | null; - cryptoNetworkTrgmSimilarity?: number | null; - signInRequestChallengeTrgmSimilarity?: number | null; - signInRecordFailureTrgmSimilarity?: number | null; - signUpWithKeyTrgmSimilarity?: number | null; - signInWithChallengeTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateCryptoAuthModuleInput { clientMutationId?: string; @@ -12473,16 +10137,14 @@ export interface DenormalizedTableFieldPatch { databaseId?: string | null; tableId?: string | null; fieldId?: string | null; - setIds?: string | null; + setIds?: string[] | null; refTableId?: string | null; refFieldId?: string | null; - refIds?: string | null; + refIds?: string[] | null; useUpdates?: boolean | null; updateDefaults?: boolean | null; funcName?: string | null; funcOrder?: number | null; - funcNameTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateDenormalizedTableFieldInput { clientMutationId?: string; @@ -12511,8 +10173,6 @@ export interface EmailsModulePatch { tableId?: string | null; ownerTableId?: string | null; tableName?: string | null; - tableNameTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateEmailsModuleInput { clientMutationId?: string; @@ -12537,8 +10197,6 @@ export interface EncryptedSecretsModulePatch { schemaId?: string | null; tableId?: string | null; tableName?: string | null; - tableNameTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateEncryptedSecretsModuleInput { clientMutationId?: string; @@ -12569,10 +10227,8 @@ export interface FieldModulePatch { fieldId?: string | null; nodeType?: string | null; data?: Record | null; - triggers?: string | null; - functions?: string | null; - nodeTypeTrgmSimilarity?: number | null; - searchScore?: number | null; + triggers?: string[] | null; + functions?: string[] | null; } export interface UpdateFieldModuleInput { clientMutationId?: string; @@ -12615,11 +10271,6 @@ export interface InvitesModulePatch { prefix?: string | null; membershipType?: number | null; entityTableId?: string | null; - invitesTableNameTrgmSimilarity?: number | null; - claimedInvitesTableNameTrgmSimilarity?: number | null; - submitInviteCodeFunctionTrgmSimilarity?: number | null; - prefixTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateInvitesModuleInput { clientMutationId?: string; @@ -12686,22 +10337,6 @@ export interface LevelsModulePatch { membershipType?: number | null; entityTableId?: string | null; actorTableId?: string | null; - stepsTableNameTrgmSimilarity?: number | null; - achievementsTableNameTrgmSimilarity?: number | null; - levelsTableNameTrgmSimilarity?: number | null; - levelRequirementsTableNameTrgmSimilarity?: number | null; - completedStepTrgmSimilarity?: number | null; - incompletedStepTrgmSimilarity?: number | null; - tgAchievementTrgmSimilarity?: number | null; - tgAchievementToggleTrgmSimilarity?: number | null; - tgAchievementToggleBooleanTrgmSimilarity?: number | null; - tgAchievementBooleanTrgmSimilarity?: number | null; - upsertAchievementTrgmSimilarity?: number | null; - tgUpdateAchievementsTrgmSimilarity?: number | null; - stepsRequiredTrgmSimilarity?: number | null; - levelAchievedTrgmSimilarity?: number | null; - prefixTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateLevelsModuleInput { clientMutationId?: string; @@ -12752,16 +10387,6 @@ export interface LimitsModulePatch { membershipType?: number | null; entityTableId?: string | null; actorTableId?: string | null; - tableNameTrgmSimilarity?: number | null; - defaultTableNameTrgmSimilarity?: number | null; - limitIncrementFunctionTrgmSimilarity?: number | null; - limitDecrementFunctionTrgmSimilarity?: number | null; - limitIncrementTriggerTrgmSimilarity?: number | null; - limitDecrementTriggerTrgmSimilarity?: number | null; - limitUpdateTriggerTrgmSimilarity?: number | null; - limitCheckFunctionTrgmSimilarity?: number | null; - prefixTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateLimitsModuleInput { clientMutationId?: string; @@ -12786,8 +10411,6 @@ export interface MembershipTypesModulePatch { schemaId?: string | null; tableId?: string | null; tableName?: string | null; - tableNameTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateMembershipTypesModuleInput { clientMutationId?: string; @@ -12864,19 +10487,6 @@ export interface MembershipsModulePatch { entityIdsByMask?: string | null; entityIdsByPerm?: string | null; entityIdsFunction?: string | null; - membershipsTableNameTrgmSimilarity?: number | null; - membersTableNameTrgmSimilarity?: number | null; - membershipDefaultsTableNameTrgmSimilarity?: number | null; - grantsTableNameTrgmSimilarity?: number | null; - adminGrantsTableNameTrgmSimilarity?: number | null; - ownerGrantsTableNameTrgmSimilarity?: number | null; - prefixTrgmSimilarity?: number | null; - actorMaskCheckTrgmSimilarity?: number | null; - actorPermCheckTrgmSimilarity?: number | null; - entityIdsByMaskTrgmSimilarity?: number | null; - entityIdsByPermTrgmSimilarity?: number | null; - entityIdsFunctionTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateMembershipsModuleInput { clientMutationId?: string; @@ -12925,14 +10535,6 @@ export interface PermissionsModulePatch { getMask?: string | null; getByMask?: string | null; getMaskByName?: string | null; - tableNameTrgmSimilarity?: number | null; - defaultTableNameTrgmSimilarity?: number | null; - prefixTrgmSimilarity?: number | null; - getPaddedMaskTrgmSimilarity?: number | null; - getMaskTrgmSimilarity?: number | null; - getByMaskTrgmSimilarity?: number | null; - getMaskByNameTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdatePermissionsModuleInput { clientMutationId?: string; @@ -12961,8 +10563,6 @@ export interface PhoneNumbersModulePatch { tableId?: string | null; ownerTableId?: string | null; tableName?: string | null; - tableNameTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdatePhoneNumbersModuleInput { clientMutationId?: string; @@ -13013,12 +10613,6 @@ export interface ProfilesModulePatch { permissionsTableId?: string | null; membershipsTableId?: string | null; prefix?: string | null; - tableNameTrgmSimilarity?: number | null; - profilePermissionsTableNameTrgmSimilarity?: number | null; - profileGrantsTableNameTrgmSimilarity?: number | null; - profileDefinitionGrantsTableNameTrgmSimilarity?: number | null; - prefixTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateProfilesModuleInput { clientMutationId?: string; @@ -13043,8 +10637,6 @@ export interface SecretsModulePatch { schemaId?: string | null; tableId?: string | null; tableName?: string | null; - tableNameTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateSecretsModuleInput { clientMutationId?: string; @@ -13077,14 +10669,10 @@ export interface SessionsModulePatch { sessionCredentialsTableId?: string | null; authSettingsTableId?: string | null; usersTableId?: string | null; - sessionsDefaultExpiration?: string | null; + sessionsDefaultExpiration?: IntervalInput | null; sessionsTable?: string | null; sessionCredentialsTable?: string | null; authSettingsTable?: string | null; - sessionsTableTrgmSimilarity?: number | null; - sessionCredentialsTableTrgmSimilarity?: number | null; - authSettingsTableTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateSessionsModuleInput { clientMutationId?: string; @@ -13151,23 +10739,6 @@ export interface UserAuthModulePatch { signInOneTimeTokenFunction?: string | null; oneTimeTokenFunction?: string | null; extendTokenExpires?: string | null; - auditsTableNameTrgmSimilarity?: number | null; - signInFunctionTrgmSimilarity?: number | null; - signUpFunctionTrgmSimilarity?: number | null; - signOutFunctionTrgmSimilarity?: number | null; - setPasswordFunctionTrgmSimilarity?: number | null; - resetPasswordFunctionTrgmSimilarity?: number | null; - forgotPasswordFunctionTrgmSimilarity?: number | null; - sendVerificationEmailFunctionTrgmSimilarity?: number | null; - verifyEmailFunctionTrgmSimilarity?: number | null; - verifyPasswordFunctionTrgmSimilarity?: number | null; - checkPasswordFunctionTrgmSimilarity?: number | null; - sendAccountDeletionEmailFunctionTrgmSimilarity?: number | null; - deleteAccountFunctionTrgmSimilarity?: number | null; - signInOneTimeTokenFunctionTrgmSimilarity?: number | null; - oneTimeTokenFunctionTrgmSimilarity?: number | null; - extendTokenExpiresTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateUserAuthModuleInput { clientMutationId?: string; @@ -13196,9 +10767,6 @@ export interface UsersModulePatch { tableName?: string | null; typeTableId?: string | null; typeTableName?: string | null; - tableNameTrgmSimilarity?: number | null; - typeTableNameTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateUsersModuleInput { clientMutationId?: string; @@ -13209,30 +10777,97 @@ export interface DeleteUsersModuleInput { clientMutationId?: string; id: string; } -export interface CreateUuidModuleInput { +export interface CreateBlueprintInput { clientMutationId?: string; - uuidModule: { + blueprint: { + ownerId: string; databaseId: string; - schemaId?: string; - uuidFunction?: string; - uuidSeed: string; + name: string; + displayName: string; + description?: string; + definition: Record; + templateId?: string; + status?: string; + constructedAt?: string; + errorDetails?: string; + refMap?: Record; + constructedDefinition?: Record; + definitionHash?: string; + tableHashes?: Record; }; } -export interface UuidModulePatch { +export interface BlueprintPatch { + ownerId?: string | null; databaseId?: string | null; - schemaId?: string | null; - uuidFunction?: string | null; - uuidSeed?: string | null; - uuidFunctionTrgmSimilarity?: number | null; - uuidSeedTrgmSimilarity?: number | null; - searchScore?: number | null; + name?: string | null; + displayName?: string | null; + description?: string | null; + definition?: Record | null; + templateId?: string | null; + status?: string | null; + constructedAt?: string | null; + errorDetails?: string | null; + refMap?: Record | null; + constructedDefinition?: Record | null; + definitionHash?: string | null; + tableHashes?: Record | null; +} +export interface UpdateBlueprintInput { + clientMutationId?: string; + id: string; + blueprintPatch: BlueprintPatch; +} +export interface DeleteBlueprintInput { + clientMutationId?: string; + id: string; +} +export interface CreateBlueprintTemplateInput { + clientMutationId?: string; + blueprintTemplate: { + name: string; + version?: string; + displayName: string; + description?: string; + ownerId: string; + visibility?: string; + categories?: string[]; + tags?: string[]; + definition: Record; + definitionSchemaVersion?: string; + source?: string; + complexity?: string; + copyCount?: number; + forkCount?: number; + forkedFromId?: string; + definitionHash?: string; + tableHashes?: Record; + }; +} +export interface BlueprintTemplatePatch { + name?: string | null; + version?: string | null; + displayName?: string | null; + description?: string | null; + ownerId?: string | null; + visibility?: string | null; + categories?: string[] | null; + tags?: string[] | null; + definition?: Record | null; + definitionSchemaVersion?: string | null; + source?: string | null; + complexity?: string | null; + copyCount?: number | null; + forkCount?: number | null; + forkedFromId?: string | null; + definitionHash?: string | null; + tableHashes?: Record | null; } -export interface UpdateUuidModuleInput { +export interface UpdateBlueprintTemplateInput { clientMutationId?: string; id: string; - uuidModulePatch: UuidModulePatch; + blueprintTemplatePatch: BlueprintTemplatePatch; } -export interface DeleteUuidModuleInput { +export interface DeleteBlueprintTemplateInput { clientMutationId?: string; id: string; } @@ -13257,19 +10892,13 @@ export interface DatabaseProvisionModulePatch { ownerId?: string | null; subdomain?: string | null; domain?: string | null; - modules?: string | null; + modules?: string[] | null; options?: Record | null; bootstrapUser?: boolean | null; status?: string | null; errorMessage?: string | null; databaseId?: string | null; completedAt?: string | null; - databaseNameTrgmSimilarity?: number | null; - subdomainTrgmSimilarity?: number | null; - domainTrgmSimilarity?: number | null; - statusTrgmSimilarity?: number | null; - errorMessageTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateDatabaseProvisionModuleInput { clientMutationId?: string; @@ -13502,8 +11131,6 @@ export interface OrgChartEdgePatch { parentId?: string | null; positionTitle?: string | null; positionLevel?: number | null; - positionTitleTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateOrgChartEdgeInput { clientMutationId?: string; @@ -13520,7 +11147,7 @@ export interface CreateOrgChartEdgeGrantInput { entityId: string; childId: string; parentId?: string; - grantorId: string; + grantorId?: string; isGrant?: boolean; positionTitle?: string; positionLevel?: number; @@ -13534,8 +11161,6 @@ export interface OrgChartEdgeGrantPatch { isGrant?: boolean | null; positionTitle?: string | null; positionLevel?: number | null; - positionTitleTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateOrgChartEdgeGrantInput { clientMutationId?: string; @@ -13546,6 +11171,26 @@ export interface DeleteOrgChartEdgeGrantInput { clientMutationId?: string; id: string; } +export interface CreateOrgPermissionDefaultInput { + clientMutationId?: string; + orgPermissionDefault: { + permissions?: string; + entityId: string; + }; +} +export interface OrgPermissionDefaultPatch { + permissions?: string | null; + entityId?: string | null; +} +export interface UpdateOrgPermissionDefaultInput { + clientMutationId?: string; + id: string; + orgPermissionDefaultPatch: OrgPermissionDefaultPatch; +} +export interface DeleteOrgPermissionDefaultInput { + clientMutationId?: string; + id: string; +} export interface CreateAppLimitInput { clientMutationId?: string; appLimit: { @@ -13640,6 +11285,131 @@ export interface DeleteAppAchievementInput { clientMutationId?: string; id: string; } +export interface CreateAppLevelInput { + clientMutationId?: string; + appLevel: { + name: string; + description?: string; + image?: ConstructiveInternalTypeImage; + ownerId?: string; + }; +} +export interface AppLevelPatch { + name?: string | null; + description?: string | null; + image?: ConstructiveInternalTypeImage | null; + ownerId?: string | null; + imageUpload?: File | null; +} +export interface UpdateAppLevelInput { + clientMutationId?: string; + id: string; + appLevelPatch: AppLevelPatch; +} +export interface DeleteAppLevelInput { + clientMutationId?: string; + id: string; +} +export interface CreateEmailInput { + clientMutationId?: string; + email: { + ownerId?: string; + email: ConstructiveInternalTypeEmail; + isVerified?: boolean; + isPrimary?: boolean; + }; +} +export interface EmailPatch { + ownerId?: string | null; + email?: ConstructiveInternalTypeEmail | null; + isVerified?: boolean | null; + isPrimary?: boolean | null; +} +export interface UpdateEmailInput { + clientMutationId?: string; + id: string; + emailPatch: EmailPatch; +} +export interface DeleteEmailInput { + clientMutationId?: string; + id: string; +} +export interface CreatePhoneNumberInput { + clientMutationId?: string; + phoneNumber: { + ownerId?: string; + cc: string; + number: string; + isVerified?: boolean; + isPrimary?: boolean; + }; +} +export interface PhoneNumberPatch { + ownerId?: string | null; + cc?: string | null; + number?: string | null; + isVerified?: boolean | null; + isPrimary?: boolean | null; +} +export interface UpdatePhoneNumberInput { + clientMutationId?: string; + id: string; + phoneNumberPatch: PhoneNumberPatch; +} +export interface DeletePhoneNumberInput { + clientMutationId?: string; + id: string; +} +export interface CreateCryptoAddressInput { + clientMutationId?: string; + cryptoAddress: { + ownerId?: string; + address: string; + isVerified?: boolean; + isPrimary?: boolean; + }; +} +export interface CryptoAddressPatch { + ownerId?: string | null; + address?: string | null; + isVerified?: boolean | null; + isPrimary?: boolean | null; +} +export interface UpdateCryptoAddressInput { + clientMutationId?: string; + id: string; + cryptoAddressPatch: CryptoAddressPatch; +} +export interface DeleteCryptoAddressInput { + clientMutationId?: string; + id: string; +} +export interface CreateConnectedAccountInput { + clientMutationId?: string; + connectedAccount: { + ownerId?: string; + service: string; + identifier: string; + details: Record; + isVerified?: boolean; + }; +} +export interface ConnectedAccountPatch { + ownerId?: string | null; + service?: string | null; + identifier?: string | null; + details?: Record | null; + isVerified?: boolean | null; +} +export interface UpdateConnectedAccountInput { + clientMutationId?: string; + id: string; + connectedAccountPatch: ConnectedAccountPatch; +} +export interface DeleteConnectedAccountInput { + clientMutationId?: string; + id: string; +} export interface CreateInviteInput { clientMutationId?: string; invite: { @@ -13664,8 +11434,6 @@ export interface InvitePatch { multiple?: boolean | null; data?: Record | null; expiresAt?: string | null; - inviteTokenTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateInviteInput { clientMutationId?: string; @@ -13726,8 +11494,6 @@ export interface OrgInvitePatch { data?: Record | null; expiresAt?: string | null; entityId?: string | null; - inviteTokenTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateOrgInviteInput { clientMutationId?: string; @@ -13762,22 +11528,48 @@ export interface DeleteOrgClaimedInviteInput { clientMutationId?: string; id: string; } -export interface CreateRefInput { +export interface CreateAuditLogInput { clientMutationId?: string; - ref: { - name: string; - databaseId: string; - storeId: string; - commitId?: string; - }; -} -export interface RefPatch { + auditLog: { + event: string; + actorId?: string; + origin?: ConstructiveInternalTypeOrigin; + userAgent?: string; + ipAddress?: string; + success: boolean; + }; +} +export interface AuditLogPatch { + event?: string | null; + actorId?: string | null; + origin?: ConstructiveInternalTypeOrigin | null; + userAgent?: string | null; + ipAddress?: string | null; + success?: boolean | null; +} +export interface UpdateAuditLogInput { + clientMutationId?: string; + id: string; + auditLogPatch: AuditLogPatch; +} +export interface DeleteAuditLogInput { + clientMutationId?: string; + id: string; +} +export interface CreateRefInput { + clientMutationId?: string; + ref: { + name: string; + databaseId: string; + storeId: string; + commitId?: string; + }; +} +export interface RefPatch { name?: string | null; databaseId?: string | null; storeId?: string | null; commitId?: string | null; - nameTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateRefInput { clientMutationId?: string; @@ -13800,8 +11592,6 @@ export interface StorePatch { name?: string | null; databaseId?: string | null; hash?: string | null; - nameTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateStoreInput { clientMutationId?: string; @@ -13830,32 +11620,6 @@ export interface DeleteAppPermissionDefaultInput { clientMutationId?: string; id: string; } -export interface CreateCryptoAddressInput { - clientMutationId?: string; - cryptoAddress: { - ownerId?: string; - address: string; - isVerified?: boolean; - isPrimary?: boolean; - }; -} -export interface CryptoAddressPatch { - ownerId?: string | null; - address?: string | null; - isVerified?: boolean | null; - isPrimary?: boolean | null; - addressTrgmSimilarity?: number | null; - searchScore?: number | null; -} -export interface UpdateCryptoAddressInput { - clientMutationId?: string; - id: string; - cryptoAddressPatch: CryptoAddressPatch; -} -export interface DeleteCryptoAddressInput { - clientMutationId?: string; - id: string; -} export interface CreateRoleTypeInput { clientMutationId?: string; roleType: { @@ -13874,55 +11638,6 @@ export interface DeleteRoleTypeInput { clientMutationId?: string; id: number; } -export interface CreateOrgPermissionDefaultInput { - clientMutationId?: string; - orgPermissionDefault: { - permissions?: string; - entityId: string; - }; -} -export interface OrgPermissionDefaultPatch { - permissions?: string | null; - entityId?: string | null; -} -export interface UpdateOrgPermissionDefaultInput { - clientMutationId?: string; - id: string; - orgPermissionDefaultPatch: OrgPermissionDefaultPatch; -} -export interface DeleteOrgPermissionDefaultInput { - clientMutationId?: string; - id: string; -} -export interface CreatePhoneNumberInput { - clientMutationId?: string; - phoneNumber: { - ownerId?: string; - cc: string; - number: string; - isVerified?: boolean; - isPrimary?: boolean; - }; -} -export interface PhoneNumberPatch { - ownerId?: string | null; - cc?: string | null; - number?: string | null; - isVerified?: boolean | null; - isPrimary?: boolean | null; - ccTrgmSimilarity?: number | null; - numberTrgmSimilarity?: number | null; - searchScore?: number | null; -} -export interface UpdatePhoneNumberInput { - clientMutationId?: string; - id: string; - phoneNumberPatch: PhoneNumberPatch; -} -export interface DeletePhoneNumberInput { - clientMutationId?: string; - id: string; -} export interface CreateAppLimitDefaultInput { clientMutationId?: string; appLimitDefault: { @@ -13963,35 +11678,6 @@ export interface DeleteOrgLimitDefaultInput { clientMutationId?: string; id: string; } -export interface CreateConnectedAccountInput { - clientMutationId?: string; - connectedAccount: { - ownerId?: string; - service: string; - identifier: string; - details: Record; - isVerified?: boolean; - }; -} -export interface ConnectedAccountPatch { - ownerId?: string | null; - service?: string | null; - identifier?: string | null; - details?: Record | null; - isVerified?: boolean | null; - serviceTrgmSimilarity?: number | null; - identifierTrgmSimilarity?: number | null; - searchScore?: number | null; -} -export interface UpdateConnectedAccountInput { - clientMutationId?: string; - id: string; - connectedAccountPatch: ConnectedAccountPatch; -} -export interface DeleteConnectedAccountInput { - clientMutationId?: string; - id: string; -} export interface CreateNodeTypeRegistryInput { clientMutationId?: string; nodeTypeRegistry: { @@ -14011,13 +11697,7 @@ export interface NodeTypeRegistryPatch { displayName?: string | null; description?: string | null; parameterSchema?: Record | null; - tags?: string | null; - nameTrgmSimilarity?: number | null; - slugTrgmSimilarity?: number | null; - categoryTrgmSimilarity?: number | null; - displayNameTrgmSimilarity?: number | null; - descriptionTrgmSimilarity?: number | null; - searchScore?: number | null; + tags?: string[] | null; } export interface UpdateNodeTypeRegistryInput { clientMutationId?: string; @@ -14040,9 +11720,6 @@ export interface MembershipTypePatch { name?: string | null; description?: string | null; prefix?: string | null; - descriptionTrgmSimilarity?: number | null; - prefixTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateMembershipTypeInput { clientMutationId?: string; @@ -14070,13 +11747,11 @@ export interface CommitPatch { message?: string | null; databaseId?: string | null; storeId?: string | null; - parentIds?: string | null; + parentIds?: string[] | null; authorId?: string | null; committerId?: string | null; treeId?: string | null; date?: string | null; - messageTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateCommitInput { clientMutationId?: string; @@ -14137,11 +11812,6 @@ export interface RlsModulePatch { authenticateStrict?: string | null; currentRole?: string | null; currentRoleId?: string | null; - authenticateTrgmSimilarity?: number | null; - authenticateStrictTrgmSimilarity?: number | null; - currentRoleTrgmSimilarity?: number | null; - currentRoleIdTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateRlsModuleInput { clientMutationId?: string; @@ -14180,62 +11850,6 @@ export interface DeleteOrgMembershipDefaultInput { clientMutationId?: string; id: string; } -export interface CreateAuditLogInput { - clientMutationId?: string; - auditLog: { - event: string; - actorId?: string; - origin?: ConstructiveInternalTypeOrigin; - userAgent?: string; - ipAddress?: string; - success: boolean; - }; -} -export interface AuditLogPatch { - event?: string | null; - actorId?: string | null; - origin?: ConstructiveInternalTypeOrigin | null; - userAgent?: string | null; - ipAddress?: string | null; - success?: boolean | null; - userAgentTrgmSimilarity?: number | null; - searchScore?: number | null; -} -export interface UpdateAuditLogInput { - clientMutationId?: string; - id: string; - auditLogPatch: AuditLogPatch; -} -export interface DeleteAuditLogInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppLevelInput { - clientMutationId?: string; - appLevel: { - name: string; - description?: string; - image?: ConstructiveInternalTypeImage; - ownerId?: string; - }; -} -export interface AppLevelPatch { - name?: string | null; - description?: string | null; - image?: ConstructiveInternalTypeImage | null; - ownerId?: string | null; - descriptionTrgmSimilarity?: number | null; - searchScore?: number | null; -} -export interface UpdateAppLevelInput { - clientMutationId?: string; - id: string; - appLevelPatch: AppLevelPatch; -} -export interface DeleteAppLevelInput { - clientMutationId?: string; - id: string; -} export interface CreateSqlMigrationInput { clientMutationId?: string; sqlMigration: { @@ -14256,7 +11870,7 @@ export interface SqlMigrationPatch { name?: string | null; databaseId?: string | null; deploy?: string | null; - deps?: string | null; + deps?: string[] | null; payload?: Record | null; content?: string | null; revert?: string | null; @@ -14264,13 +11878,6 @@ export interface SqlMigrationPatch { action?: string | null; actionId?: string | null; actorId?: string | null; - nameTrgmSimilarity?: number | null; - deployTrgmSimilarity?: number | null; - contentTrgmSimilarity?: number | null; - revertTrgmSimilarity?: number | null; - verifyTrgmSimilarity?: number | null; - actionTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateSqlMigrationInput { clientMutationId?: string; @@ -14281,30 +11888,6 @@ export interface DeleteSqlMigrationInput { clientMutationId?: string; id: number; } -export interface CreateEmailInput { - clientMutationId?: string; - email: { - ownerId?: string; - email: ConstructiveInternalTypeEmail; - isVerified?: boolean; - isPrimary?: boolean; - }; -} -export interface EmailPatch { - ownerId?: string | null; - email?: ConstructiveInternalTypeEmail | null; - isVerified?: boolean | null; - isPrimary?: boolean | null; -} -export interface UpdateEmailInput { - clientMutationId?: string; - id: string; - emailPatch: EmailPatch; -} -export interface DeleteEmailInput { - clientMutationId?: string; - id: string; -} export interface CreateUserInput { clientMutationId?: string; user: { @@ -14318,11 +11901,8 @@ export interface UserPatch { username?: string | null; displayName?: string | null; profilePicture?: ConstructiveInternalTypeImage | null; - searchTsv?: string | null; type?: number | null; - searchTsvRank?: number | null; - displayNameTrgmSimilarity?: number | null; - searchScore?: number | null; + profilePictureUpload?: File | null; } export interface UpdateUserInput { clientMutationId?: string; @@ -14352,7 +11932,7 @@ export interface CreateAstMigrationInput { export interface AstMigrationPatch { databaseId?: string | null; name?: string | null; - requires?: string | null; + requires?: string[] | null; payload?: Record | null; deploys?: string | null; deploy?: Record | null; @@ -14361,8 +11941,6 @@ export interface AstMigrationPatch { action?: string | null; actionId?: string | null; actorId?: string | null; - actionTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateAstMigrationInput { clientMutationId?: string; @@ -14457,17 +12035,6 @@ export interface HierarchyModulePatch { getSubordinatesFunction?: string | null; getManagersFunction?: string | null; isManagerOfFunction?: string | null; - chartEdgesTableNameTrgmSimilarity?: number | null; - hierarchySprtTableNameTrgmSimilarity?: number | null; - chartEdgeGrantsTableNameTrgmSimilarity?: number | null; - prefixTrgmSimilarity?: number | null; - privateSchemaNameTrgmSimilarity?: number | null; - sprtTableNameTrgmSimilarity?: number | null; - rebuildHierarchyFunctionTrgmSimilarity?: number | null; - getSubordinatesFunctionTrgmSimilarity?: number | null; - getManagersFunctionTrgmSimilarity?: number | null; - isManagerOfFunctionTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateHierarchyModuleInput { clientMutationId?: string; @@ -14499,6 +12066,9 @@ export const connectionFieldsMap = { viewGrants: 'ViewGrant', viewRules: 'ViewRule', defaultPrivileges: 'DefaultPrivilege', + enums: 'Enum', + embeddingChunks: 'EmbeddingChunk', + databaseTransfers: 'DatabaseTransfer', apis: 'Api', apiModules: 'ApiModule', apiSchemas: 'ApiSchema', @@ -14528,10 +12098,10 @@ export const connectionFieldsMap = { sessionsModules: 'SessionsModule', userAuthModules: 'UserAuthModule', usersModules: 'UsersModule', - uuidModules: 'UuidModule', tableTemplateModules: 'TableTemplateModule', secureTableProvisions: 'SecureTableProvision', relationProvisions: 'RelationProvision', + blueprints: 'Blueprint', databaseProvisionModules: 'DatabaseProvisionModule', }, Schema: { @@ -14539,6 +12109,7 @@ export const connectionFieldsMap = { schemaGrants: 'SchemaGrant', views: 'View', defaultPrivileges: 'DefaultPrivilege', + enums: 'Enum', apiSchemas: 'ApiSchema', tableTemplateModulesByPrivateSchemaId: 'TableTemplateModule', tableTemplateModules: 'TableTemplateModule', @@ -14556,6 +12127,8 @@ export const connectionFieldsMap = { uniqueConstraints: 'UniqueConstraint', views: 'View', viewTables: 'ViewTable', + embeddingChunksByChunksTableId: 'EmbeddingChunk', + embeddingChunks: 'EmbeddingChunk', tableTemplateModulesByOwnerTableId: 'TableTemplateModule', tableTemplateModules: 'TableTemplateModule', secureTableProvisions: 'SecureTableProvision', @@ -14578,19 +12151,29 @@ export const connectionFieldsMap = { siteModules: 'SiteModule', siteThemes: 'SiteTheme', }, + BlueprintTemplate: { + blueprintTemplatesByForkedFromId: 'BlueprintTemplate', + blueprintsByTemplateId: 'Blueprint', + }, User: { ownedDatabases: 'Database', + appAdminGrantsByActorId: 'AppAdminGrant', appAdminGrantsByGrantorId: 'AppAdminGrant', + appOwnerGrantsByActorId: 'AppOwnerGrant', appOwnerGrantsByGrantorId: 'AppOwnerGrant', + appGrantsByActorId: 'AppGrant', appGrantsByGrantorId: 'AppGrant', orgMembershipsByActorId: 'OrgMembership', orgMembershipsByEntityId: 'OrgMembership', orgMembersByActorId: 'OrgMember', orgMembersByEntityId: 'OrgMember', + orgAdminGrantsByActorId: 'OrgAdminGrant', orgAdminGrantsByEntityId: 'OrgAdminGrant', orgAdminGrantsByGrantorId: 'OrgAdminGrant', + orgOwnerGrantsByActorId: 'OrgOwnerGrant', orgOwnerGrantsByEntityId: 'OrgOwnerGrant', orgOwnerGrantsByGrantorId: 'OrgOwnerGrant', + orgGrantsByActorId: 'OrgGrant', orgGrantsByEntityId: 'OrgGrant', orgGrantsByGrantorId: 'OrgGrant', parentOrgChartEdges: 'OrgChartEdge', @@ -14600,30 +12183,47 @@ export const connectionFieldsMap = { orgChartEdgeGrantsByEntityId: 'OrgChartEdgeGrant', orgChartEdgeGrantsByGrantorId: 'OrgChartEdgeGrant', childOrgChartEdgeGrants: 'OrgChartEdgeGrant', + orgPermissionDefaultsByEntityId: 'OrgPermissionDefault', appLimitsByActorId: 'AppLimit', orgLimitsByActorId: 'OrgLimit', orgLimitsByEntityId: 'OrgLimit', appStepsByActorId: 'AppStep', appAchievementsByActorId: 'AppAchievement', + ownedAppLevels: 'AppLevel', + ownedEmails: 'Email', + ownedPhoneNumbers: 'PhoneNumber', + ownedCryptoAddresses: 'CryptoAddress', + ownedConnectedAccounts: 'ConnectedAccount', invitesBySenderId: 'Invite', claimedInvitesByReceiverId: 'ClaimedInvite', claimedInvitesBySenderId: 'ClaimedInvite', orgInvitesByEntityId: 'OrgInvite', + orgInvitesByReceiverId: 'OrgInvite', orgInvitesBySenderId: 'OrgInvite', + orgClaimedInvitesByEntityId: 'OrgClaimedInvite', orgClaimedInvitesByReceiverId: 'OrgClaimedInvite', orgClaimedInvitesBySenderId: 'OrgClaimedInvite', + auditLogsByActorId: 'AuditLog', }, } as Record>; // ============ Custom Input Types (from schema) ============ +export interface SendAccountDeletionEmailInput { + clientMutationId?: string; +} export interface SignOutInput { clientMutationId?: string; } -export interface SendAccountDeletionEmailInput { +export interface AcceptDatabaseTransferInput { clientMutationId?: string; + transferId?: string; } -export interface CheckPasswordInput { +export interface CancelDatabaseTransferInput { clientMutationId?: string; - password?: string; + transferId?: string; +} +export interface RejectDatabaseTransferInput { + clientMutationId?: string; + transferId?: string; } export interface SubmitInviteCodeInput { clientMutationId?: string; @@ -14633,15 +12233,9 @@ export interface SubmitOrgInviteCodeInput { clientMutationId?: string; token?: string; } -export interface FreezeObjectsInput { - clientMutationId?: string; - databaseId?: string; - id?: string; -} -export interface InitEmptyRepoInput { +export interface CheckPasswordInput { clientMutationId?: string; - dbId?: string; - storeId?: string; + password?: string; } export interface ConfirmDeleteAccountInput { clientMutationId?: string; @@ -14658,31 +12252,32 @@ export interface VerifyEmailInput { emailId?: string; token?: string; } -export interface RemoveNodeAtPathInput { +export interface FreezeObjectsInput { clientMutationId?: string; - dbId?: string; - root?: string; - path?: string[]; + databaseId?: string; + id?: string; } -export interface ResetPasswordInput { +export interface InitEmptyRepoInput { clientMutationId?: string; - roleId?: string; - resetToken?: string; - newPassword?: string; + dbId?: string; + storeId?: string; } -export interface BootstrapUserInput { +export interface ConstructBlueprintInput { clientMutationId?: string; - targetDatabaseId?: string; - password?: string; - isAdmin?: boolean; - isOwner?: boolean; - username?: string; - displayName?: string; - returnApiKey?: boolean; + blueprintId?: string; + schemaId?: string; } -export interface SetFieldOrderInput { +export interface ResetPasswordInput { clientMutationId?: string; - fieldIds?: string[]; + roleId?: string; + resetToken?: string; + newPassword?: string; +} +export interface RemoveNodeAtPathInput { + clientMutationId?: string; + dbId?: string; + root?: string; + path?: string[]; } export interface SetDataAtPathInput { clientMutationId?: string; @@ -14699,6 +12294,14 @@ export interface SetPropsAndCommitInput { path?: string[]; data?: Record; } +export interface CopyTemplateToBlueprintInput { + clientMutationId?: string; + templateId?: string; + databaseId?: string; + ownerId?: string; + nameOverride?: string; + displayNameOverride?: string; +} export interface ProvisionDatabaseWithUserInput { clientMutationId?: string; pDatabaseName?: string; @@ -14707,6 +12310,20 @@ export interface ProvisionDatabaseWithUserInput { pModules?: string[]; pOptions?: Record; } +export interface BootstrapUserInput { + clientMutationId?: string; + targetDatabaseId?: string; + password?: string; + isAdmin?: boolean; + isOwner?: boolean; + username?: string; + displayName?: string; + returnApiKey?: boolean; +} +export interface SetFieldOrderInput { + clientMutationId?: string; + fieldIds?: string[]; +} export interface InsertNodeAtPathInput { clientMutationId?: string; dbId?: string; @@ -14787,11 +12404,11 @@ export interface OneTimeTokenInput { origin?: ConstructiveInternalTypeOrigin; rememberMe?: boolean; } -export interface ForgotPasswordInput { +export interface SendVerificationEmailInput { clientMutationId?: string; email?: ConstructiveInternalTypeEmail; } -export interface SendVerificationEmailInput { +export interface ForgotPasswordInput { clientMutationId?: string; email?: ConstructiveInternalTypeEmail; } @@ -14899,52 +12516,64 @@ export type AppLevelRequirementConnectionSelect = { }; totalCount?: boolean; }; +export interface SendAccountDeletionEmailPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type SendAccountDeletionEmailPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; export interface SignOutPayload { clientMutationId?: string | null; } export type SignOutPayloadSelect = { clientMutationId?: boolean; }; -export interface SendAccountDeletionEmailPayload { +export interface AcceptDatabaseTransferPayload { clientMutationId?: string | null; result?: boolean | null; } -export type SendAccountDeletionEmailPayloadSelect = { +export type AcceptDatabaseTransferPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; -export interface CheckPasswordPayload { +export interface CancelDatabaseTransferPayload { clientMutationId?: string | null; + result?: boolean | null; } -export type CheckPasswordPayloadSelect = { +export type CancelDatabaseTransferPayloadSelect = { clientMutationId?: boolean; + result?: boolean; }; -export interface SubmitInviteCodePayload { +export interface RejectDatabaseTransferPayload { clientMutationId?: string | null; result?: boolean | null; } -export type SubmitInviteCodePayloadSelect = { +export type RejectDatabaseTransferPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; -export interface SubmitOrgInviteCodePayload { +export interface SubmitInviteCodePayload { clientMutationId?: string | null; result?: boolean | null; } -export type SubmitOrgInviteCodePayloadSelect = { +export type SubmitInviteCodePayloadSelect = { clientMutationId?: boolean; result?: boolean; }; -export interface FreezeObjectsPayload { +export interface SubmitOrgInviteCodePayload { clientMutationId?: string | null; + result?: boolean | null; } -export type FreezeObjectsPayloadSelect = { +export type SubmitOrgInviteCodePayloadSelect = { clientMutationId?: boolean; + result?: boolean; }; -export interface InitEmptyRepoPayload { +export interface CheckPasswordPayload { clientMutationId?: string | null; } -export type InitEmptyRepoPayloadSelect = { +export type CheckPasswordPayloadSelect = { clientMutationId?: boolean; }; export interface ConfirmDeleteAccountPayload { @@ -14971,37 +12600,41 @@ export type VerifyEmailPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; -export interface RemoveNodeAtPathPayload { +export interface FreezeObjectsPayload { clientMutationId?: string | null; - result?: string | null; } -export type RemoveNodeAtPathPayloadSelect = { +export type FreezeObjectsPayloadSelect = { clientMutationId?: boolean; - result?: boolean; }; -export interface ResetPasswordPayload { +export interface InitEmptyRepoPayload { clientMutationId?: string | null; - result?: boolean | null; } -export type ResetPasswordPayloadSelect = { +export type InitEmptyRepoPayloadSelect = { + clientMutationId?: boolean; +}; +export interface ConstructBlueprintPayload { + clientMutationId?: string | null; + result?: Record | null; +} +export type ConstructBlueprintPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; -export interface BootstrapUserPayload { +export interface ResetPasswordPayload { clientMutationId?: string | null; - result?: BootstrapUserRecord[] | null; + result?: boolean | null; } -export type BootstrapUserPayloadSelect = { +export type ResetPasswordPayloadSelect = { clientMutationId?: boolean; - result?: { - select: BootstrapUserRecordSelect; - }; + result?: boolean; }; -export interface SetFieldOrderPayload { +export interface RemoveNodeAtPathPayload { clientMutationId?: string | null; + result?: string | null; } -export type SetFieldOrderPayloadSelect = { +export type RemoveNodeAtPathPayloadSelect = { clientMutationId?: boolean; + result?: boolean; }; export interface SetDataAtPathPayload { clientMutationId?: string | null; @@ -15019,6 +12652,14 @@ export type SetPropsAndCommitPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface CopyTemplateToBlueprintPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type CopyTemplateToBlueprintPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; export interface ProvisionDatabaseWithUserPayload { clientMutationId?: string | null; result?: ProvisionDatabaseWithUserRecord[] | null; @@ -15029,6 +12670,22 @@ export type ProvisionDatabaseWithUserPayloadSelect = { select: ProvisionDatabaseWithUserRecordSelect; }; }; +export interface BootstrapUserPayload { + clientMutationId?: string | null; + result?: BootstrapUserRecord[] | null; +} +export type BootstrapUserPayloadSelect = { + clientMutationId?: boolean; + result?: { + select: BootstrapUserRecordSelect; + }; +}; +export interface SetFieldOrderPayload { + clientMutationId?: string | null; +} +export type SetFieldOrderPayloadSelect = { + clientMutationId?: boolean; +}; export interface InsertNodeAtPathPayload { clientMutationId?: string | null; result?: string | null; @@ -15115,12 +12772,6 @@ export type OneTimeTokenPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; -export interface ForgotPasswordPayload { - clientMutationId?: string | null; -} -export type ForgotPasswordPayloadSelect = { - clientMutationId?: boolean; -}; export interface SendVerificationEmailPayload { clientMutationId?: string | null; result?: boolean | null; @@ -15129,6 +12780,12 @@ export type SendVerificationEmailPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface ForgotPasswordPayload { + clientMutationId?: string | null; +} +export type ForgotPasswordPayloadSelect = { + clientMutationId?: boolean; +}; export interface VerifyPasswordPayload { clientMutationId?: string | null; result?: Session | null; @@ -16094,6 +13751,51 @@ export type DeleteViewRulePayloadSelect = { select: ViewRuleEdgeSelect; }; }; +export interface CreateEmbeddingChunkPayload { + clientMutationId?: string | null; + /** The `EmbeddingChunk` that was created by this mutation. */ + embeddingChunk?: EmbeddingChunk | null; + embeddingChunkEdge?: EmbeddingChunkEdge | null; +} +export type CreateEmbeddingChunkPayloadSelect = { + clientMutationId?: boolean; + embeddingChunk?: { + select: EmbeddingChunkSelect; + }; + embeddingChunkEdge?: { + select: EmbeddingChunkEdgeSelect; + }; +}; +export interface UpdateEmbeddingChunkPayload { + clientMutationId?: string | null; + /** The `EmbeddingChunk` that was updated by this mutation. */ + embeddingChunk?: EmbeddingChunk | null; + embeddingChunkEdge?: EmbeddingChunkEdge | null; +} +export type UpdateEmbeddingChunkPayloadSelect = { + clientMutationId?: boolean; + embeddingChunk?: { + select: EmbeddingChunkSelect; + }; + embeddingChunkEdge?: { + select: EmbeddingChunkEdgeSelect; + }; +}; +export interface DeleteEmbeddingChunkPayload { + clientMutationId?: string | null; + /** The `EmbeddingChunk` that was deleted by this mutation. */ + embeddingChunk?: EmbeddingChunk | null; + embeddingChunkEdge?: EmbeddingChunkEdge | null; +} +export type DeleteEmbeddingChunkPayloadSelect = { + clientMutationId?: boolean; + embeddingChunk?: { + select: EmbeddingChunkSelect; + }; + embeddingChunkEdge?: { + select: EmbeddingChunkEdgeSelect; + }; +}; export interface CreateTableTemplateModulePayload { clientMutationId?: string | null; /** The `TableTemplateModule` that was created by this mutation. */ @@ -16319,6 +14021,51 @@ export type DeleteDefaultPrivilegePayloadSelect = { select: DefaultPrivilegeEdgeSelect; }; }; +export interface CreateEnumPayload { + clientMutationId?: string | null; + /** The `Enum` that was created by this mutation. */ + enum?: Enum | null; + enumEdge?: EnumEdge | null; +} +export type CreateEnumPayloadSelect = { + clientMutationId?: boolean; + enum?: { + select: EnumSelect; + }; + enumEdge?: { + select: EnumEdgeSelect; + }; +}; +export interface UpdateEnumPayload { + clientMutationId?: string | null; + /** The `Enum` that was updated by this mutation. */ + enum?: Enum | null; + enumEdge?: EnumEdge | null; +} +export type UpdateEnumPayloadSelect = { + clientMutationId?: boolean; + enum?: { + select: EnumSelect; + }; + enumEdge?: { + select: EnumEdgeSelect; + }; +}; +export interface DeleteEnumPayload { + clientMutationId?: string | null; + /** The `Enum` that was deleted by this mutation. */ + enum?: Enum | null; + enumEdge?: EnumEdge | null; +} +export type DeleteEnumPayloadSelect = { + clientMutationId?: boolean; + enum?: { + select: EnumSelect; + }; + enumEdge?: { + select: EnumEdgeSelect; + }; +}; export interface CreateApiSchemaPayload { clientMutationId?: string | null; /** The `ApiSchema` that was created by this mutation. */ @@ -16634,6 +14381,51 @@ export type DeleteTriggerFunctionPayloadSelect = { select: TriggerFunctionEdgeSelect; }; }; +export interface CreateDatabaseTransferPayload { + clientMutationId?: string | null; + /** The `DatabaseTransfer` that was created by this mutation. */ + databaseTransfer?: DatabaseTransfer | null; + databaseTransferEdge?: DatabaseTransferEdge | null; +} +export type CreateDatabaseTransferPayloadSelect = { + clientMutationId?: boolean; + databaseTransfer?: { + select: DatabaseTransferSelect; + }; + databaseTransferEdge?: { + select: DatabaseTransferEdgeSelect; + }; +}; +export interface UpdateDatabaseTransferPayload { + clientMutationId?: string | null; + /** The `DatabaseTransfer` that was updated by this mutation. */ + databaseTransfer?: DatabaseTransfer | null; + databaseTransferEdge?: DatabaseTransferEdge | null; +} +export type UpdateDatabaseTransferPayloadSelect = { + clientMutationId?: boolean; + databaseTransfer?: { + select: DatabaseTransferSelect; + }; + databaseTransferEdge?: { + select: DatabaseTransferEdgeSelect; + }; +}; +export interface DeleteDatabaseTransferPayload { + clientMutationId?: string | null; + /** The `DatabaseTransfer` that was deleted by this mutation. */ + databaseTransfer?: DatabaseTransfer | null; + databaseTransferEdge?: DatabaseTransferEdge | null; +} +export type DeleteDatabaseTransferPayloadSelect = { + clientMutationId?: boolean; + databaseTransfer?: { + select: DatabaseTransferSelect; + }; + databaseTransferEdge?: { + select: DatabaseTransferEdgeSelect; + }; +}; export interface CreateApiPayload { clientMutationId?: string | null; /** The `Api` that was created by this mutation. */ @@ -17669,49 +15461,94 @@ export type DeleteUsersModulePayloadSelect = { select: UsersModuleEdgeSelect; }; }; -export interface CreateUuidModulePayload { +export interface CreateBlueprintPayload { + clientMutationId?: string | null; + /** The `Blueprint` that was created by this mutation. */ + blueprint?: Blueprint | null; + blueprintEdge?: BlueprintEdge | null; +} +export type CreateBlueprintPayloadSelect = { + clientMutationId?: boolean; + blueprint?: { + select: BlueprintSelect; + }; + blueprintEdge?: { + select: BlueprintEdgeSelect; + }; +}; +export interface UpdateBlueprintPayload { + clientMutationId?: string | null; + /** The `Blueprint` that was updated by this mutation. */ + blueprint?: Blueprint | null; + blueprintEdge?: BlueprintEdge | null; +} +export type UpdateBlueprintPayloadSelect = { + clientMutationId?: boolean; + blueprint?: { + select: BlueprintSelect; + }; + blueprintEdge?: { + select: BlueprintEdgeSelect; + }; +}; +export interface DeleteBlueprintPayload { + clientMutationId?: string | null; + /** The `Blueprint` that was deleted by this mutation. */ + blueprint?: Blueprint | null; + blueprintEdge?: BlueprintEdge | null; +} +export type DeleteBlueprintPayloadSelect = { + clientMutationId?: boolean; + blueprint?: { + select: BlueprintSelect; + }; + blueprintEdge?: { + select: BlueprintEdgeSelect; + }; +}; +export interface CreateBlueprintTemplatePayload { clientMutationId?: string | null; - /** The `UuidModule` that was created by this mutation. */ - uuidModule?: UuidModule | null; - uuidModuleEdge?: UuidModuleEdge | null; + /** The `BlueprintTemplate` that was created by this mutation. */ + blueprintTemplate?: BlueprintTemplate | null; + blueprintTemplateEdge?: BlueprintTemplateEdge | null; } -export type CreateUuidModulePayloadSelect = { +export type CreateBlueprintTemplatePayloadSelect = { clientMutationId?: boolean; - uuidModule?: { - select: UuidModuleSelect; + blueprintTemplate?: { + select: BlueprintTemplateSelect; }; - uuidModuleEdge?: { - select: UuidModuleEdgeSelect; + blueprintTemplateEdge?: { + select: BlueprintTemplateEdgeSelect; }; }; -export interface UpdateUuidModulePayload { +export interface UpdateBlueprintTemplatePayload { clientMutationId?: string | null; - /** The `UuidModule` that was updated by this mutation. */ - uuidModule?: UuidModule | null; - uuidModuleEdge?: UuidModuleEdge | null; + /** The `BlueprintTemplate` that was updated by this mutation. */ + blueprintTemplate?: BlueprintTemplate | null; + blueprintTemplateEdge?: BlueprintTemplateEdge | null; } -export type UpdateUuidModulePayloadSelect = { +export type UpdateBlueprintTemplatePayloadSelect = { clientMutationId?: boolean; - uuidModule?: { - select: UuidModuleSelect; + blueprintTemplate?: { + select: BlueprintTemplateSelect; }; - uuidModuleEdge?: { - select: UuidModuleEdgeSelect; + blueprintTemplateEdge?: { + select: BlueprintTemplateEdgeSelect; }; }; -export interface DeleteUuidModulePayload { +export interface DeleteBlueprintTemplatePayload { clientMutationId?: string | null; - /** The `UuidModule` that was deleted by this mutation. */ - uuidModule?: UuidModule | null; - uuidModuleEdge?: UuidModuleEdge | null; + /** The `BlueprintTemplate` that was deleted by this mutation. */ + blueprintTemplate?: BlueprintTemplate | null; + blueprintTemplateEdge?: BlueprintTemplateEdge | null; } -export type DeleteUuidModulePayloadSelect = { +export type DeleteBlueprintTemplatePayloadSelect = { clientMutationId?: boolean; - uuidModule?: { - select: UuidModuleSelect; + blueprintTemplate?: { + select: BlueprintTemplateSelect; }; - uuidModuleEdge?: { - select: UuidModuleEdgeSelect; + blueprintTemplateEdge?: { + select: BlueprintTemplateEdgeSelect; }; }; export interface CreateDatabaseProvisionModulePayload { @@ -18209,6 +16046,51 @@ export type DeleteOrgChartEdgeGrantPayloadSelect = { select: OrgChartEdgeGrantEdgeSelect; }; }; +export interface CreateOrgPermissionDefaultPayload { + clientMutationId?: string | null; + /** The `OrgPermissionDefault` that was created by this mutation. */ + orgPermissionDefault?: OrgPermissionDefault | null; + orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; +} +export type CreateOrgPermissionDefaultPayloadSelect = { + clientMutationId?: boolean; + orgPermissionDefault?: { + select: OrgPermissionDefaultSelect; + }; + orgPermissionDefaultEdge?: { + select: OrgPermissionDefaultEdgeSelect; + }; +}; +export interface UpdateOrgPermissionDefaultPayload { + clientMutationId?: string | null; + /** The `OrgPermissionDefault` that was updated by this mutation. */ + orgPermissionDefault?: OrgPermissionDefault | null; + orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; +} +export type UpdateOrgPermissionDefaultPayloadSelect = { + clientMutationId?: boolean; + orgPermissionDefault?: { + select: OrgPermissionDefaultSelect; + }; + orgPermissionDefaultEdge?: { + select: OrgPermissionDefaultEdgeSelect; + }; +}; +export interface DeleteOrgPermissionDefaultPayload { + clientMutationId?: string | null; + /** The `OrgPermissionDefault` that was deleted by this mutation. */ + orgPermissionDefault?: OrgPermissionDefault | null; + orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; +} +export type DeleteOrgPermissionDefaultPayloadSelect = { + clientMutationId?: boolean; + orgPermissionDefault?: { + select: OrgPermissionDefaultSelect; + }; + orgPermissionDefaultEdge?: { + select: OrgPermissionDefaultEdgeSelect; + }; +}; export interface CreateAppLimitPayload { clientMutationId?: string | null; /** The `AppLimit` that was created by this mutation. */ @@ -18329,64 +16211,289 @@ export type UpdateAppStepPayloadSelect = { select: AppStepEdgeSelect; }; }; -export interface DeleteAppStepPayload { +export interface DeleteAppStepPayload { + clientMutationId?: string | null; + /** The `AppStep` that was deleted by this mutation. */ + appStep?: AppStep | null; + appStepEdge?: AppStepEdge | null; +} +export type DeleteAppStepPayloadSelect = { + clientMutationId?: boolean; + appStep?: { + select: AppStepSelect; + }; + appStepEdge?: { + select: AppStepEdgeSelect; + }; +}; +export interface CreateAppAchievementPayload { + clientMutationId?: string | null; + /** The `AppAchievement` that was created by this mutation. */ + appAchievement?: AppAchievement | null; + appAchievementEdge?: AppAchievementEdge | null; +} +export type CreateAppAchievementPayloadSelect = { + clientMutationId?: boolean; + appAchievement?: { + select: AppAchievementSelect; + }; + appAchievementEdge?: { + select: AppAchievementEdgeSelect; + }; +}; +export interface UpdateAppAchievementPayload { + clientMutationId?: string | null; + /** The `AppAchievement` that was updated by this mutation. */ + appAchievement?: AppAchievement | null; + appAchievementEdge?: AppAchievementEdge | null; +} +export type UpdateAppAchievementPayloadSelect = { + clientMutationId?: boolean; + appAchievement?: { + select: AppAchievementSelect; + }; + appAchievementEdge?: { + select: AppAchievementEdgeSelect; + }; +}; +export interface DeleteAppAchievementPayload { + clientMutationId?: string | null; + /** The `AppAchievement` that was deleted by this mutation. */ + appAchievement?: AppAchievement | null; + appAchievementEdge?: AppAchievementEdge | null; +} +export type DeleteAppAchievementPayloadSelect = { + clientMutationId?: boolean; + appAchievement?: { + select: AppAchievementSelect; + }; + appAchievementEdge?: { + select: AppAchievementEdgeSelect; + }; +}; +export interface CreateAppLevelPayload { + clientMutationId?: string | null; + /** The `AppLevel` that was created by this mutation. */ + appLevel?: AppLevel | null; + appLevelEdge?: AppLevelEdge | null; +} +export type CreateAppLevelPayloadSelect = { + clientMutationId?: boolean; + appLevel?: { + select: AppLevelSelect; + }; + appLevelEdge?: { + select: AppLevelEdgeSelect; + }; +}; +export interface UpdateAppLevelPayload { + clientMutationId?: string | null; + /** The `AppLevel` that was updated by this mutation. */ + appLevel?: AppLevel | null; + appLevelEdge?: AppLevelEdge | null; +} +export type UpdateAppLevelPayloadSelect = { + clientMutationId?: boolean; + appLevel?: { + select: AppLevelSelect; + }; + appLevelEdge?: { + select: AppLevelEdgeSelect; + }; +}; +export interface DeleteAppLevelPayload { + clientMutationId?: string | null; + /** The `AppLevel` that was deleted by this mutation. */ + appLevel?: AppLevel | null; + appLevelEdge?: AppLevelEdge | null; +} +export type DeleteAppLevelPayloadSelect = { + clientMutationId?: boolean; + appLevel?: { + select: AppLevelSelect; + }; + appLevelEdge?: { + select: AppLevelEdgeSelect; + }; +}; +export interface CreateEmailPayload { + clientMutationId?: string | null; + /** The `Email` that was created by this mutation. */ + email?: Email | null; + emailEdge?: EmailEdge | null; +} +export type CreateEmailPayloadSelect = { + clientMutationId?: boolean; + email?: { + select: EmailSelect; + }; + emailEdge?: { + select: EmailEdgeSelect; + }; +}; +export interface UpdateEmailPayload { + clientMutationId?: string | null; + /** The `Email` that was updated by this mutation. */ + email?: Email | null; + emailEdge?: EmailEdge | null; +} +export type UpdateEmailPayloadSelect = { + clientMutationId?: boolean; + email?: { + select: EmailSelect; + }; + emailEdge?: { + select: EmailEdgeSelect; + }; +}; +export interface DeleteEmailPayload { + clientMutationId?: string | null; + /** The `Email` that was deleted by this mutation. */ + email?: Email | null; + emailEdge?: EmailEdge | null; +} +export type DeleteEmailPayloadSelect = { + clientMutationId?: boolean; + email?: { + select: EmailSelect; + }; + emailEdge?: { + select: EmailEdgeSelect; + }; +}; +export interface CreatePhoneNumberPayload { + clientMutationId?: string | null; + /** The `PhoneNumber` that was created by this mutation. */ + phoneNumber?: PhoneNumber | null; + phoneNumberEdge?: PhoneNumberEdge | null; +} +export type CreatePhoneNumberPayloadSelect = { + clientMutationId?: boolean; + phoneNumber?: { + select: PhoneNumberSelect; + }; + phoneNumberEdge?: { + select: PhoneNumberEdgeSelect; + }; +}; +export interface UpdatePhoneNumberPayload { + clientMutationId?: string | null; + /** The `PhoneNumber` that was updated by this mutation. */ + phoneNumber?: PhoneNumber | null; + phoneNumberEdge?: PhoneNumberEdge | null; +} +export type UpdatePhoneNumberPayloadSelect = { + clientMutationId?: boolean; + phoneNumber?: { + select: PhoneNumberSelect; + }; + phoneNumberEdge?: { + select: PhoneNumberEdgeSelect; + }; +}; +export interface DeletePhoneNumberPayload { + clientMutationId?: string | null; + /** The `PhoneNumber` that was deleted by this mutation. */ + phoneNumber?: PhoneNumber | null; + phoneNumberEdge?: PhoneNumberEdge | null; +} +export type DeletePhoneNumberPayloadSelect = { + clientMutationId?: boolean; + phoneNumber?: { + select: PhoneNumberSelect; + }; + phoneNumberEdge?: { + select: PhoneNumberEdgeSelect; + }; +}; +export interface CreateCryptoAddressPayload { + clientMutationId?: string | null; + /** The `CryptoAddress` that was created by this mutation. */ + cryptoAddress?: CryptoAddress | null; + cryptoAddressEdge?: CryptoAddressEdge | null; +} +export type CreateCryptoAddressPayloadSelect = { + clientMutationId?: boolean; + cryptoAddress?: { + select: CryptoAddressSelect; + }; + cryptoAddressEdge?: { + select: CryptoAddressEdgeSelect; + }; +}; +export interface UpdateCryptoAddressPayload { + clientMutationId?: string | null; + /** The `CryptoAddress` that was updated by this mutation. */ + cryptoAddress?: CryptoAddress | null; + cryptoAddressEdge?: CryptoAddressEdge | null; +} +export type UpdateCryptoAddressPayloadSelect = { + clientMutationId?: boolean; + cryptoAddress?: { + select: CryptoAddressSelect; + }; + cryptoAddressEdge?: { + select: CryptoAddressEdgeSelect; + }; +}; +export interface DeleteCryptoAddressPayload { clientMutationId?: string | null; - /** The `AppStep` that was deleted by this mutation. */ - appStep?: AppStep | null; - appStepEdge?: AppStepEdge | null; + /** The `CryptoAddress` that was deleted by this mutation. */ + cryptoAddress?: CryptoAddress | null; + cryptoAddressEdge?: CryptoAddressEdge | null; } -export type DeleteAppStepPayloadSelect = { +export type DeleteCryptoAddressPayloadSelect = { clientMutationId?: boolean; - appStep?: { - select: AppStepSelect; + cryptoAddress?: { + select: CryptoAddressSelect; }; - appStepEdge?: { - select: AppStepEdgeSelect; + cryptoAddressEdge?: { + select: CryptoAddressEdgeSelect; }; }; -export interface CreateAppAchievementPayload { +export interface CreateConnectedAccountPayload { clientMutationId?: string | null; - /** The `AppAchievement` that was created by this mutation. */ - appAchievement?: AppAchievement | null; - appAchievementEdge?: AppAchievementEdge | null; + /** The `ConnectedAccount` that was created by this mutation. */ + connectedAccount?: ConnectedAccount | null; + connectedAccountEdge?: ConnectedAccountEdge | null; } -export type CreateAppAchievementPayloadSelect = { +export type CreateConnectedAccountPayloadSelect = { clientMutationId?: boolean; - appAchievement?: { - select: AppAchievementSelect; + connectedAccount?: { + select: ConnectedAccountSelect; }; - appAchievementEdge?: { - select: AppAchievementEdgeSelect; + connectedAccountEdge?: { + select: ConnectedAccountEdgeSelect; }; }; -export interface UpdateAppAchievementPayload { +export interface UpdateConnectedAccountPayload { clientMutationId?: string | null; - /** The `AppAchievement` that was updated by this mutation. */ - appAchievement?: AppAchievement | null; - appAchievementEdge?: AppAchievementEdge | null; + /** The `ConnectedAccount` that was updated by this mutation. */ + connectedAccount?: ConnectedAccount | null; + connectedAccountEdge?: ConnectedAccountEdge | null; } -export type UpdateAppAchievementPayloadSelect = { +export type UpdateConnectedAccountPayloadSelect = { clientMutationId?: boolean; - appAchievement?: { - select: AppAchievementSelect; + connectedAccount?: { + select: ConnectedAccountSelect; }; - appAchievementEdge?: { - select: AppAchievementEdgeSelect; + connectedAccountEdge?: { + select: ConnectedAccountEdgeSelect; }; }; -export interface DeleteAppAchievementPayload { +export interface DeleteConnectedAccountPayload { clientMutationId?: string | null; - /** The `AppAchievement` that was deleted by this mutation. */ - appAchievement?: AppAchievement | null; - appAchievementEdge?: AppAchievementEdge | null; + /** The `ConnectedAccount` that was deleted by this mutation. */ + connectedAccount?: ConnectedAccount | null; + connectedAccountEdge?: ConnectedAccountEdge | null; } -export type DeleteAppAchievementPayloadSelect = { +export type DeleteConnectedAccountPayloadSelect = { clientMutationId?: boolean; - appAchievement?: { - select: AppAchievementSelect; + connectedAccount?: { + select: ConnectedAccountSelect; }; - appAchievementEdge?: { - select: AppAchievementEdgeSelect; + connectedAccountEdge?: { + select: ConnectedAccountEdgeSelect; }; }; export interface CreateInvitePayload { @@ -18569,6 +16676,51 @@ export type DeleteOrgClaimedInvitePayloadSelect = { select: OrgClaimedInviteEdgeSelect; }; }; +export interface CreateAuditLogPayload { + clientMutationId?: string | null; + /** The `AuditLog` that was created by this mutation. */ + auditLog?: AuditLog | null; + auditLogEdge?: AuditLogEdge | null; +} +export type CreateAuditLogPayloadSelect = { + clientMutationId?: boolean; + auditLog?: { + select: AuditLogSelect; + }; + auditLogEdge?: { + select: AuditLogEdgeSelect; + }; +}; +export interface UpdateAuditLogPayload { + clientMutationId?: string | null; + /** The `AuditLog` that was updated by this mutation. */ + auditLog?: AuditLog | null; + auditLogEdge?: AuditLogEdge | null; +} +export type UpdateAuditLogPayloadSelect = { + clientMutationId?: boolean; + auditLog?: { + select: AuditLogSelect; + }; + auditLogEdge?: { + select: AuditLogEdgeSelect; + }; +}; +export interface DeleteAuditLogPayload { + clientMutationId?: string | null; + /** The `AuditLog` that was deleted by this mutation. */ + auditLog?: AuditLog | null; + auditLogEdge?: AuditLogEdge | null; +} +export type DeleteAuditLogPayloadSelect = { + clientMutationId?: boolean; + auditLog?: { + select: AuditLogSelect; + }; + auditLogEdge?: { + select: AuditLogEdgeSelect; + }; +}; export interface CreateRefPayload { clientMutationId?: string | null; /** The `Ref` that was created by this mutation. */ @@ -18682,206 +16834,71 @@ export interface UpdateAppPermissionDefaultPayload { } export type UpdateAppPermissionDefaultPayloadSelect = { clientMutationId?: boolean; - appPermissionDefault?: { - select: AppPermissionDefaultSelect; - }; - appPermissionDefaultEdge?: { - select: AppPermissionDefaultEdgeSelect; - }; -}; -export interface DeleteAppPermissionDefaultPayload { - clientMutationId?: string | null; - /** The `AppPermissionDefault` that was deleted by this mutation. */ - appPermissionDefault?: AppPermissionDefault | null; - appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; -} -export type DeleteAppPermissionDefaultPayloadSelect = { - clientMutationId?: boolean; - appPermissionDefault?: { - select: AppPermissionDefaultSelect; - }; - appPermissionDefaultEdge?: { - select: AppPermissionDefaultEdgeSelect; - }; -}; -export interface CreateCryptoAddressPayload { - clientMutationId?: string | null; - /** The `CryptoAddress` that was created by this mutation. */ - cryptoAddress?: CryptoAddress | null; - cryptoAddressEdge?: CryptoAddressEdge | null; -} -export type CreateCryptoAddressPayloadSelect = { - clientMutationId?: boolean; - cryptoAddress?: { - select: CryptoAddressSelect; - }; - cryptoAddressEdge?: { - select: CryptoAddressEdgeSelect; - }; -}; -export interface UpdateCryptoAddressPayload { - clientMutationId?: string | null; - /** The `CryptoAddress` that was updated by this mutation. */ - cryptoAddress?: CryptoAddress | null; - cryptoAddressEdge?: CryptoAddressEdge | null; -} -export type UpdateCryptoAddressPayloadSelect = { - clientMutationId?: boolean; - cryptoAddress?: { - select: CryptoAddressSelect; - }; - cryptoAddressEdge?: { - select: CryptoAddressEdgeSelect; - }; -}; -export interface DeleteCryptoAddressPayload { - clientMutationId?: string | null; - /** The `CryptoAddress` that was deleted by this mutation. */ - cryptoAddress?: CryptoAddress | null; - cryptoAddressEdge?: CryptoAddressEdge | null; -} -export type DeleteCryptoAddressPayloadSelect = { - clientMutationId?: boolean; - cryptoAddress?: { - select: CryptoAddressSelect; - }; - cryptoAddressEdge?: { - select: CryptoAddressEdgeSelect; - }; -}; -export interface CreateRoleTypePayload { - clientMutationId?: string | null; - /** The `RoleType` that was created by this mutation. */ - roleType?: RoleType | null; - roleTypeEdge?: RoleTypeEdge | null; -} -export type CreateRoleTypePayloadSelect = { - clientMutationId?: boolean; - roleType?: { - select: RoleTypeSelect; - }; - roleTypeEdge?: { - select: RoleTypeEdgeSelect; - }; -}; -export interface UpdateRoleTypePayload { - clientMutationId?: string | null; - /** The `RoleType` that was updated by this mutation. */ - roleType?: RoleType | null; - roleTypeEdge?: RoleTypeEdge | null; -} -export type UpdateRoleTypePayloadSelect = { - clientMutationId?: boolean; - roleType?: { - select: RoleTypeSelect; - }; - roleTypeEdge?: { - select: RoleTypeEdgeSelect; - }; -}; -export interface DeleteRoleTypePayload { - clientMutationId?: string | null; - /** The `RoleType` that was deleted by this mutation. */ - roleType?: RoleType | null; - roleTypeEdge?: RoleTypeEdge | null; -} -export type DeleteRoleTypePayloadSelect = { - clientMutationId?: boolean; - roleType?: { - select: RoleTypeSelect; - }; - roleTypeEdge?: { - select: RoleTypeEdgeSelect; - }; -}; -export interface CreateOrgPermissionDefaultPayload { - clientMutationId?: string | null; - /** The `OrgPermissionDefault` that was created by this mutation. */ - orgPermissionDefault?: OrgPermissionDefault | null; - orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; -} -export type CreateOrgPermissionDefaultPayloadSelect = { - clientMutationId?: boolean; - orgPermissionDefault?: { - select: OrgPermissionDefaultSelect; - }; - orgPermissionDefaultEdge?: { - select: OrgPermissionDefaultEdgeSelect; - }; -}; -export interface UpdateOrgPermissionDefaultPayload { - clientMutationId?: string | null; - /** The `OrgPermissionDefault` that was updated by this mutation. */ - orgPermissionDefault?: OrgPermissionDefault | null; - orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; -} -export type UpdateOrgPermissionDefaultPayloadSelect = { - clientMutationId?: boolean; - orgPermissionDefault?: { - select: OrgPermissionDefaultSelect; + appPermissionDefault?: { + select: AppPermissionDefaultSelect; }; - orgPermissionDefaultEdge?: { - select: OrgPermissionDefaultEdgeSelect; + appPermissionDefaultEdge?: { + select: AppPermissionDefaultEdgeSelect; }; }; -export interface DeleteOrgPermissionDefaultPayload { +export interface DeleteAppPermissionDefaultPayload { clientMutationId?: string | null; - /** The `OrgPermissionDefault` that was deleted by this mutation. */ - orgPermissionDefault?: OrgPermissionDefault | null; - orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; + /** The `AppPermissionDefault` that was deleted by this mutation. */ + appPermissionDefault?: AppPermissionDefault | null; + appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; } -export type DeleteOrgPermissionDefaultPayloadSelect = { +export type DeleteAppPermissionDefaultPayloadSelect = { clientMutationId?: boolean; - orgPermissionDefault?: { - select: OrgPermissionDefaultSelect; + appPermissionDefault?: { + select: AppPermissionDefaultSelect; }; - orgPermissionDefaultEdge?: { - select: OrgPermissionDefaultEdgeSelect; + appPermissionDefaultEdge?: { + select: AppPermissionDefaultEdgeSelect; }; }; -export interface CreatePhoneNumberPayload { +export interface CreateRoleTypePayload { clientMutationId?: string | null; - /** The `PhoneNumber` that was created by this mutation. */ - phoneNumber?: PhoneNumber | null; - phoneNumberEdge?: PhoneNumberEdge | null; + /** The `RoleType` that was created by this mutation. */ + roleType?: RoleType | null; + roleTypeEdge?: RoleTypeEdge | null; } -export type CreatePhoneNumberPayloadSelect = { +export type CreateRoleTypePayloadSelect = { clientMutationId?: boolean; - phoneNumber?: { - select: PhoneNumberSelect; + roleType?: { + select: RoleTypeSelect; }; - phoneNumberEdge?: { - select: PhoneNumberEdgeSelect; + roleTypeEdge?: { + select: RoleTypeEdgeSelect; }; }; -export interface UpdatePhoneNumberPayload { +export interface UpdateRoleTypePayload { clientMutationId?: string | null; - /** The `PhoneNumber` that was updated by this mutation. */ - phoneNumber?: PhoneNumber | null; - phoneNumberEdge?: PhoneNumberEdge | null; + /** The `RoleType` that was updated by this mutation. */ + roleType?: RoleType | null; + roleTypeEdge?: RoleTypeEdge | null; } -export type UpdatePhoneNumberPayloadSelect = { +export type UpdateRoleTypePayloadSelect = { clientMutationId?: boolean; - phoneNumber?: { - select: PhoneNumberSelect; + roleType?: { + select: RoleTypeSelect; }; - phoneNumberEdge?: { - select: PhoneNumberEdgeSelect; + roleTypeEdge?: { + select: RoleTypeEdgeSelect; }; }; -export interface DeletePhoneNumberPayload { +export interface DeleteRoleTypePayload { clientMutationId?: string | null; - /** The `PhoneNumber` that was deleted by this mutation. */ - phoneNumber?: PhoneNumber | null; - phoneNumberEdge?: PhoneNumberEdge | null; + /** The `RoleType` that was deleted by this mutation. */ + roleType?: RoleType | null; + roleTypeEdge?: RoleTypeEdge | null; } -export type DeletePhoneNumberPayloadSelect = { +export type DeleteRoleTypePayloadSelect = { clientMutationId?: boolean; - phoneNumber?: { - select: PhoneNumberSelect; + roleType?: { + select: RoleTypeSelect; }; - phoneNumberEdge?: { - select: PhoneNumberEdgeSelect; + roleTypeEdge?: { + select: RoleTypeEdgeSelect; }; }; export interface CreateAppLimitDefaultPayload { @@ -18974,51 +16991,6 @@ export type DeleteOrgLimitDefaultPayloadSelect = { select: OrgLimitDefaultEdgeSelect; }; }; -export interface CreateConnectedAccountPayload { - clientMutationId?: string | null; - /** The `ConnectedAccount` that was created by this mutation. */ - connectedAccount?: ConnectedAccount | null; - connectedAccountEdge?: ConnectedAccountEdge | null; -} -export type CreateConnectedAccountPayloadSelect = { - clientMutationId?: boolean; - connectedAccount?: { - select: ConnectedAccountSelect; - }; - connectedAccountEdge?: { - select: ConnectedAccountEdgeSelect; - }; -}; -export interface UpdateConnectedAccountPayload { - clientMutationId?: string | null; - /** The `ConnectedAccount` that was updated by this mutation. */ - connectedAccount?: ConnectedAccount | null; - connectedAccountEdge?: ConnectedAccountEdge | null; -} -export type UpdateConnectedAccountPayloadSelect = { - clientMutationId?: boolean; - connectedAccount?: { - select: ConnectedAccountSelect; - }; - connectedAccountEdge?: { - select: ConnectedAccountEdgeSelect; - }; -}; -export interface DeleteConnectedAccountPayload { - clientMutationId?: string | null; - /** The `ConnectedAccount` that was deleted by this mutation. */ - connectedAccount?: ConnectedAccount | null; - connectedAccountEdge?: ConnectedAccountEdge | null; -} -export type DeleteConnectedAccountPayloadSelect = { - clientMutationId?: boolean; - connectedAccount?: { - select: ConnectedAccountSelect; - }; - connectedAccountEdge?: { - select: ConnectedAccountEdgeSelect; - }; -}; export interface CreateNodeTypeRegistryPayload { clientMutationId?: string | null; /** The `NodeTypeRegistry` that was created by this mutation. */ @@ -19270,169 +17242,34 @@ export type UpdateOrgMembershipDefaultPayloadSelect = { orgMembershipDefault?: { select: OrgMembershipDefaultSelect; }; - orgMembershipDefaultEdge?: { - select: OrgMembershipDefaultEdgeSelect; - }; -}; -export interface DeleteOrgMembershipDefaultPayload { - clientMutationId?: string | null; - /** The `OrgMembershipDefault` that was deleted by this mutation. */ - orgMembershipDefault?: OrgMembershipDefault | null; - orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; -} -export type DeleteOrgMembershipDefaultPayloadSelect = { - clientMutationId?: boolean; - orgMembershipDefault?: { - select: OrgMembershipDefaultSelect; - }; - orgMembershipDefaultEdge?: { - select: OrgMembershipDefaultEdgeSelect; - }; -}; -export interface CreateAuditLogPayload { - clientMutationId?: string | null; - /** The `AuditLog` that was created by this mutation. */ - auditLog?: AuditLog | null; - auditLogEdge?: AuditLogEdge | null; -} -export type CreateAuditLogPayloadSelect = { - clientMutationId?: boolean; - auditLog?: { - select: AuditLogSelect; - }; - auditLogEdge?: { - select: AuditLogEdgeSelect; - }; -}; -export interface UpdateAuditLogPayload { - clientMutationId?: string | null; - /** The `AuditLog` that was updated by this mutation. */ - auditLog?: AuditLog | null; - auditLogEdge?: AuditLogEdge | null; -} -export type UpdateAuditLogPayloadSelect = { - clientMutationId?: boolean; - auditLog?: { - select: AuditLogSelect; - }; - auditLogEdge?: { - select: AuditLogEdgeSelect; - }; -}; -export interface DeleteAuditLogPayload { - clientMutationId?: string | null; - /** The `AuditLog` that was deleted by this mutation. */ - auditLog?: AuditLog | null; - auditLogEdge?: AuditLogEdge | null; -} -export type DeleteAuditLogPayloadSelect = { - clientMutationId?: boolean; - auditLog?: { - select: AuditLogSelect; - }; - auditLogEdge?: { - select: AuditLogEdgeSelect; - }; -}; -export interface CreateAppLevelPayload { - clientMutationId?: string | null; - /** The `AppLevel` that was created by this mutation. */ - appLevel?: AppLevel | null; - appLevelEdge?: AppLevelEdge | null; -} -export type CreateAppLevelPayloadSelect = { - clientMutationId?: boolean; - appLevel?: { - select: AppLevelSelect; - }; - appLevelEdge?: { - select: AppLevelEdgeSelect; - }; -}; -export interface UpdateAppLevelPayload { - clientMutationId?: string | null; - /** The `AppLevel` that was updated by this mutation. */ - appLevel?: AppLevel | null; - appLevelEdge?: AppLevelEdge | null; -} -export type UpdateAppLevelPayloadSelect = { - clientMutationId?: boolean; - appLevel?: { - select: AppLevelSelect; - }; - appLevelEdge?: { - select: AppLevelEdgeSelect; - }; -}; -export interface DeleteAppLevelPayload { - clientMutationId?: string | null; - /** The `AppLevel` that was deleted by this mutation. */ - appLevel?: AppLevel | null; - appLevelEdge?: AppLevelEdge | null; -} -export type DeleteAppLevelPayloadSelect = { - clientMutationId?: boolean; - appLevel?: { - select: AppLevelSelect; - }; - appLevelEdge?: { - select: AppLevelEdgeSelect; - }; -}; -export interface CreateSqlMigrationPayload { - clientMutationId?: string | null; - /** The `SqlMigration` that was created by this mutation. */ - sqlMigration?: SqlMigration | null; -} -export type CreateSqlMigrationPayloadSelect = { - clientMutationId?: boolean; - sqlMigration?: { - select: SqlMigrationSelect; - }; -}; -export interface CreateEmailPayload { - clientMutationId?: string | null; - /** The `Email` that was created by this mutation. */ - email?: Email | null; - emailEdge?: EmailEdge | null; -} -export type CreateEmailPayloadSelect = { - clientMutationId?: boolean; - email?: { - select: EmailSelect; - }; - emailEdge?: { - select: EmailEdgeSelect; + orgMembershipDefaultEdge?: { + select: OrgMembershipDefaultEdgeSelect; }; }; -export interface UpdateEmailPayload { +export interface DeleteOrgMembershipDefaultPayload { clientMutationId?: string | null; - /** The `Email` that was updated by this mutation. */ - email?: Email | null; - emailEdge?: EmailEdge | null; + /** The `OrgMembershipDefault` that was deleted by this mutation. */ + orgMembershipDefault?: OrgMembershipDefault | null; + orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; } -export type UpdateEmailPayloadSelect = { +export type DeleteOrgMembershipDefaultPayloadSelect = { clientMutationId?: boolean; - email?: { - select: EmailSelect; + orgMembershipDefault?: { + select: OrgMembershipDefaultSelect; }; - emailEdge?: { - select: EmailEdgeSelect; + orgMembershipDefaultEdge?: { + select: OrgMembershipDefaultEdgeSelect; }; }; -export interface DeleteEmailPayload { +export interface CreateSqlMigrationPayload { clientMutationId?: string | null; - /** The `Email` that was deleted by this mutation. */ - email?: Email | null; - emailEdge?: EmailEdge | null; + /** The `SqlMigration` that was created by this mutation. */ + sqlMigration?: SqlMigration | null; } -export type DeleteEmailPayloadSelect = { +export type CreateSqlMigrationPayloadSelect = { clientMutationId?: boolean; - email?: { - select: EmailSelect; - }; - emailEdge?: { - select: EmailEdgeSelect; + sqlMigration?: { + select: SqlMigrationSelect; }; }; export interface CreateUserPayload { @@ -19646,6 +17483,14 @@ export type AppLevelRequirementEdgeSelect = { select: AppLevelRequirementSelect; }; }; +export interface ProvisionDatabaseWithUserRecord { + outDatabaseId?: string | null; + outApiKey?: string | null; +} +export type ProvisionDatabaseWithUserRecordSelect = { + outDatabaseId?: boolean; + outApiKey?: boolean; +}; export interface BootstrapUserRecord { outUserId?: string | null; outEmail?: string | null; @@ -19655,16 +17500,6 @@ export interface BootstrapUserRecord { outIsOwner?: boolean | null; outIsSudo?: boolean | null; outApiKey?: string | null; - /** TRGM similarity when searching `outEmail`. Returns null when no trgm search filter is active. */ - outEmailTrgmSimilarity?: number | null; - /** TRGM similarity when searching `outUsername`. Returns null when no trgm search filter is active. */ - outUsernameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `outDisplayName`. Returns null when no trgm search filter is active. */ - outDisplayNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `outApiKey`. Returns null when no trgm search filter is active. */ - outApiKeyTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export type BootstrapUserRecordSelect = { outUserId?: boolean; @@ -19675,25 +17510,6 @@ export type BootstrapUserRecordSelect = { outIsOwner?: boolean; outIsSudo?: boolean; outApiKey?: boolean; - outEmailTrgmSimilarity?: boolean; - outUsernameTrgmSimilarity?: boolean; - outDisplayNameTrgmSimilarity?: boolean; - outApiKeyTrgmSimilarity?: boolean; - searchScore?: boolean; -}; -export interface ProvisionDatabaseWithUserRecord { - outDatabaseId?: string | null; - outApiKey?: string | null; - /** TRGM similarity when searching `outApiKey`. Returns null when no trgm search filter is active. */ - outApiKeyTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; -} -export type ProvisionDatabaseWithUserRecordSelect = { - outDatabaseId?: boolean; - outApiKey?: boolean; - outApiKeyTrgmSimilarity?: boolean; - searchScore?: boolean; }; export interface SignInOneTimeTokenRecord { id?: string | null; @@ -19702,10 +17518,6 @@ export interface SignInOneTimeTokenRecord { accessTokenExpiresAt?: string | null; isVerified?: boolean | null; totpEnabled?: boolean | null; - /** TRGM similarity when searching `accessToken`. Returns null when no trgm search filter is active. */ - accessTokenTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export type SignInOneTimeTokenRecordSelect = { id?: boolean; @@ -19714,8 +17526,6 @@ export type SignInOneTimeTokenRecordSelect = { accessTokenExpiresAt?: boolean; isVerified?: boolean; totpEnabled?: boolean; - accessTokenTrgmSimilarity?: boolean; - searchScore?: boolean; }; export interface ExtendTokenExpiresRecord { id?: string | null; @@ -19734,10 +17544,6 @@ export interface SignInRecord { accessTokenExpiresAt?: string | null; isVerified?: boolean | null; totpEnabled?: boolean | null; - /** TRGM similarity when searching `accessToken`. Returns null when no trgm search filter is active. */ - accessTokenTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export type SignInRecordSelect = { id?: boolean; @@ -19746,8 +17552,6 @@ export type SignInRecordSelect = { accessTokenExpiresAt?: boolean; isVerified?: boolean; totpEnabled?: boolean; - accessTokenTrgmSimilarity?: boolean; - searchScore?: boolean; }; export interface SignUpRecord { id?: string | null; @@ -19756,10 +17560,6 @@ export interface SignUpRecord { accessTokenExpiresAt?: string | null; isVerified?: boolean | null; totpEnabled?: boolean | null; - /** TRGM similarity when searching `accessToken`. Returns null when no trgm search filter is active. */ - accessTokenTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export type SignUpRecordSelect = { id?: boolean; @@ -19768,8 +17568,6 @@ export type SignUpRecordSelect = { accessTokenExpiresAt?: boolean; isVerified?: boolean; totpEnabled?: boolean; - accessTokenTrgmSimilarity?: boolean; - searchScore?: boolean; }; /** Tracks user authentication sessions with expiration, fingerprinting, and step-up verification state */ export interface Session { @@ -19798,14 +17596,6 @@ export interface Session { csrfSecret?: string | null; createdAt?: string | null; updatedAt?: string | null; - /** TRGM similarity when searching `uagent`. Returns null when no trgm search filter is active. */ - uagentTrgmSimilarity?: number | null; - /** TRGM similarity when searching `fingerprintMode`. Returns null when no trgm search filter is active. */ - fingerprintModeTrgmSimilarity?: number | null; - /** TRGM similarity when searching `csrfSecret`. Returns null when no trgm search filter is active. */ - csrfSecretTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export type SessionSelect = { id?: boolean; @@ -19822,10 +17612,6 @@ export type SessionSelect = { csrfSecret?: boolean; createdAt?: boolean; updatedAt?: boolean; - uagentTrgmSimilarity?: boolean; - fingerprintModeTrgmSimilarity?: boolean; - csrfSecretTrgmSimilarity?: boolean; - searchScore?: boolean; }; /** A `Database` edge in the connection. */ export interface DatabaseEdge { @@ -20031,6 +17817,18 @@ export type ViewRuleEdgeSelect = { select: ViewRuleSelect; }; }; +/** A `EmbeddingChunk` edge in the connection. */ +export interface EmbeddingChunkEdge { + cursor?: string | null; + /** The `EmbeddingChunk` at the end of the edge. */ + node?: EmbeddingChunk | null; +} +export type EmbeddingChunkEdgeSelect = { + cursor?: boolean; + node?: { + select: EmbeddingChunkSelect; + }; +}; /** A `TableTemplateModule` edge in the connection. */ export interface TableTemplateModuleEdge { cursor?: string | null; @@ -20091,6 +17889,18 @@ export type DefaultPrivilegeEdgeSelect = { select: DefaultPrivilegeSelect; }; }; +/** A `Enum` edge in the connection. */ +export interface EnumEdge { + cursor?: string | null; + /** The `Enum` at the end of the edge. */ + node?: Enum | null; +} +export type EnumEdgeSelect = { + cursor?: boolean; + node?: { + select: EnumSelect; + }; +}; /** A `ApiSchema` edge in the connection. */ export interface ApiSchemaEdge { cursor?: string | null; @@ -20175,6 +17985,18 @@ export type TriggerFunctionEdgeSelect = { select: TriggerFunctionSelect; }; }; +/** A `DatabaseTransfer` edge in the connection. */ +export interface DatabaseTransferEdge { + cursor?: string | null; + /** The `DatabaseTransfer` at the end of the edge. */ + node?: DatabaseTransfer | null; +} +export type DatabaseTransferEdgeSelect = { + cursor?: boolean; + node?: { + select: DatabaseTransferSelect; + }; +}; /** A `Api` edge in the connection. */ export interface ApiEdge { cursor?: string | null; @@ -20451,16 +18273,28 @@ export type UsersModuleEdgeSelect = { select: UsersModuleSelect; }; }; -/** A `UuidModule` edge in the connection. */ -export interface UuidModuleEdge { +/** A `Blueprint` edge in the connection. */ +export interface BlueprintEdge { + cursor?: string | null; + /** The `Blueprint` at the end of the edge. */ + node?: Blueprint | null; +} +export type BlueprintEdgeSelect = { + cursor?: boolean; + node?: { + select: BlueprintSelect; + }; +}; +/** A `BlueprintTemplate` edge in the connection. */ +export interface BlueprintTemplateEdge { cursor?: string | null; - /** The `UuidModule` at the end of the edge. */ - node?: UuidModule | null; + /** The `BlueprintTemplate` at the end of the edge. */ + node?: BlueprintTemplate | null; } -export type UuidModuleEdgeSelect = { +export type BlueprintTemplateEdgeSelect = { cursor?: boolean; node?: { - select: UuidModuleSelect; + select: BlueprintTemplateSelect; }; }; /** A `DatabaseProvisionModule` edge in the connection. */ @@ -20595,6 +18429,18 @@ export type OrgChartEdgeGrantEdgeSelect = { select: OrgChartEdgeGrantSelect; }; }; +/** A `OrgPermissionDefault` edge in the connection. */ +export interface OrgPermissionDefaultEdge { + cursor?: string | null; + /** The `OrgPermissionDefault` at the end of the edge. */ + node?: OrgPermissionDefault | null; +} +export type OrgPermissionDefaultEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgPermissionDefaultSelect; + }; +}; /** A `AppLimit` edge in the connection. */ export interface AppLimitEdge { cursor?: string | null; @@ -20643,6 +18489,66 @@ export type AppAchievementEdgeSelect = { select: AppAchievementSelect; }; }; +/** A `AppLevel` edge in the connection. */ +export interface AppLevelEdge { + cursor?: string | null; + /** The `AppLevel` at the end of the edge. */ + node?: AppLevel | null; +} +export type AppLevelEdgeSelect = { + cursor?: boolean; + node?: { + select: AppLevelSelect; + }; +}; +/** A `Email` edge in the connection. */ +export interface EmailEdge { + cursor?: string | null; + /** The `Email` at the end of the edge. */ + node?: Email | null; +} +export type EmailEdgeSelect = { + cursor?: boolean; + node?: { + select: EmailSelect; + }; +}; +/** A `PhoneNumber` edge in the connection. */ +export interface PhoneNumberEdge { + cursor?: string | null; + /** The `PhoneNumber` at the end of the edge. */ + node?: PhoneNumber | null; +} +export type PhoneNumberEdgeSelect = { + cursor?: boolean; + node?: { + select: PhoneNumberSelect; + }; +}; +/** A `CryptoAddress` edge in the connection. */ +export interface CryptoAddressEdge { + cursor?: string | null; + /** The `CryptoAddress` at the end of the edge. */ + node?: CryptoAddress | null; +} +export type CryptoAddressEdgeSelect = { + cursor?: boolean; + node?: { + select: CryptoAddressSelect; + }; +}; +/** A `ConnectedAccount` edge in the connection. */ +export interface ConnectedAccountEdge { + cursor?: string | null; + /** The `ConnectedAccount` at the end of the edge. */ + node?: ConnectedAccount | null; +} +export type ConnectedAccountEdgeSelect = { + cursor?: boolean; + node?: { + select: ConnectedAccountSelect; + }; +}; /** A `Invite` edge in the connection. */ export interface InviteEdge { cursor?: string | null; @@ -20691,6 +18597,18 @@ export type OrgClaimedInviteEdgeSelect = { select: OrgClaimedInviteSelect; }; }; +/** A `AuditLog` edge in the connection. */ +export interface AuditLogEdge { + cursor?: string | null; + /** The `AuditLog` at the end of the edge. */ + node?: AuditLog | null; +} +export type AuditLogEdgeSelect = { + cursor?: boolean; + node?: { + select: AuditLogSelect; + }; +}; /** A `Ref` edge in the connection. */ export interface RefEdge { cursor?: string | null; @@ -20727,18 +18645,6 @@ export type AppPermissionDefaultEdgeSelect = { select: AppPermissionDefaultSelect; }; }; -/** A `CryptoAddress` edge in the connection. */ -export interface CryptoAddressEdge { - cursor?: string | null; - /** The `CryptoAddress` at the end of the edge. */ - node?: CryptoAddress | null; -} -export type CryptoAddressEdgeSelect = { - cursor?: boolean; - node?: { - select: CryptoAddressSelect; - }; -}; /** A `RoleType` edge in the connection. */ export interface RoleTypeEdge { cursor?: string | null; @@ -20751,30 +18657,6 @@ export type RoleTypeEdgeSelect = { select: RoleTypeSelect; }; }; -/** A `OrgPermissionDefault` edge in the connection. */ -export interface OrgPermissionDefaultEdge { - cursor?: string | null; - /** The `OrgPermissionDefault` at the end of the edge. */ - node?: OrgPermissionDefault | null; -} -export type OrgPermissionDefaultEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgPermissionDefaultSelect; - }; -}; -/** A `PhoneNumber` edge in the connection. */ -export interface PhoneNumberEdge { - cursor?: string | null; - /** The `PhoneNumber` at the end of the edge. */ - node?: PhoneNumber | null; -} -export type PhoneNumberEdgeSelect = { - cursor?: boolean; - node?: { - select: PhoneNumberSelect; - }; -}; /** A `AppLimitDefault` edge in the connection. */ export interface AppLimitDefaultEdge { cursor?: string | null; @@ -20799,18 +18681,6 @@ export type OrgLimitDefaultEdgeSelect = { select: OrgLimitDefaultSelect; }; }; -/** A `ConnectedAccount` edge in the connection. */ -export interface ConnectedAccountEdge { - cursor?: string | null; - /** The `ConnectedAccount` at the end of the edge. */ - node?: ConnectedAccount | null; -} -export type ConnectedAccountEdgeSelect = { - cursor?: boolean; - node?: { - select: ConnectedAccountSelect; - }; -}; /** A `NodeTypeRegistry` edge in the connection. */ export interface NodeTypeRegistryEdge { cursor?: string | null; @@ -20883,42 +18753,6 @@ export type OrgMembershipDefaultEdgeSelect = { select: OrgMembershipDefaultSelect; }; }; -/** A `AuditLog` edge in the connection. */ -export interface AuditLogEdge { - cursor?: string | null; - /** The `AuditLog` at the end of the edge. */ - node?: AuditLog | null; -} -export type AuditLogEdgeSelect = { - cursor?: boolean; - node?: { - select: AuditLogSelect; - }; -}; -/** A `AppLevel` edge in the connection. */ -export interface AppLevelEdge { - cursor?: string | null; - /** The `AppLevel` at the end of the edge. */ - node?: AppLevel | null; -} -export type AppLevelEdgeSelect = { - cursor?: boolean; - node?: { - select: AppLevelSelect; - }; -}; -/** A `Email` edge in the connection. */ -export interface EmailEdge { - cursor?: string | null; - /** The `Email` at the end of the edge. */ - node?: Email | null; -} -export type EmailEdgeSelect = { - cursor?: boolean; - node?: { - select: EmailSelect; - }; -}; /** A `User` edge in the connection. */ export interface UserEdge { cursor?: string | null; diff --git a/sdk/constructive-react/src/public/orm/models/uuidModule.ts b/sdk/constructive-cli/src/public/orm/models/blueprint.ts similarity index 55% rename from sdk/constructive-react/src/public/orm/models/uuidModule.ts rename to sdk/constructive-cli/src/public/orm/models/blueprint.ts index 9a95fd500..f7dd60157 100644 --- a/sdk/constructive-react/src/public/orm/models/uuidModule.ts +++ b/sdk/constructive-cli/src/public/orm/models/blueprint.ts @@ -1,5 +1,5 @@ /** - * UuidModule model for ORM client + * Blueprint model for ORM client * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -24,28 +24,28 @@ import type { StrictSelect, } from '../select-types'; import type { - UuidModule, - UuidModuleWithRelations, - UuidModuleSelect, - UuidModuleFilter, - UuidModuleOrderBy, - CreateUuidModuleInput, - UpdateUuidModuleInput, - UuidModulePatch, + Blueprint, + BlueprintWithRelations, + BlueprintSelect, + BlueprintFilter, + BlueprintOrderBy, + CreateBlueprintInput, + UpdateBlueprintInput, + BlueprintPatch, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; -export class UuidModuleModel { +export class BlueprintModel { constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { + findMany( + args: FindManyArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - uuidModules: ConnectionResult>; + blueprints: ConnectionResult>; }> { const { document, variables } = buildFindManyDocument( - 'UuidModule', - 'uuidModules', + 'Blueprint', + 'blueprints', args.select, { where: args?.where, @@ -56,58 +56,58 @@ export class UuidModuleModel { before: args?.before, offset: args?.offset, }, - 'UuidModuleFilter', - 'UuidModuleOrderBy', + 'BlueprintFilter', + 'BlueprintOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'UuidModule', - fieldName: 'uuidModules', + operationName: 'Blueprint', + fieldName: 'blueprints', document, variables, }); } - findFirst( - args: FindFirstArgs & { + findFirst( + args: FindFirstArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - uuidModules: { - nodes: InferSelectResult[]; + blueprints: { + nodes: InferSelectResult[]; }; }> { const { document, variables } = buildFindFirstDocument( - 'UuidModule', - 'uuidModules', + 'Blueprint', + 'blueprints', args.select, { where: args?.where, }, - 'UuidModuleFilter', + 'BlueprintFilter', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'UuidModule', - fieldName: 'uuidModules', + operationName: 'Blueprint', + fieldName: 'blueprints', document, variables, }); } - findOne( + findOne( args: { id: string; select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - uuidModule: InferSelectResult | null; + blueprint: InferSelectResult | null; }> { const { document, variables } = buildFindManyDocument( - 'UuidModule', - 'uuidModules', + 'Blueprint', + 'blueprints', args.select, { where: { @@ -117,90 +117,90 @@ export class UuidModuleModel { }, first: 1, }, - 'UuidModuleFilter', - 'UuidModuleOrderBy', + 'BlueprintFilter', + 'BlueprintOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'UuidModule', - fieldName: 'uuidModule', + operationName: 'Blueprint', + fieldName: 'blueprint', document, variables, transform: (data: { - uuidModules?: { - nodes?: InferSelectResult[]; + blueprints?: { + nodes?: InferSelectResult[]; }; }) => ({ - uuidModule: data.uuidModules?.nodes?.[0] ?? null, + blueprint: data.blueprints?.nodes?.[0] ?? null, }), }); } - create( - args: CreateArgs & { + create( + args: CreateArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - createUuidModule: { - uuidModule: InferSelectResult; + createBlueprint: { + blueprint: InferSelectResult; }; }> { const { document, variables } = buildCreateDocument( - 'UuidModule', - 'createUuidModule', - 'uuidModule', + 'Blueprint', + 'createBlueprint', + 'blueprint', args.select, args.data, - 'CreateUuidModuleInput', + 'CreateBlueprintInput', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'UuidModule', - fieldName: 'createUuidModule', + operationName: 'Blueprint', + fieldName: 'createBlueprint', document, variables, }); } - update( + update( args: UpdateArgs< S, { id: string; }, - UuidModulePatch + BlueprintPatch > & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - updateUuidModule: { - uuidModule: InferSelectResult; + updateBlueprint: { + blueprint: InferSelectResult; }; }> { const { document, variables } = buildUpdateByPkDocument( - 'UuidModule', - 'updateUuidModule', - 'uuidModule', + 'Blueprint', + 'updateBlueprint', + 'blueprint', args.select, args.where.id, args.data, - 'UpdateUuidModuleInput', + 'UpdateBlueprintInput', 'id', - 'uuidModulePatch', + 'blueprintPatch', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'UuidModule', - fieldName: 'updateUuidModule', + operationName: 'Blueprint', + fieldName: 'updateBlueprint', document, variables, }); } - delete( + delete( args: DeleteArgs< { id: string; @@ -208,18 +208,18 @@ export class UuidModuleModel { S > & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - deleteUuidModule: { - uuidModule: InferSelectResult; + deleteBlueprint: { + blueprint: InferSelectResult; }; }> { const { document, variables } = buildDeleteByPkDocument( - 'UuidModule', - 'deleteUuidModule', - 'uuidModule', + 'Blueprint', + 'deleteBlueprint', + 'blueprint', args.where.id, - 'DeleteUuidModuleInput', + 'DeleteBlueprintInput', 'id', args.select, connectionFieldsMap @@ -227,8 +227,8 @@ export class UuidModuleModel { return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'UuidModule', - fieldName: 'deleteUuidModule', + operationName: 'Blueprint', + fieldName: 'deleteBlueprint', document, variables, }); diff --git a/sdk/constructive-cli/src/public/orm/models/blueprintTemplate.ts b/sdk/constructive-cli/src/public/orm/models/blueprintTemplate.ts new file mode 100644 index 000000000..b5bc3dbef --- /dev/null +++ b/sdk/constructive-cli/src/public/orm/models/blueprintTemplate.ts @@ -0,0 +1,236 @@ +/** + * BlueprintTemplate model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + BlueprintTemplate, + BlueprintTemplateWithRelations, + BlueprintTemplateSelect, + BlueprintTemplateFilter, + BlueprintTemplateOrderBy, + CreateBlueprintTemplateInput, + UpdateBlueprintTemplateInput, + BlueprintTemplatePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class BlueprintTemplateModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + blueprintTemplates: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'BlueprintTemplate', + 'blueprintTemplates', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'BlueprintTemplateFilter', + 'BlueprintTemplateOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'BlueprintTemplate', + fieldName: 'blueprintTemplates', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + blueprintTemplates: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'BlueprintTemplate', + 'blueprintTemplates', + args.select, + { + where: args?.where, + }, + 'BlueprintTemplateFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'BlueprintTemplate', + fieldName: 'blueprintTemplates', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + blueprintTemplate: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'BlueprintTemplate', + 'blueprintTemplates', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'BlueprintTemplateFilter', + 'BlueprintTemplateOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'BlueprintTemplate', + fieldName: 'blueprintTemplate', + document, + variables, + transform: (data: { + blueprintTemplates?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + blueprintTemplate: data.blueprintTemplates?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createBlueprintTemplate: { + blueprintTemplate: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'BlueprintTemplate', + 'createBlueprintTemplate', + 'blueprintTemplate', + args.select, + args.data, + 'CreateBlueprintTemplateInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'BlueprintTemplate', + fieldName: 'createBlueprintTemplate', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + BlueprintTemplatePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateBlueprintTemplate: { + blueprintTemplate: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'BlueprintTemplate', + 'updateBlueprintTemplate', + 'blueprintTemplate', + args.select, + args.where.id, + args.data, + 'UpdateBlueprintTemplateInput', + 'id', + 'blueprintTemplatePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'BlueprintTemplate', + fieldName: 'updateBlueprintTemplate', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteBlueprintTemplate: { + blueprintTemplate: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'BlueprintTemplate', + 'deleteBlueprintTemplate', + 'blueprintTemplate', + args.where.id, + 'DeleteBlueprintTemplateInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'BlueprintTemplate', + fieldName: 'deleteBlueprintTemplate', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/public/orm/models/databaseTransfer.ts b/sdk/constructive-cli/src/public/orm/models/databaseTransfer.ts new file mode 100644 index 000000000..c90f3963f --- /dev/null +++ b/sdk/constructive-cli/src/public/orm/models/databaseTransfer.ts @@ -0,0 +1,236 @@ +/** + * DatabaseTransfer model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + DatabaseTransfer, + DatabaseTransferWithRelations, + DatabaseTransferSelect, + DatabaseTransferFilter, + DatabaseTransferOrderBy, + CreateDatabaseTransferInput, + UpdateDatabaseTransferInput, + DatabaseTransferPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class DatabaseTransferModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + databaseTransfers: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'DatabaseTransfer', + 'databaseTransfers', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'DatabaseTransferFilter', + 'DatabaseTransferOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DatabaseTransfer', + fieldName: 'databaseTransfers', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + databaseTransfers: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'DatabaseTransfer', + 'databaseTransfers', + args.select, + { + where: args?.where, + }, + 'DatabaseTransferFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DatabaseTransfer', + fieldName: 'databaseTransfers', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + databaseTransfer: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'DatabaseTransfer', + 'databaseTransfers', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'DatabaseTransferFilter', + 'DatabaseTransferOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DatabaseTransfer', + fieldName: 'databaseTransfer', + document, + variables, + transform: (data: { + databaseTransfers?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + databaseTransfer: data.databaseTransfers?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createDatabaseTransfer: { + databaseTransfer: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'DatabaseTransfer', + 'createDatabaseTransfer', + 'databaseTransfer', + args.select, + args.data, + 'CreateDatabaseTransferInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DatabaseTransfer', + fieldName: 'createDatabaseTransfer', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + DatabaseTransferPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateDatabaseTransfer: { + databaseTransfer: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'DatabaseTransfer', + 'updateDatabaseTransfer', + 'databaseTransfer', + args.select, + args.where.id, + args.data, + 'UpdateDatabaseTransferInput', + 'id', + 'databaseTransferPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DatabaseTransfer', + fieldName: 'updateDatabaseTransfer', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteDatabaseTransfer: { + databaseTransfer: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'DatabaseTransfer', + 'deleteDatabaseTransfer', + 'databaseTransfer', + args.where.id, + 'DeleteDatabaseTransferInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DatabaseTransfer', + fieldName: 'deleteDatabaseTransfer', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/public/orm/models/embeddingChunk.ts b/sdk/constructive-cli/src/public/orm/models/embeddingChunk.ts new file mode 100644 index 000000000..6f0be845c --- /dev/null +++ b/sdk/constructive-cli/src/public/orm/models/embeddingChunk.ts @@ -0,0 +1,236 @@ +/** + * EmbeddingChunk model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + EmbeddingChunk, + EmbeddingChunkWithRelations, + EmbeddingChunkSelect, + EmbeddingChunkFilter, + EmbeddingChunkOrderBy, + CreateEmbeddingChunkInput, + UpdateEmbeddingChunkInput, + EmbeddingChunkPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class EmbeddingChunkModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + embeddingChunks: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'EmbeddingChunk', + 'embeddingChunks', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'EmbeddingChunkFilter', + 'EmbeddingChunkOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'EmbeddingChunk', + fieldName: 'embeddingChunks', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + embeddingChunks: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'EmbeddingChunk', + 'embeddingChunks', + args.select, + { + where: args?.where, + }, + 'EmbeddingChunkFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'EmbeddingChunk', + fieldName: 'embeddingChunks', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + embeddingChunk: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'EmbeddingChunk', + 'embeddingChunks', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'EmbeddingChunkFilter', + 'EmbeddingChunkOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'EmbeddingChunk', + fieldName: 'embeddingChunk', + document, + variables, + transform: (data: { + embeddingChunks?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + embeddingChunk: data.embeddingChunks?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createEmbeddingChunk: { + embeddingChunk: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'EmbeddingChunk', + 'createEmbeddingChunk', + 'embeddingChunk', + args.select, + args.data, + 'CreateEmbeddingChunkInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'EmbeddingChunk', + fieldName: 'createEmbeddingChunk', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + EmbeddingChunkPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateEmbeddingChunk: { + embeddingChunk: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'EmbeddingChunk', + 'updateEmbeddingChunk', + 'embeddingChunk', + args.select, + args.where.id, + args.data, + 'UpdateEmbeddingChunkInput', + 'id', + 'embeddingChunkPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'EmbeddingChunk', + fieldName: 'updateEmbeddingChunk', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteEmbeddingChunk: { + embeddingChunk: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'EmbeddingChunk', + 'deleteEmbeddingChunk', + 'embeddingChunk', + args.where.id, + 'DeleteEmbeddingChunkInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'EmbeddingChunk', + fieldName: 'deleteEmbeddingChunk', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/public/orm/models/uuidModule.ts b/sdk/constructive-cli/src/public/orm/models/enum.ts similarity index 55% rename from sdk/constructive-sdk/src/public/orm/models/uuidModule.ts rename to sdk/constructive-cli/src/public/orm/models/enum.ts index 9a95fd500..2efea885e 100644 --- a/sdk/constructive-sdk/src/public/orm/models/uuidModule.ts +++ b/sdk/constructive-cli/src/public/orm/models/enum.ts @@ -1,5 +1,5 @@ /** - * UuidModule model for ORM client + * Enum model for ORM client * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -24,28 +24,28 @@ import type { StrictSelect, } from '../select-types'; import type { - UuidModule, - UuidModuleWithRelations, - UuidModuleSelect, - UuidModuleFilter, - UuidModuleOrderBy, - CreateUuidModuleInput, - UpdateUuidModuleInput, - UuidModulePatch, + Enum, + EnumWithRelations, + EnumSelect, + EnumFilter, + EnumOrderBy, + CreateEnumInput, + UpdateEnumInput, + EnumPatch, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; -export class UuidModuleModel { +export class EnumModel { constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { + findMany( + args: FindManyArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - uuidModules: ConnectionResult>; + enums: ConnectionResult>; }> { const { document, variables } = buildFindManyDocument( - 'UuidModule', - 'uuidModules', + 'Enum', + 'enums', args.select, { where: args?.where, @@ -56,58 +56,58 @@ export class UuidModuleModel { before: args?.before, offset: args?.offset, }, - 'UuidModuleFilter', - 'UuidModuleOrderBy', + 'EnumFilter', + 'EnumOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'UuidModule', - fieldName: 'uuidModules', + operationName: 'Enum', + fieldName: 'enums', document, variables, }); } - findFirst( - args: FindFirstArgs & { + findFirst( + args: FindFirstArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - uuidModules: { - nodes: InferSelectResult[]; + enums: { + nodes: InferSelectResult[]; }; }> { const { document, variables } = buildFindFirstDocument( - 'UuidModule', - 'uuidModules', + 'Enum', + 'enums', args.select, { where: args?.where, }, - 'UuidModuleFilter', + 'EnumFilter', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'UuidModule', - fieldName: 'uuidModules', + operationName: 'Enum', + fieldName: 'enums', document, variables, }); } - findOne( + findOne( args: { id: string; select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - uuidModule: InferSelectResult | null; + enum: InferSelectResult | null; }> { const { document, variables } = buildFindManyDocument( - 'UuidModule', - 'uuidModules', + 'Enum', + 'enums', args.select, { where: { @@ -117,90 +117,90 @@ export class UuidModuleModel { }, first: 1, }, - 'UuidModuleFilter', - 'UuidModuleOrderBy', + 'EnumFilter', + 'EnumOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'UuidModule', - fieldName: 'uuidModule', + operationName: 'Enum', + fieldName: 'enum', document, variables, transform: (data: { - uuidModules?: { - nodes?: InferSelectResult[]; + enums?: { + nodes?: InferSelectResult[]; }; }) => ({ - uuidModule: data.uuidModules?.nodes?.[0] ?? null, + enum: data.enums?.nodes?.[0] ?? null, }), }); } - create( - args: CreateArgs & { + create( + args: CreateArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - createUuidModule: { - uuidModule: InferSelectResult; + createEnum: { + enum: InferSelectResult; }; }> { const { document, variables } = buildCreateDocument( - 'UuidModule', - 'createUuidModule', - 'uuidModule', + 'Enum', + 'createEnum', + 'enum', args.select, args.data, - 'CreateUuidModuleInput', + 'CreateEnumInput', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'UuidModule', - fieldName: 'createUuidModule', + operationName: 'Enum', + fieldName: 'createEnum', document, variables, }); } - update( + update( args: UpdateArgs< S, { id: string; }, - UuidModulePatch + EnumPatch > & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - updateUuidModule: { - uuidModule: InferSelectResult; + updateEnum: { + enum: InferSelectResult; }; }> { const { document, variables } = buildUpdateByPkDocument( - 'UuidModule', - 'updateUuidModule', - 'uuidModule', + 'Enum', + 'updateEnum', + 'enum', args.select, args.where.id, args.data, - 'UpdateUuidModuleInput', + 'UpdateEnumInput', 'id', - 'uuidModulePatch', + 'enumPatch', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'UuidModule', - fieldName: 'updateUuidModule', + operationName: 'Enum', + fieldName: 'updateEnum', document, variables, }); } - delete( + delete( args: DeleteArgs< { id: string; @@ -208,18 +208,18 @@ export class UuidModuleModel { S > & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - deleteUuidModule: { - uuidModule: InferSelectResult; + deleteEnum: { + enum: InferSelectResult; }; }> { const { document, variables } = buildDeleteByPkDocument( - 'UuidModule', - 'deleteUuidModule', - 'uuidModule', + 'Enum', + 'deleteEnum', + 'enum', args.where.id, - 'DeleteUuidModuleInput', + 'DeleteEnumInput', 'id', args.select, connectionFieldsMap @@ -227,8 +227,8 @@ export class UuidModuleModel { return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'UuidModule', - fieldName: 'deleteUuidModule', + operationName: 'Enum', + fieldName: 'deleteEnum', document, variables, }); diff --git a/sdk/constructive-cli/src/public/orm/models/index.ts b/sdk/constructive-cli/src/public/orm/models/index.ts index 292be6a26..d10e88acb 100644 --- a/sdk/constructive-cli/src/public/orm/models/index.ts +++ b/sdk/constructive-cli/src/public/orm/models/index.ts @@ -3,9 +3,9 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ +export { GetAllRecordModel } from './getAllRecord'; export { OrgGetManagersRecordModel } from './orgGetManagersRecord'; export { OrgGetSubordinatesRecordModel } from './orgGetSubordinatesRecord'; -export { GetAllRecordModel } from './getAllRecord'; export { ObjectModel } from './object'; export { AppPermissionModel } from './appPermission'; export { OrgPermissionModel } from './orgPermission'; @@ -27,11 +27,13 @@ export { ViewModel } from './view'; export { ViewTableModel } from './viewTable'; export { ViewGrantModel } from './viewGrant'; export { ViewRuleModel } from './viewRule'; +export { EmbeddingChunkModel } from './embeddingChunk'; export { TableTemplateModuleModel } from './tableTemplateModule'; export { SecureTableProvisionModel } from './secureTableProvision'; export { RelationProvisionModel } from './relationProvision'; export { SchemaGrantModel } from './schemaGrant'; export { DefaultPrivilegeModel } from './defaultPrivilege'; +export { EnumModel } from './enum'; export { ApiSchemaModel } from './apiSchema'; export { ApiModuleModel } from './apiModule'; export { DomainModel } from './domain'; @@ -39,6 +41,7 @@ export { SiteMetadatumModel } from './siteMetadatum'; export { SiteModuleModel } from './siteModule'; export { SiteThemeModel } from './siteTheme'; export { TriggerFunctionModel } from './triggerFunction'; +export { DatabaseTransferModel } from './databaseTransfer'; export { ApiModel } from './api'; export { SiteModel } from './site'; export { AppModel } from './app'; @@ -62,7 +65,8 @@ export { SecretsModuleModel } from './secretsModule'; export { SessionsModuleModel } from './sessionsModule'; export { UserAuthModuleModel } from './userAuthModule'; export { UsersModuleModel } from './usersModule'; -export { UuidModuleModel } from './uuidModule'; +export { BlueprintModel } from './blueprint'; +export { BlueprintTemplateModel } from './blueprintTemplate'; export { DatabaseProvisionModuleModel } from './databaseProvisionModule'; export { AppAdminGrantModel } from './appAdminGrant'; export { AppOwnerGrantModel } from './appOwnerGrant'; @@ -74,34 +78,34 @@ export { OrgOwnerGrantModel } from './orgOwnerGrant'; export { OrgGrantModel } from './orgGrant'; export { OrgChartEdgeModel } from './orgChartEdge'; export { OrgChartEdgeGrantModel } from './orgChartEdgeGrant'; +export { OrgPermissionDefaultModel } from './orgPermissionDefault'; export { AppLimitModel } from './appLimit'; export { OrgLimitModel } from './orgLimit'; export { AppStepModel } from './appStep'; export { AppAchievementModel } from './appAchievement'; +export { AppLevelModel } from './appLevel'; +export { EmailModel } from './email'; +export { PhoneNumberModel } from './phoneNumber'; +export { CryptoAddressModel } from './cryptoAddress'; +export { ConnectedAccountModel } from './connectedAccount'; export { InviteModel } from './invite'; export { ClaimedInviteModel } from './claimedInvite'; export { OrgInviteModel } from './orgInvite'; export { OrgClaimedInviteModel } from './orgClaimedInvite'; +export { AuditLogModel } from './auditLog'; export { RefModel } from './ref'; export { StoreModel } from './store'; export { AppPermissionDefaultModel } from './appPermissionDefault'; -export { CryptoAddressModel } from './cryptoAddress'; export { RoleTypeModel } from './roleType'; -export { OrgPermissionDefaultModel } from './orgPermissionDefault'; -export { PhoneNumberModel } from './phoneNumber'; export { AppLimitDefaultModel } from './appLimitDefault'; export { OrgLimitDefaultModel } from './orgLimitDefault'; -export { ConnectedAccountModel } from './connectedAccount'; export { NodeTypeRegistryModel } from './nodeTypeRegistry'; export { MembershipTypeModel } from './membershipType'; export { CommitModel } from './commit'; export { AppMembershipDefaultModel } from './appMembershipDefault'; export { RlsModuleModel } from './rlsModule'; export { OrgMembershipDefaultModel } from './orgMembershipDefault'; -export { AuditLogModel } from './auditLog'; -export { AppLevelModel } from './appLevel'; export { SqlMigrationModel } from './sqlMigration'; -export { EmailModel } from './email'; export { UserModel } from './user'; export { AstMigrationModel } from './astMigration'; export { AppMembershipModel } from './appMembership'; diff --git a/sdk/constructive-cli/src/public/orm/mutation/index.ts b/sdk/constructive-cli/src/public/orm/mutation/index.ts index e16b7ce43..12c82abdb 100644 --- a/sdk/constructive-cli/src/public/orm/mutation/index.ts +++ b/sdk/constructive-cli/src/public/orm/mutation/index.ts @@ -7,23 +7,28 @@ import { OrmClient } from '../client'; import { QueryBuilder, buildCustomDocument } from '../query-builder'; import type { InferSelectResult, StrictSelect } from '../select-types'; import type { - SignOutInput, SendAccountDeletionEmailInput, - CheckPasswordInput, + SignOutInput, + AcceptDatabaseTransferInput, + CancelDatabaseTransferInput, + RejectDatabaseTransferInput, SubmitInviteCodeInput, SubmitOrgInviteCodeInput, - FreezeObjectsInput, - InitEmptyRepoInput, + CheckPasswordInput, ConfirmDeleteAccountInput, SetPasswordInput, VerifyEmailInput, - RemoveNodeAtPathInput, + FreezeObjectsInput, + InitEmptyRepoInput, + ConstructBlueprintInput, ResetPasswordInput, - BootstrapUserInput, - SetFieldOrderInput, + RemoveNodeAtPathInput, SetDataAtPathInput, SetPropsAndCommitInput, + CopyTemplateToBlueprintInput, ProvisionDatabaseWithUserInput, + BootstrapUserInput, + SetFieldOrderInput, InsertNodeAtPathInput, UpdateNodeAtPathInput, SetAndCommitInput, @@ -34,27 +39,32 @@ import type { SignInInput, SignUpInput, OneTimeTokenInput, - ForgotPasswordInput, SendVerificationEmailInput, + ForgotPasswordInput, VerifyPasswordInput, VerifyTotpInput, - SignOutPayload, SendAccountDeletionEmailPayload, - CheckPasswordPayload, + SignOutPayload, + AcceptDatabaseTransferPayload, + CancelDatabaseTransferPayload, + RejectDatabaseTransferPayload, SubmitInviteCodePayload, SubmitOrgInviteCodePayload, - FreezeObjectsPayload, - InitEmptyRepoPayload, + CheckPasswordPayload, ConfirmDeleteAccountPayload, SetPasswordPayload, VerifyEmailPayload, - RemoveNodeAtPathPayload, + FreezeObjectsPayload, + InitEmptyRepoPayload, + ConstructBlueprintPayload, ResetPasswordPayload, - BootstrapUserPayload, - SetFieldOrderPayload, + RemoveNodeAtPathPayload, SetDataAtPathPayload, SetPropsAndCommitPayload, + CopyTemplateToBlueprintPayload, ProvisionDatabaseWithUserPayload, + BootstrapUserPayload, + SetFieldOrderPayload, InsertNodeAtPathPayload, UpdateNodeAtPathPayload, SetAndCommitPayload, @@ -65,27 +75,32 @@ import type { SignInPayload, SignUpPayload, OneTimeTokenPayload, - ForgotPasswordPayload, SendVerificationEmailPayload, + ForgotPasswordPayload, VerifyPasswordPayload, VerifyTotpPayload, - SignOutPayloadSelect, SendAccountDeletionEmailPayloadSelect, - CheckPasswordPayloadSelect, + SignOutPayloadSelect, + AcceptDatabaseTransferPayloadSelect, + CancelDatabaseTransferPayloadSelect, + RejectDatabaseTransferPayloadSelect, SubmitInviteCodePayloadSelect, SubmitOrgInviteCodePayloadSelect, - FreezeObjectsPayloadSelect, - InitEmptyRepoPayloadSelect, + CheckPasswordPayloadSelect, ConfirmDeleteAccountPayloadSelect, SetPasswordPayloadSelect, VerifyEmailPayloadSelect, - RemoveNodeAtPathPayloadSelect, + FreezeObjectsPayloadSelect, + InitEmptyRepoPayloadSelect, + ConstructBlueprintPayloadSelect, ResetPasswordPayloadSelect, - BootstrapUserPayloadSelect, - SetFieldOrderPayloadSelect, + RemoveNodeAtPathPayloadSelect, SetDataAtPathPayloadSelect, SetPropsAndCommitPayloadSelect, + CopyTemplateToBlueprintPayloadSelect, ProvisionDatabaseWithUserPayloadSelect, + BootstrapUserPayloadSelect, + SetFieldOrderPayloadSelect, InsertNodeAtPathPayloadSelect, UpdateNodeAtPathPayloadSelect, SetAndCommitPayloadSelect, @@ -96,20 +111,26 @@ import type { SignInPayloadSelect, SignUpPayloadSelect, OneTimeTokenPayloadSelect, - ForgotPasswordPayloadSelect, SendVerificationEmailPayloadSelect, + ForgotPasswordPayloadSelect, VerifyPasswordPayloadSelect, VerifyTotpPayloadSelect, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; +export interface SendAccountDeletionEmailVariables { + input: SendAccountDeletionEmailInput; +} export interface SignOutVariables { input: SignOutInput; } -export interface SendAccountDeletionEmailVariables { - input: SendAccountDeletionEmailInput; +export interface AcceptDatabaseTransferVariables { + input: AcceptDatabaseTransferInput; } -export interface CheckPasswordVariables { - input: CheckPasswordInput; +export interface CancelDatabaseTransferVariables { + input: CancelDatabaseTransferInput; +} +export interface RejectDatabaseTransferVariables { + input: RejectDatabaseTransferInput; } export interface SubmitInviteCodeVariables { input: SubmitInviteCodeInput; @@ -117,11 +138,8 @@ export interface SubmitInviteCodeVariables { export interface SubmitOrgInviteCodeVariables { input: SubmitOrgInviteCodeInput; } -export interface FreezeObjectsVariables { - input: FreezeObjectsInput; -} -export interface InitEmptyRepoVariables { - input: InitEmptyRepoInput; +export interface CheckPasswordVariables { + input: CheckPasswordInput; } export interface ConfirmDeleteAccountVariables { input: ConfirmDeleteAccountInput; @@ -132,17 +150,24 @@ export interface SetPasswordVariables { export interface VerifyEmailVariables { input: VerifyEmailInput; } -export interface RemoveNodeAtPathVariables { - input: RemoveNodeAtPathInput; +export interface FreezeObjectsVariables { + input: FreezeObjectsInput; +} +export interface InitEmptyRepoVariables { + input: InitEmptyRepoInput; +} +/** + * Variables for constructBlueprint + * Executes a draft blueprint definition. Four phases: (1) create tables with nodes[], fields, and policies[], (2) create relations between tables, (3) create indexes on table fields (supports BTREE, HNSW, GIN, GIST, BM25, etc.), (4) create full-text search configurations with weighted multi-field TSVector support. nodes[] entries can be strings or {$type, data} objects. Relations use $type for relation_type with junction config in data. Indexes reference table_ref + column name(s) and are resolved to field_ids. Full-text searches reference table_ref + tsvector field + source fields with weights/langs. Builds a ref_map of local ref names to created table UUIDs. Updates blueprint status to constructed (or failed with error_details). Returns the ref_map. + */ +export interface ConstructBlueprintVariables { + input: ConstructBlueprintInput; } export interface ResetPasswordVariables { input: ResetPasswordInput; } -export interface BootstrapUserVariables { - input: BootstrapUserInput; -} -export interface SetFieldOrderVariables { - input: SetFieldOrderInput; +export interface RemoveNodeAtPathVariables { + input: RemoveNodeAtPathInput; } export interface SetDataAtPathVariables { input: SetDataAtPathInput; @@ -150,9 +175,22 @@ export interface SetDataAtPathVariables { export interface SetPropsAndCommitVariables { input: SetPropsAndCommitInput; } +/** + * Variables for copyTemplateToBlueprint + * 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. + */ +export interface CopyTemplateToBlueprintVariables { + input: CopyTemplateToBlueprintInput; +} export interface ProvisionDatabaseWithUserVariables { input: ProvisionDatabaseWithUserInput; } +export interface BootstrapUserVariables { + input: BootstrapUserInput; +} +export interface SetFieldOrderVariables { + input: SetFieldOrderInput; +} export interface InsertNodeAtPathVariables { input: InsertNodeAtPathInput; } @@ -202,12 +240,12 @@ export interface SignUpVariables { export interface OneTimeTokenVariables { input: OneTimeTokenInput; } -export interface ForgotPasswordVariables { - input: ForgotPasswordInput; -} export interface SendVerificationEmailVariables { input: SendVerificationEmailInput; } +export interface ForgotPasswordVariables { + input: ForgotPasswordInput; +} export interface VerifyPasswordVariables { input: VerifyPasswordInput; } @@ -216,6 +254,35 @@ export interface VerifyTotpVariables { } export function createMutationOperations(client: OrmClient) { return { + sendAccountDeletionEmail: ( + args: SendAccountDeletionEmailVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + sendAccountDeletionEmail: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SendAccountDeletionEmail', + fieldName: 'sendAccountDeletionEmail', + ...buildCustomDocument( + 'mutation', + 'SendAccountDeletionEmail', + 'sendAccountDeletionEmail', + options.select, + args, + [ + { + name: 'input', + type: 'SendAccountDeletionEmailInput!', + }, + ], + connectionFieldsMap, + 'SendAccountDeletionEmailPayload' + ), + }), signOut: ( args: SignOutVariables, options: { @@ -245,62 +312,91 @@ export function createMutationOperations(client: OrmClient) { 'SignOutPayload' ), }), - sendAccountDeletionEmail: ( - args: SendAccountDeletionEmailVariables, + acceptDatabaseTransfer: ( + args: AcceptDatabaseTransferVariables, options: { select: S; - } & StrictSelect + } & StrictSelect ) => new QueryBuilder<{ - sendAccountDeletionEmail: InferSelectResult | null; + acceptDatabaseTransfer: InferSelectResult | null; }>({ client, operation: 'mutation', - operationName: 'SendAccountDeletionEmail', - fieldName: 'sendAccountDeletionEmail', + operationName: 'AcceptDatabaseTransfer', + fieldName: 'acceptDatabaseTransfer', ...buildCustomDocument( 'mutation', - 'SendAccountDeletionEmail', - 'sendAccountDeletionEmail', + 'AcceptDatabaseTransfer', + 'acceptDatabaseTransfer', options.select, args, [ { name: 'input', - type: 'SendAccountDeletionEmailInput!', + type: 'AcceptDatabaseTransferInput!', }, ], connectionFieldsMap, - 'SendAccountDeletionEmailPayload' + 'AcceptDatabaseTransferPayload' ), }), - checkPassword: ( - args: CheckPasswordVariables, + cancelDatabaseTransfer: ( + args: CancelDatabaseTransferVariables, options: { select: S; - } & StrictSelect + } & StrictSelect ) => new QueryBuilder<{ - checkPassword: InferSelectResult | null; + cancelDatabaseTransfer: InferSelectResult | null; }>({ client, operation: 'mutation', - operationName: 'CheckPassword', - fieldName: 'checkPassword', + operationName: 'CancelDatabaseTransfer', + fieldName: 'cancelDatabaseTransfer', ...buildCustomDocument( 'mutation', - 'CheckPassword', - 'checkPassword', + 'CancelDatabaseTransfer', + 'cancelDatabaseTransfer', options.select, args, [ { name: 'input', - type: 'CheckPasswordInput!', + type: 'CancelDatabaseTransferInput!', }, ], connectionFieldsMap, - 'CheckPasswordPayload' + 'CancelDatabaseTransferPayload' + ), + }), + rejectDatabaseTransfer: ( + args: RejectDatabaseTransferVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + rejectDatabaseTransfer: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'RejectDatabaseTransfer', + fieldName: 'rejectDatabaseTransfer', + ...buildCustomDocument( + 'mutation', + 'RejectDatabaseTransfer', + 'rejectDatabaseTransfer', + options.select, + args, + [ + { + name: 'input', + type: 'RejectDatabaseTransferInput!', + }, + ], + connectionFieldsMap, + 'RejectDatabaseTransferPayload' ), }), submitInviteCode: ( @@ -361,62 +457,33 @@ export function createMutationOperations(client: OrmClient) { 'SubmitOrgInviteCodePayload' ), }), - freezeObjects: ( - args: FreezeObjectsVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - freezeObjects: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'FreezeObjects', - fieldName: 'freezeObjects', - ...buildCustomDocument( - 'mutation', - 'FreezeObjects', - 'freezeObjects', - options.select, - args, - [ - { - name: 'input', - type: 'FreezeObjectsInput!', - }, - ], - connectionFieldsMap, - 'FreezeObjectsPayload' - ), - }), - initEmptyRepo: ( - args: InitEmptyRepoVariables, + checkPassword: ( + args: CheckPasswordVariables, options: { select: S; - } & StrictSelect + } & StrictSelect ) => new QueryBuilder<{ - initEmptyRepo: InferSelectResult | null; + checkPassword: InferSelectResult | null; }>({ client, operation: 'mutation', - operationName: 'InitEmptyRepo', - fieldName: 'initEmptyRepo', + operationName: 'CheckPassword', + fieldName: 'checkPassword', ...buildCustomDocument( 'mutation', - 'InitEmptyRepo', - 'initEmptyRepo', + 'CheckPassword', + 'checkPassword', options.select, args, [ { name: 'input', - type: 'InitEmptyRepoInput!', + type: 'CheckPasswordInput!', }, ], connectionFieldsMap, - 'InitEmptyRepoPayload' + 'CheckPasswordPayload' ), }), confirmDeleteAccount: ( @@ -506,120 +573,149 @@ export function createMutationOperations(client: OrmClient) { 'VerifyEmailPayload' ), }), - removeNodeAtPath: ( - args: RemoveNodeAtPathVariables, + freezeObjects: ( + args: FreezeObjectsVariables, options: { select: S; - } & StrictSelect + } & StrictSelect ) => new QueryBuilder<{ - removeNodeAtPath: InferSelectResult | null; + freezeObjects: InferSelectResult | null; }>({ client, operation: 'mutation', - operationName: 'RemoveNodeAtPath', - fieldName: 'removeNodeAtPath', + operationName: 'FreezeObjects', + fieldName: 'freezeObjects', ...buildCustomDocument( 'mutation', - 'RemoveNodeAtPath', - 'removeNodeAtPath', + 'FreezeObjects', + 'freezeObjects', options.select, args, [ { name: 'input', - type: 'RemoveNodeAtPathInput!', + type: 'FreezeObjectsInput!', }, ], connectionFieldsMap, - 'RemoveNodeAtPathPayload' + 'FreezeObjectsPayload' ), }), - resetPassword: ( - args: ResetPasswordVariables, + initEmptyRepo: ( + args: InitEmptyRepoVariables, options: { select: S; - } & StrictSelect + } & StrictSelect ) => new QueryBuilder<{ - resetPassword: InferSelectResult | null; + initEmptyRepo: InferSelectResult | null; }>({ client, operation: 'mutation', - operationName: 'ResetPassword', - fieldName: 'resetPassword', + operationName: 'InitEmptyRepo', + fieldName: 'initEmptyRepo', ...buildCustomDocument( 'mutation', - 'ResetPassword', - 'resetPassword', + 'InitEmptyRepo', + 'initEmptyRepo', options.select, args, [ { name: 'input', - type: 'ResetPasswordInput!', + type: 'InitEmptyRepoInput!', }, ], connectionFieldsMap, - 'ResetPasswordPayload' + 'InitEmptyRepoPayload' ), }), - bootstrapUser: ( - args: BootstrapUserVariables, + constructBlueprint: ( + args: ConstructBlueprintVariables, options: { select: S; - } & StrictSelect + } & StrictSelect ) => new QueryBuilder<{ - bootstrapUser: InferSelectResult | null; + constructBlueprint: InferSelectResult | null; }>({ client, operation: 'mutation', - operationName: 'BootstrapUser', - fieldName: 'bootstrapUser', + operationName: 'ConstructBlueprint', + fieldName: 'constructBlueprint', ...buildCustomDocument( 'mutation', - 'BootstrapUser', - 'bootstrapUser', + 'ConstructBlueprint', + 'constructBlueprint', options.select, args, [ { name: 'input', - type: 'BootstrapUserInput!', + type: 'ConstructBlueprintInput!', }, ], connectionFieldsMap, - 'BootstrapUserPayload' + 'ConstructBlueprintPayload' ), }), - setFieldOrder: ( - args: SetFieldOrderVariables, + resetPassword: ( + args: ResetPasswordVariables, options: { select: S; - } & StrictSelect + } & StrictSelect ) => new QueryBuilder<{ - setFieldOrder: InferSelectResult | null; + resetPassword: InferSelectResult | null; }>({ client, operation: 'mutation', - operationName: 'SetFieldOrder', - fieldName: 'setFieldOrder', + operationName: 'ResetPassword', + fieldName: 'resetPassword', ...buildCustomDocument( 'mutation', - 'SetFieldOrder', - 'setFieldOrder', + 'ResetPassword', + 'resetPassword', options.select, args, [ { name: 'input', - type: 'SetFieldOrderInput!', + type: 'ResetPasswordInput!', }, ], connectionFieldsMap, - 'SetFieldOrderPayload' + 'ResetPasswordPayload' + ), + }), + removeNodeAtPath: ( + args: RemoveNodeAtPathVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + removeNodeAtPath: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'RemoveNodeAtPath', + fieldName: 'removeNodeAtPath', + ...buildCustomDocument( + 'mutation', + 'RemoveNodeAtPath', + 'removeNodeAtPath', + options.select, + args, + [ + { + name: 'input', + type: 'RemoveNodeAtPathInput!', + }, + ], + connectionFieldsMap, + 'RemoveNodeAtPathPayload' ), }), setDataAtPath: ( @@ -680,6 +776,35 @@ export function createMutationOperations(client: OrmClient) { 'SetPropsAndCommitPayload' ), }), + copyTemplateToBlueprint: ( + args: CopyTemplateToBlueprintVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + copyTemplateToBlueprint: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'CopyTemplateToBlueprint', + fieldName: 'copyTemplateToBlueprint', + ...buildCustomDocument( + 'mutation', + 'CopyTemplateToBlueprint', + 'copyTemplateToBlueprint', + options.select, + args, + [ + { + name: 'input', + type: 'CopyTemplateToBlueprintInput!', + }, + ], + connectionFieldsMap, + 'CopyTemplateToBlueprintPayload' + ), + }), provisionDatabaseWithUser: ( args: ProvisionDatabaseWithUserVariables, options: { @@ -709,6 +834,64 @@ export function createMutationOperations(client: OrmClient) { 'ProvisionDatabaseWithUserPayload' ), }), + bootstrapUser: ( + args: BootstrapUserVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + bootstrapUser: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'BootstrapUser', + fieldName: 'bootstrapUser', + ...buildCustomDocument( + 'mutation', + 'BootstrapUser', + 'bootstrapUser', + options.select, + args, + [ + { + name: 'input', + type: 'BootstrapUserInput!', + }, + ], + connectionFieldsMap, + 'BootstrapUserPayload' + ), + }), + setFieldOrder: ( + args: SetFieldOrderVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + setFieldOrder: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SetFieldOrder', + fieldName: 'setFieldOrder', + ...buildCustomDocument( + 'mutation', + 'SetFieldOrder', + 'setFieldOrder', + options.select, + args, + [ + { + name: 'input', + type: 'SetFieldOrderInput!', + }, + ], + connectionFieldsMap, + 'SetFieldOrderPayload' + ), + }), insertNodeAtPath: ( args: InsertNodeAtPathVariables, options: { @@ -999,62 +1182,62 @@ export function createMutationOperations(client: OrmClient) { 'OneTimeTokenPayload' ), }), - forgotPassword: ( - args: ForgotPasswordVariables, + sendVerificationEmail: ( + args: SendVerificationEmailVariables, options: { select: S; - } & StrictSelect + } & StrictSelect ) => new QueryBuilder<{ - forgotPassword: InferSelectResult | null; + sendVerificationEmail: InferSelectResult | null; }>({ client, operation: 'mutation', - operationName: 'ForgotPassword', - fieldName: 'forgotPassword', + operationName: 'SendVerificationEmail', + fieldName: 'sendVerificationEmail', ...buildCustomDocument( 'mutation', - 'ForgotPassword', - 'forgotPassword', + 'SendVerificationEmail', + 'sendVerificationEmail', options.select, args, [ { name: 'input', - type: 'ForgotPasswordInput!', + type: 'SendVerificationEmailInput!', }, ], connectionFieldsMap, - 'ForgotPasswordPayload' + 'SendVerificationEmailPayload' ), }), - sendVerificationEmail: ( - args: SendVerificationEmailVariables, + forgotPassword: ( + args: ForgotPasswordVariables, options: { select: S; - } & StrictSelect + } & StrictSelect ) => new QueryBuilder<{ - sendVerificationEmail: InferSelectResult | null; + forgotPassword: InferSelectResult | null; }>({ client, operation: 'mutation', - operationName: 'SendVerificationEmail', - fieldName: 'sendVerificationEmail', + operationName: 'ForgotPassword', + fieldName: 'forgotPassword', ...buildCustomDocument( 'mutation', - 'SendVerificationEmail', - 'sendVerificationEmail', + 'ForgotPassword', + 'forgotPassword', options.select, args, [ { name: 'input', - type: 'SendVerificationEmailInput!', + type: 'ForgotPasswordInput!', }, ], connectionFieldsMap, - 'SendVerificationEmailPayload' + 'ForgotPasswordPayload' ), }), verifyPassword: ( diff --git a/sdk/constructive-react/README.md b/sdk/constructive-react/README.md index ec0434d6e..9ec0d4202 100644 --- a/sdk/constructive-react/README.md +++ b/sdk/constructive-react/README.md @@ -4,14 +4,6 @@

-

- - - - - -

- ## APIs diff --git a/sdk/constructive-react/src/admin/hooks/README.md b/sdk/constructive-react/src/admin/hooks/README.md index 54116bff8..7767cd083 100644 --- a/sdk/constructive-react/src/admin/hooks/README.md +++ b/sdk/constructive-react/src/admin/hooks/README.md @@ -214,7 +214,7 @@ const { data, isLoading } = useOrgGetManagersQuery({ const { mutate: create } = useCreateOrgGetManagersRecordMutation({ selection: { fields: { id: true } }, }); -create({ userId: '', depth: '' }); +create({ userId: '', depth: '' }); ``` ### OrgGetSubordinatesRecord @@ -229,7 +229,7 @@ const { data, isLoading } = useOrgGetSubordinatesQuery({ const { mutate: create } = useCreateOrgGetSubordinatesRecordMutation({ selection: { fields: { id: true } }, }); -create({ userId: '', depth: '' }); +create({ userId: '', depth: '' }); ``` ### AppPermission @@ -237,20 +237,20 @@ create({ userId: '', depth: '' }); ```typescript // List all appPermissions const { data, isLoading } = useAppPermissionsQuery({ - selection: { fields: { id: true, name: true, bitnum: true, bitstr: true, description: true, descriptionTrgmSimilarity: true, searchScore: true } }, + selection: { fields: { id: true, name: true, bitnum: true, bitstr: true, description: true } }, }); // Get one appPermission const { data: item } = useAppPermissionQuery({ - id: '', - selection: { fields: { id: true, name: true, bitnum: true, bitstr: true, description: true, descriptionTrgmSimilarity: true, searchScore: true } }, + id: '', + selection: { fields: { id: true, name: true, bitnum: true, bitstr: true, description: true } }, }); // Create a appPermission const { mutate: create } = useCreateAppPermissionMutation({ selection: { fields: { id: true } }, }); -create({ name: '', bitnum: '', bitstr: '', description: '', descriptionTrgmSimilarity: '', searchScore: '' }); +create({ name: '', bitnum: '', bitstr: '', description: '' }); ``` ### OrgPermission @@ -258,20 +258,20 @@ create({ name: '', bitnum: '', bitstr: '', description: '', - selection: { fields: { id: true, name: true, bitnum: true, bitstr: true, description: true, descriptionTrgmSimilarity: true, searchScore: true } }, + id: '', + selection: { fields: { id: true, name: true, bitnum: true, bitstr: true, description: true } }, }); // Create a orgPermission const { mutate: create } = useCreateOrgPermissionMutation({ selection: { fields: { id: true } }, }); -create({ name: '', bitnum: '', bitstr: '', description: '', descriptionTrgmSimilarity: '', searchScore: '' }); +create({ name: '', bitnum: '', bitstr: '', description: '' }); ``` ### AppLevelRequirement @@ -279,20 +279,20 @@ create({ name: '', bitnum: '', bitstr: '', description: '', - selection: { fields: { id: true, name: true, level: true, description: true, requiredCount: true, priority: true, createdAt: true, updatedAt: true, descriptionTrgmSimilarity: true, searchScore: true } }, + id: '', + selection: { fields: { id: true, name: true, level: true, description: true, requiredCount: true, priority: true, createdAt: true, updatedAt: true } }, }); // Create a appLevelRequirement const { mutate: create } = useCreateAppLevelRequirementMutation({ selection: { fields: { id: true } }, }); -create({ name: '', level: '', description: '', requiredCount: '', priority: '', descriptionTrgmSimilarity: '', searchScore: '' }); +create({ name: '', level: '', description: '', requiredCount: '', priority: '' }); ``` ### OrgMember @@ -305,7 +305,7 @@ const { data, isLoading } = useOrgMembersQuery({ // Get one orgMember const { data: item } = useOrgMemberQuery({ - id: '', + id: '', selection: { fields: { id: true, isAdmin: true, actorId: true, entityId: true } }, }); @@ -313,7 +313,7 @@ const { data: item } = useOrgMemberQuery({ const { mutate: create } = useCreateOrgMemberMutation({ selection: { fields: { id: true } }, }); -create({ isAdmin: '', actorId: '', entityId: '' }); +create({ isAdmin: '', actorId: '', entityId: '' }); ``` ### AppPermissionDefault @@ -326,7 +326,7 @@ const { data, isLoading } = useAppPermissionDefaultsQuery({ // Get one appPermissionDefault const { data: item } = useAppPermissionDefaultQuery({ - id: '', + id: '', selection: { fields: { id: true, permissions: true } }, }); @@ -334,7 +334,7 @@ const { data: item } = useAppPermissionDefaultQuery({ const { mutate: create } = useCreateAppPermissionDefaultMutation({ selection: { fields: { id: true } }, }); -create({ permissions: '' }); +create({ permissions: '' }); ``` ### OrgPermissionDefault @@ -347,7 +347,7 @@ const { data, isLoading } = useOrgPermissionDefaultsQuery({ // Get one orgPermissionDefault const { data: item } = useOrgPermissionDefaultQuery({ - id: '', + id: '', selection: { fields: { id: true, permissions: true, entityId: true } }, }); @@ -355,7 +355,7 @@ const { data: item } = useOrgPermissionDefaultQuery({ const { mutate: create } = useCreateOrgPermissionDefaultMutation({ selection: { fields: { id: true } }, }); -create({ permissions: '', entityId: '' }); +create({ permissions: '', entityId: '' }); ``` ### AppAdminGrant @@ -368,7 +368,7 @@ const { data, isLoading } = useAppAdminGrantsQuery({ // Get one appAdminGrant const { data: item } = useAppAdminGrantQuery({ - id: '', + id: '', selection: { fields: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }, }); @@ -376,7 +376,7 @@ const { data: item } = useAppAdminGrantQuery({ const { mutate: create } = useCreateAppAdminGrantMutation({ selection: { fields: { id: true } }, }); -create({ isGrant: '', actorId: '', grantorId: '' }); +create({ isGrant: '', actorId: '', grantorId: '' }); ``` ### AppOwnerGrant @@ -389,7 +389,7 @@ const { data, isLoading } = useAppOwnerGrantsQuery({ // Get one appOwnerGrant const { data: item } = useAppOwnerGrantQuery({ - id: '', + id: '', selection: { fields: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }, }); @@ -397,7 +397,7 @@ const { data: item } = useAppOwnerGrantQuery({ const { mutate: create } = useCreateAppOwnerGrantMutation({ selection: { fields: { id: true } }, }); -create({ isGrant: '', actorId: '', grantorId: '' }); +create({ isGrant: '', actorId: '', grantorId: '' }); ``` ### OrgAdminGrant @@ -410,7 +410,7 @@ const { data, isLoading } = useOrgAdminGrantsQuery({ // Get one orgAdminGrant const { data: item } = useOrgAdminGrantQuery({ - id: '', + id: '', selection: { fields: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }, }); @@ -418,7 +418,7 @@ const { data: item } = useOrgAdminGrantQuery({ const { mutate: create } = useCreateOrgAdminGrantMutation({ selection: { fields: { id: true } }, }); -create({ isGrant: '', actorId: '', entityId: '', grantorId: '' }); +create({ isGrant: '', actorId: '', entityId: '', grantorId: '' }); ``` ### OrgOwnerGrant @@ -431,7 +431,7 @@ const { data, isLoading } = useOrgOwnerGrantsQuery({ // Get one orgOwnerGrant const { data: item } = useOrgOwnerGrantQuery({ - id: '', + id: '', selection: { fields: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }, }); @@ -439,7 +439,7 @@ const { data: item } = useOrgOwnerGrantQuery({ const { mutate: create } = useCreateOrgOwnerGrantMutation({ selection: { fields: { id: true } }, }); -create({ isGrant: '', actorId: '', entityId: '', grantorId: '' }); +create({ isGrant: '', actorId: '', entityId: '', grantorId: '' }); ``` ### AppLimitDefault @@ -452,7 +452,7 @@ const { data, isLoading } = useAppLimitDefaultsQuery({ // Get one appLimitDefault const { data: item } = useAppLimitDefaultQuery({ - id: '', + id: '', selection: { fields: { id: true, name: true, max: true } }, }); @@ -460,7 +460,7 @@ const { data: item } = useAppLimitDefaultQuery({ const { mutate: create } = useCreateAppLimitDefaultMutation({ selection: { fields: { id: true } }, }); -create({ name: '', max: '' }); +create({ name: '', max: '' }); ``` ### OrgLimitDefault @@ -473,7 +473,7 @@ const { data, isLoading } = useOrgLimitDefaultsQuery({ // Get one orgLimitDefault const { data: item } = useOrgLimitDefaultQuery({ - id: '', + id: '', selection: { fields: { id: true, name: true, max: true } }, }); @@ -481,7 +481,7 @@ const { data: item } = useOrgLimitDefaultQuery({ const { mutate: create } = useCreateOrgLimitDefaultMutation({ selection: { fields: { id: true } }, }); -create({ name: '', max: '' }); +create({ name: '', max: '' }); ``` ### OrgChartEdgeGrant @@ -489,20 +489,20 @@ create({ name: '', max: '' }); ```typescript // List all orgChartEdgeGrants const { data, isLoading } = useOrgChartEdgeGrantsQuery({ - selection: { fields: { id: true, entityId: true, childId: true, parentId: true, grantorId: true, isGrant: true, positionTitle: true, positionLevel: true, createdAt: true, positionTitleTrgmSimilarity: true, searchScore: true } }, + selection: { fields: { id: true, entityId: true, childId: true, parentId: true, grantorId: true, isGrant: true, positionTitle: true, positionLevel: true, createdAt: true } }, }); // Get one orgChartEdgeGrant const { data: item } = useOrgChartEdgeGrantQuery({ - id: '', - selection: { fields: { id: true, entityId: true, childId: true, parentId: true, grantorId: true, isGrant: true, positionTitle: true, positionLevel: true, createdAt: true, positionTitleTrgmSimilarity: true, searchScore: true } }, + id: '', + selection: { fields: { id: true, entityId: true, childId: true, parentId: true, grantorId: true, isGrant: true, positionTitle: true, positionLevel: true, createdAt: true } }, }); // Create a orgChartEdgeGrant const { mutate: create } = useCreateOrgChartEdgeGrantMutation({ selection: { fields: { id: true } }, }); -create({ entityId: '', childId: '', parentId: '', grantorId: '', isGrant: '', positionTitle: '', positionLevel: '', positionTitleTrgmSimilarity: '', searchScore: '' }); +create({ entityId: '', childId: '', parentId: '', grantorId: '', isGrant: '', positionTitle: '', positionLevel: '' }); ``` ### MembershipType @@ -510,20 +510,20 @@ create({ entityId: '', childId: '', parentId: '', grantorId ```typescript // List all membershipTypes const { data, isLoading } = useMembershipTypesQuery({ - selection: { fields: { id: true, name: true, description: true, prefix: true, descriptionTrgmSimilarity: true, prefixTrgmSimilarity: true, searchScore: true } }, + selection: { fields: { id: true, name: true, description: true, prefix: true } }, }); // Get one membershipType const { data: item } = useMembershipTypeQuery({ - id: '', - selection: { fields: { id: true, name: true, description: true, prefix: true, descriptionTrgmSimilarity: true, prefixTrgmSimilarity: true, searchScore: true } }, + id: '', + selection: { fields: { id: true, name: true, description: true, prefix: true } }, }); // Create a membershipType const { mutate: create } = useCreateMembershipTypeMutation({ selection: { fields: { id: true } }, }); -create({ name: '', description: '', prefix: '', descriptionTrgmSimilarity: '', prefixTrgmSimilarity: '', searchScore: '' }); +create({ name: '', description: '', prefix: '' }); ``` ### AppLimit @@ -536,7 +536,7 @@ const { data, isLoading } = useAppLimitsQuery({ // Get one appLimit const { data: item } = useAppLimitQuery({ - id: '', + id: '', selection: { fields: { id: true, name: true, actorId: true, num: true, max: true } }, }); @@ -544,7 +544,7 @@ const { data: item } = useAppLimitQuery({ const { mutate: create } = useCreateAppLimitMutation({ selection: { fields: { id: true } }, }); -create({ name: '', actorId: '', num: '', max: '' }); +create({ name: '', actorId: '', num: '', max: '' }); ``` ### AppAchievement @@ -557,7 +557,7 @@ const { data, isLoading } = useAppAchievementsQuery({ // Get one appAchievement const { data: item } = useAppAchievementQuery({ - id: '', + id: '', selection: { fields: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }, }); @@ -565,7 +565,7 @@ const { data: item } = useAppAchievementQuery({ const { mutate: create } = useCreateAppAchievementMutation({ selection: { fields: { id: true } }, }); -create({ actorId: '', name: '', count: '' }); +create({ actorId: '', name: '', count: '' }); ``` ### AppStep @@ -578,7 +578,7 @@ const { data, isLoading } = useAppStepsQuery({ // Get one appStep const { data: item } = useAppStepQuery({ - id: '', + id: '', selection: { fields: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }, }); @@ -586,7 +586,7 @@ const { data: item } = useAppStepQuery({ const { mutate: create } = useCreateAppStepMutation({ selection: { fields: { id: true } }, }); -create({ actorId: '', name: '', count: '' }); +create({ actorId: '', name: '', count: '' }); ``` ### ClaimedInvite @@ -599,7 +599,7 @@ const { data, isLoading } = useClaimedInvitesQuery({ // Get one claimedInvite const { data: item } = useClaimedInviteQuery({ - id: '', + id: '', selection: { fields: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true } }, }); @@ -607,7 +607,7 @@ const { data: item } = useClaimedInviteQuery({ const { mutate: create } = useCreateClaimedInviteMutation({ selection: { fields: { id: true } }, }); -create({ data: '', senderId: '', receiverId: '' }); +create({ data: '', senderId: '', receiverId: '' }); ``` ### AppGrant @@ -620,7 +620,7 @@ const { data, isLoading } = useAppGrantsQuery({ // Get one appGrant const { data: item } = useAppGrantQuery({ - id: '', + id: '', selection: { fields: { id: true, permissions: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }, }); @@ -628,7 +628,7 @@ const { data: item } = useAppGrantQuery({ const { mutate: create } = useCreateAppGrantMutation({ selection: { fields: { id: true } }, }); -create({ permissions: '', isGrant: '', actorId: '', grantorId: '' }); +create({ permissions: '', isGrant: '', actorId: '', grantorId: '' }); ``` ### AppMembershipDefault @@ -641,7 +641,7 @@ const { data, isLoading } = useAppMembershipDefaultsQuery({ // Get one appMembershipDefault const { data: item } = useAppMembershipDefaultQuery({ - id: '', + id: '', selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }, }); @@ -649,7 +649,7 @@ const { data: item } = useAppMembershipDefaultQuery({ const { mutate: create } = useCreateAppMembershipDefaultMutation({ selection: { fields: { id: true } }, }); -create({ createdBy: '', updatedBy: '', isApproved: '', isVerified: '' }); +create({ createdBy: '', updatedBy: '', isApproved: '', isVerified: '' }); ``` ### OrgLimit @@ -662,7 +662,7 @@ const { data, isLoading } = useOrgLimitsQuery({ // Get one orgLimit const { data: item } = useOrgLimitQuery({ - id: '', + id: '', selection: { fields: { id: true, name: true, actorId: true, num: true, max: true, entityId: true } }, }); @@ -670,7 +670,7 @@ const { data: item } = useOrgLimitQuery({ const { mutate: create } = useCreateOrgLimitMutation({ selection: { fields: { id: true } }, }); -create({ name: '', actorId: '', num: '', max: '', entityId: '' }); +create({ name: '', actorId: '', num: '', max: '', entityId: '' }); ``` ### OrgClaimedInvite @@ -683,7 +683,7 @@ const { data, isLoading } = useOrgClaimedInvitesQuery({ // Get one orgClaimedInvite const { data: item } = useOrgClaimedInviteQuery({ - id: '', + id: '', selection: { fields: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true, entityId: true } }, }); @@ -691,7 +691,7 @@ const { data: item } = useOrgClaimedInviteQuery({ const { mutate: create } = useCreateOrgClaimedInviteMutation({ selection: { fields: { id: true } }, }); -create({ data: '', senderId: '', receiverId: '', entityId: '' }); +create({ data: '', senderId: '', receiverId: '', entityId: '' }); ``` ### OrgGrant @@ -704,7 +704,7 @@ const { data, isLoading } = useOrgGrantsQuery({ // Get one orgGrant const { data: item } = useOrgGrantQuery({ - id: '', + id: '', selection: { fields: { id: true, permissions: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }, }); @@ -712,7 +712,7 @@ const { data: item } = useOrgGrantQuery({ const { mutate: create } = useCreateOrgGrantMutation({ selection: { fields: { id: true } }, }); -create({ permissions: '', isGrant: '', actorId: '', entityId: '', grantorId: '' }); +create({ permissions: '', isGrant: '', actorId: '', entityId: '', grantorId: '' }); ``` ### OrgChartEdge @@ -720,20 +720,20 @@ create({ permissions: '', isGrant: '', actorId: '', entityI ```typescript // List all orgChartEdges const { data, isLoading } = useOrgChartEdgesQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true, positionTitleTrgmSimilarity: true, searchScore: true } }, + selection: { fields: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true } }, }); // Get one orgChartEdge const { data: item } = useOrgChartEdgeQuery({ - id: '', - selection: { fields: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true, positionTitleTrgmSimilarity: true, searchScore: true } }, + id: '', + selection: { fields: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true } }, }); // Create a orgChartEdge const { mutate: create } = useCreateOrgChartEdgeMutation({ selection: { fields: { id: true } }, }); -create({ entityId: '', childId: '', parentId: '', positionTitle: '', positionLevel: '', positionTitleTrgmSimilarity: '', searchScore: '' }); +create({ entityId: '', childId: '', parentId: '', positionTitle: '', positionLevel: '' }); ``` ### OrgMembershipDefault @@ -746,7 +746,7 @@ const { data, isLoading } = useOrgMembershipDefaultsQuery({ // Get one orgMembershipDefault const { data: item } = useOrgMembershipDefaultQuery({ - id: '', + id: '', selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true, deleteMemberCascadeGroups: true, createGroupsCascadeMembers: true } }, }); @@ -754,7 +754,7 @@ const { data: item } = useOrgMembershipDefaultQuery({ const { mutate: create } = useCreateOrgMembershipDefaultMutation({ selection: { fields: { id: true } }, }); -create({ createdBy: '', updatedBy: '', isApproved: '', entityId: '', deleteMemberCascadeGroups: '', createGroupsCascadeMembers: '' }); +create({ createdBy: '', updatedBy: '', isApproved: '', entityId: '', deleteMemberCascadeGroups: '', createGroupsCascadeMembers: '' }); ``` ### AppMembership @@ -767,7 +767,7 @@ const { data, isLoading } = useAppMembershipsQuery({ // Get one appMembership const { data: item } = useAppMembershipQuery({ - id: '', + id: '', selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }, }); @@ -775,7 +775,7 @@ const { data: item } = useAppMembershipQuery({ const { mutate: create } = useCreateAppMembershipMutation({ selection: { fields: { id: true } }, }); -create({ createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', profileId: '' }); +create({ createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', profileId: '' }); ``` ### OrgMembership @@ -788,7 +788,7 @@ const { data, isLoading } = useOrgMembershipsQuery({ // Get one orgMembership const { data: item } = useOrgMembershipQuery({ - id: '', + id: '', selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, profileId: true } }, }); @@ -796,7 +796,7 @@ const { data: item } = useOrgMembershipQuery({ const { mutate: create } = useCreateOrgMembershipMutation({ selection: { fields: { id: true } }, }); -create({ createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '', profileId: '' }); +create({ createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '', profileId: '' }); ``` ### Invite @@ -804,20 +804,20 @@ create({ createdBy: '', updatedBy: '', isApproved: '', isBa ```typescript // List all invites const { data, isLoading } = useInvitesQuery({ - selection: { fields: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true, inviteTokenTrgmSimilarity: true, searchScore: true } }, + selection: { fields: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true } }, }); // Get one invite const { data: item } = useInviteQuery({ - id: '', - selection: { fields: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true, inviteTokenTrgmSimilarity: true, searchScore: true } }, + id: '', + selection: { fields: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true } }, }); // Create a invite const { mutate: create } = useCreateInviteMutation({ selection: { fields: { id: true } }, }); -create({ email: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '', inviteTokenTrgmSimilarity: '', searchScore: '' }); +create({ email: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '' }); ``` ### AppLevel @@ -825,20 +825,20 @@ create({ email: '', senderId: '', inviteToken: '', inviteVa ```typescript // List all appLevels const { data, isLoading } = useAppLevelsQuery({ - selection: { fields: { id: true, name: true, description: true, image: true, ownerId: true, createdAt: true, updatedAt: true, descriptionTrgmSimilarity: true, searchScore: true } }, + selection: { fields: { id: true, name: true, description: true, image: true, ownerId: true, createdAt: true, updatedAt: true } }, }); // Get one appLevel const { data: item } = useAppLevelQuery({ - id: '', - selection: { fields: { id: true, name: true, description: true, image: true, ownerId: true, createdAt: true, updatedAt: true, descriptionTrgmSimilarity: true, searchScore: true } }, + id: '', + selection: { fields: { id: true, name: true, description: true, image: true, ownerId: true, createdAt: true, updatedAt: true } }, }); // Create a appLevel const { mutate: create } = useCreateAppLevelMutation({ selection: { fields: { id: true } }, }); -create({ name: '', description: '', image: '', ownerId: '', descriptionTrgmSimilarity: '', searchScore: '' }); +create({ name: '', description: '', image: '', ownerId: '' }); ``` ### OrgInvite @@ -846,20 +846,20 @@ create({ name: '', description: '', image: '', ownerId: '', - selection: { fields: { id: true, email: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true, inviteTokenTrgmSimilarity: true, searchScore: true } }, + id: '', + selection: { fields: { id: true, email: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true } }, }); // Create a orgInvite const { mutate: create } = useCreateOrgInviteMutation({ selection: { fields: { id: true } }, }); -create({ email: '', senderId: '', receiverId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '', entityId: '', inviteTokenTrgmSimilarity: '', searchScore: '' }); +create({ email: '', senderId: '', receiverId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '', entityId: '' }); ``` ## Custom Operation Hooks diff --git a/sdk/constructive-react/src/admin/orm/README.md b/sdk/constructive-react/src/admin/orm/README.md index 74e966fea..c52770a50 100644 --- a/sdk/constructive-react/src/admin/orm/README.md +++ b/sdk/constructive-react/src/admin/orm/README.md @@ -74,16 +74,16 @@ CRUD operations for OrgGetManagersRecord records. const items = await db.orgGetManagersRecord.findMany({ select: { userId: true, depth: true } }).execute(); // Get one by id -const item = await db.orgGetManagersRecord.findOne({ id: '', select: { userId: true, depth: true } }).execute(); +const item = await db.orgGetManagersRecord.findOne({ id: '', select: { userId: true, depth: true } }).execute(); // Create -const created = await db.orgGetManagersRecord.create({ data: { userId: '', depth: '' }, select: { id: true } }).execute(); +const created = await db.orgGetManagersRecord.create({ data: { userId: '', depth: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgGetManagersRecord.update({ where: { id: '' }, data: { userId: '' }, select: { id: true } }).execute(); +const updated = await db.orgGetManagersRecord.update({ where: { id: '' }, data: { userId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgGetManagersRecord.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgGetManagersRecord.delete({ where: { id: '' } }).execute(); ``` ### `db.orgGetSubordinatesRecord` @@ -104,16 +104,16 @@ CRUD operations for OrgGetSubordinatesRecord records. const items = await db.orgGetSubordinatesRecord.findMany({ select: { userId: true, depth: true } }).execute(); // Get one by id -const item = await db.orgGetSubordinatesRecord.findOne({ id: '', select: { userId: true, depth: true } }).execute(); +const item = await db.orgGetSubordinatesRecord.findOne({ id: '', select: { userId: true, depth: true } }).execute(); // Create -const created = await db.orgGetSubordinatesRecord.create({ data: { userId: '', depth: '' }, select: { id: true } }).execute(); +const created = await db.orgGetSubordinatesRecord.create({ data: { userId: '', depth: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgGetSubordinatesRecord.update({ where: { id: '' }, data: { userId: '' }, select: { id: true } }).execute(); +const updated = await db.orgGetSubordinatesRecord.update({ where: { id: '' }, data: { userId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgGetSubordinatesRecord.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgGetSubordinatesRecord.delete({ where: { id: '' } }).execute(); ``` ### `db.appPermission` @@ -129,26 +129,24 @@ CRUD operations for AppPermission records. | `bitnum` | Int | Yes | | `bitstr` | BitString | Yes | | `description` | String | Yes | -| `descriptionTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all appPermission records -const items = await db.appPermission.findMany({ select: { id: true, name: true, bitnum: true, bitstr: true, description: true, descriptionTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.appPermission.findMany({ select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); // Get one by id -const item = await db.appPermission.findOne({ id: '', select: { id: true, name: true, bitnum: true, bitstr: true, description: true, descriptionTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.appPermission.findOne({ id: '', select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); // Create -const created = await db.appPermission.create({ data: { name: '', bitnum: '', bitstr: '', description: '', descriptionTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.appPermission.create({ data: { name: '', bitnum: '', bitstr: '', description: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appPermission.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.appPermission.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appPermission.delete({ where: { id: '' } }).execute(); +const deleted = await db.appPermission.delete({ where: { id: '' } }).execute(); ``` ### `db.orgPermission` @@ -164,26 +162,24 @@ CRUD operations for OrgPermission records. | `bitnum` | Int | Yes | | `bitstr` | BitString | Yes | | `description` | String | Yes | -| `descriptionTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all orgPermission records -const items = await db.orgPermission.findMany({ select: { id: true, name: true, bitnum: true, bitstr: true, description: true, descriptionTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.orgPermission.findMany({ select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); // Get one by id -const item = await db.orgPermission.findOne({ id: '', select: { id: true, name: true, bitnum: true, bitstr: true, description: true, descriptionTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.orgPermission.findOne({ id: '', select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); // Create -const created = await db.orgPermission.create({ data: { name: '', bitnum: '', bitstr: '', description: '', descriptionTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.orgPermission.create({ data: { name: '', bitnum: '', bitstr: '', description: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgPermission.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.orgPermission.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgPermission.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgPermission.delete({ where: { id: '' } }).execute(); ``` ### `db.appLevelRequirement` @@ -202,26 +198,24 @@ CRUD operations for AppLevelRequirement records. | `priority` | Int | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `descriptionTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all appLevelRequirement records -const items = await db.appLevelRequirement.findMany({ select: { id: true, name: true, level: true, description: true, requiredCount: true, priority: true, createdAt: true, updatedAt: true, descriptionTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.appLevelRequirement.findMany({ select: { id: true, name: true, level: true, description: true, requiredCount: true, priority: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.appLevelRequirement.findOne({ id: '', select: { id: true, name: true, level: true, description: true, requiredCount: true, priority: true, createdAt: true, updatedAt: true, descriptionTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.appLevelRequirement.findOne({ id: '', select: { id: true, name: true, level: true, description: true, requiredCount: true, priority: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.appLevelRequirement.create({ data: { name: '', level: '', description: '', requiredCount: '', priority: '', descriptionTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.appLevelRequirement.create({ data: { name: '', level: '', description: '', requiredCount: '', priority: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appLevelRequirement.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.appLevelRequirement.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appLevelRequirement.delete({ where: { id: '' } }).execute(); +const deleted = await db.appLevelRequirement.delete({ where: { id: '' } }).execute(); ``` ### `db.orgMember` @@ -244,16 +238,16 @@ CRUD operations for OrgMember records. const items = await db.orgMember.findMany({ select: { id: true, isAdmin: true, actorId: true, entityId: true } }).execute(); // Get one by id -const item = await db.orgMember.findOne({ id: '', select: { id: true, isAdmin: true, actorId: true, entityId: true } }).execute(); +const item = await db.orgMember.findOne({ id: '', select: { id: true, isAdmin: true, actorId: true, entityId: true } }).execute(); // Create -const created = await db.orgMember.create({ data: { isAdmin: '', actorId: '', entityId: '' }, select: { id: true } }).execute(); +const created = await db.orgMember.create({ data: { isAdmin: '', actorId: '', entityId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgMember.update({ where: { id: '' }, data: { isAdmin: '' }, select: { id: true } }).execute(); +const updated = await db.orgMember.update({ where: { id: '' }, data: { isAdmin: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgMember.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgMember.delete({ where: { id: '' } }).execute(); ``` ### `db.appPermissionDefault` @@ -274,16 +268,16 @@ CRUD operations for AppPermissionDefault records. const items = await db.appPermissionDefault.findMany({ select: { id: true, permissions: true } }).execute(); // Get one by id -const item = await db.appPermissionDefault.findOne({ id: '', select: { id: true, permissions: true } }).execute(); +const item = await db.appPermissionDefault.findOne({ id: '', select: { id: true, permissions: true } }).execute(); // Create -const created = await db.appPermissionDefault.create({ data: { permissions: '' }, select: { id: true } }).execute(); +const created = await db.appPermissionDefault.create({ data: { permissions: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appPermissionDefault.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); +const updated = await db.appPermissionDefault.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appPermissionDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.appPermissionDefault.delete({ where: { id: '' } }).execute(); ``` ### `db.orgPermissionDefault` @@ -305,16 +299,16 @@ CRUD operations for OrgPermissionDefault records. const items = await db.orgPermissionDefault.findMany({ select: { id: true, permissions: true, entityId: true } }).execute(); // Get one by id -const item = await db.orgPermissionDefault.findOne({ id: '', select: { id: true, permissions: true, entityId: true } }).execute(); +const item = await db.orgPermissionDefault.findOne({ id: '', select: { id: true, permissions: true, entityId: true } }).execute(); // Create -const created = await db.orgPermissionDefault.create({ data: { permissions: '', entityId: '' }, select: { id: true } }).execute(); +const created = await db.orgPermissionDefault.create({ data: { permissions: '', entityId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgPermissionDefault.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); +const updated = await db.orgPermissionDefault.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgPermissionDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgPermissionDefault.delete({ where: { id: '' } }).execute(); ``` ### `db.appAdminGrant` @@ -339,16 +333,16 @@ CRUD operations for AppAdminGrant records. const items = await db.appAdminGrant.findMany({ select: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.appAdminGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.appAdminGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.appAdminGrant.create({ data: { isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute(); +const created = await db.appAdminGrant.create({ data: { isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appAdminGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); +const updated = await db.appAdminGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appAdminGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.appAdminGrant.delete({ where: { id: '' } }).execute(); ``` ### `db.appOwnerGrant` @@ -373,16 +367,16 @@ CRUD operations for AppOwnerGrant records. const items = await db.appOwnerGrant.findMany({ select: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.appOwnerGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.appOwnerGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.appOwnerGrant.create({ data: { isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute(); +const created = await db.appOwnerGrant.create({ data: { isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appOwnerGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); +const updated = await db.appOwnerGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appOwnerGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.appOwnerGrant.delete({ where: { id: '' } }).execute(); ``` ### `db.orgAdminGrant` @@ -408,16 +402,16 @@ CRUD operations for OrgAdminGrant records. const items = await db.orgAdminGrant.findMany({ select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.orgAdminGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.orgAdminGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.orgAdminGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); +const created = await db.orgAdminGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgAdminGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); +const updated = await db.orgAdminGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgAdminGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgAdminGrant.delete({ where: { id: '' } }).execute(); ``` ### `db.orgOwnerGrant` @@ -443,16 +437,16 @@ CRUD operations for OrgOwnerGrant records. const items = await db.orgOwnerGrant.findMany({ select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.orgOwnerGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.orgOwnerGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.orgOwnerGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); +const created = await db.orgOwnerGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgOwnerGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); +const updated = await db.orgOwnerGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgOwnerGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgOwnerGrant.delete({ where: { id: '' } }).execute(); ``` ### `db.appLimitDefault` @@ -474,16 +468,16 @@ CRUD operations for AppLimitDefault records. const items = await db.appLimitDefault.findMany({ select: { id: true, name: true, max: true } }).execute(); // Get one by id -const item = await db.appLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true } }).execute(); +const item = await db.appLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true } }).execute(); // Create -const created = await db.appLimitDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute(); +const created = await db.appLimitDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.appLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appLimitDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.appLimitDefault.delete({ where: { id: '' } }).execute(); ``` ### `db.orgLimitDefault` @@ -505,16 +499,16 @@ CRUD operations for OrgLimitDefault records. const items = await db.orgLimitDefault.findMany({ select: { id: true, name: true, max: true } }).execute(); // Get one by id -const item = await db.orgLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true } }).execute(); +const item = await db.orgLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true } }).execute(); // Create -const created = await db.orgLimitDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute(); +const created = await db.orgLimitDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.orgLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgLimitDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgLimitDefault.delete({ where: { id: '' } }).execute(); ``` ### `db.orgChartEdgeGrant` @@ -534,26 +528,24 @@ CRUD operations for OrgChartEdgeGrant records. | `positionTitle` | String | Yes | | `positionLevel` | Int | Yes | | `createdAt` | Datetime | No | -| `positionTitleTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all orgChartEdgeGrant records -const items = await db.orgChartEdgeGrant.findMany({ select: { id: true, entityId: true, childId: true, parentId: true, grantorId: true, isGrant: true, positionTitle: true, positionLevel: true, createdAt: true, positionTitleTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.orgChartEdgeGrant.findMany({ select: { id: true, entityId: true, childId: true, parentId: true, grantorId: true, isGrant: true, positionTitle: true, positionLevel: true, createdAt: true } }).execute(); // Get one by id -const item = await db.orgChartEdgeGrant.findOne({ id: '', select: { id: true, entityId: true, childId: true, parentId: true, grantorId: true, isGrant: true, positionTitle: true, positionLevel: true, createdAt: true, positionTitleTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.orgChartEdgeGrant.findOne({ id: '', select: { id: true, entityId: true, childId: true, parentId: true, grantorId: true, isGrant: true, positionTitle: true, positionLevel: true, createdAt: true } }).execute(); // Create -const created = await db.orgChartEdgeGrant.create({ data: { entityId: '', childId: '', parentId: '', grantorId: '', isGrant: '', positionTitle: '', positionLevel: '', positionTitleTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.orgChartEdgeGrant.create({ data: { entityId: '', childId: '', parentId: '', grantorId: '', isGrant: '', positionTitle: '', positionLevel: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgChartEdgeGrant.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); +const updated = await db.orgChartEdgeGrant.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgChartEdgeGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgChartEdgeGrant.delete({ where: { id: '' } }).execute(); ``` ### `db.membershipType` @@ -568,27 +560,24 @@ CRUD operations for MembershipType records. | `name` | String | Yes | | `description` | String | Yes | | `prefix` | String | Yes | -| `descriptionTrgmSimilarity` | Float | Yes | -| `prefixTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all membershipType records -const items = await db.membershipType.findMany({ select: { id: true, name: true, description: true, prefix: true, descriptionTrgmSimilarity: true, prefixTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.membershipType.findMany({ select: { id: true, name: true, description: true, prefix: true } }).execute(); // Get one by id -const item = await db.membershipType.findOne({ id: '', select: { id: true, name: true, description: true, prefix: true, descriptionTrgmSimilarity: true, prefixTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.membershipType.findOne({ id: '', select: { id: true, name: true, description: true, prefix: true } }).execute(); // Create -const created = await db.membershipType.create({ data: { name: '', description: '', prefix: '', descriptionTrgmSimilarity: '', prefixTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.membershipType.create({ data: { name: '', description: '', prefix: '' }, select: { id: true } }).execute(); // Update -const updated = await db.membershipType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.membershipType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.membershipType.delete({ where: { id: '' } }).execute(); +const deleted = await db.membershipType.delete({ where: { id: '' } }).execute(); ``` ### `db.appLimit` @@ -612,16 +601,16 @@ CRUD operations for AppLimit records. const items = await db.appLimit.findMany({ select: { id: true, name: true, actorId: true, num: true, max: true } }).execute(); // Get one by id -const item = await db.appLimit.findOne({ id: '', select: { id: true, name: true, actorId: true, num: true, max: true } }).execute(); +const item = await db.appLimit.findOne({ id: '', select: { id: true, name: true, actorId: true, num: true, max: true } }).execute(); // Create -const created = await db.appLimit.create({ data: { name: '', actorId: '', num: '', max: '' }, select: { id: true } }).execute(); +const created = await db.appLimit.create({ data: { name: '', actorId: '', num: '', max: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appLimit.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.appLimit.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appLimit.delete({ where: { id: '' } }).execute(); +const deleted = await db.appLimit.delete({ where: { id: '' } }).execute(); ``` ### `db.appAchievement` @@ -646,16 +635,16 @@ CRUD operations for AppAchievement records. const items = await db.appAchievement.findMany({ select: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.appAchievement.findOne({ id: '', select: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.appAchievement.findOne({ id: '', select: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.appAchievement.create({ data: { actorId: '', name: '', count: '' }, select: { id: true } }).execute(); +const created = await db.appAchievement.create({ data: { actorId: '', name: '', count: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appAchievement.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); +const updated = await db.appAchievement.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appAchievement.delete({ where: { id: '' } }).execute(); +const deleted = await db.appAchievement.delete({ where: { id: '' } }).execute(); ``` ### `db.appStep` @@ -680,16 +669,16 @@ CRUD operations for AppStep records. const items = await db.appStep.findMany({ select: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.appStep.findOne({ id: '', select: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.appStep.findOne({ id: '', select: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.appStep.create({ data: { actorId: '', name: '', count: '' }, select: { id: true } }).execute(); +const created = await db.appStep.create({ data: { actorId: '', name: '', count: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appStep.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); +const updated = await db.appStep.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appStep.delete({ where: { id: '' } }).execute(); +const deleted = await db.appStep.delete({ where: { id: '' } }).execute(); ``` ### `db.claimedInvite` @@ -714,16 +703,16 @@ CRUD operations for ClaimedInvite records. const items = await db.claimedInvite.findMany({ select: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.claimedInvite.findOne({ id: '', select: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.claimedInvite.findOne({ id: '', select: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.claimedInvite.create({ data: { data: '', senderId: '', receiverId: '' }, select: { id: true } }).execute(); +const created = await db.claimedInvite.create({ data: { data: '', senderId: '', receiverId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.claimedInvite.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); +const updated = await db.claimedInvite.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.claimedInvite.delete({ where: { id: '' } }).execute(); +const deleted = await db.claimedInvite.delete({ where: { id: '' } }).execute(); ``` ### `db.appGrant` @@ -749,16 +738,16 @@ CRUD operations for AppGrant records. const items = await db.appGrant.findMany({ select: { id: true, permissions: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.appGrant.findOne({ id: '', select: { id: true, permissions: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.appGrant.findOne({ id: '', select: { id: true, permissions: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.appGrant.create({ data: { permissions: '', isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute(); +const created = await db.appGrant.create({ data: { permissions: '', isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appGrant.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); +const updated = await db.appGrant.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.appGrant.delete({ where: { id: '' } }).execute(); ``` ### `db.appMembershipDefault` @@ -784,16 +773,16 @@ CRUD operations for AppMembershipDefault records. const items = await db.appMembershipDefault.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }).execute(); // Get one by id -const item = await db.appMembershipDefault.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }).execute(); +const item = await db.appMembershipDefault.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }).execute(); // Create -const created = await db.appMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isVerified: '' }, select: { id: true } }).execute(); +const created = await db.appMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isVerified: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); +const updated = await db.appMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appMembershipDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.appMembershipDefault.delete({ where: { id: '' } }).execute(); ``` ### `db.orgLimit` @@ -818,16 +807,16 @@ CRUD operations for OrgLimit records. const items = await db.orgLimit.findMany({ select: { id: true, name: true, actorId: true, num: true, max: true, entityId: true } }).execute(); // Get one by id -const item = await db.orgLimit.findOne({ id: '', select: { id: true, name: true, actorId: true, num: true, max: true, entityId: true } }).execute(); +const item = await db.orgLimit.findOne({ id: '', select: { id: true, name: true, actorId: true, num: true, max: true, entityId: true } }).execute(); // Create -const created = await db.orgLimit.create({ data: { name: '', actorId: '', num: '', max: '', entityId: '' }, select: { id: true } }).execute(); +const created = await db.orgLimit.create({ data: { name: '', actorId: '', num: '', max: '', entityId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgLimit.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.orgLimit.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgLimit.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgLimit.delete({ where: { id: '' } }).execute(); ``` ### `db.orgClaimedInvite` @@ -853,16 +842,16 @@ CRUD operations for OrgClaimedInvite records. const items = await db.orgClaimedInvite.findMany({ select: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true, entityId: true } }).execute(); // Get one by id -const item = await db.orgClaimedInvite.findOne({ id: '', select: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true, entityId: true } }).execute(); +const item = await db.orgClaimedInvite.findOne({ id: '', select: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true, entityId: true } }).execute(); // Create -const created = await db.orgClaimedInvite.create({ data: { data: '', senderId: '', receiverId: '', entityId: '' }, select: { id: true } }).execute(); +const created = await db.orgClaimedInvite.create({ data: { data: '', senderId: '', receiverId: '', entityId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgClaimedInvite.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); +const updated = await db.orgClaimedInvite.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgClaimedInvite.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgClaimedInvite.delete({ where: { id: '' } }).execute(); ``` ### `db.orgGrant` @@ -889,16 +878,16 @@ CRUD operations for OrgGrant records. const items = await db.orgGrant.findMany({ select: { id: true, permissions: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.orgGrant.findOne({ id: '', select: { id: true, permissions: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.orgGrant.findOne({ id: '', select: { id: true, permissions: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.orgGrant.create({ data: { permissions: '', isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); +const created = await db.orgGrant.create({ data: { permissions: '', isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgGrant.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); +const updated = await db.orgGrant.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgGrant.delete({ where: { id: '' } }).execute(); ``` ### `db.orgChartEdge` @@ -917,26 +906,24 @@ CRUD operations for OrgChartEdge records. | `parentId` | UUID | Yes | | `positionTitle` | String | Yes | | `positionLevel` | Int | Yes | -| `positionTitleTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all orgChartEdge records -const items = await db.orgChartEdge.findMany({ select: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true, positionTitleTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.orgChartEdge.findMany({ select: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true } }).execute(); // Get one by id -const item = await db.orgChartEdge.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true, positionTitleTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.orgChartEdge.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true } }).execute(); // Create -const created = await db.orgChartEdge.create({ data: { entityId: '', childId: '', parentId: '', positionTitle: '', positionLevel: '', positionTitleTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.orgChartEdge.create({ data: { entityId: '', childId: '', parentId: '', positionTitle: '', positionLevel: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgChartEdge.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); +const updated = await db.orgChartEdge.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgChartEdge.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgChartEdge.delete({ where: { id: '' } }).execute(); ``` ### `db.orgMembershipDefault` @@ -964,16 +951,16 @@ CRUD operations for OrgMembershipDefault records. const items = await db.orgMembershipDefault.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true, deleteMemberCascadeGroups: true, createGroupsCascadeMembers: true } }).execute(); // Get one by id -const item = await db.orgMembershipDefault.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true, deleteMemberCascadeGroups: true, createGroupsCascadeMembers: true } }).execute(); +const item = await db.orgMembershipDefault.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true, deleteMemberCascadeGroups: true, createGroupsCascadeMembers: true } }).execute(); // Create -const created = await db.orgMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', entityId: '', deleteMemberCascadeGroups: '', createGroupsCascadeMembers: '' }, select: { id: true } }).execute(); +const created = await db.orgMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', entityId: '', deleteMemberCascadeGroups: '', createGroupsCascadeMembers: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); +const updated = await db.orgMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgMembershipDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgMembershipDefault.delete({ where: { id: '' } }).execute(); ``` ### `db.appMembership` @@ -1008,16 +995,16 @@ CRUD operations for AppMembership records. const items = await db.appMembership.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }).execute(); // Get one by id -const item = await db.appMembership.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }).execute(); +const item = await db.appMembership.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }).execute(); // Create -const created = await db.appMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', profileId: '' }, select: { id: true } }).execute(); +const created = await db.appMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', profileId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); +const updated = await db.appMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appMembership.delete({ where: { id: '' } }).execute(); +const deleted = await db.appMembership.delete({ where: { id: '' } }).execute(); ``` ### `db.orgMembership` @@ -1052,16 +1039,16 @@ CRUD operations for OrgMembership records. const items = await db.orgMembership.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, profileId: true } }).execute(); // Get one by id -const item = await db.orgMembership.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, profileId: true } }).execute(); +const item = await db.orgMembership.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, profileId: true } }).execute(); // Create -const created = await db.orgMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '', profileId: '' }, select: { id: true } }).execute(); +const created = await db.orgMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '', profileId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); +const updated = await db.orgMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgMembership.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgMembership.delete({ where: { id: '' } }).execute(); ``` ### `db.invite` @@ -1084,26 +1071,24 @@ CRUD operations for Invite records. | `expiresAt` | Datetime | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `inviteTokenTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all invite records -const items = await db.invite.findMany({ select: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true, inviteTokenTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.invite.findMany({ select: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.invite.findOne({ id: '', select: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true, inviteTokenTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.invite.findOne({ id: '', select: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.invite.create({ data: { email: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '', inviteTokenTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.invite.create({ data: { email: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '' }, select: { id: true } }).execute(); // Update -const updated = await db.invite.update({ where: { id: '' }, data: { email: '' }, select: { id: true } }).execute(); +const updated = await db.invite.update({ where: { id: '' }, data: { email: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.invite.delete({ where: { id: '' } }).execute(); +const deleted = await db.invite.delete({ where: { id: '' } }).execute(); ``` ### `db.appLevel` @@ -1121,26 +1106,24 @@ CRUD operations for AppLevel records. | `ownerId` | UUID | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `descriptionTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all appLevel records -const items = await db.appLevel.findMany({ select: { id: true, name: true, description: true, image: true, ownerId: true, createdAt: true, updatedAt: true, descriptionTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.appLevel.findMany({ select: { id: true, name: true, description: true, image: true, ownerId: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.appLevel.findOne({ id: '', select: { id: true, name: true, description: true, image: true, ownerId: true, createdAt: true, updatedAt: true, descriptionTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.appLevel.findOne({ id: '', select: { id: true, name: true, description: true, image: true, ownerId: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.appLevel.create({ data: { name: '', description: '', image: '', ownerId: '', descriptionTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.appLevel.create({ data: { name: '', description: '', image: '', ownerId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appLevel.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.appLevel.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appLevel.delete({ where: { id: '' } }).execute(); +const deleted = await db.appLevel.delete({ where: { id: '' } }).execute(); ``` ### `db.orgInvite` @@ -1165,26 +1148,24 @@ CRUD operations for OrgInvite records. | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | | `entityId` | UUID | Yes | -| `inviteTokenTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all orgInvite records -const items = await db.orgInvite.findMany({ select: { id: true, email: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true, inviteTokenTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.orgInvite.findMany({ select: { id: true, email: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true } }).execute(); // Get one by id -const item = await db.orgInvite.findOne({ id: '', select: { id: true, email: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true, inviteTokenTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.orgInvite.findOne({ id: '', select: { id: true, email: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true } }).execute(); // Create -const created = await db.orgInvite.create({ data: { email: '', senderId: '', receiverId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '', entityId: '', inviteTokenTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.orgInvite.create({ data: { email: '', senderId: '', receiverId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '', entityId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgInvite.update({ where: { id: '' }, data: { email: '' }, select: { id: true } }).execute(); +const updated = await db.orgInvite.update({ where: { id: '' }, data: { email: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgInvite.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgInvite.delete({ where: { id: '' } }).execute(); ``` ## Custom Operations @@ -1201,7 +1182,7 @@ appPermissionsGetPaddedMask | `mask` | BitString | ```typescript -const result = await db.query.appPermissionsGetPaddedMask({ mask: '' }).execute(); +const result = await db.query.appPermissionsGetPaddedMask({ mask: '' }).execute(); ``` ### `db.query.orgPermissionsGetPaddedMask` @@ -1216,7 +1197,7 @@ orgPermissionsGetPaddedMask | `mask` | BitString | ```typescript -const result = await db.query.orgPermissionsGetPaddedMask({ mask: '' }).execute(); +const result = await db.query.orgPermissionsGetPaddedMask({ mask: '' }).execute(); ``` ### `db.query.orgIsManagerOf` @@ -1234,7 +1215,7 @@ orgIsManagerOf | `pMaxDepth` | Int | ```typescript -const result = await db.query.orgIsManagerOf({ pEntityId: '', pManagerId: '', pUserId: '', pMaxDepth: '' }).execute(); +const result = await db.query.orgIsManagerOf({ pEntityId: '', pManagerId: '', pUserId: '', pMaxDepth: '' }).execute(); ``` ### `db.query.appPermissionsGetMask` @@ -1249,7 +1230,7 @@ appPermissionsGetMask | `ids` | [UUID] | ```typescript -const result = await db.query.appPermissionsGetMask({ ids: '' }).execute(); +const result = await db.query.appPermissionsGetMask({ ids: '' }).execute(); ``` ### `db.query.orgPermissionsGetMask` @@ -1264,7 +1245,7 @@ orgPermissionsGetMask | `ids` | [UUID] | ```typescript -const result = await db.query.orgPermissionsGetMask({ ids: '' }).execute(); +const result = await db.query.orgPermissionsGetMask({ ids: '' }).execute(); ``` ### `db.query.stepsAchieved` @@ -1280,7 +1261,7 @@ stepsAchieved | `vroleId` | UUID | ```typescript -const result = await db.query.stepsAchieved({ vlevel: '', vroleId: '' }).execute(); +const result = await db.query.stepsAchieved({ vlevel: '', vroleId: '' }).execute(); ``` ### `db.query.appPermissionsGetMaskByNames` @@ -1295,7 +1276,7 @@ appPermissionsGetMaskByNames | `names` | [String] | ```typescript -const result = await db.query.appPermissionsGetMaskByNames({ names: '' }).execute(); +const result = await db.query.appPermissionsGetMaskByNames({ names: '' }).execute(); ``` ### `db.query.orgPermissionsGetMaskByNames` @@ -1310,7 +1291,7 @@ orgPermissionsGetMaskByNames | `names` | [String] | ```typescript -const result = await db.query.orgPermissionsGetMaskByNames({ names: '' }).execute(); +const result = await db.query.orgPermissionsGetMaskByNames({ names: '' }).execute(); ``` ### `db.query.appPermissionsGetByMask` @@ -1328,7 +1309,7 @@ Reads and enables pagination through a set of `AppPermission`. | `after` | Cursor | ```typescript -const result = await db.query.appPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute(); +const result = await db.query.appPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute(); ``` ### `db.query.orgPermissionsGetByMask` @@ -1346,7 +1327,7 @@ Reads and enables pagination through a set of `OrgPermission`. | `after` | Cursor | ```typescript -const result = await db.query.orgPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute(); +const result = await db.query.orgPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute(); ``` ### `db.query.stepsRequired` @@ -1365,7 +1346,7 @@ Reads and enables pagination through a set of `AppLevelRequirement`. | `after` | Cursor | ```typescript -const result = await db.query.stepsRequired({ vlevel: '', vroleId: '', first: '', offset: '', after: '' }).execute(); +const result = await db.query.stepsRequired({ vlevel: '', vroleId: '', first: '', offset: '', after: '' }).execute(); ``` ### `db.mutation.submitInviteCode` @@ -1380,7 +1361,7 @@ submitInviteCode | `input` | SubmitInviteCodeInput (required) | ```typescript -const result = await db.mutation.submitInviteCode({ input: '' }).execute(); +const result = await db.mutation.submitInviteCode({ input: { token: '' } }).execute(); ``` ### `db.mutation.submitOrgInviteCode` @@ -1395,7 +1376,7 @@ submitOrgInviteCode | `input` | SubmitOrgInviteCodeInput (required) | ```typescript -const result = await db.mutation.submitOrgInviteCode({ input: '' }).execute(); +const result = await db.mutation.submitOrgInviteCode({ input: { token: '' } }).execute(); ``` --- diff --git a/sdk/constructive-react/src/admin/orm/input-types.ts b/sdk/constructive-react/src/admin/orm/input-types.ts index 7948bd36c..9189f9381 100644 --- a/sdk/constructive-react/src/admin/orm/input-types.ts +++ b/sdk/constructive-react/src/admin/orm/input-types.ts @@ -253,10 +253,6 @@ export interface AppPermission { bitstr?: string | null; /** Human-readable description of what this permission allows */ description?: string | null; - /** TRGM similarity when searching `description`. Returns null when no trgm search filter is active. */ - descriptionTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } /** Defines available permissions as named bits within a bitmask, used by the RBAC system for access control */ export interface OrgPermission { @@ -269,10 +265,6 @@ export interface OrgPermission { bitstr?: string | null; /** Human-readable description of what this permission allows */ description?: string | null; - /** TRGM similarity when searching `description`. Returns null when no trgm search filter is active. */ - descriptionTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } /** Defines the specific requirements that must be met to achieve a level */ export interface AppLevelRequirement { @@ -289,10 +281,6 @@ export interface AppLevelRequirement { priority?: number | null; createdAt?: string | null; updatedAt?: string | null; - /** TRGM similarity when searching `description`. Returns null when no trgm search filter is active. */ - descriptionTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } /** Simplified view of active members in an entity, used for listing who belongs to an org or group */ export interface OrgMember { @@ -391,7 +379,7 @@ export interface OrgChartEdgeGrant { childId?: string | null; /** User ID of the manager being assigned; NULL for top-level positions */ parentId?: string | null; - /** User ID of the admin who performed this grant or revocation */ + /** User ID of the admin who performed this grant or revocation; NULL if grantor was deleted */ grantorId?: string | null; /** TRUE to add/update the edge, FALSE to remove it */ isGrant?: boolean | null; @@ -401,10 +389,6 @@ export interface OrgChartEdgeGrant { positionLevel?: number | null; /** Timestamp when this grant or revocation was recorded */ createdAt?: string | null; - /** TRGM similarity when searching `positionTitle`. Returns null when no trgm search filter is active. */ - positionTitleTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } /** Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) */ export interface MembershipType { @@ -416,12 +400,6 @@ export interface MembershipType { description?: string | null; /** Short prefix used to namespace tables and functions for this membership scope */ prefix?: string | null; - /** TRGM similarity when searching `description`. Returns null when no trgm search filter is active. */ - descriptionTrgmSimilarity?: number | null; - /** TRGM similarity when searching `prefix`. Returns null when no trgm search filter is active. */ - prefixTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } /** Tracks per-actor usage counts against configurable maximum limits */ export interface AppLimit { @@ -550,10 +528,6 @@ export interface OrgChartEdge { positionTitle?: string | null; /** Numeric seniority level for this position (higher = more senior) */ positionLevel?: number | null; - /** TRGM similarity when searching `positionTitle`. Returns null when no trgm search filter is active. */ - positionTitleTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } /** Default membership settings per entity, controlling initial approval and verification state for new members */ export interface OrgMembershipDefault { @@ -652,10 +626,6 @@ export interface Invite { expiresAt?: string | null; createdAt?: string | null; updatedAt?: string | null; - /** TRGM similarity when searching `inviteToken`. Returns null when no trgm search filter is active. */ - inviteTokenTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } /** Defines available levels that users can achieve by completing requirements */ export interface AppLevel { @@ -670,10 +640,6 @@ export interface AppLevel { ownerId?: string | null; createdAt?: string | null; updatedAt?: string | null; - /** TRGM similarity when searching `description`. Returns null when no trgm search filter is active. */ - descriptionTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } /** Invitation records sent to prospective members via email, with token-based redemption and expiration */ export interface OrgInvite { @@ -701,10 +667,6 @@ export interface OrgInvite { createdAt?: string | null; updatedAt?: string | null; entityId?: string | null; - /** TRGM similarity when searching `inviteToken`. Returns null when no trgm search filter is active. */ - inviteTokenTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } // ============ Relation Helper Types ============ export interface ConnectionResult { @@ -805,8 +767,6 @@ export type AppPermissionSelect = { bitnum?: boolean; bitstr?: boolean; description?: boolean; - descriptionTrgmSimilarity?: boolean; - searchScore?: boolean; }; export type OrgPermissionSelect = { id?: boolean; @@ -814,8 +774,6 @@ export type OrgPermissionSelect = { bitnum?: boolean; bitstr?: boolean; description?: boolean; - descriptionTrgmSimilarity?: boolean; - searchScore?: boolean; }; export type AppLevelRequirementSelect = { id?: boolean; @@ -826,8 +784,6 @@ export type AppLevelRequirementSelect = { priority?: boolean; createdAt?: boolean; updatedAt?: boolean; - descriptionTrgmSimilarity?: boolean; - searchScore?: boolean; }; export type OrgMemberSelect = { id?: boolean; @@ -898,17 +854,12 @@ export type OrgChartEdgeGrantSelect = { positionTitle?: boolean; positionLevel?: boolean; createdAt?: boolean; - positionTitleTrgmSimilarity?: boolean; - searchScore?: boolean; }; export type MembershipTypeSelect = { id?: boolean; name?: boolean; description?: boolean; prefix?: boolean; - descriptionTrgmSimilarity?: boolean; - prefixTrgmSimilarity?: boolean; - searchScore?: boolean; }; export type AppLimitSelect = { id?: boolean; @@ -995,8 +946,6 @@ export type OrgChartEdgeSelect = { parentId?: boolean; positionTitle?: boolean; positionLevel?: boolean; - positionTitleTrgmSimilarity?: boolean; - searchScore?: boolean; }; export type OrgMembershipDefaultSelect = { id?: boolean; @@ -1058,8 +1007,6 @@ export type InviteSelect = { expiresAt?: boolean; createdAt?: boolean; updatedAt?: boolean; - inviteTokenTrgmSimilarity?: boolean; - searchScore?: boolean; }; export type AppLevelSelect = { id?: boolean; @@ -1069,8 +1016,6 @@ export type AppLevelSelect = { ownerId?: boolean; createdAt?: boolean; updatedAt?: boolean; - descriptionTrgmSimilarity?: boolean; - searchScore?: boolean; }; export type OrgInviteSelect = { id?: boolean; @@ -1087,8 +1032,6 @@ export type OrgInviteSelect = { createdAt?: boolean; updatedAt?: boolean; entityId?: boolean; - inviteTokenTrgmSimilarity?: boolean; - searchScore?: boolean; }; // ============ Table Filter Types ============ export interface OrgGetManagersRecordFilter { @@ -1111,8 +1054,6 @@ export interface AppPermissionFilter { bitnum?: IntFilter; bitstr?: BitStringFilter; description?: StringFilter; - descriptionTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: AppPermissionFilter[]; or?: AppPermissionFilter[]; not?: AppPermissionFilter; @@ -1123,8 +1064,6 @@ export interface OrgPermissionFilter { bitnum?: IntFilter; bitstr?: BitStringFilter; description?: StringFilter; - descriptionTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: OrgPermissionFilter[]; or?: OrgPermissionFilter[]; not?: OrgPermissionFilter; @@ -1138,8 +1077,6 @@ export interface AppLevelRequirementFilter { priority?: IntFilter; createdAt?: DatetimeFilter; updatedAt?: DatetimeFilter; - descriptionTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: AppLevelRequirementFilter[]; or?: AppLevelRequirementFilter[]; not?: AppLevelRequirementFilter; @@ -1240,8 +1177,6 @@ export interface OrgChartEdgeGrantFilter { positionTitle?: StringFilter; positionLevel?: IntFilter; createdAt?: DatetimeFilter; - positionTitleTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: OrgChartEdgeGrantFilter[]; or?: OrgChartEdgeGrantFilter[]; not?: OrgChartEdgeGrantFilter; @@ -1251,9 +1186,6 @@ export interface MembershipTypeFilter { name?: StringFilter; description?: StringFilter; prefix?: StringFilter; - descriptionTrgmSimilarity?: FloatFilter; - prefixTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: MembershipTypeFilter[]; or?: MembershipTypeFilter[]; not?: MembershipTypeFilter; @@ -1370,8 +1302,6 @@ export interface OrgChartEdgeFilter { parentId?: UUIDFilter; positionTitle?: StringFilter; positionLevel?: IntFilter; - positionTitleTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: OrgChartEdgeFilter[]; or?: OrgChartEdgeFilter[]; not?: OrgChartEdgeFilter; @@ -1445,8 +1375,6 @@ export interface InviteFilter { expiresAt?: DatetimeFilter; createdAt?: DatetimeFilter; updatedAt?: DatetimeFilter; - inviteTokenTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: InviteFilter[]; or?: InviteFilter[]; not?: InviteFilter; @@ -1459,8 +1387,6 @@ export interface AppLevelFilter { ownerId?: UUIDFilter; createdAt?: DatetimeFilter; updatedAt?: DatetimeFilter; - descriptionTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: AppLevelFilter[]; or?: AppLevelFilter[]; not?: AppLevelFilter; @@ -1480,8 +1406,6 @@ export interface OrgInviteFilter { createdAt?: DatetimeFilter; updatedAt?: DatetimeFilter; entityId?: UUIDFilter; - inviteTokenTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: OrgInviteFilter[]; or?: OrgInviteFilter[]; not?: OrgInviteFilter; @@ -1504,69 +1428,45 @@ export type OrgGetSubordinatesRecordsOrderBy = | 'DEPTH_ASC' | 'DEPTH_DESC'; export type AppPermissionOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'BITNUM_ASC' - | 'BITNUM_DESC' - | 'BITSTR_ASC' - | 'BITSTR_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'DESCRIPTION_TRGM_SIMILARITY_ASC' - | 'DESCRIPTION_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'BITNUM_DESC'; export type OrgPermissionOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'BITNUM_ASC' - | 'BITNUM_DESC' - | 'BITSTR_ASC' - | 'BITSTR_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'DESCRIPTION_TRGM_SIMILARITY_ASC' - | 'DESCRIPTION_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'BITNUM_DESC'; export type AppLevelRequirementOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'LEVEL_ASC' | 'LEVEL_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'REQUIRED_COUNT_ASC' - | 'REQUIRED_COUNT_DESC' | 'PRIORITY_ASC' | 'PRIORITY_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'DESCRIPTION_TRGM_SIMILARITY_ASC' - | 'DESCRIPTION_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'UPDATED_AT_DESC'; export type OrgMemberOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'IS_ADMIN_ASC' @@ -1576,31 +1476,25 @@ export type OrgMemberOrderBy = | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC'; export type AppPermissionDefaultOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' - | 'ID_DESC' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC'; + | 'ID_DESC'; export type OrgPermissionDefaultOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC'; export type AppAdminGrantOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'GRANTOR_ID_ASC' @@ -1610,13 +1504,11 @@ export type AppAdminGrantOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; export type AppOwnerGrantOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'GRANTOR_ID_ASC' @@ -1626,13 +1518,11 @@ export type AppOwnerGrantOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; export type OrgAdminGrantOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'ENTITY_ID_ASC' @@ -1644,13 +1534,11 @@ export type OrgAdminGrantOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; export type OrgOwnerGrantOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'ENTITY_ID_ASC' @@ -1662,29 +1550,25 @@ export type OrgOwnerGrantOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; export type AppLimitDefaultOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' - | 'NAME_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; + | 'NAME_DESC'; export type OrgLimitDefaultOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' - | 'NAME_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; + | 'NAME_DESC'; export type OrgChartEdgeGrantOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'ENTITY_ID_ASC' @@ -1694,91 +1578,59 @@ export type OrgChartEdgeGrantOrderBy = | 'PARENT_ID_ASC' | 'PARENT_ID_DESC' | 'GRANTOR_ID_ASC' - | 'GRANTOR_ID_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' - | 'POSITION_TITLE_ASC' - | 'POSITION_TITLE_DESC' - | 'POSITION_LEVEL_ASC' - | 'POSITION_LEVEL_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'POSITION_TITLE_TRGM_SIMILARITY_ASC' - | 'POSITION_TITLE_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'GRANTOR_ID_DESC'; export type MembershipTypeOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' - | 'NAME_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'DESCRIPTION_TRGM_SIMILARITY_ASC' - | 'DESCRIPTION_TRGM_SIMILARITY_DESC' - | 'PREFIX_TRGM_SIMILARITY_ASC' - | 'PREFIX_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'NAME_DESC'; export type AppLimitOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'NUM_ASC' - | 'NUM_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; + | 'ACTOR_ID_DESC'; export type AppAchievementOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'COUNT_ASC' - | 'COUNT_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; export type AppStepOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'COUNT_ASC' - | 'COUNT_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; export type ClaimedInviteOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' - | 'DATA_ASC' - | 'DATA_DESC' | 'SENDER_ID_ASC' | 'SENDER_ID_DESC' | 'RECEIVER_ID_ASC' @@ -1788,15 +1640,11 @@ export type ClaimedInviteOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; export type AppGrantOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'GRANTOR_ID_ASC' @@ -1806,9 +1654,9 @@ export type AppGrantOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; export type AppMembershipDefaultOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'CREATED_AT_ASC' @@ -1818,35 +1666,25 @@ export type AppMembershipDefaultOrderBy = | 'CREATED_BY_ASC' | 'CREATED_BY_DESC' | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'IS_APPROVED_ASC' - | 'IS_APPROVED_DESC' - | 'IS_VERIFIED_ASC' - | 'IS_VERIFIED_DESC'; + | 'UPDATED_BY_DESC'; export type OrgLimitOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' - | 'NUM_ASC' - | 'NUM_DESC' - | 'MAX_ASC' - | 'MAX_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC'; export type OrgClaimedInviteOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' - | 'DATA_ASC' - | 'DATA_DESC' | 'SENDER_ID_ASC' | 'SENDER_ID_DESC' | 'RECEIVER_ID_ASC' @@ -1858,15 +1696,11 @@ export type OrgClaimedInviteOrderBy = | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC'; export type OrgGrantOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'ENTITY_ID_ASC' @@ -1878,9 +1712,9 @@ export type OrgGrantOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; export type OrgChartEdgeOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'CREATED_AT_ASC' @@ -1892,19 +1726,11 @@ export type OrgChartEdgeOrderBy = | 'CHILD_ID_ASC' | 'CHILD_ID_DESC' | 'PARENT_ID_ASC' - | 'PARENT_ID_DESC' - | 'POSITION_TITLE_ASC' - | 'POSITION_TITLE_DESC' - | 'POSITION_LEVEL_ASC' - | 'POSITION_LEVEL_DESC' - | 'POSITION_TITLE_TRGM_SIMILARITY_ASC' - | 'POSITION_TITLE_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'PARENT_ID_DESC'; export type OrgMembershipDefaultOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'CREATED_AT_ASC' @@ -1915,18 +1741,12 @@ export type OrgMembershipDefaultOrderBy = | 'CREATED_BY_DESC' | 'UPDATED_BY_ASC' | 'UPDATED_BY_DESC' - | 'IS_APPROVED_ASC' - | 'IS_APPROVED_DESC' | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'DELETE_MEMBER_CASCADE_GROUPS_ASC' - | 'DELETE_MEMBER_CASCADE_GROUPS_DESC' - | 'CREATE_GROUPS_CASCADE_MEMBERS_ASC' - | 'CREATE_GROUPS_CASCADE_MEMBERS_DESC'; + | 'ENTITY_ID_DESC'; export type AppMembershipOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'CREATED_AT_ASC' @@ -1937,32 +1757,18 @@ export type AppMembershipOrderBy = | 'CREATED_BY_DESC' | 'UPDATED_BY_ASC' | 'UPDATED_BY_DESC' - | 'IS_APPROVED_ASC' - | 'IS_APPROVED_DESC' - | 'IS_BANNED_ASC' - | 'IS_BANNED_DESC' - | 'IS_DISABLED_ASC' - | 'IS_DISABLED_DESC' - | 'IS_VERIFIED_ASC' - | 'IS_VERIFIED_DESC' - | 'IS_ACTIVE_ASC' - | 'IS_ACTIVE_DESC' | 'IS_OWNER_ASC' | 'IS_OWNER_DESC' | 'IS_ADMIN_ASC' | 'IS_ADMIN_DESC' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC' - | 'GRANTED_ASC' - | 'GRANTED_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'PROFILE_ID_ASC' | 'PROFILE_ID_DESC'; export type OrgMembershipOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'CREATED_AT_ASC' @@ -1973,22 +1779,10 @@ export type OrgMembershipOrderBy = | 'CREATED_BY_DESC' | 'UPDATED_BY_ASC' | 'UPDATED_BY_DESC' - | 'IS_APPROVED_ASC' - | 'IS_APPROVED_DESC' - | 'IS_BANNED_ASC' - | 'IS_BANNED_DESC' - | 'IS_DISABLED_ASC' - | 'IS_DISABLED_DESC' - | 'IS_ACTIVE_ASC' - | 'IS_ACTIVE_DESC' | 'IS_OWNER_ASC' | 'IS_OWNER_DESC' | 'IS_ADMIN_ASC' | 'IS_ADMIN_DESC' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC' - | 'GRANTED_ASC' - | 'GRANTED_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'ENTITY_ID_ASC' @@ -1996,9 +1790,9 @@ export type OrgMembershipOrderBy = | 'PROFILE_ID_ASC' | 'PROFILE_ID_DESC'; export type InviteOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'EMAIL_ASC' @@ -2009,50 +1803,30 @@ export type InviteOrderBy = | 'INVITE_TOKEN_DESC' | 'INVITE_VALID_ASC' | 'INVITE_VALID_DESC' - | 'INVITE_LIMIT_ASC' - | 'INVITE_LIMIT_DESC' - | 'INVITE_COUNT_ASC' - | 'INVITE_COUNT_DESC' - | 'MULTIPLE_ASC' - | 'MULTIPLE_DESC' - | 'DATA_ASC' - | 'DATA_DESC' | 'EXPIRES_AT_ASC' | 'EXPIRES_AT_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'INVITE_TOKEN_TRGM_SIMILARITY_ASC' - | 'INVITE_TOKEN_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'UPDATED_AT_DESC'; export type AppLevelOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'IMAGE_ASC' - | 'IMAGE_DESC' | 'OWNER_ID_ASC' | 'OWNER_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'DESCRIPTION_TRGM_SIMILARITY_ASC' - | 'DESCRIPTION_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'UPDATED_AT_DESC'; export type OrgInviteOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'EMAIL_ASC' @@ -2065,14 +1839,6 @@ export type OrgInviteOrderBy = | 'INVITE_TOKEN_DESC' | 'INVITE_VALID_ASC' | 'INVITE_VALID_DESC' - | 'INVITE_LIMIT_ASC' - | 'INVITE_LIMIT_DESC' - | 'INVITE_COUNT_ASC' - | 'INVITE_COUNT_DESC' - | 'MULTIPLE_ASC' - | 'MULTIPLE_DESC' - | 'DATA_ASC' - | 'DATA_DESC' | 'EXPIRES_AT_ASC' | 'EXPIRES_AT_DESC' | 'CREATED_AT_ASC' @@ -2080,11 +1846,7 @@ export type OrgInviteOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'INVITE_TOKEN_TRGM_SIMILARITY_ASC' - | 'INVITE_TOKEN_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'ENTITY_ID_DESC'; // ============ CRUD Input Types ============ export interface CreateOrgGetManagersRecordInput { clientMutationId?: string; @@ -2140,8 +1902,6 @@ export interface AppPermissionPatch { bitnum?: number | null; bitstr?: string | null; description?: string | null; - descriptionTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateAppPermissionInput { clientMutationId?: string; @@ -2166,8 +1926,6 @@ export interface OrgPermissionPatch { bitnum?: number | null; bitstr?: string | null; description?: string | null; - descriptionTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateOrgPermissionInput { clientMutationId?: string; @@ -2194,8 +1952,6 @@ export interface AppLevelRequirementPatch { description?: string | null; requiredCount?: number | null; priority?: number | null; - descriptionTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateAppLevelRequirementInput { clientMutationId?: string; @@ -2404,7 +2160,7 @@ export interface CreateOrgChartEdgeGrantInput { entityId: string; childId: string; parentId?: string; - grantorId: string; + grantorId?: string; isGrant?: boolean; positionTitle?: string; positionLevel?: number; @@ -2418,8 +2174,6 @@ export interface OrgChartEdgeGrantPatch { isGrant?: boolean | null; positionTitle?: string | null; positionLevel?: number | null; - positionTitleTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateOrgChartEdgeGrantInput { clientMutationId?: string; @@ -2442,9 +2196,6 @@ export interface MembershipTypePatch { name?: string | null; description?: string | null; prefix?: string | null; - descriptionTrgmSimilarity?: number | null; - prefixTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateMembershipTypeInput { clientMutationId?: string; @@ -2685,8 +2436,6 @@ export interface OrgChartEdgePatch { parentId?: string | null; positionTitle?: string | null; positionLevel?: number | null; - positionTitleTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateOrgChartEdgeInput { clientMutationId?: string; @@ -2833,8 +2582,6 @@ export interface InvitePatch { multiple?: boolean | null; data?: Record | null; expiresAt?: string | null; - inviteTokenTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateInviteInput { clientMutationId?: string; @@ -2859,8 +2606,7 @@ export interface AppLevelPatch { description?: string | null; image?: ConstructiveInternalTypeImage | null; ownerId?: string | null; - descriptionTrgmSimilarity?: number | null; - searchScore?: number | null; + imageUpload?: File | null; } export interface UpdateAppLevelInput { clientMutationId?: string; @@ -2899,8 +2645,6 @@ export interface OrgInvitePatch { data?: Record | null; expiresAt?: string | null; entityId?: string | null; - inviteTokenTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateOrgInviteInput { clientMutationId?: string; diff --git a/sdk/constructive-react/src/admin/schema-types.ts b/sdk/constructive-react/src/admin/schema-types.ts index 3e6c51fdf..17d443892 100644 --- a/sdk/constructive-react/src/admin/schema-types.ts +++ b/sdk/constructive-react/src/admin/schema-types.ts @@ -83,7 +83,9 @@ export type OrgPermissionDefaultOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' - | 'ID_DESC'; + | 'ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC'; /** Methods to use when ordering `AppAdminGrant`. */ export type AppAdminGrantOrderBy = | 'NATURAL' @@ -91,6 +93,8 @@ export type AppAdminGrantOrderBy = | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' | 'GRANTOR_ID_ASC' | 'GRANTOR_ID_DESC' | 'CREATED_AT_ASC' @@ -104,6 +108,8 @@ export type AppOwnerGrantOrderBy = | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' | 'GRANTOR_ID_ASC' | 'GRANTOR_ID_DESC' | 'CREATED_AT_ASC' @@ -117,6 +123,8 @@ export type OrgAdminGrantOrderBy = | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' | 'GRANTOR_ID_ASC' @@ -132,6 +140,8 @@ export type OrgOwnerGrantOrderBy = | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' | 'GRANTOR_ID_ASC' @@ -172,11 +182,7 @@ export type OrgChartEdgeGrantOrderBy = | 'PARENT_ID_ASC' | 'PARENT_ID_DESC' | 'GRANTOR_ID_ASC' - | 'GRANTOR_ID_DESC' - | 'POSITION_TITLE_TRGM_SIMILARITY_ASC' - | 'POSITION_TITLE_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'GRANTOR_ID_DESC'; /** Methods to use when ordering `MembershipType`. */ export type MembershipTypeOrderBy = | 'NATURAL' @@ -185,13 +191,7 @@ export type MembershipTypeOrderBy = | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' - | 'NAME_DESC' - | 'DESCRIPTION_TRGM_SIMILARITY_ASC' - | 'DESCRIPTION_TRGM_SIMILARITY_DESC' - | 'PREFIX_TRGM_SIMILARITY_ASC' - | 'PREFIX_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'NAME_DESC'; /** Methods to use when ordering `AppPermission`. */ export type AppPermissionOrderBy = | 'NATURAL' @@ -202,11 +202,7 @@ export type AppPermissionOrderBy = | 'NAME_ASC' | 'NAME_DESC' | 'BITNUM_ASC' - | 'BITNUM_DESC' - | 'DESCRIPTION_TRGM_SIMILARITY_ASC' - | 'DESCRIPTION_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'BITNUM_DESC'; /** Methods to use when ordering `OrgPermission`. */ export type OrgPermissionOrderBy = | 'NATURAL' @@ -217,11 +213,7 @@ export type OrgPermissionOrderBy = | 'NAME_ASC' | 'NAME_DESC' | 'BITNUM_ASC' - | 'BITNUM_DESC' - | 'DESCRIPTION_TRGM_SIMILARITY_ASC' - | 'DESCRIPTION_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'BITNUM_DESC'; /** Methods to use when ordering `AppLimit`. */ export type AppLimitOrderBy = | 'NATURAL' @@ -285,6 +277,8 @@ export type AppGrantOrderBy = | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' | 'GRANTOR_ID_ASC' | 'GRANTOR_ID_DESC' | 'CREATED_AT_ASC' @@ -333,7 +327,9 @@ export type OrgClaimedInviteOrderBy = | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; + | 'UPDATED_AT_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC'; /** Methods to use when ordering `OrgGrant`. */ export type OrgGrantOrderBy = | 'NATURAL' @@ -341,6 +337,8 @@ export type OrgGrantOrderBy = | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' | 'GRANTOR_ID_ASC' @@ -365,11 +363,7 @@ export type OrgChartEdgeOrderBy = | 'CHILD_ID_ASC' | 'CHILD_ID_DESC' | 'PARENT_ID_ASC' - | 'PARENT_ID_DESC' - | 'POSITION_TITLE_TRGM_SIMILARITY_ASC' - | 'POSITION_TITLE_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'PARENT_ID_DESC'; /** Methods to use when ordering `OrgMembershipDefault`. */ export type OrgMembershipDefaultOrderBy = | 'NATURAL' @@ -403,11 +397,7 @@ export type AppLevelRequirementOrderBy = | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'DESCRIPTION_TRGM_SIMILARITY_ASC' - | 'DESCRIPTION_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'UPDATED_AT_DESC'; /** Methods to use when ordering `AppMembership`. */ export type AppMembershipOrderBy = | 'NATURAL' @@ -476,11 +466,7 @@ export type InviteOrderBy = | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'INVITE_TOKEN_TRGM_SIMILARITY_ASC' - | 'INVITE_TOKEN_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'UPDATED_AT_DESC'; /** Methods to use when ordering `AppLevel`. */ export type AppLevelOrderBy = | 'NATURAL' @@ -490,14 +476,12 @@ export type AppLevelOrderBy = | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'DESCRIPTION_TRGM_SIMILARITY_ASC' - | 'DESCRIPTION_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'UPDATED_AT_DESC'; /** Methods to use when ordering `OrgInvite`. */ export type OrgInviteOrderBy = | 'NATURAL' @@ -509,6 +493,8 @@ export type OrgInviteOrderBy = | 'EMAIL_DESC' | 'SENDER_ID_ASC' | 'SENDER_ID_DESC' + | 'RECEIVER_ID_ASC' + | 'RECEIVER_ID_DESC' | 'INVITE_TOKEN_ASC' | 'INVITE_TOKEN_DESC' | 'INVITE_VALID_ASC' @@ -520,11 +506,7 @@ export type OrgInviteOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'INVITE_TOKEN_TRGM_SIMILARITY_ASC' - | 'INVITE_TOKEN_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'ENTITY_ID_DESC'; /** A filter to be used against `OrgMember` object types. All fields are combined with a logical ‘and.’ */ export interface OrgMemberFilter { /** Filter by the object’s `id` field. */ @@ -673,13 +655,6 @@ export interface AppLimitDefaultFilter { /** Negates the expression. */ not?: AppLimitDefaultFilter; } -/** Input for pg_trgm fuzzy text matching. Provide a search value and optional similarity threshold. */ -export interface TrgmSearchInput { - /** The text to fuzzy-match against. Typos and misspellings are tolerated. */ - value: string; - /** Minimum similarity threshold (0.0 to 1.0). Higher = stricter matching. Default is 0.3. */ - threshold?: number; -} /** A filter to be used against `OrgLimitDefault` object types. All fields are combined with a logical ‘and.’ */ export interface OrgLimitDefaultFilter { /** Filter by the object’s `id` field. */ @@ -721,15 +696,6 @@ export interface OrgChartEdgeGrantFilter { or?: OrgChartEdgeGrantFilter[]; /** Negates the expression. */ not?: OrgChartEdgeGrantFilter; - /** TRGM search on the `position_title` column. */ - trgmPositionTitle?: TrgmSearchInput; - /** - * Composite full-text search. Provide a search string and it will be dispatched - * to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - * simultaneously. Rows matching ANY algorithm are returned. All matching score - * fields are populated. - */ - fullTextSearch?: string; } /** A filter to be used against `MembershipType` object types. All fields are combined with a logical ‘and.’ */ export interface MembershipTypeFilter { @@ -747,17 +713,6 @@ export interface MembershipTypeFilter { or?: MembershipTypeFilter[]; /** Negates the expression. */ not?: MembershipTypeFilter; - /** TRGM search on the `description` column. */ - trgmDescription?: TrgmSearchInput; - /** TRGM search on the `prefix` column. */ - trgmPrefix?: TrgmSearchInput; - /** - * Composite full-text search. Provide a search string and it will be dispatched - * to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - * simultaneously. Rows matching ANY algorithm are returned. All matching score - * fields are populated. - */ - fullTextSearch?: string; } /** A filter to be used against `AppPermission` object types. All fields are combined with a logical ‘and.’ */ export interface AppPermissionFilter { @@ -777,15 +732,6 @@ export interface AppPermissionFilter { or?: AppPermissionFilter[]; /** Negates the expression. */ not?: AppPermissionFilter; - /** TRGM search on the `description` column. */ - trgmDescription?: TrgmSearchInput; - /** - * Composite full-text search. Provide a search string and it will be dispatched - * to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - * simultaneously. Rows matching ANY algorithm are returned. All matching score - * fields are populated. - */ - fullTextSearch?: string; } /** A filter to be used against `OrgPermission` object types. All fields are combined with a logical ‘and.’ */ export interface OrgPermissionFilter { @@ -805,15 +751,6 @@ export interface OrgPermissionFilter { or?: OrgPermissionFilter[]; /** Negates the expression. */ not?: OrgPermissionFilter; - /** TRGM search on the `description` column. */ - trgmDescription?: TrgmSearchInput; - /** - * Composite full-text search. Provide a search string and it will be dispatched - * to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - * simultaneously. Rows matching ANY algorithm are returned. All matching score - * fields are populated. - */ - fullTextSearch?: string; } /** A filter to be used against `AppLimit` object types. All fields are combined with a logical ‘and.’ */ export interface AppLimitFilter { @@ -1032,15 +969,6 @@ export interface OrgChartEdgeFilter { or?: OrgChartEdgeFilter[]; /** Negates the expression. */ not?: OrgChartEdgeFilter; - /** TRGM search on the `position_title` column. */ - trgmPositionTitle?: TrgmSearchInput; - /** - * Composite full-text search. Provide a search string and it will be dispatched - * to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - * simultaneously. Rows matching ANY algorithm are returned. All matching score - * fields are populated. - */ - fullTextSearch?: string; } /** A filter to be used against `OrgMembershipDefault` object types. All fields are combined with a logical ‘and.’ */ export interface OrgMembershipDefaultFilter { @@ -1093,15 +1021,6 @@ export interface AppLevelRequirementFilter { or?: AppLevelRequirementFilter[]; /** Negates the expression. */ not?: AppLevelRequirementFilter; - /** TRGM search on the `description` column. */ - trgmDescription?: TrgmSearchInput; - /** - * Composite full-text search. Provide a search string and it will be dispatched - * to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - * simultaneously. Rows matching ANY algorithm are returned. All matching score - * fields are populated. - */ - fullTextSearch?: string; } /** A filter to be used against `AppMembership` object types. All fields are combined with a logical ‘and.’ */ export interface AppMembershipFilter { @@ -1215,15 +1134,6 @@ export interface InviteFilter { or?: InviteFilter[]; /** Negates the expression. */ not?: InviteFilter; - /** TRGM search on the `invite_token` column. */ - trgmInviteToken?: TrgmSearchInput; - /** - * Composite full-text search. Provide a search string and it will be dispatched - * to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - * simultaneously. Rows matching ANY algorithm are returned. All matching score - * fields are populated. - */ - fullTextSearch?: string; } /** A filter to be used against ConstructiveInternalTypeEmail fields. All fields are combined with a logical ‘and.’ */ export interface ConstructiveInternalTypeEmailFilter { @@ -1324,15 +1234,6 @@ export interface AppLevelFilter { or?: AppLevelFilter[]; /** Negates the expression. */ not?: AppLevelFilter; - /** TRGM search on the `description` column. */ - trgmDescription?: TrgmSearchInput; - /** - * Composite full-text search. Provide a search string and it will be dispatched - * to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - * simultaneously. Rows matching ANY algorithm are returned. All matching score - * fields are populated. - */ - fullTextSearch?: string; } /** A filter to be used against ConstructiveInternalTypeImage fields. All fields are combined with a logical ‘and.’ */ export interface ConstructiveInternalTypeImageFilter { @@ -1403,15 +1304,6 @@ export interface OrgInviteFilter { or?: OrgInviteFilter[]; /** Negates the expression. */ not?: OrgInviteFilter; - /** TRGM search on the `invite_token` column. */ - trgmInviteToken?: TrgmSearchInput; - /** - * Composite full-text search. Provide a search string and it will be dispatched - * to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - * simultaneously. Rows matching ANY algorithm are returned. All matching score - * fields are populated. - */ - fullTextSearch?: string; } export interface SubmitInviteCodeInput { clientMutationId?: string; @@ -1568,8 +1460,8 @@ export interface OrgChartEdgeGrantInput { childId: string; /** User ID of the manager being assigned; NULL for top-level positions */ parentId?: string; - /** User ID of the admin who performed this grant or revocation */ - grantorId: string; + /** User ID of the admin who performed this grant or revocation; NULL if grantor was deleted */ + grantorId?: string; /** TRUE to add/update the edge, FALSE to remove it */ isGrant?: boolean; /** Job title or role name being assigned in this grant */ @@ -2154,7 +2046,7 @@ export interface OrgChartEdgeGrantPatch { childId?: string; /** User ID of the manager being assigned; NULL for top-level positions */ parentId?: string; - /** User ID of the admin who performed this grant or revocation */ + /** User ID of the admin who performed this grant or revocation; NULL if grantor was deleted */ grantorId?: string; /** TRUE to add/update the edge, FALSE to remove it */ isGrant?: boolean; diff --git a/sdk/constructive-react/src/admin/types.ts b/sdk/constructive-react/src/admin/types.ts index 6c209bbab..d1f23ef6e 100644 --- a/sdk/constructive-react/src/admin/types.ts +++ b/sdk/constructive-react/src/admin/types.ts @@ -19,8 +19,6 @@ export interface AppPermission { bitnum: number | null; bitstr: string | null; description: string | null; - descriptionTrgmSimilarity: number | null; - searchScore: number | null; } export interface OrgPermission { id: string | null; @@ -28,8 +26,6 @@ export interface OrgPermission { bitnum: number | null; bitstr: string | null; description: string | null; - descriptionTrgmSimilarity: number | null; - searchScore: number | null; } export interface AppLevelRequirement { id: string | null; @@ -40,8 +36,6 @@ export interface AppLevelRequirement { priority: number | null; createdAt: string | null; updatedAt: string | null; - descriptionTrgmSimilarity: number | null; - searchScore: number | null; } export interface OrgMember { id: string | null; @@ -112,17 +106,12 @@ export interface OrgChartEdgeGrant { positionTitle: string | null; positionLevel: number | null; createdAt: string | null; - positionTitleTrgmSimilarity: number | null; - searchScore: number | null; } export interface MembershipType { id: number | null; name: string | null; description: string | null; prefix: string | null; - descriptionTrgmSimilarity: number | null; - prefixTrgmSimilarity: number | null; - searchScore: number | null; } export interface AppLimit { id: string | null; @@ -209,8 +198,6 @@ export interface OrgChartEdge { parentId: string | null; positionTitle: string | null; positionLevel: number | null; - positionTitleTrgmSimilarity: number | null; - searchScore: number | null; } export interface OrgMembershipDefault { id: string | null; @@ -272,8 +259,6 @@ export interface Invite { expiresAt: string | null; createdAt: string | null; updatedAt: string | null; - inviteTokenTrgmSimilarity: number | null; - searchScore: number | null; } export interface AppLevel { id: string | null; @@ -283,8 +268,6 @@ export interface AppLevel { ownerId: string | null; createdAt: string | null; updatedAt: string | null; - descriptionTrgmSimilarity: number | null; - searchScore: number | null; } export interface OrgInvite { id: string | null; @@ -301,8 +284,6 @@ export interface OrgInvite { createdAt: string | null; updatedAt: string | null; entityId: string | null; - inviteTokenTrgmSimilarity: number | null; - searchScore: number | null; } export interface StringFilter { isNull?: boolean; diff --git a/sdk/constructive-react/src/auth/hooks/README.md b/sdk/constructive-react/src/auth/hooks/README.md index 338ac9bb5..944e67315 100644 --- a/sdk/constructive-react/src/auth/hooks/README.md +++ b/sdk/constructive-react/src/auth/hooks/README.md @@ -32,21 +32,21 @@ function App() { | Hook | Type | Description | |------|------|-------------| -| `useCryptoAddressesQuery` | Query | Cryptocurrency wallet addresses owned by users, with network-specific validation and verification | -| `useCryptoAddressQuery` | Query | Cryptocurrency wallet addresses owned by users, with network-specific validation and verification | -| `useCreateCryptoAddressMutation` | Mutation | Cryptocurrency wallet addresses owned by users, with network-specific validation and verification | -| `useUpdateCryptoAddressMutation` | Mutation | Cryptocurrency wallet addresses owned by users, with network-specific validation and verification | -| `useDeleteCryptoAddressMutation` | Mutation | Cryptocurrency wallet addresses owned by users, with network-specific validation and verification | -| `useRoleTypesQuery` | Query | List all roleTypes | -| `useRoleTypeQuery` | Query | Get one roleType | -| `useCreateRoleTypeMutation` | Mutation | Create a roleType | -| `useUpdateRoleTypeMutation` | Mutation | Update a roleType | -| `useDeleteRoleTypeMutation` | Mutation | Delete a roleType | +| `useEmailsQuery` | Query | User email addresses with verification and primary-email management | +| `useEmailQuery` | Query | User email addresses with verification and primary-email management | +| `useCreateEmailMutation` | Mutation | User email addresses with verification and primary-email management | +| `useUpdateEmailMutation` | Mutation | User email addresses with verification and primary-email management | +| `useDeleteEmailMutation` | Mutation | User email addresses with verification and primary-email management | | `usePhoneNumbersQuery` | Query | User phone numbers with country code, verification, and primary-number management | | `usePhoneNumberQuery` | Query | User phone numbers with country code, verification, and primary-number management | | `useCreatePhoneNumberMutation` | Mutation | User phone numbers with country code, verification, and primary-number management | | `useUpdatePhoneNumberMutation` | Mutation | User phone numbers with country code, verification, and primary-number management | | `useDeletePhoneNumberMutation` | Mutation | User phone numbers with country code, verification, and primary-number management | +| `useCryptoAddressesQuery` | Query | Cryptocurrency wallet addresses owned by users, with network-specific validation and verification | +| `useCryptoAddressQuery` | Query | Cryptocurrency wallet addresses owned by users, with network-specific validation and verification | +| `useCreateCryptoAddressMutation` | Mutation | Cryptocurrency wallet addresses owned by users, with network-specific validation and verification | +| `useUpdateCryptoAddressMutation` | Mutation | Cryptocurrency wallet addresses owned by users, with network-specific validation and verification | +| `useDeleteCryptoAddressMutation` | Mutation | Cryptocurrency wallet addresses owned by users, with network-specific validation and verification | | `useConnectedAccountsQuery` | Query | OAuth and social login connections linking external service accounts to users | | `useConnectedAccountQuery` | Query | OAuth and social login connections linking external service accounts to users | | `useCreateConnectedAccountMutation` | Mutation | OAuth and social login connections linking external service accounts to users | @@ -57,11 +57,11 @@ function App() { | `useCreateAuditLogMutation` | Mutation | Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) | | `useUpdateAuditLogMutation` | Mutation | Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) | | `useDeleteAuditLogMutation` | Mutation | Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) | -| `useEmailsQuery` | Query | User email addresses with verification and primary-email management | -| `useEmailQuery` | Query | User email addresses with verification and primary-email management | -| `useCreateEmailMutation` | Mutation | User email addresses with verification and primary-email management | -| `useUpdateEmailMutation` | Mutation | User email addresses with verification and primary-email management | -| `useDeleteEmailMutation` | Mutation | User email addresses with verification and primary-email management | +| `useRoleTypesQuery` | Query | List all roleTypes | +| `useRoleTypeQuery` | Query | Get one roleType | +| `useCreateRoleTypeMutation` | Mutation | Create a roleType | +| `useUpdateRoleTypeMutation` | Mutation | Update a roleType | +| `useDeleteRoleTypeMutation` | Mutation | Delete a roleType | | `useUsersQuery` | Query | List all users | | `useUserQuery` | Query | Get one user | | `useCreateUserMutation` | Mutation | Create a user | @@ -90,67 +90,67 @@ function App() { ## Table Hooks -### CryptoAddress +### Email ```typescript -// List all cryptoAddresses -const { data, isLoading } = useCryptoAddressesQuery({ - selection: { fields: { id: true, ownerId: true, address: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true, addressTrgmSimilarity: true, searchScore: true } }, +// List all emails +const { data, isLoading } = useEmailsQuery({ + selection: { fields: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }, }); -// Get one cryptoAddress -const { data: item } = useCryptoAddressQuery({ - id: '', - selection: { fields: { id: true, ownerId: true, address: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true, addressTrgmSimilarity: true, searchScore: true } }, +// Get one email +const { data: item } = useEmailQuery({ + id: '', + selection: { fields: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }, }); -// Create a cryptoAddress -const { mutate: create } = useCreateCryptoAddressMutation({ +// Create a email +const { mutate: create } = useCreateEmailMutation({ selection: { fields: { id: true } }, }); -create({ ownerId: '', address: '', isVerified: '', isPrimary: '', addressTrgmSimilarity: '', searchScore: '' }); +create({ ownerId: '', email: '', isVerified: '', isPrimary: '' }); ``` -### RoleType +### PhoneNumber ```typescript -// List all roleTypes -const { data, isLoading } = useRoleTypesQuery({ - selection: { fields: { id: true, name: true } }, +// List all phoneNumbers +const { data, isLoading } = usePhoneNumbersQuery({ + selection: { fields: { id: true, ownerId: true, cc: true, number: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }, }); -// Get one roleType -const { data: item } = useRoleTypeQuery({ - id: '', - selection: { fields: { id: true, name: true } }, +// Get one phoneNumber +const { data: item } = usePhoneNumberQuery({ + id: '', + selection: { fields: { id: true, ownerId: true, cc: true, number: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }, }); -// Create a roleType -const { mutate: create } = useCreateRoleTypeMutation({ +// Create a phoneNumber +const { mutate: create } = useCreatePhoneNumberMutation({ selection: { fields: { id: true } }, }); -create({ name: '' }); +create({ ownerId: '', cc: '', number: '', isVerified: '', isPrimary: '' }); ``` -### PhoneNumber +### CryptoAddress ```typescript -// List all phoneNumbers -const { data, isLoading } = usePhoneNumbersQuery({ - selection: { fields: { id: true, ownerId: true, cc: true, number: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true, ccTrgmSimilarity: true, numberTrgmSimilarity: true, searchScore: true } }, +// List all cryptoAddresses +const { data, isLoading } = useCryptoAddressesQuery({ + selection: { fields: { id: true, ownerId: true, address: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }, }); -// Get one phoneNumber -const { data: item } = usePhoneNumberQuery({ - id: '', - selection: { fields: { id: true, ownerId: true, cc: true, number: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true, ccTrgmSimilarity: true, numberTrgmSimilarity: true, searchScore: true } }, +// Get one cryptoAddress +const { data: item } = useCryptoAddressQuery({ + id: '', + selection: { fields: { id: true, ownerId: true, address: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }, }); -// Create a phoneNumber -const { mutate: create } = useCreatePhoneNumberMutation({ +// Create a cryptoAddress +const { mutate: create } = useCreateCryptoAddressMutation({ selection: { fields: { id: true } }, }); -create({ ownerId: '', cc: '', number: '', isVerified: '', isPrimary: '', ccTrgmSimilarity: '', numberTrgmSimilarity: '', searchScore: '' }); +create({ ownerId: '', address: '', isVerified: '', isPrimary: '' }); ``` ### ConnectedAccount @@ -158,20 +158,20 @@ create({ ownerId: '', cc: '', number: '', isVerified: '', - selection: { fields: { id: true, ownerId: true, service: true, identifier: true, details: true, isVerified: true, createdAt: true, updatedAt: true, serviceTrgmSimilarity: true, identifierTrgmSimilarity: true, searchScore: true } }, + id: '', + selection: { fields: { id: true, ownerId: true, service: true, identifier: true, details: true, isVerified: true, createdAt: true, updatedAt: true } }, }); // Create a connectedAccount const { mutate: create } = useCreateConnectedAccountMutation({ selection: { fields: { id: true } }, }); -create({ ownerId: '', service: '', identifier: '', details: '', isVerified: '', serviceTrgmSimilarity: '', identifierTrgmSimilarity: '', searchScore: '' }); +create({ ownerId: '', service: '', identifier: '', details: '', isVerified: '' }); ``` ### AuditLog @@ -179,41 +179,41 @@ create({ ownerId: '', service: '', identifier: '', details: ```typescript // List all auditLogs const { data, isLoading } = useAuditLogsQuery({ - selection: { fields: { id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true, createdAt: true, userAgentTrgmSimilarity: true, searchScore: true } }, + selection: { fields: { id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true, createdAt: true } }, }); // Get one auditLog const { data: item } = useAuditLogQuery({ - id: '', - selection: { fields: { id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true, createdAt: true, userAgentTrgmSimilarity: true, searchScore: true } }, + id: '', + selection: { fields: { id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true, createdAt: true } }, }); // Create a auditLog const { mutate: create } = useCreateAuditLogMutation({ selection: { fields: { id: true } }, }); -create({ event: '', actorId: '', origin: '', userAgent: '', ipAddress: '', success: '', userAgentTrgmSimilarity: '', searchScore: '' }); +create({ event: '', actorId: '', origin: '', userAgent: '', ipAddress: '', success: '' }); ``` -### Email +### RoleType ```typescript -// List all emails -const { data, isLoading } = useEmailsQuery({ - selection: { fields: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }, +// List all roleTypes +const { data, isLoading } = useRoleTypesQuery({ + selection: { fields: { id: true, name: true } }, }); -// Get one email -const { data: item } = useEmailQuery({ - id: '', - selection: { fields: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }, +// Get one roleType +const { data: item } = useRoleTypeQuery({ + id: '', + selection: { fields: { id: true, name: true } }, }); -// Create a email -const { mutate: create } = useCreateEmailMutation({ +// Create a roleType +const { mutate: create } = useCreateRoleTypeMutation({ selection: { fields: { id: true } }, }); -create({ ownerId: '', email: '', isVerified: '', isPrimary: '' }); +create({ name: '' }); ``` ### User @@ -226,7 +226,7 @@ const { data, isLoading } = useUsersQuery({ // Get one user const { data: item } = useUserQuery({ - id: '', + id: '', selection: { fields: { id: true, username: true, displayName: true, profilePicture: true, searchTsv: true, type: true, createdAt: true, updatedAt: true, searchTsvRank: true, displayNameTrgmSimilarity: true, searchScore: true } }, }); @@ -234,7 +234,7 @@ const { data: item } = useUserQuery({ const { mutate: create } = useCreateUserMutation({ selection: { fields: { id: true } }, }); -create({ username: '', displayName: '', profilePicture: '', searchTsv: '', type: '', searchTsvRank: '', displayNameTrgmSimilarity: '', searchScore: '' }); +create({ username: '', displayName: '', profilePicture: '', searchTsv: '', type: '', searchTsvRank: '', displayNameTrgmSimilarity: '', searchScore: '' }); ``` ## Custom Operation Hooks diff --git a/sdk/constructive-react/src/auth/hooks/index.ts b/sdk/constructive-react/src/auth/hooks/index.ts index 0bc4523c1..dd9a304a0 100644 --- a/sdk/constructive-react/src/auth/hooks/index.ts +++ b/sdk/constructive-react/src/auth/hooks/index.ts @@ -2,7 +2,7 @@ * GraphQL SDK * @generated by @constructive-io/graphql-codegen * - * Tables: CryptoAddress, RoleType, PhoneNumber, ConnectedAccount, AuditLog, Email, User + * Tables: Email, PhoneNumber, CryptoAddress, ConnectedAccount, AuditLog, RoleType, User * * Usage: * diff --git a/sdk/constructive-react/src/auth/hooks/invalidation.ts b/sdk/constructive-react/src/auth/hooks/invalidation.ts index 57629824d..1a19dc686 100644 --- a/sdk/constructive-react/src/auth/hooks/invalidation.ts +++ b/sdk/constructive-react/src/auth/hooks/invalidation.ts @@ -15,12 +15,12 @@ import type { QueryClient } from '@tanstack/react-query'; import { - cryptoAddressKeys, - roleTypeKeys, + emailKeys, phoneNumberKeys, + cryptoAddressKeys, connectedAccountKeys, auditLogKeys, - emailKeys, + roleTypeKeys, userKeys, } from './query-keys'; /** @@ -43,35 +43,18 @@ import { * ``` */ export const invalidate = { - /** Invalidate cryptoAddress queries */ cryptoAddress: { - /** Invalidate all cryptoAddress queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: cryptoAddressKeys.all, - }), - /** Invalidate cryptoAddress list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: cryptoAddressKeys.lists(), - }), - /** Invalidate a specific cryptoAddress */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: cryptoAddressKeys.detail(id), - }), - }, - /** Invalidate roleType queries */ roleType: { - /** Invalidate all roleType queries */ all: (queryClient: QueryClient) => + /** Invalidate email queries */ email: { + /** Invalidate all email queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: roleTypeKeys.all, + queryKey: emailKeys.all, }), - /** Invalidate roleType list queries */ lists: (queryClient: QueryClient) => + /** Invalidate email list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: roleTypeKeys.lists(), + queryKey: emailKeys.lists(), }), - /** Invalidate a specific roleType */ detail: (queryClient: QueryClient, id: string | number) => + /** Invalidate a specific email */ detail: (queryClient: QueryClient, id: string | number) => queryClient.invalidateQueries({ - queryKey: roleTypeKeys.detail(id), + queryKey: emailKeys.detail(id), }), }, /** Invalidate phoneNumber queries */ phoneNumber: { @@ -91,6 +74,23 @@ export const invalidate = { queryKey: phoneNumberKeys.detail(id), }), }, + /** Invalidate cryptoAddress queries */ cryptoAddress: { + /** Invalidate all cryptoAddress queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: cryptoAddressKeys.all, + }), + /** Invalidate cryptoAddress list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: cryptoAddressKeys.lists(), + }), + /** Invalidate a specific cryptoAddress */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: cryptoAddressKeys.detail(id), + }), + }, /** Invalidate connectedAccount queries */ connectedAccount: { /** Invalidate all connectedAccount queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -122,18 +122,18 @@ export const invalidate = { queryKey: auditLogKeys.detail(id), }), }, - /** Invalidate email queries */ email: { - /** Invalidate all email queries */ all: (queryClient: QueryClient) => + /** Invalidate roleType queries */ roleType: { + /** Invalidate all roleType queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: emailKeys.all, + queryKey: roleTypeKeys.all, }), - /** Invalidate email list queries */ lists: (queryClient: QueryClient) => + /** Invalidate roleType list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: emailKeys.lists(), + queryKey: roleTypeKeys.lists(), }), - /** Invalidate a specific email */ detail: (queryClient: QueryClient, id: string | number) => + /** Invalidate a specific roleType */ detail: (queryClient: QueryClient, id: string | number) => queryClient.invalidateQueries({ - queryKey: emailKeys.detail(id), + queryKey: roleTypeKeys.detail(id), }), }, /** Invalidate user queries */ user: { @@ -163,25 +163,25 @@ export const invalidate = { * instead of just invalidating (which would trigger a refetch). */ export const remove = { - /** Remove cryptoAddress from cache */ cryptoAddress: ( - queryClient: QueryClient, - id: string | number - ) => { + /** Remove email from cache */ email: (queryClient: QueryClient, id: string | number) => { queryClient.removeQueries({ - queryKey: cryptoAddressKeys.detail(id), + queryKey: emailKeys.detail(id), }); }, - /** Remove roleType from cache */ roleType: (queryClient: QueryClient, id: string | number) => { + /** Remove phoneNumber from cache */ phoneNumber: ( + queryClient: QueryClient, + id: string | number + ) => { queryClient.removeQueries({ - queryKey: roleTypeKeys.detail(id), + queryKey: phoneNumberKeys.detail(id), }); }, - /** Remove phoneNumber from cache */ phoneNumber: ( + /** Remove cryptoAddress from cache */ cryptoAddress: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: phoneNumberKeys.detail(id), + queryKey: cryptoAddressKeys.detail(id), }); }, /** Remove connectedAccount from cache */ connectedAccount: ( @@ -197,9 +197,9 @@ export const remove = { queryKey: auditLogKeys.detail(id), }); }, - /** Remove email from cache */ email: (queryClient: QueryClient, id: string | number) => { + /** Remove roleType from cache */ roleType: (queryClient: QueryClient, id: string | number) => { queryClient.removeQueries({ - queryKey: emailKeys.detail(id), + queryKey: roleTypeKeys.detail(id), }); }, /** Remove user from cache */ user: (queryClient: QueryClient, id: string | number) => { diff --git a/sdk/constructive-react/src/auth/hooks/mutation-keys.ts b/sdk/constructive-react/src/auth/hooks/mutation-keys.ts index 697753882..43335bb83 100644 --- a/sdk/constructive-react/src/auth/hooks/mutation-keys.ts +++ b/sdk/constructive-react/src/auth/hooks/mutation-keys.ts @@ -18,22 +18,13 @@ // Entity Mutation Keys // ============================================================================ -export const cryptoAddressMutationKeys = { - /** All cryptoAddress mutation keys */ all: ['mutation', 'cryptoaddress'] as const, - /** Create cryptoAddress mutation key */ create: () => - ['mutation', 'cryptoaddress', 'create'] as const, - /** Update cryptoAddress mutation key */ update: (id: string | number) => - ['mutation', 'cryptoaddress', 'update', id] as const, - /** Delete cryptoAddress mutation key */ delete: (id: string | number) => - ['mutation', 'cryptoaddress', 'delete', id] as const, -} as const; -export const roleTypeMutationKeys = { - /** All roleType mutation keys */ all: ['mutation', 'roletype'] as const, - /** Create roleType mutation key */ create: () => ['mutation', 'roletype', 'create'] as const, - /** Update roleType mutation key */ update: (id: string | number) => - ['mutation', 'roletype', 'update', id] as const, - /** Delete roleType mutation key */ delete: (id: string | number) => - ['mutation', 'roletype', 'delete', id] as const, +export const emailMutationKeys = { + /** All email mutation keys */ all: ['mutation', 'email'] as const, + /** Create email mutation key */ create: () => ['mutation', 'email', 'create'] as const, + /** Update email mutation key */ update: (id: string | number) => + ['mutation', 'email', 'update', id] as const, + /** Delete email mutation key */ delete: (id: string | number) => + ['mutation', 'email', 'delete', id] as const, } as const; export const phoneNumberMutationKeys = { /** All phoneNumber mutation keys */ all: ['mutation', 'phonenumber'] as const, @@ -44,6 +35,15 @@ export const phoneNumberMutationKeys = { /** Delete phoneNumber mutation key */ delete: (id: string | number) => ['mutation', 'phonenumber', 'delete', id] as const, } as const; +export const cryptoAddressMutationKeys = { + /** All cryptoAddress mutation keys */ all: ['mutation', 'cryptoaddress'] as const, + /** Create cryptoAddress mutation key */ create: () => + ['mutation', 'cryptoaddress', 'create'] as const, + /** Update cryptoAddress mutation key */ update: (id: string | number) => + ['mutation', 'cryptoaddress', 'update', id] as const, + /** Delete cryptoAddress mutation key */ delete: (id: string | number) => + ['mutation', 'cryptoaddress', 'delete', id] as const, +} as const; export const connectedAccountMutationKeys = { /** All connectedAccount mutation keys */ all: ['mutation', 'connectedaccount'] as const, /** Create connectedAccount mutation key */ create: () => @@ -61,13 +61,13 @@ export const auditLogMutationKeys = { /** Delete auditLog mutation key */ delete: (id: string | number) => ['mutation', 'auditlog', 'delete', id] as const, } as const; -export const emailMutationKeys = { - /** All email mutation keys */ all: ['mutation', 'email'] as const, - /** Create email mutation key */ create: () => ['mutation', 'email', 'create'] as const, - /** Update email mutation key */ update: (id: string | number) => - ['mutation', 'email', 'update', id] as const, - /** Delete email mutation key */ delete: (id: string | number) => - ['mutation', 'email', 'delete', id] as const, +export const roleTypeMutationKeys = { + /** All roleType mutation keys */ all: ['mutation', 'roletype'] as const, + /** Create roleType mutation key */ create: () => ['mutation', 'roletype', 'create'] as const, + /** Update roleType mutation key */ update: (id: string | number) => + ['mutation', 'roletype', 'update', id] as const, + /** Delete roleType mutation key */ delete: (id: string | number) => + ['mutation', 'roletype', 'delete', id] as const, } as const; export const userMutationKeys = { /** All user mutation keys */ all: ['mutation', 'user'] as const, @@ -169,12 +169,12 @@ export const customMutationKeys = { * ``` */ export const mutationKeys = { - cryptoAddress: cryptoAddressMutationKeys, - roleType: roleTypeMutationKeys, + email: emailMutationKeys, phoneNumber: phoneNumberMutationKeys, + cryptoAddress: cryptoAddressMutationKeys, connectedAccount: connectedAccountMutationKeys, auditLog: auditLogMutationKeys, - email: emailMutationKeys, + roleType: roleTypeMutationKeys, user: userMutationKeys, custom: customMutationKeys, } as const; diff --git a/sdk/constructive-react/src/auth/hooks/mutations/index.ts b/sdk/constructive-react/src/auth/hooks/mutations/index.ts index c8fad130e..28dde26f5 100644 --- a/sdk/constructive-react/src/auth/hooks/mutations/index.ts +++ b/sdk/constructive-react/src/auth/hooks/mutations/index.ts @@ -3,24 +3,24 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ -export * from './useCreateCryptoAddressMutation'; -export * from './useUpdateCryptoAddressMutation'; -export * from './useDeleteCryptoAddressMutation'; -export * from './useCreateRoleTypeMutation'; -export * from './useUpdateRoleTypeMutation'; -export * from './useDeleteRoleTypeMutation'; +export * from './useCreateEmailMutation'; +export * from './useUpdateEmailMutation'; +export * from './useDeleteEmailMutation'; export * from './useCreatePhoneNumberMutation'; export * from './useUpdatePhoneNumberMutation'; export * from './useDeletePhoneNumberMutation'; +export * from './useCreateCryptoAddressMutation'; +export * from './useUpdateCryptoAddressMutation'; +export * from './useDeleteCryptoAddressMutation'; export * from './useCreateConnectedAccountMutation'; export * from './useUpdateConnectedAccountMutation'; export * from './useDeleteConnectedAccountMutation'; export * from './useCreateAuditLogMutation'; export * from './useUpdateAuditLogMutation'; export * from './useDeleteAuditLogMutation'; -export * from './useCreateEmailMutation'; -export * from './useUpdateEmailMutation'; -export * from './useDeleteEmailMutation'; +export * from './useCreateRoleTypeMutation'; +export * from './useUpdateRoleTypeMutation'; +export * from './useDeleteRoleTypeMutation'; export * from './useCreateUserMutation'; export * from './useUpdateUserMutation'; export * from './useDeleteUserMutation'; diff --git a/sdk/constructive-react/src/auth/hooks/queries/index.ts b/sdk/constructive-react/src/auth/hooks/queries/index.ts index 14482bbf3..15e2bdc50 100644 --- a/sdk/constructive-react/src/auth/hooks/queries/index.ts +++ b/sdk/constructive-react/src/auth/hooks/queries/index.ts @@ -3,18 +3,18 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ -export * from './useCryptoAddressesQuery'; -export * from './useCryptoAddressQuery'; -export * from './useRoleTypesQuery'; -export * from './useRoleTypeQuery'; +export * from './useEmailsQuery'; +export * from './useEmailQuery'; export * from './usePhoneNumbersQuery'; export * from './usePhoneNumberQuery'; +export * from './useCryptoAddressesQuery'; +export * from './useCryptoAddressQuery'; export * from './useConnectedAccountsQuery'; export * from './useConnectedAccountQuery'; export * from './useAuditLogsQuery'; export * from './useAuditLogQuery'; -export * from './useEmailsQuery'; -export * from './useEmailQuery'; +export * from './useRoleTypesQuery'; +export * from './useRoleTypeQuery'; export * from './useUsersQuery'; export * from './useUserQuery'; export * from './useCurrentIpAddressQuery'; diff --git a/sdk/constructive-react/src/auth/hooks/query-keys.ts b/sdk/constructive-react/src/auth/hooks/query-keys.ts index 25378df93..7f9191326 100644 --- a/sdk/constructive-react/src/auth/hooks/query-keys.ts +++ b/sdk/constructive-react/src/auth/hooks/query-keys.ts @@ -19,23 +19,14 @@ // Entity Query Keys // ============================================================================ -export const cryptoAddressKeys = { - /** All cryptoAddress queries */ all: ['cryptoaddress'] as const, - /** List query keys */ lists: () => [...cryptoAddressKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...cryptoAddressKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...cryptoAddressKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...cryptoAddressKeys.details(), id] as const, -} as const; -export const roleTypeKeys = { - /** All roleType queries */ all: ['roletype'] as const, - /** List query keys */ lists: () => [...roleTypeKeys.all, 'list'] as const, +export const emailKeys = { + /** All email queries */ all: ['email'] as const, + /** List query keys */ lists: () => [...emailKeys.all, 'list'] as const, /** List query key with variables */ list: (variables?: object) => - [...roleTypeKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...roleTypeKeys.all, 'detail'] as const, + [...emailKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...emailKeys.all, 'detail'] as const, /** Detail query key for specific item */ detail: (id: string | number) => - [...roleTypeKeys.details(), id] as const, + [...emailKeys.details(), id] as const, } as const; export const phoneNumberKeys = { /** All phoneNumber queries */ all: ['phonenumber'] as const, @@ -46,6 +37,15 @@ export const phoneNumberKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...phoneNumberKeys.details(), id] as const, } as const; +export const cryptoAddressKeys = { + /** All cryptoAddress queries */ all: ['cryptoaddress'] as const, + /** List query keys */ lists: () => [...cryptoAddressKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...cryptoAddressKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...cryptoAddressKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...cryptoAddressKeys.details(), id] as const, +} as const; export const connectedAccountKeys = { /** All connectedAccount queries */ all: ['connectedaccount'] as const, /** List query keys */ lists: () => [...connectedAccountKeys.all, 'list'] as const, @@ -64,14 +64,14 @@ export const auditLogKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...auditLogKeys.details(), id] as const, } as const; -export const emailKeys = { - /** All email queries */ all: ['email'] as const, - /** List query keys */ lists: () => [...emailKeys.all, 'list'] as const, +export const roleTypeKeys = { + /** All roleType queries */ all: ['roletype'] as const, + /** List query keys */ lists: () => [...roleTypeKeys.all, 'list'] as const, /** List query key with variables */ list: (variables?: object) => - [...emailKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...emailKeys.all, 'detail'] as const, + [...roleTypeKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...roleTypeKeys.all, 'detail'] as const, /** Detail query key for specific item */ detail: (id: string | number) => - [...emailKeys.details(), id] as const, + [...roleTypeKeys.details(), id] as const, } as const; export const userKeys = { /** All user queries */ all: ['user'] as const, @@ -116,12 +116,12 @@ export const customQueryKeys = { * ``` */ export const queryKeys = { - cryptoAddress: cryptoAddressKeys, - roleType: roleTypeKeys, + email: emailKeys, phoneNumber: phoneNumberKeys, + cryptoAddress: cryptoAddressKeys, connectedAccount: connectedAccountKeys, auditLog: auditLogKeys, - email: emailKeys, + roleType: roleTypeKeys, user: userKeys, custom: customQueryKeys, } as const; diff --git a/sdk/constructive-react/src/auth/hooks/skills/auditLog.md b/sdk/constructive-react/src/auth/hooks/skills/auditLog.md deleted file mode 100644 index 0ca36458e..000000000 --- a/sdk/constructive-react/src/auth/hooks/skills/auditLog.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-auditLog - - - -React Query hooks for AuditLog data operations - -## Usage - -```typescript -useAuditLogsQuery({ selection: { fields: { id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true, createdAt: true } } }) -useAuditLogQuery({ id: '', selection: { fields: { id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true, createdAt: true } } }) -useCreateAuditLogMutation({ selection: { fields: { id: true } } }) -useUpdateAuditLogMutation({ selection: { fields: { id: true } } }) -useDeleteAuditLogMutation({}) -``` - -## Examples - -### List all auditLogs - -```typescript -const { data, isLoading } = useAuditLogsQuery({ - selection: { fields: { id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true, createdAt: true } }, -}); -``` - -### Create a auditLog - -```typescript -const { mutate } = useCreateAuditLogMutation({ - selection: { fields: { id: true } }, -}); -mutate({ event: '', actorId: '', origin: '', userAgent: '', ipAddress: '', success: '' }); -``` diff --git a/sdk/constructive-react/src/auth/hooks/skills/checkPassword.md b/sdk/constructive-react/src/auth/hooks/skills/checkPassword.md deleted file mode 100644 index 1e3a05a56..000000000 --- a/sdk/constructive-react/src/auth/hooks/skills/checkPassword.md +++ /dev/null @@ -1,20 +0,0 @@ -# hooks-checkPassword - - - -React Query mutation hook for checkPassword - -## Usage - -```typescript -const { mutate } = useCheckPasswordMutation(); mutate({ input: '' }); -``` - -## Examples - -### Use useCheckPasswordMutation - -```typescript -const { mutate, isLoading } = useCheckPasswordMutation(); -mutate({ input: '' }); -``` diff --git a/sdk/constructive-react/src/auth/hooks/skills/confirmDeleteAccount.md b/sdk/constructive-react/src/auth/hooks/skills/confirmDeleteAccount.md deleted file mode 100644 index a3804e870..000000000 --- a/sdk/constructive-react/src/auth/hooks/skills/confirmDeleteAccount.md +++ /dev/null @@ -1,20 +0,0 @@ -# hooks-confirmDeleteAccount - - - -React Query mutation hook for confirmDeleteAccount - -## Usage - -```typescript -const { mutate } = useConfirmDeleteAccountMutation(); mutate({ input: '' }); -``` - -## Examples - -### Use useConfirmDeleteAccountMutation - -```typescript -const { mutate, isLoading } = useConfirmDeleteAccountMutation(); -mutate({ input: '' }); -``` diff --git a/sdk/constructive-react/src/auth/hooks/skills/connectedAccount.md b/sdk/constructive-react/src/auth/hooks/skills/connectedAccount.md deleted file mode 100644 index b086ecbdf..000000000 --- a/sdk/constructive-react/src/auth/hooks/skills/connectedAccount.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-connectedAccount - - - -React Query hooks for ConnectedAccount data operations - -## Usage - -```typescript -useConnectedAccountsQuery({ selection: { fields: { id: true, ownerId: true, service: true, identifier: true, details: true, isVerified: true, createdAt: true, updatedAt: true } } }) -useConnectedAccountQuery({ id: '', selection: { fields: { id: true, ownerId: true, service: true, identifier: true, details: true, isVerified: true, createdAt: true, updatedAt: true } } }) -useCreateConnectedAccountMutation({ selection: { fields: { id: true } } }) -useUpdateConnectedAccountMutation({ selection: { fields: { id: true } } }) -useDeleteConnectedAccountMutation({}) -``` - -## Examples - -### List all connectedAccounts - -```typescript -const { data, isLoading } = useConnectedAccountsQuery({ - selection: { fields: { id: true, ownerId: true, service: true, identifier: true, details: true, isVerified: true, createdAt: true, updatedAt: true } }, -}); -``` - -### Create a connectedAccount - -```typescript -const { mutate } = useCreateConnectedAccountMutation({ - selection: { fields: { id: true } }, -}); -mutate({ ownerId: '', service: '', identifier: '', details: '', isVerified: '' }); -``` diff --git a/sdk/constructive-react/src/auth/hooks/skills/cryptoAddress.md b/sdk/constructive-react/src/auth/hooks/skills/cryptoAddress.md deleted file mode 100644 index c7f4682ce..000000000 --- a/sdk/constructive-react/src/auth/hooks/skills/cryptoAddress.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-cryptoAddress - - - -React Query hooks for CryptoAddress data operations - -## Usage - -```typescript -useCryptoAddressesQuery({ selection: { fields: { id: true, ownerId: true, address: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } } }) -useCryptoAddressQuery({ id: '', selection: { fields: { id: true, ownerId: true, address: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } } }) -useCreateCryptoAddressMutation({ selection: { fields: { id: true } } }) -useUpdateCryptoAddressMutation({ selection: { fields: { id: true } } }) -useDeleteCryptoAddressMutation({}) -``` - -## Examples - -### List all cryptoAddresses - -```typescript -const { data, isLoading } = useCryptoAddressesQuery({ - selection: { fields: { id: true, ownerId: true, address: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }, -}); -``` - -### Create a cryptoAddress - -```typescript -const { mutate } = useCreateCryptoAddressMutation({ - selection: { fields: { id: true } }, -}); -mutate({ ownerId: '', address: '', isVerified: '', isPrimary: '' }); -``` diff --git a/sdk/constructive-react/src/auth/hooks/skills/currentIpAddress.md b/sdk/constructive-react/src/auth/hooks/skills/currentIpAddress.md deleted file mode 100644 index e972130f5..000000000 --- a/sdk/constructive-react/src/auth/hooks/skills/currentIpAddress.md +++ /dev/null @@ -1,19 +0,0 @@ -# hooks-currentIpAddress - - - -React Query query hook for currentIpAddress - -## Usage - -```typescript -useCurrentIpAddressQuery() -``` - -## Examples - -### Use useCurrentIpAddressQuery - -```typescript -const { data, isLoading } = useCurrentIpAddressQuery(); -``` diff --git a/sdk/constructive-react/src/auth/hooks/skills/currentUser.md b/sdk/constructive-react/src/auth/hooks/skills/currentUser.md deleted file mode 100644 index 4467284e4..000000000 --- a/sdk/constructive-react/src/auth/hooks/skills/currentUser.md +++ /dev/null @@ -1,19 +0,0 @@ -# hooks-currentUser - - - -React Query query hook for currentUser - -## Usage - -```typescript -useCurrentUserQuery() -``` - -## Examples - -### Use useCurrentUserQuery - -```typescript -const { data, isLoading } = useCurrentUserQuery(); -``` diff --git a/sdk/constructive-react/src/auth/hooks/skills/currentUserAgent.md b/sdk/constructive-react/src/auth/hooks/skills/currentUserAgent.md deleted file mode 100644 index 2df182c94..000000000 --- a/sdk/constructive-react/src/auth/hooks/skills/currentUserAgent.md +++ /dev/null @@ -1,19 +0,0 @@ -# hooks-currentUserAgent - - - -React Query query hook for currentUserAgent - -## Usage - -```typescript -useCurrentUserAgentQuery() -``` - -## Examples - -### Use useCurrentUserAgentQuery - -```typescript -const { data, isLoading } = useCurrentUserAgentQuery(); -``` diff --git a/sdk/constructive-react/src/auth/hooks/skills/currentUserId.md b/sdk/constructive-react/src/auth/hooks/skills/currentUserId.md deleted file mode 100644 index 076feac70..000000000 --- a/sdk/constructive-react/src/auth/hooks/skills/currentUserId.md +++ /dev/null @@ -1,19 +0,0 @@ -# hooks-currentUserId - - - -React Query query hook for currentUserId - -## Usage - -```typescript -useCurrentUserIdQuery() -``` - -## Examples - -### Use useCurrentUserIdQuery - -```typescript -const { data, isLoading } = useCurrentUserIdQuery(); -``` diff --git a/sdk/constructive-react/src/auth/hooks/skills/email.md b/sdk/constructive-react/src/auth/hooks/skills/email.md deleted file mode 100644 index f89e18fa5..000000000 --- a/sdk/constructive-react/src/auth/hooks/skills/email.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-email - - - -React Query hooks for Email data operations - -## Usage - -```typescript -useEmailsQuery({ selection: { fields: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } } }) -useEmailQuery({ id: '', selection: { fields: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } } }) -useCreateEmailMutation({ selection: { fields: { id: true } } }) -useUpdateEmailMutation({ selection: { fields: { id: true } } }) -useDeleteEmailMutation({}) -``` - -## Examples - -### List all emails - -```typescript -const { data, isLoading } = useEmailsQuery({ - selection: { fields: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }, -}); -``` - -### Create a email - -```typescript -const { mutate } = useCreateEmailMutation({ - selection: { fields: { id: true } }, -}); -mutate({ ownerId: '', email: '', isVerified: '', isPrimary: '' }); -``` diff --git a/sdk/constructive-react/src/auth/hooks/skills/extendTokenExpires.md b/sdk/constructive-react/src/auth/hooks/skills/extendTokenExpires.md deleted file mode 100644 index 54ce19f07..000000000 --- a/sdk/constructive-react/src/auth/hooks/skills/extendTokenExpires.md +++ /dev/null @@ -1,20 +0,0 @@ -# hooks-extendTokenExpires - - - -React Query mutation hook for extendTokenExpires - -## Usage - -```typescript -const { mutate } = useExtendTokenExpiresMutation(); mutate({ input: '' }); -``` - -## Examples - -### Use useExtendTokenExpiresMutation - -```typescript -const { mutate, isLoading } = useExtendTokenExpiresMutation(); -mutate({ input: '' }); -``` diff --git a/sdk/constructive-react/src/auth/hooks/skills/forgotPassword.md b/sdk/constructive-react/src/auth/hooks/skills/forgotPassword.md deleted file mode 100644 index fba9ffcb2..000000000 --- a/sdk/constructive-react/src/auth/hooks/skills/forgotPassword.md +++ /dev/null @@ -1,20 +0,0 @@ -# hooks-forgotPassword - - - -React Query mutation hook for forgotPassword - -## Usage - -```typescript -const { mutate } = useForgotPasswordMutation(); mutate({ input: '' }); -``` - -## Examples - -### Use useForgotPasswordMutation - -```typescript -const { mutate, isLoading } = useForgotPasswordMutation(); -mutate({ input: '' }); -``` diff --git a/sdk/constructive-react/src/auth/hooks/skills/oneTimeToken.md b/sdk/constructive-react/src/auth/hooks/skills/oneTimeToken.md deleted file mode 100644 index cfe0d893f..000000000 --- a/sdk/constructive-react/src/auth/hooks/skills/oneTimeToken.md +++ /dev/null @@ -1,20 +0,0 @@ -# hooks-oneTimeToken - - - -React Query mutation hook for oneTimeToken - -## Usage - -```typescript -const { mutate } = useOneTimeTokenMutation(); mutate({ input: '' }); -``` - -## Examples - -### Use useOneTimeTokenMutation - -```typescript -const { mutate, isLoading } = useOneTimeTokenMutation(); -mutate({ input: '' }); -``` diff --git a/sdk/constructive-react/src/auth/hooks/skills/phoneNumber.md b/sdk/constructive-react/src/auth/hooks/skills/phoneNumber.md deleted file mode 100644 index 643a1e6f9..000000000 --- a/sdk/constructive-react/src/auth/hooks/skills/phoneNumber.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-phoneNumber - - - -React Query hooks for PhoneNumber data operations - -## Usage - -```typescript -usePhoneNumbersQuery({ selection: { fields: { id: true, ownerId: true, cc: true, number: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } } }) -usePhoneNumberQuery({ id: '', selection: { fields: { id: true, ownerId: true, cc: true, number: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } } }) -useCreatePhoneNumberMutation({ selection: { fields: { id: true } } }) -useUpdatePhoneNumberMutation({ selection: { fields: { id: true } } }) -useDeletePhoneNumberMutation({}) -``` - -## Examples - -### List all phoneNumbers - -```typescript -const { data, isLoading } = usePhoneNumbersQuery({ - selection: { fields: { id: true, ownerId: true, cc: true, number: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }, -}); -``` - -### Create a phoneNumber - -```typescript -const { mutate } = useCreatePhoneNumberMutation({ - selection: { fields: { id: true } }, -}); -mutate({ ownerId: '', cc: '', number: '', isVerified: '', isPrimary: '' }); -``` diff --git a/sdk/constructive-react/src/auth/hooks/skills/resetPassword.md b/sdk/constructive-react/src/auth/hooks/skills/resetPassword.md deleted file mode 100644 index f4d93698a..000000000 --- a/sdk/constructive-react/src/auth/hooks/skills/resetPassword.md +++ /dev/null @@ -1,20 +0,0 @@ -# hooks-resetPassword - - - -React Query mutation hook for resetPassword - -## Usage - -```typescript -const { mutate } = useResetPasswordMutation(); mutate({ input: '' }); -``` - -## Examples - -### Use useResetPasswordMutation - -```typescript -const { mutate, isLoading } = useResetPasswordMutation(); -mutate({ input: '' }); -``` diff --git a/sdk/constructive-react/src/auth/hooks/skills/roleType.md b/sdk/constructive-react/src/auth/hooks/skills/roleType.md deleted file mode 100644 index b1716f353..000000000 --- a/sdk/constructive-react/src/auth/hooks/skills/roleType.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-roleType - - - -React Query hooks for RoleType data operations - -## Usage - -```typescript -useRoleTypesQuery({ selection: { fields: { id: true, name: true } } }) -useRoleTypeQuery({ id: '', selection: { fields: { id: true, name: true } } }) -useCreateRoleTypeMutation({ selection: { fields: { id: true } } }) -useUpdateRoleTypeMutation({ selection: { fields: { id: true } } }) -useDeleteRoleTypeMutation({}) -``` - -## Examples - -### List all roleTypes - -```typescript -const { data, isLoading } = useRoleTypesQuery({ - selection: { fields: { id: true, name: true } }, -}); -``` - -### Create a roleType - -```typescript -const { mutate } = useCreateRoleTypeMutation({ - selection: { fields: { id: true } }, -}); -mutate({ name: '' }); -``` diff --git a/sdk/constructive-react/src/auth/hooks/skills/sendAccountDeletionEmail.md b/sdk/constructive-react/src/auth/hooks/skills/sendAccountDeletionEmail.md deleted file mode 100644 index f6b77609e..000000000 --- a/sdk/constructive-react/src/auth/hooks/skills/sendAccountDeletionEmail.md +++ /dev/null @@ -1,20 +0,0 @@ -# hooks-sendAccountDeletionEmail - - - -React Query mutation hook for sendAccountDeletionEmail - -## Usage - -```typescript -const { mutate } = useSendAccountDeletionEmailMutation(); mutate({ input: '' }); -``` - -## Examples - -### Use useSendAccountDeletionEmailMutation - -```typescript -const { mutate, isLoading } = useSendAccountDeletionEmailMutation(); -mutate({ input: '' }); -``` diff --git a/sdk/constructive-react/src/auth/hooks/skills/sendVerificationEmail.md b/sdk/constructive-react/src/auth/hooks/skills/sendVerificationEmail.md deleted file mode 100644 index 0b2dd7d1f..000000000 --- a/sdk/constructive-react/src/auth/hooks/skills/sendVerificationEmail.md +++ /dev/null @@ -1,20 +0,0 @@ -# hooks-sendVerificationEmail - - - -React Query mutation hook for sendVerificationEmail - -## Usage - -```typescript -const { mutate } = useSendVerificationEmailMutation(); mutate({ input: '' }); -``` - -## Examples - -### Use useSendVerificationEmailMutation - -```typescript -const { mutate, isLoading } = useSendVerificationEmailMutation(); -mutate({ input: '' }); -``` diff --git a/sdk/constructive-react/src/auth/hooks/skills/setPassword.md b/sdk/constructive-react/src/auth/hooks/skills/setPassword.md deleted file mode 100644 index d0c5dd0f7..000000000 --- a/sdk/constructive-react/src/auth/hooks/skills/setPassword.md +++ /dev/null @@ -1,20 +0,0 @@ -# hooks-setPassword - - - -React Query mutation hook for setPassword - -## Usage - -```typescript -const { mutate } = useSetPasswordMutation(); mutate({ input: '' }); -``` - -## Examples - -### Use useSetPasswordMutation - -```typescript -const { mutate, isLoading } = useSetPasswordMutation(); -mutate({ input: '' }); -``` diff --git a/sdk/constructive-react/src/auth/hooks/skills/signIn.md b/sdk/constructive-react/src/auth/hooks/skills/signIn.md deleted file mode 100644 index f55de032e..000000000 --- a/sdk/constructive-react/src/auth/hooks/skills/signIn.md +++ /dev/null @@ -1,20 +0,0 @@ -# hooks-signIn - - - -React Query mutation hook for signIn - -## Usage - -```typescript -const { mutate } = useSignInMutation(); mutate({ input: '' }); -``` - -## Examples - -### Use useSignInMutation - -```typescript -const { mutate, isLoading } = useSignInMutation(); -mutate({ input: '' }); -``` diff --git a/sdk/constructive-react/src/auth/hooks/skills/signInOneTimeToken.md b/sdk/constructive-react/src/auth/hooks/skills/signInOneTimeToken.md deleted file mode 100644 index 9326b4fca..000000000 --- a/sdk/constructive-react/src/auth/hooks/skills/signInOneTimeToken.md +++ /dev/null @@ -1,20 +0,0 @@ -# hooks-signInOneTimeToken - - - -React Query mutation hook for signInOneTimeToken - -## Usage - -```typescript -const { mutate } = useSignInOneTimeTokenMutation(); mutate({ input: '' }); -``` - -## Examples - -### Use useSignInOneTimeTokenMutation - -```typescript -const { mutate, isLoading } = useSignInOneTimeTokenMutation(); -mutate({ input: '' }); -``` diff --git a/sdk/constructive-react/src/auth/hooks/skills/signOut.md b/sdk/constructive-react/src/auth/hooks/skills/signOut.md deleted file mode 100644 index 1be81c9ef..000000000 --- a/sdk/constructive-react/src/auth/hooks/skills/signOut.md +++ /dev/null @@ -1,20 +0,0 @@ -# hooks-signOut - - - -React Query mutation hook for signOut - -## Usage - -```typescript -const { mutate } = useSignOutMutation(); mutate({ input: '' }); -``` - -## Examples - -### Use useSignOutMutation - -```typescript -const { mutate, isLoading } = useSignOutMutation(); -mutate({ input: '' }); -``` diff --git a/sdk/constructive-react/src/auth/hooks/skills/signUp.md b/sdk/constructive-react/src/auth/hooks/skills/signUp.md deleted file mode 100644 index ab7ff4422..000000000 --- a/sdk/constructive-react/src/auth/hooks/skills/signUp.md +++ /dev/null @@ -1,20 +0,0 @@ -# hooks-signUp - - - -React Query mutation hook for signUp - -## Usage - -```typescript -const { mutate } = useSignUpMutation(); mutate({ input: '' }); -``` - -## Examples - -### Use useSignUpMutation - -```typescript -const { mutate, isLoading } = useSignUpMutation(); -mutate({ input: '' }); -``` diff --git a/sdk/constructive-react/src/auth/hooks/skills/user.md b/sdk/constructive-react/src/auth/hooks/skills/user.md deleted file mode 100644 index d9044e83c..000000000 --- a/sdk/constructive-react/src/auth/hooks/skills/user.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-user - - - -React Query hooks for User data operations - -## Usage - -```typescript -useUsersQuery({ selection: { fields: { id: true, username: true, displayName: true, profilePicture: true, searchTsv: true, type: true, createdAt: true, updatedAt: true, searchTsvRank: true } } }) -useUserQuery({ id: '', selection: { fields: { id: true, username: true, displayName: true, profilePicture: true, searchTsv: true, type: true, createdAt: true, updatedAt: true, searchTsvRank: true } } }) -useCreateUserMutation({ selection: { fields: { id: true } } }) -useUpdateUserMutation({ selection: { fields: { id: true } } }) -useDeleteUserMutation({}) -``` - -## Examples - -### List all users - -```typescript -const { data, isLoading } = useUsersQuery({ - selection: { fields: { id: true, username: true, displayName: true, profilePicture: true, searchTsv: true, type: true, createdAt: true, updatedAt: true, searchTsvRank: true } }, -}); -``` - -### Create a user - -```typescript -const { mutate } = useCreateUserMutation({ - selection: { fields: { id: true } }, -}); -mutate({ username: '', displayName: '', profilePicture: '', searchTsv: '', type: '', searchTsvRank: '' }); -``` diff --git a/sdk/constructive-react/src/auth/hooks/skills/verifyEmail.md b/sdk/constructive-react/src/auth/hooks/skills/verifyEmail.md deleted file mode 100644 index 67e42fb87..000000000 --- a/sdk/constructive-react/src/auth/hooks/skills/verifyEmail.md +++ /dev/null @@ -1,20 +0,0 @@ -# hooks-verifyEmail - - - -React Query mutation hook for verifyEmail - -## Usage - -```typescript -const { mutate } = useVerifyEmailMutation(); mutate({ input: '' }); -``` - -## Examples - -### Use useVerifyEmailMutation - -```typescript -const { mutate, isLoading } = useVerifyEmailMutation(); -mutate({ input: '' }); -``` diff --git a/sdk/constructive-react/src/auth/hooks/skills/verifyPassword.md b/sdk/constructive-react/src/auth/hooks/skills/verifyPassword.md deleted file mode 100644 index a1e5074c6..000000000 --- a/sdk/constructive-react/src/auth/hooks/skills/verifyPassword.md +++ /dev/null @@ -1,20 +0,0 @@ -# hooks-verifyPassword - - - -React Query mutation hook for verifyPassword - -## Usage - -```typescript -const { mutate } = useVerifyPasswordMutation(); mutate({ input: '' }); -``` - -## Examples - -### Use useVerifyPasswordMutation - -```typescript -const { mutate, isLoading } = useVerifyPasswordMutation(); -mutate({ input: '' }); -``` diff --git a/sdk/constructive-react/src/auth/hooks/skills/verifyTotp.md b/sdk/constructive-react/src/auth/hooks/skills/verifyTotp.md deleted file mode 100644 index d2b9ad825..000000000 --- a/sdk/constructive-react/src/auth/hooks/skills/verifyTotp.md +++ /dev/null @@ -1,20 +0,0 @@ -# hooks-verifyTotp - - - -React Query mutation hook for verifyTotp - -## Usage - -```typescript -const { mutate } = useVerifyTotpMutation(); mutate({ input: '' }); -``` - -## Examples - -### Use useVerifyTotpMutation - -```typescript -const { mutate, isLoading } = useVerifyTotpMutation(); -mutate({ input: '' }); -``` diff --git a/sdk/constructive-react/src/auth/orm/README.md b/sdk/constructive-react/src/auth/orm/README.md index a9eb59719..ef3b0c06e 100644 --- a/sdk/constructive-react/src/auth/orm/README.md +++ b/sdk/constructive-react/src/auth/orm/README.md @@ -21,19 +21,19 @@ const db = createClient({ | Model | Operations | |-------|------------| -| `cryptoAddress` | findMany, findOne, create, update, delete | -| `roleType` | findMany, findOne, create, update, delete | +| `email` | findMany, findOne, create, update, delete | | `phoneNumber` | findMany, findOne, create, update, delete | +| `cryptoAddress` | findMany, findOne, create, update, delete | | `connectedAccount` | findMany, findOne, create, update, delete | | `auditLog` | findMany, findOne, create, update, delete | -| `email` | findMany, findOne, create, update, delete | +| `roleType` | findMany, findOne, create, update, delete | | `user` | findMany, findOne, create, update, delete | ## Table Operations -### `db.cryptoAddress` +### `db.email` -CRUD operations for CryptoAddress records. +CRUD operations for Email records. **Fields:** @@ -41,66 +41,70 @@ CRUD operations for CryptoAddress records. |-------|------|----------| | `id` | UUID | No | | `ownerId` | UUID | Yes | -| `address` | String | Yes | +| `email` | ConstructiveInternalTypeEmail | Yes | | `isVerified` | Boolean | Yes | | `isPrimary` | Boolean | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `addressTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript -// List all cryptoAddress records -const items = await db.cryptoAddress.findMany({ select: { id: true, ownerId: true, address: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true, addressTrgmSimilarity: true, searchScore: true } }).execute(); +// List all email records +const items = await db.email.findMany({ select: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.cryptoAddress.findOne({ id: '', select: { id: true, ownerId: true, address: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true, addressTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.email.findOne({ id: '', select: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.cryptoAddress.create({ data: { ownerId: '', address: '', isVerified: '', isPrimary: '', addressTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.email.create({ data: { ownerId: '', email: '', isVerified: '', isPrimary: '' }, select: { id: true } }).execute(); // Update -const updated = await db.cryptoAddress.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); +const updated = await db.email.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.cryptoAddress.delete({ where: { id: '' } }).execute(); +const deleted = await db.email.delete({ where: { id: '' } }).execute(); ``` -### `db.roleType` +### `db.phoneNumber` -CRUD operations for RoleType records. +CRUD operations for PhoneNumber records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `id` | Int | No | -| `name` | String | Yes | +| `id` | UUID | No | +| `ownerId` | UUID | Yes | +| `cc` | String | Yes | +| `number` | String | Yes | +| `isVerified` | Boolean | Yes | +| `isPrimary` | Boolean | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | **Operations:** ```typescript -// List all roleType records -const items = await db.roleType.findMany({ select: { id: true, name: true } }).execute(); +// List all phoneNumber records +const items = await db.phoneNumber.findMany({ select: { id: true, ownerId: true, cc: true, number: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.roleType.findOne({ id: '', select: { id: true, name: true } }).execute(); +const item = await db.phoneNumber.findOne({ id: '', select: { id: true, ownerId: true, cc: true, number: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.roleType.create({ data: { name: '' }, select: { id: true } }).execute(); +const created = await db.phoneNumber.create({ data: { ownerId: '', cc: '', number: '', isVerified: '', isPrimary: '' }, select: { id: true } }).execute(); // Update -const updated = await db.roleType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.phoneNumber.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.roleType.delete({ where: { id: '' } }).execute(); +const deleted = await db.phoneNumber.delete({ where: { id: '' } }).execute(); ``` -### `db.phoneNumber` +### `db.cryptoAddress` -CRUD operations for PhoneNumber records. +CRUD operations for CryptoAddress records. **Fields:** @@ -108,33 +112,29 @@ CRUD operations for PhoneNumber records. |-------|------|----------| | `id` | UUID | No | | `ownerId` | UUID | Yes | -| `cc` | String | Yes | -| `number` | String | Yes | +| `address` | String | Yes | | `isVerified` | Boolean | Yes | | `isPrimary` | Boolean | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `ccTrgmSimilarity` | Float | Yes | -| `numberTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript -// List all phoneNumber records -const items = await db.phoneNumber.findMany({ select: { id: true, ownerId: true, cc: true, number: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true, ccTrgmSimilarity: true, numberTrgmSimilarity: true, searchScore: true } }).execute(); +// List all cryptoAddress records +const items = await db.cryptoAddress.findMany({ select: { id: true, ownerId: true, address: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.phoneNumber.findOne({ id: '', select: { id: true, ownerId: true, cc: true, number: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true, ccTrgmSimilarity: true, numberTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.cryptoAddress.findOne({ id: '', select: { id: true, ownerId: true, address: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.phoneNumber.create({ data: { ownerId: '', cc: '', number: '', isVerified: '', isPrimary: '', ccTrgmSimilarity: '', numberTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.cryptoAddress.create({ data: { ownerId: '', address: '', isVerified: '', isPrimary: '' }, select: { id: true } }).execute(); // Update -const updated = await db.phoneNumber.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); +const updated = await db.cryptoAddress.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.phoneNumber.delete({ where: { id: '' } }).execute(); +const deleted = await db.cryptoAddress.delete({ where: { id: '' } }).execute(); ``` ### `db.connectedAccount` @@ -153,27 +153,24 @@ CRUD operations for ConnectedAccount records. | `isVerified` | Boolean | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `serviceTrgmSimilarity` | Float | Yes | -| `identifierTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all connectedAccount records -const items = await db.connectedAccount.findMany({ select: { id: true, ownerId: true, service: true, identifier: true, details: true, isVerified: true, createdAt: true, updatedAt: true, serviceTrgmSimilarity: true, identifierTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.connectedAccount.findMany({ select: { id: true, ownerId: true, service: true, identifier: true, details: true, isVerified: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.connectedAccount.findOne({ id: '', select: { id: true, ownerId: true, service: true, identifier: true, details: true, isVerified: true, createdAt: true, updatedAt: true, serviceTrgmSimilarity: true, identifierTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.connectedAccount.findOne({ id: '', select: { id: true, ownerId: true, service: true, identifier: true, details: true, isVerified: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.connectedAccount.create({ data: { ownerId: '', service: '', identifier: '', details: '', isVerified: '', serviceTrgmSimilarity: '', identifierTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.connectedAccount.create({ data: { ownerId: '', service: '', identifier: '', details: '', isVerified: '' }, select: { id: true } }).execute(); // Update -const updated = await db.connectedAccount.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); +const updated = await db.connectedAccount.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.connectedAccount.delete({ where: { id: '' } }).execute(); +const deleted = await db.connectedAccount.delete({ where: { id: '' } }).execute(); ``` ### `db.auditLog` @@ -192,61 +189,54 @@ CRUD operations for AuditLog records. | `ipAddress` | InternetAddress | Yes | | `success` | Boolean | Yes | | `createdAt` | Datetime | No | -| `userAgentTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all auditLog records -const items = await db.auditLog.findMany({ select: { id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true, createdAt: true, userAgentTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.auditLog.findMany({ select: { id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true, createdAt: true } }).execute(); // Get one by id -const item = await db.auditLog.findOne({ id: '', select: { id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true, createdAt: true, userAgentTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.auditLog.findOne({ id: '', select: { id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true, createdAt: true } }).execute(); // Create -const created = await db.auditLog.create({ data: { event: '', actorId: '', origin: '', userAgent: '', ipAddress: '', success: '', userAgentTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.auditLog.create({ data: { event: '', actorId: '', origin: '', userAgent: '', ipAddress: '', success: '' }, select: { id: true } }).execute(); // Update -const updated = await db.auditLog.update({ where: { id: '' }, data: { event: '' }, select: { id: true } }).execute(); +const updated = await db.auditLog.update({ where: { id: '' }, data: { event: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.auditLog.delete({ where: { id: '' } }).execute(); +const deleted = await db.auditLog.delete({ where: { id: '' } }).execute(); ``` -### `db.email` +### `db.roleType` -CRUD operations for Email records. +CRUD operations for RoleType records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `id` | UUID | No | -| `ownerId` | UUID | Yes | -| `email` | ConstructiveInternalTypeEmail | Yes | -| `isVerified` | Boolean | Yes | -| `isPrimary` | Boolean | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | +| `id` | Int | No | +| `name` | String | Yes | **Operations:** ```typescript -// List all email records -const items = await db.email.findMany({ select: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); +// List all roleType records +const items = await db.roleType.findMany({ select: { id: true, name: true } }).execute(); // Get one by id -const item = await db.email.findOne({ id: '', select: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.roleType.findOne({ id: '', select: { id: true, name: true } }).execute(); // Create -const created = await db.email.create({ data: { ownerId: '', email: '', isVerified: '', isPrimary: '' }, select: { id: true } }).execute(); +const created = await db.roleType.create({ data: { name: '' }, select: { id: true } }).execute(); // Update -const updated = await db.email.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); +const updated = await db.roleType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.email.delete({ where: { id: '' } }).execute(); +const deleted = await db.roleType.delete({ where: { id: '' } }).execute(); ``` ### `db.user` @@ -276,16 +266,16 @@ CRUD operations for User records. const items = await db.user.findMany({ select: { id: true, username: true, displayName: true, profilePicture: true, searchTsv: true, type: true, createdAt: true, updatedAt: true, searchTsvRank: true, displayNameTrgmSimilarity: true, searchScore: true } }).execute(); // Get one by id -const item = await db.user.findOne({ id: '', select: { id: true, username: true, displayName: true, profilePicture: true, searchTsv: true, type: true, createdAt: true, updatedAt: true, searchTsvRank: true, displayNameTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.user.findOne({ id: '', select: { id: true, username: true, displayName: true, profilePicture: true, searchTsv: true, type: true, createdAt: true, updatedAt: true, searchTsvRank: true, displayNameTrgmSimilarity: true, searchScore: true } }).execute(); // Create -const created = await db.user.create({ data: { username: '', displayName: '', profilePicture: '', searchTsv: '', type: '', searchTsvRank: '', displayNameTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.user.create({ data: { username: '', displayName: '', profilePicture: '', searchTsv: '', type: '', searchTsvRank: '', displayNameTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); // Update -const updated = await db.user.update({ where: { id: '' }, data: { username: '' }, select: { id: true } }).execute(); +const updated = await db.user.update({ where: { id: '' }, data: { username: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.user.delete({ where: { id: '' } }).execute(); +const deleted = await db.user.delete({ where: { id: '' } }).execute(); ``` ## Custom Operations @@ -346,7 +336,7 @@ signOut | `input` | SignOutInput (required) | ```typescript -const result = await db.mutation.signOut({ input: '' }).execute(); +const result = await db.mutation.signOut({ input: '' }).execute(); ``` ### `db.mutation.sendAccountDeletionEmail` @@ -361,7 +351,7 @@ sendAccountDeletionEmail | `input` | SendAccountDeletionEmailInput (required) | ```typescript -const result = await db.mutation.sendAccountDeletionEmail({ input: '' }).execute(); +const result = await db.mutation.sendAccountDeletionEmail({ input: '' }).execute(); ``` ### `db.mutation.checkPassword` @@ -376,7 +366,7 @@ checkPassword | `input` | CheckPasswordInput (required) | ```typescript -const result = await db.mutation.checkPassword({ input: '' }).execute(); +const result = await db.mutation.checkPassword({ input: { password: '' } }).execute(); ``` ### `db.mutation.confirmDeleteAccount` @@ -391,7 +381,7 @@ confirmDeleteAccount | `input` | ConfirmDeleteAccountInput (required) | ```typescript -const result = await db.mutation.confirmDeleteAccount({ input: '' }).execute(); +const result = await db.mutation.confirmDeleteAccount({ input: { userId: '', token: '' } }).execute(); ``` ### `db.mutation.setPassword` @@ -406,7 +396,7 @@ setPassword | `input` | SetPasswordInput (required) | ```typescript -const result = await db.mutation.setPassword({ input: '' }).execute(); +const result = await db.mutation.setPassword({ input: { currentPassword: '', newPassword: '' } }).execute(); ``` ### `db.mutation.verifyEmail` @@ -421,7 +411,7 @@ verifyEmail | `input` | VerifyEmailInput (required) | ```typescript -const result = await db.mutation.verifyEmail({ input: '' }).execute(); +const result = await db.mutation.verifyEmail({ input: { emailId: '', token: '' } }).execute(); ``` ### `db.mutation.resetPassword` @@ -436,7 +426,7 @@ resetPassword | `input` | ResetPasswordInput (required) | ```typescript -const result = await db.mutation.resetPassword({ input: '' }).execute(); +const result = await db.mutation.resetPassword({ input: { roleId: '', resetToken: '', newPassword: '' } }).execute(); ``` ### `db.mutation.signInOneTimeToken` @@ -451,7 +441,7 @@ signInOneTimeToken | `input` | SignInOneTimeTokenInput (required) | ```typescript -const result = await db.mutation.signInOneTimeToken({ input: '' }).execute(); +const result = await db.mutation.signInOneTimeToken({ input: { token: '', credentialKind: '' } }).execute(); ``` ### `db.mutation.signIn` @@ -466,7 +456,7 @@ signIn | `input` | SignInInput (required) | ```typescript -const result = await db.mutation.signIn({ input: '' }).execute(); +const result = await db.mutation.signIn({ input: { email: '', password: '', rememberMe: '', credentialKind: '', csrfToken: '' } }).execute(); ``` ### `db.mutation.signUp` @@ -481,7 +471,7 @@ signUp | `input` | SignUpInput (required) | ```typescript -const result = await db.mutation.signUp({ input: '' }).execute(); +const result = await db.mutation.signUp({ input: { email: '', password: '', rememberMe: '', credentialKind: '', csrfToken: '' } }).execute(); ``` ### `db.mutation.oneTimeToken` @@ -496,7 +486,7 @@ oneTimeToken | `input` | OneTimeTokenInput (required) | ```typescript -const result = await db.mutation.oneTimeToken({ input: '' }).execute(); +const result = await db.mutation.oneTimeToken({ input: { email: '', password: '', origin: '', rememberMe: '' } }).execute(); ``` ### `db.mutation.extendTokenExpires` @@ -511,7 +501,7 @@ extendTokenExpires | `input` | ExtendTokenExpiresInput (required) | ```typescript -const result = await db.mutation.extendTokenExpires({ input: '' }).execute(); +const result = await db.mutation.extendTokenExpires({ input: { amount: '' } }).execute(); ``` ### `db.mutation.forgotPassword` @@ -526,7 +516,7 @@ forgotPassword | `input` | ForgotPasswordInput (required) | ```typescript -const result = await db.mutation.forgotPassword({ input: '' }).execute(); +const result = await db.mutation.forgotPassword({ input: { email: '' } }).execute(); ``` ### `db.mutation.sendVerificationEmail` @@ -541,7 +531,7 @@ sendVerificationEmail | `input` | SendVerificationEmailInput (required) | ```typescript -const result = await db.mutation.sendVerificationEmail({ input: '' }).execute(); +const result = await db.mutation.sendVerificationEmail({ input: { email: '' } }).execute(); ``` ### `db.mutation.verifyPassword` @@ -556,7 +546,7 @@ verifyPassword | `input` | VerifyPasswordInput (required) | ```typescript -const result = await db.mutation.verifyPassword({ input: '' }).execute(); +const result = await db.mutation.verifyPassword({ input: { password: '' } }).execute(); ``` ### `db.mutation.verifyTotp` @@ -571,7 +561,7 @@ verifyTotp | `input` | VerifyTotpInput (required) | ```typescript -const result = await db.mutation.verifyTotp({ input: '' }).execute(); +const result = await db.mutation.verifyTotp({ input: { totpValue: '' } }).execute(); ``` --- diff --git a/sdk/constructive-react/src/auth/orm/index.ts b/sdk/constructive-react/src/auth/orm/index.ts index 51b7e07ae..3c0f903f5 100644 --- a/sdk/constructive-react/src/auth/orm/index.ts +++ b/sdk/constructive-react/src/auth/orm/index.ts @@ -5,12 +5,12 @@ */ import { OrmClient } from './client'; import type { OrmClientConfig } from './client'; -import { CryptoAddressModel } from './models/cryptoAddress'; -import { RoleTypeModel } from './models/roleType'; +import { EmailModel } from './models/email'; import { PhoneNumberModel } from './models/phoneNumber'; +import { CryptoAddressModel } from './models/cryptoAddress'; import { ConnectedAccountModel } from './models/connectedAccount'; import { AuditLogModel } from './models/auditLog'; -import { EmailModel } from './models/email'; +import { RoleTypeModel } from './models/roleType'; import { UserModel } from './models/user'; import { createQueryOperations } from './query'; import { createMutationOperations } from './mutation'; @@ -47,12 +47,12 @@ export { createMutationOperations } from './mutation'; export function createClient(config: OrmClientConfig) { const client = new OrmClient(config); return { - cryptoAddress: new CryptoAddressModel(client), - roleType: new RoleTypeModel(client), + email: new EmailModel(client), phoneNumber: new PhoneNumberModel(client), + cryptoAddress: new CryptoAddressModel(client), connectedAccount: new ConnectedAccountModel(client), auditLog: new AuditLogModel(client), - email: new EmailModel(client), + roleType: new RoleTypeModel(client), user: new UserModel(client), query: createQueryOperations(client), mutation: createMutationOperations(client), diff --git a/sdk/constructive-react/src/auth/orm/input-types.ts b/sdk/constructive-react/src/auth/orm/input-types.ts index ba9c684f2..879ec0366 100644 --- a/sdk/constructive-react/src/auth/orm/input-types.ts +++ b/sdk/constructive-react/src/auth/orm/input-types.ts @@ -234,27 +234,19 @@ export interface UUIDListFilter { export type ConstructiveInternalTypeEmail = unknown; export type ConstructiveInternalTypeImage = unknown; export type ConstructiveInternalTypeOrigin = unknown; -/** Cryptocurrency wallet addresses owned by users, with network-specific validation and verification */ +/** User email addresses with verification and primary-email management */ // ============ Entity Types ============ -export interface CryptoAddress { +export interface Email { id: string; ownerId?: string | null; - /** The cryptocurrency wallet address, validated against network-specific patterns */ - address?: string | null; - /** Whether ownership of this address has been cryptographically verified */ + /** The email address */ + email?: ConstructiveInternalTypeEmail | null; + /** Whether the email address has been verified via confirmation link */ isVerified?: boolean | null; - /** Whether this is the user's primary cryptocurrency address */ + /** Whether this is the user's primary email address */ isPrimary?: boolean | null; createdAt?: string | null; updatedAt?: string | null; - /** TRGM similarity when searching `address`. Returns null when no trgm search filter is active. */ - addressTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; -} -export interface RoleType { - id: number; - name?: string | null; } /** User phone numbers with country code, verification, and primary-number management */ export interface PhoneNumber { @@ -270,12 +262,19 @@ export interface PhoneNumber { isPrimary?: boolean | null; createdAt?: string | null; updatedAt?: string | null; - /** TRGM similarity when searching `cc`. Returns null when no trgm search filter is active. */ - ccTrgmSimilarity?: number | null; - /** TRGM similarity when searching `number`. Returns null when no trgm search filter is active. */ - numberTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; +} +/** Cryptocurrency wallet addresses owned by users, with network-specific validation and verification */ +export interface CryptoAddress { + id: string; + ownerId?: string | null; + /** The cryptocurrency wallet address, validated against network-specific patterns */ + address?: string | null; + /** Whether ownership of this address has been cryptographically verified */ + isVerified?: boolean | null; + /** Whether this is the user's primary cryptocurrency address */ + isPrimary?: boolean | null; + createdAt?: string | null; + updatedAt?: string | null; } /** OAuth and social login connections linking external service accounts to users */ export interface ConnectedAccount { @@ -291,19 +290,13 @@ export interface ConnectedAccount { isVerified?: boolean | null; createdAt?: string | null; updatedAt?: string | null; - /** TRGM similarity when searching `service`. Returns null when no trgm search filter is active. */ - serviceTrgmSimilarity?: number | null; - /** TRGM similarity when searching `identifier`. Returns null when no trgm search filter is active. */ - identifierTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } /** Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) */ export interface AuditLog { id: string; /** Type of authentication event (e.g. sign_in, sign_up, password_change, verify_email) */ event?: string | null; - /** User who performed the authentication action */ + /** User who performed the authentication action; NULL if user was deleted */ actorId?: string | null; /** Request origin (domain) where the auth event occurred */ origin?: ConstructiveInternalTypeOrigin | null; @@ -315,23 +308,10 @@ export interface AuditLog { success?: boolean | null; /** Timestamp when the audit event was recorded */ createdAt?: string | null; - /** TRGM similarity when searching `userAgent`. Returns null when no trgm search filter is active. */ - userAgentTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } -/** User email addresses with verification and primary-email management */ -export interface Email { - id: string; - ownerId?: string | null; - /** The email address */ - email?: ConstructiveInternalTypeEmail | null; - /** Whether the email address has been verified via confirmation link */ - isVerified?: boolean | null; - /** Whether this is the user's primary email address */ - isPrimary?: boolean | null; - createdAt?: string | null; - updatedAt?: string | null; +export interface RoleType { + id: number; + name?: string | null; } export interface User { id: string; @@ -346,7 +326,7 @@ export interface User { searchTsvRank?: number | null; /** TRGM similarity when searching `displayName`. Returns null when no trgm search filter is active. */ displayNameTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ + /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. */ searchScore?: number | null; } // ============ Relation Helper Types ============ @@ -362,52 +342,51 @@ export interface PageInfo { endCursor?: string | null; } // ============ Entity Relation Types ============ -export interface CryptoAddressRelations { +export interface EmailRelations { owner?: User | null; } -export interface RoleTypeRelations {} export interface PhoneNumberRelations { owner?: User | null; } +export interface CryptoAddressRelations { + owner?: User | null; +} export interface ConnectedAccountRelations { owner?: User | null; } export interface AuditLogRelations { actor?: User | null; } -export interface EmailRelations { - owner?: User | null; -} +export interface RoleTypeRelations {} export interface UserRelations { roleType?: RoleType | null; + ownedEmails?: ConnectionResult; + ownedPhoneNumbers?: ConnectionResult; + ownedCryptoAddresses?: ConnectionResult; + ownedConnectedAccounts?: ConnectionResult; + auditLogsByActorId?: ConnectionResult; } // ============ Entity Types With Relations ============ -export type CryptoAddressWithRelations = CryptoAddress & CryptoAddressRelations; -export type RoleTypeWithRelations = RoleType & RoleTypeRelations; +export type EmailWithRelations = Email & EmailRelations; export type PhoneNumberWithRelations = PhoneNumber & PhoneNumberRelations; +export type CryptoAddressWithRelations = CryptoAddress & CryptoAddressRelations; export type ConnectedAccountWithRelations = ConnectedAccount & ConnectedAccountRelations; export type AuditLogWithRelations = AuditLog & AuditLogRelations; -export type EmailWithRelations = Email & EmailRelations; +export type RoleTypeWithRelations = RoleType & RoleTypeRelations; export type UserWithRelations = User & UserRelations; // ============ Entity Select Types ============ -export type CryptoAddressSelect = { +export type EmailSelect = { id?: boolean; ownerId?: boolean; - address?: boolean; + email?: boolean; isVerified?: boolean; isPrimary?: boolean; createdAt?: boolean; updatedAt?: boolean; - addressTrgmSimilarity?: boolean; - searchScore?: boolean; owner?: { select: UserSelect; }; }; -export type RoleTypeSelect = { - id?: boolean; - name?: boolean; -}; export type PhoneNumberSelect = { id?: boolean; ownerId?: boolean; @@ -417,9 +396,18 @@ export type PhoneNumberSelect = { isPrimary?: boolean; createdAt?: boolean; updatedAt?: boolean; - ccTrgmSimilarity?: boolean; - numberTrgmSimilarity?: boolean; - searchScore?: boolean; + owner?: { + select: UserSelect; + }; +}; +export type CryptoAddressSelect = { + id?: boolean; + ownerId?: boolean; + address?: boolean; + isVerified?: boolean; + isPrimary?: boolean; + createdAt?: boolean; + updatedAt?: boolean; owner?: { select: UserSelect; }; @@ -433,9 +421,6 @@ export type ConnectedAccountSelect = { isVerified?: boolean; createdAt?: boolean; updatedAt?: boolean; - serviceTrgmSimilarity?: boolean; - identifierTrgmSimilarity?: boolean; - searchScore?: boolean; owner?: { select: UserSelect; }; @@ -449,23 +434,13 @@ export type AuditLogSelect = { ipAddress?: boolean; success?: boolean; createdAt?: boolean; - userAgentTrgmSimilarity?: boolean; - searchScore?: boolean; actor?: { select: UserSelect; }; }; -export type EmailSelect = { +export type RoleTypeSelect = { id?: boolean; - ownerId?: boolean; - email?: boolean; - isVerified?: boolean; - isPrimary?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - owner?: { - select: UserSelect; - }; + name?: boolean; }; export type UserSelect = { id?: boolean; @@ -482,28 +457,49 @@ export type UserSelect = { roleType?: { select: RoleTypeSelect; }; + ownedEmails?: { + select: EmailSelect; + first?: number; + filter?: EmailFilter; + orderBy?: EmailOrderBy[]; + }; + ownedPhoneNumbers?: { + select: PhoneNumberSelect; + first?: number; + filter?: PhoneNumberFilter; + orderBy?: PhoneNumberOrderBy[]; + }; + ownedCryptoAddresses?: { + select: CryptoAddressSelect; + first?: number; + filter?: CryptoAddressFilter; + orderBy?: CryptoAddressOrderBy[]; + }; + ownedConnectedAccounts?: { + select: ConnectedAccountSelect; + first?: number; + filter?: ConnectedAccountFilter; + orderBy?: ConnectedAccountOrderBy[]; + }; + auditLogsByActorId?: { + select: AuditLogSelect; + first?: number; + filter?: AuditLogFilter; + orderBy?: AuditLogOrderBy[]; + }; }; // ============ Table Filter Types ============ -export interface CryptoAddressFilter { +export interface EmailFilter { id?: UUIDFilter; ownerId?: UUIDFilter; - address?: StringFilter; + email?: StringFilter; isVerified?: BooleanFilter; isPrimary?: BooleanFilter; createdAt?: DatetimeFilter; updatedAt?: DatetimeFilter; - addressTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; - and?: CryptoAddressFilter[]; - or?: CryptoAddressFilter[]; - not?: CryptoAddressFilter; -} -export interface RoleTypeFilter { - id?: IntFilter; - name?: StringFilter; - and?: RoleTypeFilter[]; - or?: RoleTypeFilter[]; - not?: RoleTypeFilter; + and?: EmailFilter[]; + or?: EmailFilter[]; + not?: EmailFilter; } export interface PhoneNumberFilter { id?: UUIDFilter; @@ -514,13 +510,22 @@ export interface PhoneNumberFilter { isPrimary?: BooleanFilter; createdAt?: DatetimeFilter; updatedAt?: DatetimeFilter; - ccTrgmSimilarity?: FloatFilter; - numberTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: PhoneNumberFilter[]; or?: PhoneNumberFilter[]; not?: PhoneNumberFilter; } +export interface CryptoAddressFilter { + id?: UUIDFilter; + ownerId?: UUIDFilter; + address?: StringFilter; + isVerified?: BooleanFilter; + isPrimary?: BooleanFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: CryptoAddressFilter[]; + or?: CryptoAddressFilter[]; + not?: CryptoAddressFilter; +} export interface ConnectedAccountFilter { id?: UUIDFilter; ownerId?: UUIDFilter; @@ -530,9 +535,6 @@ export interface ConnectedAccountFilter { isVerified?: BooleanFilter; createdAt?: DatetimeFilter; updatedAt?: DatetimeFilter; - serviceTrgmSimilarity?: FloatFilter; - identifierTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: ConnectedAccountFilter[]; or?: ConnectedAccountFilter[]; not?: ConnectedAccountFilter; @@ -546,23 +548,16 @@ export interface AuditLogFilter { ipAddress?: InternetAddressFilter; success?: BooleanFilter; createdAt?: DatetimeFilter; - userAgentTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: AuditLogFilter[]; or?: AuditLogFilter[]; not?: AuditLogFilter; } -export interface EmailFilter { - id?: UUIDFilter; - ownerId?: UUIDFilter; - email?: StringFilter; - isVerified?: BooleanFilter; - isPrimary?: BooleanFilter; - createdAt?: DatetimeFilter; - updatedAt?: DatetimeFilter; - and?: EmailFilter[]; - or?: EmailFilter[]; - not?: EmailFilter; +export interface RoleTypeFilter { + id?: IntFilter; + name?: StringFilter; + and?: RoleTypeFilter[]; + or?: RoleTypeFilter[]; + not?: RoleTypeFilter; } export interface UserFilter { id?: UUIDFilter; @@ -581,66 +576,52 @@ export interface UserFilter { not?: UserFilter; } // ============ OrderBy Types ============ -export type CryptoAddressOrderBy = +export type EmailOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'OWNER_ID_ASC' | 'OWNER_ID_DESC' - | 'ADDRESS_ASC' - | 'ADDRESS_DESC' - | 'IS_VERIFIED_ASC' - | 'IS_VERIFIED_DESC' - | 'IS_PRIMARY_ASC' - | 'IS_PRIMARY_DESC' + | 'EMAIL_ASC' + | 'EMAIL_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'ADDRESS_TRGM_SIMILARITY_ASC' - | 'ADDRESS_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; -export type RoleTypeOrderBy = + | 'UPDATED_AT_DESC'; +export type PhoneNumberOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC'; -export type PhoneNumberOrderBy = + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'NUMBER_ASC' + | 'NUMBER_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type CryptoAddressOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'OWNER_ID_ASC' | 'OWNER_ID_DESC' - | 'CC_ASC' - | 'CC_DESC' - | 'NUMBER_ASC' - | 'NUMBER_DESC' - | 'IS_VERIFIED_ASC' - | 'IS_VERIFIED_DESC' - | 'IS_PRIMARY_ASC' - | 'IS_PRIMARY_DESC' + | 'ADDRESS_ASC' + | 'ADDRESS_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CC_TRGM_SIMILARITY_ASC' - | 'CC_TRGM_SIMILARITY_DESC' - | 'NUMBER_TRGM_SIMILARITY_ASC' - | 'NUMBER_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'UPDATED_AT_DESC'; export type ConnectedAccountOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'OWNER_ID_ASC' @@ -649,78 +630,36 @@ export type ConnectedAccountOrderBy = | 'SERVICE_DESC' | 'IDENTIFIER_ASC' | 'IDENTIFIER_DESC' - | 'DETAILS_ASC' - | 'DETAILS_DESC' - | 'IS_VERIFIED_ASC' - | 'IS_VERIFIED_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'SERVICE_TRGM_SIMILARITY_ASC' - | 'SERVICE_TRGM_SIMILARITY_DESC' - | 'IDENTIFIER_TRGM_SIMILARITY_ASC' - | 'IDENTIFIER_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'UPDATED_AT_DESC'; export type AuditLogOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'EVENT_ASC' | 'EVENT_DESC' | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'ORIGIN_ASC' - | 'ORIGIN_DESC' - | 'USER_AGENT_ASC' - | 'USER_AGENT_DESC' - | 'IP_ADDRESS_ASC' - | 'IP_ADDRESS_DESC' - | 'SUCCESS_ASC' - | 'SUCCESS_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'USER_AGENT_TRGM_SIMILARITY_ASC' - | 'USER_AGENT_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; -export type EmailOrderBy = + | 'ACTOR_ID_DESC'; +export type RoleTypeOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' - | 'OWNER_ID_ASC' - | 'OWNER_ID_DESC' - | 'EMAIL_ASC' - | 'EMAIL_DESC' - | 'IS_VERIFIED_ASC' - | 'IS_VERIFIED_DESC' - | 'IS_PRIMARY_ASC' - | 'IS_PRIMARY_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; + | 'NAME_ASC' + | 'NAME_DESC'; export type UserOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'USERNAME_ASC' | 'USERNAME_DESC' - | 'DISPLAY_NAME_ASC' - | 'DISPLAY_NAME_DESC' - | 'PROFILE_PICTURE_ASC' - | 'PROFILE_PICTURE_DESC' - | 'SEARCH_TSV_ASC' - | 'SEARCH_TSV_DESC' - | 'TYPE_ASC' - | 'TYPE_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' @@ -732,50 +671,30 @@ export type UserOrderBy = | 'SEARCH_SCORE_ASC' | 'SEARCH_SCORE_DESC'; // ============ CRUD Input Types ============ -export interface CreateCryptoAddressInput { +export interface CreateEmailInput { clientMutationId?: string; - cryptoAddress: { + email: { ownerId?: string; - address: string; + email: ConstructiveInternalTypeEmail; isVerified?: boolean; isPrimary?: boolean; }; } -export interface CryptoAddressPatch { +export interface EmailPatch { ownerId?: string | null; - address?: string | null; + email?: ConstructiveInternalTypeEmail | null; isVerified?: boolean | null; isPrimary?: boolean | null; - addressTrgmSimilarity?: number | null; - searchScore?: number | null; } -export interface UpdateCryptoAddressInput { +export interface UpdateEmailInput { clientMutationId?: string; id: string; - cryptoAddressPatch: CryptoAddressPatch; + emailPatch: EmailPatch; } -export interface DeleteCryptoAddressInput { +export interface DeleteEmailInput { clientMutationId?: string; id: string; } -export interface CreateRoleTypeInput { - clientMutationId?: string; - roleType: { - name: string; - }; -} -export interface RoleTypePatch { - name?: string | null; -} -export interface UpdateRoleTypeInput { - clientMutationId?: string; - id: number; - roleTypePatch: RoleTypePatch; -} -export interface DeleteRoleTypeInput { - clientMutationId?: string; - id: number; -} export interface CreatePhoneNumberInput { clientMutationId?: string; phoneNumber: { @@ -792,9 +711,6 @@ export interface PhoneNumberPatch { number?: string | null; isVerified?: boolean | null; isPrimary?: boolean | null; - ccTrgmSimilarity?: number | null; - numberTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdatePhoneNumberInput { clientMutationId?: string; @@ -805,6 +721,30 @@ export interface DeletePhoneNumberInput { clientMutationId?: string; id: string; } +export interface CreateCryptoAddressInput { + clientMutationId?: string; + cryptoAddress: { + ownerId?: string; + address: string; + isVerified?: boolean; + isPrimary?: boolean; + }; +} +export interface CryptoAddressPatch { + ownerId?: string | null; + address?: string | null; + isVerified?: boolean | null; + isPrimary?: boolean | null; +} +export interface UpdateCryptoAddressInput { + clientMutationId?: string; + id: string; + cryptoAddressPatch: CryptoAddressPatch; +} +export interface DeleteCryptoAddressInput { + clientMutationId?: string; + id: string; +} export interface CreateConnectedAccountInput { clientMutationId?: string; connectedAccount: { @@ -821,9 +761,6 @@ export interface ConnectedAccountPatch { identifier?: string | null; details?: Record | null; isVerified?: boolean | null; - serviceTrgmSimilarity?: number | null; - identifierTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateConnectedAccountInput { clientMutationId?: string; @@ -852,8 +789,6 @@ export interface AuditLogPatch { userAgent?: string | null; ipAddress?: string | null; success?: boolean | null; - userAgentTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateAuditLogInput { clientMutationId?: string; @@ -864,29 +799,23 @@ export interface DeleteAuditLogInput { clientMutationId?: string; id: string; } -export interface CreateEmailInput { +export interface CreateRoleTypeInput { clientMutationId?: string; - email: { - ownerId?: string; - email: ConstructiveInternalTypeEmail; - isVerified?: boolean; - isPrimary?: boolean; + roleType: { + name: string; }; } -export interface EmailPatch { - ownerId?: string | null; - email?: ConstructiveInternalTypeEmail | null; - isVerified?: boolean | null; - isPrimary?: boolean | null; +export interface RoleTypePatch { + name?: string | null; } -export interface UpdateEmailInput { +export interface UpdateRoleTypeInput { clientMutationId?: string; - id: string; - emailPatch: EmailPatch; + id: number; + roleTypePatch: RoleTypePatch; } -export interface DeleteEmailInput { +export interface DeleteRoleTypeInput { clientMutationId?: string; - id: string; + id: number; } export interface CreateUserInput { clientMutationId?: string; @@ -900,12 +829,9 @@ export interface CreateUserInput { export interface UserPatch { username?: string | null; displayName?: string | null; - profilePicture?: ConstructiveInternalTypeImage | null; - searchTsv?: string | null; - type?: number | null; - searchTsvRank?: number | null; - displayNameTrgmSimilarity?: number | null; - searchScore?: number | null; + profilePicture?: ConstructiveInternalTypeImage | null; + type?: number | null; + profilePictureUpload?: File | null; } export interface UpdateUserInput { clientMutationId?: string; @@ -917,7 +843,15 @@ export interface DeleteUserInput { id: string; } // ============ Connection Fields Map ============ -export const connectionFieldsMap = {} as Record>; +export const connectionFieldsMap = { + User: { + ownedEmails: 'Email', + ownedPhoneNumbers: 'PhoneNumber', + ownedCryptoAddresses: 'CryptoAddress', + ownedConnectedAccounts: 'ConnectedAccount', + auditLogsByActorId: 'AuditLog', + }, +} as Record>; // ============ Custom Input Types (from schema) ============ export interface SignOutInput { clientMutationId?: string; @@ -1152,94 +1086,49 @@ export type VerifyTotpPayloadSelect = { select: SessionSelect; }; }; -export interface CreateCryptoAddressPayload { - clientMutationId?: string | null; - /** The `CryptoAddress` that was created by this mutation. */ - cryptoAddress?: CryptoAddress | null; - cryptoAddressEdge?: CryptoAddressEdge | null; -} -export type CreateCryptoAddressPayloadSelect = { - clientMutationId?: boolean; - cryptoAddress?: { - select: CryptoAddressSelect; - }; - cryptoAddressEdge?: { - select: CryptoAddressEdgeSelect; - }; -}; -export interface UpdateCryptoAddressPayload { - clientMutationId?: string | null; - /** The `CryptoAddress` that was updated by this mutation. */ - cryptoAddress?: CryptoAddress | null; - cryptoAddressEdge?: CryptoAddressEdge | null; -} -export type UpdateCryptoAddressPayloadSelect = { - clientMutationId?: boolean; - cryptoAddress?: { - select: CryptoAddressSelect; - }; - cryptoAddressEdge?: { - select: CryptoAddressEdgeSelect; - }; -}; -export interface DeleteCryptoAddressPayload { - clientMutationId?: string | null; - /** The `CryptoAddress` that was deleted by this mutation. */ - cryptoAddress?: CryptoAddress | null; - cryptoAddressEdge?: CryptoAddressEdge | null; -} -export type DeleteCryptoAddressPayloadSelect = { - clientMutationId?: boolean; - cryptoAddress?: { - select: CryptoAddressSelect; - }; - cryptoAddressEdge?: { - select: CryptoAddressEdgeSelect; - }; -}; -export interface CreateRoleTypePayload { +export interface CreateEmailPayload { clientMutationId?: string | null; - /** The `RoleType` that was created by this mutation. */ - roleType?: RoleType | null; - roleTypeEdge?: RoleTypeEdge | null; + /** The `Email` that was created by this mutation. */ + email?: Email | null; + emailEdge?: EmailEdge | null; } -export type CreateRoleTypePayloadSelect = { +export type CreateEmailPayloadSelect = { clientMutationId?: boolean; - roleType?: { - select: RoleTypeSelect; + email?: { + select: EmailSelect; }; - roleTypeEdge?: { - select: RoleTypeEdgeSelect; + emailEdge?: { + select: EmailEdgeSelect; }; }; -export interface UpdateRoleTypePayload { +export interface UpdateEmailPayload { clientMutationId?: string | null; - /** The `RoleType` that was updated by this mutation. */ - roleType?: RoleType | null; - roleTypeEdge?: RoleTypeEdge | null; + /** The `Email` that was updated by this mutation. */ + email?: Email | null; + emailEdge?: EmailEdge | null; } -export type UpdateRoleTypePayloadSelect = { +export type UpdateEmailPayloadSelect = { clientMutationId?: boolean; - roleType?: { - select: RoleTypeSelect; + email?: { + select: EmailSelect; }; - roleTypeEdge?: { - select: RoleTypeEdgeSelect; + emailEdge?: { + select: EmailEdgeSelect; }; }; -export interface DeleteRoleTypePayload { +export interface DeleteEmailPayload { clientMutationId?: string | null; - /** The `RoleType` that was deleted by this mutation. */ - roleType?: RoleType | null; - roleTypeEdge?: RoleTypeEdge | null; + /** The `Email` that was deleted by this mutation. */ + email?: Email | null; + emailEdge?: EmailEdge | null; } -export type DeleteRoleTypePayloadSelect = { +export type DeleteEmailPayloadSelect = { clientMutationId?: boolean; - roleType?: { - select: RoleTypeSelect; + email?: { + select: EmailSelect; }; - roleTypeEdge?: { - select: RoleTypeEdgeSelect; + emailEdge?: { + select: EmailEdgeSelect; }; }; export interface CreatePhoneNumberPayload { @@ -1287,6 +1176,51 @@ export type DeletePhoneNumberPayloadSelect = { select: PhoneNumberEdgeSelect; }; }; +export interface CreateCryptoAddressPayload { + clientMutationId?: string | null; + /** The `CryptoAddress` that was created by this mutation. */ + cryptoAddress?: CryptoAddress | null; + cryptoAddressEdge?: CryptoAddressEdge | null; +} +export type CreateCryptoAddressPayloadSelect = { + clientMutationId?: boolean; + cryptoAddress?: { + select: CryptoAddressSelect; + }; + cryptoAddressEdge?: { + select: CryptoAddressEdgeSelect; + }; +}; +export interface UpdateCryptoAddressPayload { + clientMutationId?: string | null; + /** The `CryptoAddress` that was updated by this mutation. */ + cryptoAddress?: CryptoAddress | null; + cryptoAddressEdge?: CryptoAddressEdge | null; +} +export type UpdateCryptoAddressPayloadSelect = { + clientMutationId?: boolean; + cryptoAddress?: { + select: CryptoAddressSelect; + }; + cryptoAddressEdge?: { + select: CryptoAddressEdgeSelect; + }; +}; +export interface DeleteCryptoAddressPayload { + clientMutationId?: string | null; + /** The `CryptoAddress` that was deleted by this mutation. */ + cryptoAddress?: CryptoAddress | null; + cryptoAddressEdge?: CryptoAddressEdge | null; +} +export type DeleteCryptoAddressPayloadSelect = { + clientMutationId?: boolean; + cryptoAddress?: { + select: CryptoAddressSelect; + }; + cryptoAddressEdge?: { + select: CryptoAddressEdgeSelect; + }; +}; export interface CreateConnectedAccountPayload { clientMutationId?: string | null; /** The `ConnectedAccount` that was created by this mutation. */ @@ -1377,49 +1311,49 @@ export type DeleteAuditLogPayloadSelect = { select: AuditLogEdgeSelect; }; }; -export interface CreateEmailPayload { +export interface CreateRoleTypePayload { clientMutationId?: string | null; - /** The `Email` that was created by this mutation. */ - email?: Email | null; - emailEdge?: EmailEdge | null; + /** The `RoleType` that was created by this mutation. */ + roleType?: RoleType | null; + roleTypeEdge?: RoleTypeEdge | null; } -export type CreateEmailPayloadSelect = { +export type CreateRoleTypePayloadSelect = { clientMutationId?: boolean; - email?: { - select: EmailSelect; + roleType?: { + select: RoleTypeSelect; }; - emailEdge?: { - select: EmailEdgeSelect; + roleTypeEdge?: { + select: RoleTypeEdgeSelect; }; }; -export interface UpdateEmailPayload { +export interface UpdateRoleTypePayload { clientMutationId?: string | null; - /** The `Email` that was updated by this mutation. */ - email?: Email | null; - emailEdge?: EmailEdge | null; + /** The `RoleType` that was updated by this mutation. */ + roleType?: RoleType | null; + roleTypeEdge?: RoleTypeEdge | null; } -export type UpdateEmailPayloadSelect = { +export type UpdateRoleTypePayloadSelect = { clientMutationId?: boolean; - email?: { - select: EmailSelect; + roleType?: { + select: RoleTypeSelect; }; - emailEdge?: { - select: EmailEdgeSelect; + roleTypeEdge?: { + select: RoleTypeEdgeSelect; }; }; -export interface DeleteEmailPayload { +export interface DeleteRoleTypePayload { clientMutationId?: string | null; - /** The `Email` that was deleted by this mutation. */ - email?: Email | null; - emailEdge?: EmailEdge | null; + /** The `RoleType` that was deleted by this mutation. */ + roleType?: RoleType | null; + roleTypeEdge?: RoleTypeEdge | null; } -export type DeleteEmailPayloadSelect = { +export type DeleteRoleTypePayloadSelect = { clientMutationId?: boolean; - email?: { - select: EmailSelect; + roleType?: { + select: RoleTypeSelect; }; - emailEdge?: { - select: EmailEdgeSelect; + roleTypeEdge?: { + select: RoleTypeEdgeSelect; }; }; export interface CreateUserPayload { @@ -1474,10 +1408,6 @@ export interface SignInOneTimeTokenRecord { accessTokenExpiresAt?: string | null; isVerified?: boolean | null; totpEnabled?: boolean | null; - /** TRGM similarity when searching `accessToken`. Returns null when no trgm search filter is active. */ - accessTokenTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export type SignInOneTimeTokenRecordSelect = { id?: boolean; @@ -1486,8 +1416,6 @@ export type SignInOneTimeTokenRecordSelect = { accessTokenExpiresAt?: boolean; isVerified?: boolean; totpEnabled?: boolean; - accessTokenTrgmSimilarity?: boolean; - searchScore?: boolean; }; export interface SignInRecord { id?: string | null; @@ -1496,10 +1424,6 @@ export interface SignInRecord { accessTokenExpiresAt?: string | null; isVerified?: boolean | null; totpEnabled?: boolean | null; - /** TRGM similarity when searching `accessToken`. Returns null when no trgm search filter is active. */ - accessTokenTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export type SignInRecordSelect = { id?: boolean; @@ -1508,8 +1432,6 @@ export type SignInRecordSelect = { accessTokenExpiresAt?: boolean; isVerified?: boolean; totpEnabled?: boolean; - accessTokenTrgmSimilarity?: boolean; - searchScore?: boolean; }; export interface SignUpRecord { id?: string | null; @@ -1518,10 +1440,6 @@ export interface SignUpRecord { accessTokenExpiresAt?: string | null; isVerified?: boolean | null; totpEnabled?: boolean | null; - /** TRGM similarity when searching `accessToken`. Returns null when no trgm search filter is active. */ - accessTokenTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export type SignUpRecordSelect = { id?: boolean; @@ -1530,8 +1448,6 @@ export type SignUpRecordSelect = { accessTokenExpiresAt?: boolean; isVerified?: boolean; totpEnabled?: boolean; - accessTokenTrgmSimilarity?: boolean; - searchScore?: boolean; }; export interface ExtendTokenExpiresRecord { id?: string | null; @@ -1570,14 +1486,6 @@ export interface Session { csrfSecret?: string | null; createdAt?: string | null; updatedAt?: string | null; - /** TRGM similarity when searching `uagent`. Returns null when no trgm search filter is active. */ - uagentTrgmSimilarity?: number | null; - /** TRGM similarity when searching `fingerprintMode`. Returns null when no trgm search filter is active. */ - fingerprintModeTrgmSimilarity?: number | null; - /** TRGM similarity when searching `csrfSecret`. Returns null when no trgm search filter is active. */ - csrfSecretTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export type SessionSelect = { id?: boolean; @@ -1594,33 +1502,17 @@ export type SessionSelect = { csrfSecret?: boolean; createdAt?: boolean; updatedAt?: boolean; - uagentTrgmSimilarity?: boolean; - fingerprintModeTrgmSimilarity?: boolean; - csrfSecretTrgmSimilarity?: boolean; - searchScore?: boolean; }; -/** A `CryptoAddress` edge in the connection. */ -export interface CryptoAddressEdge { - cursor?: string | null; - /** The `CryptoAddress` at the end of the edge. */ - node?: CryptoAddress | null; -} -export type CryptoAddressEdgeSelect = { - cursor?: boolean; - node?: { - select: CryptoAddressSelect; - }; -}; -/** A `RoleType` edge in the connection. */ -export interface RoleTypeEdge { +/** A `Email` edge in the connection. */ +export interface EmailEdge { cursor?: string | null; - /** The `RoleType` at the end of the edge. */ - node?: RoleType | null; + /** The `Email` at the end of the edge. */ + node?: Email | null; } -export type RoleTypeEdgeSelect = { +export type EmailEdgeSelect = { cursor?: boolean; node?: { - select: RoleTypeSelect; + select: EmailSelect; }; }; /** A `PhoneNumber` edge in the connection. */ @@ -1635,6 +1527,18 @@ export type PhoneNumberEdgeSelect = { select: PhoneNumberSelect; }; }; +/** A `CryptoAddress` edge in the connection. */ +export interface CryptoAddressEdge { + cursor?: string | null; + /** The `CryptoAddress` at the end of the edge. */ + node?: CryptoAddress | null; +} +export type CryptoAddressEdgeSelect = { + cursor?: boolean; + node?: { + select: CryptoAddressSelect; + }; +}; /** A `ConnectedAccount` edge in the connection. */ export interface ConnectedAccountEdge { cursor?: string | null; @@ -1659,16 +1563,16 @@ export type AuditLogEdgeSelect = { select: AuditLogSelect; }; }; -/** A `Email` edge in the connection. */ -export interface EmailEdge { +/** A `RoleType` edge in the connection. */ +export interface RoleTypeEdge { cursor?: string | null; - /** The `Email` at the end of the edge. */ - node?: Email | null; + /** The `RoleType` at the end of the edge. */ + node?: RoleType | null; } -export type EmailEdgeSelect = { +export type RoleTypeEdgeSelect = { cursor?: boolean; node?: { - select: EmailSelect; + select: RoleTypeSelect; }; }; /** A `User` edge in the connection. */ diff --git a/sdk/constructive-react/src/auth/orm/models/index.ts b/sdk/constructive-react/src/auth/orm/models/index.ts index 5ef4dde11..c21f0cd77 100644 --- a/sdk/constructive-react/src/auth/orm/models/index.ts +++ b/sdk/constructive-react/src/auth/orm/models/index.ts @@ -3,10 +3,10 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ -export { CryptoAddressModel } from './cryptoAddress'; -export { RoleTypeModel } from './roleType'; +export { EmailModel } from './email'; export { PhoneNumberModel } from './phoneNumber'; +export { CryptoAddressModel } from './cryptoAddress'; export { ConnectedAccountModel } from './connectedAccount'; export { AuditLogModel } from './auditLog'; -export { EmailModel } from './email'; +export { RoleTypeModel } from './roleType'; export { UserModel } from './user'; diff --git a/sdk/constructive-react/src/auth/schema-types.ts b/sdk/constructive-react/src/auth/schema-types.ts index 076c3411e..6f7abcf6c 100644 --- a/sdk/constructive-react/src/auth/schema-types.ts +++ b/sdk/constructive-react/src/auth/schema-types.ts @@ -33,51 +33,51 @@ import type { export type ConstructiveInternalTypeEmail = unknown; export type ConstructiveInternalTypeImage = unknown; export type ConstructiveInternalTypeOrigin = unknown; -/** Methods to use when ordering `CryptoAddress`. */ -export type CryptoAddressOrderBy = +/** Methods to use when ordering `Email`. */ +export type EmailOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'ADDRESS_ASC' - | 'ADDRESS_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'EMAIL_ASC' + | 'EMAIL_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'ADDRESS_TRGM_SIMILARITY_ASC' - | 'ADDRESS_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; -/** Methods to use when ordering `RoleType`. */ -export type RoleTypeOrderBy = + | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `PhoneNumber`. */ +export type PhoneNumberOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC'; -/** Methods to use when ordering `PhoneNumber`. */ -export type PhoneNumberOrderBy = + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'NUMBER_ASC' + | 'NUMBER_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `CryptoAddress`. */ +export type CryptoAddressOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'NUMBER_ASC' - | 'NUMBER_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'ADDRESS_ASC' + | 'ADDRESS_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CC_TRGM_SIMILARITY_ASC' - | 'CC_TRGM_SIMILARITY_DESC' - | 'NUMBER_TRGM_SIMILARITY_ASC' - | 'NUMBER_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'UPDATED_AT_DESC'; /** Methods to use when ordering `ConnectedAccount`. */ export type ConnectedAccountOrderBy = | 'NATURAL' @@ -85,6 +85,8 @@ export type ConnectedAccountOrderBy = | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' | 'SERVICE_ASC' | 'SERVICE_DESC' | 'IDENTIFIER_ASC' @@ -92,13 +94,7 @@ export type ConnectedAccountOrderBy = | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'SERVICE_TRGM_SIMILARITY_ASC' - | 'SERVICE_TRGM_SIMILARITY_DESC' - | 'IDENTIFIER_TRGM_SIMILARITY_ASC' - | 'IDENTIFIER_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'UPDATED_AT_DESC'; /** Methods to use when ordering `AuditLog`. */ export type AuditLogOrderBy = | 'NATURAL' @@ -108,23 +104,17 @@ export type AuditLogOrderBy = | 'ID_DESC' | 'EVENT_ASC' | 'EVENT_DESC' - | 'USER_AGENT_TRGM_SIMILARITY_ASC' - | 'USER_AGENT_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; -/** Methods to use when ordering `Email`. */ -export type EmailOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC'; +/** Methods to use when ordering `RoleType`. */ +export type RoleTypeOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'EMAIL_ASC' - | 'EMAIL_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; + | 'NAME_ASC' + | 'NAME_DESC'; /** Methods to use when ordering `User`. */ export type UserOrderBy = | 'NATURAL' @@ -144,14 +134,14 @@ export type UserOrderBy = | 'DISPLAY_NAME_TRGM_SIMILARITY_DESC' | 'SEARCH_SCORE_ASC' | 'SEARCH_SCORE_DESC'; -/** A filter to be used against `CryptoAddress` object types. All fields are combined with a logical ‘and.’ */ -export interface CryptoAddressFilter { +/** A filter to be used against `Email` object types. All fields are combined with a logical ‘and.’ */ +export interface EmailFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `ownerId` field. */ ownerId?: UUIDFilter; - /** Filter by the object’s `address` field. */ - address?: StringFilter; + /** Filter by the object’s `email` field. */ + email?: ConstructiveInternalTypeEmailFilter; /** Filter by the object’s `isVerified` field. */ isVerified?: BooleanFilter; /** Filter by the object’s `isPrimary` field. */ @@ -161,38 +151,99 @@ export interface CryptoAddressFilter { /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; /** Checks for all expressions in this list. */ - and?: CryptoAddressFilter[]; + and?: EmailFilter[]; /** Checks for any expressions in this list. */ - or?: CryptoAddressFilter[]; + or?: EmailFilter[]; /** Negates the expression. */ - not?: CryptoAddressFilter; + not?: EmailFilter; /** Filter by the object’s `owner` relation. */ owner?: UserFilter; - /** TRGM search on the `address` column. */ - trgmAddress?: TrgmSearchInput; - /** - * Composite full-text search. Provide a search string and it will be dispatched - * to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - * simultaneously. Rows matching ANY algorithm are returned. All matching score - * fields are populated. - */ - fullTextSearch?: string; } -/** Input for pg_trgm fuzzy text matching. Provide a search value and optional similarity threshold. */ -export interface TrgmSearchInput { - /** The text to fuzzy-match against. Typos and misspellings are tolerated. */ - value: string; - /** Minimum similarity threshold (0.0 to 1.0). Higher = stricter matching. Default is 0.3. */ - threshold?: number; +/** A filter to be used against ConstructiveInternalTypeEmail fields. All fields are combined with a logical ‘and.’ */ +export interface ConstructiveInternalTypeEmailFilter { + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Equal to the specified value. */ + equalTo?: string; + /** Not equal to the specified value. */ + notEqualTo?: string; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: string; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: string; + /** Included in the specified list. */ + in?: string[]; + /** Not included in the specified list. */ + notIn?: string[]; + /** Less than the specified value. */ + lessThan?: string; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: string; + /** Greater than the specified value. */ + greaterThan?: string; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: string; + /** Contains the specified string (case-sensitive). */ + includes?: string; + /** Does not contain the specified string (case-sensitive). */ + notIncludes?: string; + /** Contains the specified string (case-insensitive). */ + includesInsensitive?: ConstructiveInternalTypeEmail; + /** Does not contain the specified string (case-insensitive). */ + notIncludesInsensitive?: ConstructiveInternalTypeEmail; + /** Starts with the specified string (case-sensitive). */ + startsWith?: string; + /** Does not start with the specified string (case-sensitive). */ + notStartsWith?: string; + /** Starts with the specified string (case-insensitive). */ + startsWithInsensitive?: ConstructiveInternalTypeEmail; + /** Does not start with the specified string (case-insensitive). */ + notStartsWithInsensitive?: ConstructiveInternalTypeEmail; + /** Ends with the specified string (case-sensitive). */ + endsWith?: string; + /** Does not end with the specified string (case-sensitive). */ + notEndsWith?: string; + /** Ends with the specified string (case-insensitive). */ + endsWithInsensitive?: ConstructiveInternalTypeEmail; + /** Does not end with the specified string (case-insensitive). */ + notEndsWithInsensitive?: ConstructiveInternalTypeEmail; + /** Matches the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ + like?: string; + /** Does not match the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ + notLike?: string; + /** Matches the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ + likeInsensitive?: ConstructiveInternalTypeEmail; + /** Does not match the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ + notLikeInsensitive?: ConstructiveInternalTypeEmail; + /** Equal to the specified value (case-insensitive). */ + equalToInsensitive?: ConstructiveInternalTypeEmail; + /** Not equal to the specified value (case-insensitive). */ + notEqualToInsensitive?: ConstructiveInternalTypeEmail; + /** Not equal to the specified value, treating null like an ordinary value (case-insensitive). */ + distinctFromInsensitive?: ConstructiveInternalTypeEmail; + /** Equal to the specified value, treating null like an ordinary value (case-insensitive). */ + notDistinctFromInsensitive?: ConstructiveInternalTypeEmail; + /** Included in the specified list (case-insensitive). */ + inInsensitive?: ConstructiveInternalTypeEmail[]; + /** Not included in the specified list (case-insensitive). */ + notInInsensitive?: ConstructiveInternalTypeEmail[]; + /** Less than the specified value (case-insensitive). */ + lessThanInsensitive?: ConstructiveInternalTypeEmail; + /** Less than or equal to the specified value (case-insensitive). */ + lessThanOrEqualToInsensitive?: ConstructiveInternalTypeEmail; + /** Greater than the specified value (case-insensitive). */ + greaterThanInsensitive?: ConstructiveInternalTypeEmail; + /** Greater than or equal to the specified value (case-insensitive). */ + greaterThanOrEqualToInsensitive?: ConstructiveInternalTypeEmail; } /** A filter to be used against `User` object types. All fields are combined with a logical ‘and.’ */ export interface UserFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `username` field. */ - username?: StringFilter; + username?: StringTrgmFilter; /** Filter by the object’s `displayName` field. */ - displayName?: StringFilter; + displayName?: StringTrgmFilter; /** Filter by the object’s `profilePicture` field. */ profilePicture?: ConstructiveInternalTypeImageFilter; /** Filter by the object’s `searchTsv` field. */ @@ -211,6 +262,26 @@ export interface UserFilter { not?: UserFilter; /** Filter by the object’s `roleType` relation. */ roleType?: RoleTypeFilter; + /** Filter by the object’s `ownedEmails` relation. */ + ownedEmails?: UserToManyEmailFilter; + /** `ownedEmails` exist. */ + ownedEmailsExist?: boolean; + /** Filter by the object’s `ownedPhoneNumbers` relation. */ + ownedPhoneNumbers?: UserToManyPhoneNumberFilter; + /** `ownedPhoneNumbers` exist. */ + ownedPhoneNumbersExist?: boolean; + /** Filter by the object’s `ownedCryptoAddresses` relation. */ + ownedCryptoAddresses?: UserToManyCryptoAddressFilter; + /** `ownedCryptoAddresses` exist. */ + ownedCryptoAddressesExist?: boolean; + /** Filter by the object’s `ownedConnectedAccounts` relation. */ + ownedConnectedAccounts?: UserToManyConnectedAccountFilter; + /** `ownedConnectedAccounts` exist. */ + ownedConnectedAccountsExist?: boolean; + /** Filter by the object’s `auditLogsByActorId` relation. */ + auditLogsByActorId?: UserToManyAuditLogFilter; + /** `auditLogsByActorId` exist. */ + auditLogsByActorIdExist?: boolean; /** TSV search on the `search_tsv` column. */ tsvSearchTsv?: string; /** TRGM search on the `display_name` column. */ @@ -223,6 +294,94 @@ export interface UserFilter { */ fullTextSearch?: string; } +/** A filter to be used against String fields with pg_trgm support. All fields are combined with a logical ‘and.’ */ +export interface StringTrgmFilter { + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Equal to the specified value. */ + equalTo?: string; + /** Not equal to the specified value. */ + notEqualTo?: string; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: string; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: string; + /** Included in the specified list. */ + in?: string[]; + /** Not included in the specified list. */ + notIn?: string[]; + /** Less than the specified value. */ + lessThan?: string; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: string; + /** Greater than the specified value. */ + greaterThan?: string; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: string; + /** Contains the specified string (case-sensitive). */ + includes?: string; + /** Does not contain the specified string (case-sensitive). */ + notIncludes?: string; + /** Contains the specified string (case-insensitive). */ + includesInsensitive?: string; + /** Does not contain the specified string (case-insensitive). */ + notIncludesInsensitive?: string; + /** Starts with the specified string (case-sensitive). */ + startsWith?: string; + /** Does not start with the specified string (case-sensitive). */ + notStartsWith?: string; + /** Starts with the specified string (case-insensitive). */ + startsWithInsensitive?: string; + /** Does not start with the specified string (case-insensitive). */ + notStartsWithInsensitive?: string; + /** Ends with the specified string (case-sensitive). */ + endsWith?: string; + /** Does not end with the specified string (case-sensitive). */ + notEndsWith?: string; + /** Ends with the specified string (case-insensitive). */ + endsWithInsensitive?: string; + /** Does not end with the specified string (case-insensitive). */ + notEndsWithInsensitive?: string; + /** Matches the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ + like?: string; + /** Does not match the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ + notLike?: string; + /** Matches the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ + likeInsensitive?: string; + /** Does not match the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ + notLikeInsensitive?: string; + /** Equal to the specified value (case-insensitive). */ + equalToInsensitive?: string; + /** Not equal to the specified value (case-insensitive). */ + notEqualToInsensitive?: string; + /** Not equal to the specified value, treating null like an ordinary value (case-insensitive). */ + distinctFromInsensitive?: string; + /** Equal to the specified value, treating null like an ordinary value (case-insensitive). */ + notDistinctFromInsensitive?: string; + /** Included in the specified list (case-insensitive). */ + inInsensitive?: string[]; + /** Not included in the specified list (case-insensitive). */ + notInInsensitive?: string[]; + /** Less than the specified value (case-insensitive). */ + lessThanInsensitive?: string; + /** Less than or equal to the specified value (case-insensitive). */ + lessThanOrEqualToInsensitive?: string; + /** Greater than the specified value (case-insensitive). */ + greaterThanInsensitive?: string; + /** Greater than or equal to the specified value (case-insensitive). */ + greaterThanOrEqualToInsensitive?: string; + /** Fuzzy matches using pg_trgm trigram similarity. Tolerates typos and misspellings. */ + similarTo?: TrgmSearchInput; + /** Fuzzy matches using pg_trgm word_similarity. Finds the best matching substring within the column value. */ + wordSimilarTo?: TrgmSearchInput; +} +/** Input for pg_trgm fuzzy text matching. Provide a search value and optional similarity threshold. */ +export interface TrgmSearchInput { + /** The text to fuzzy-match against. Typos and misspellings are tolerated. */ + value: string; + /** Minimum similarity threshold (0.0 to 1.0). Higher = stricter matching. Default is 0.3. */ + threshold?: number; +} /** A filter to be used against ConstructiveInternalTypeImage fields. All fields are combined with a logical ‘and.’ */ export interface ConstructiveInternalTypeImageFilter { /** Is null (if `true` is specified) or is not null (if `false` is specified). */ @@ -271,6 +430,24 @@ export interface RoleTypeFilter { /** Negates the expression. */ not?: RoleTypeFilter; } +/** A filter to be used against many `Email` object types. All fields are combined with a logical ‘and.’ */ +export interface UserToManyEmailFilter { + /** Filters to entities where at least one related entity matches. */ + some?: EmailFilter; + /** Filters to entities where every related entity matches. */ + every?: EmailFilter; + /** Filters to entities where no related entity matches. */ + none?: EmailFilter; +} +/** A filter to be used against many `PhoneNumber` object types. All fields are combined with a logical ‘and.’ */ +export interface UserToManyPhoneNumberFilter { + /** Filters to entities where at least one related entity matches. */ + some?: PhoneNumberFilter; + /** Filters to entities where every related entity matches. */ + every?: PhoneNumberFilter; + /** Filters to entities where no related entity matches. */ + none?: PhoneNumberFilter; +} /** A filter to be used against `PhoneNumber` object types. All fields are combined with a logical ‘and.’ */ export interface PhoneNumberFilter { /** Filter by the object’s `id` field. */ @@ -297,17 +474,49 @@ export interface PhoneNumberFilter { not?: PhoneNumberFilter; /** Filter by the object’s `owner` relation. */ owner?: UserFilter; - /** TRGM search on the `cc` column. */ - trgmCc?: TrgmSearchInput; - /** TRGM search on the `number` column. */ - trgmNumber?: TrgmSearchInput; - /** - * Composite full-text search. Provide a search string and it will be dispatched - * to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - * simultaneously. Rows matching ANY algorithm are returned. All matching score - * fields are populated. - */ - fullTextSearch?: string; +} +/** A filter to be used against many `CryptoAddress` object types. All fields are combined with a logical ‘and.’ */ +export interface UserToManyCryptoAddressFilter { + /** Filters to entities where at least one related entity matches. */ + some?: CryptoAddressFilter; + /** Filters to entities where every related entity matches. */ + every?: CryptoAddressFilter; + /** Filters to entities where no related entity matches. */ + none?: CryptoAddressFilter; +} +/** A filter to be used against `CryptoAddress` object types. All fields are combined with a logical ‘and.’ */ +export interface CryptoAddressFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `address` field. */ + address?: StringFilter; + /** Filter by the object’s `isVerified` field. */ + isVerified?: BooleanFilter; + /** Filter by the object’s `isPrimary` field. */ + isPrimary?: BooleanFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: CryptoAddressFilter[]; + /** Checks for any expressions in this list. */ + or?: CryptoAddressFilter[]; + /** Negates the expression. */ + not?: CryptoAddressFilter; + /** Filter by the object’s `owner` relation. */ + owner?: UserFilter; +} +/** A filter to be used against many `ConnectedAccount` object types. All fields are combined with a logical ‘and.’ */ +export interface UserToManyConnectedAccountFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ConnectedAccountFilter; + /** Filters to entities where every related entity matches. */ + every?: ConnectedAccountFilter; + /** Filters to entities where no related entity matches. */ + none?: ConnectedAccountFilter; } /** A filter to be used against `ConnectedAccount` object types. All fields are combined with a logical ‘and.’ */ export interface ConnectedAccountFilter { @@ -335,17 +544,15 @@ export interface ConnectedAccountFilter { not?: ConnectedAccountFilter; /** Filter by the object’s `owner` relation. */ owner?: UserFilter; - /** TRGM search on the `service` column. */ - trgmService?: TrgmSearchInput; - /** TRGM search on the `identifier` column. */ - trgmIdentifier?: TrgmSearchInput; - /** - * Composite full-text search. Provide a search string and it will be dispatched - * to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - * simultaneously. Rows matching ANY algorithm are returned. All matching score - * fields are populated. - */ - fullTextSearch?: string; +} +/** A filter to be used against many `AuditLog` object types. All fields are combined with a logical ‘and.’ */ +export interface UserToManyAuditLogFilter { + /** Filters to entities where at least one related entity matches. */ + some?: AuditLogFilter; + /** Filters to entities where every related entity matches. */ + every?: AuditLogFilter; + /** Filters to entities where no related entity matches. */ + none?: AuditLogFilter; } /** A filter to be used against `AuditLog` object types. All fields are combined with a logical ‘and.’ */ export interface AuditLogFilter { @@ -373,15 +580,8 @@ export interface AuditLogFilter { not?: AuditLogFilter; /** Filter by the object’s `actor` relation. */ actor?: UserFilter; - /** TRGM search on the `user_agent` column. */ - trgmUserAgent?: TrgmSearchInput; - /** - * Composite full-text search. Provide a search string and it will be dispatched - * to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - * simultaneously. Rows matching ANY algorithm are returned. All matching score - * fields are populated. - */ - fullTextSearch?: string; + /** A related `actor` exists. */ + actorExists?: boolean; } /** A filter to be used against ConstructiveInternalTypeOrigin fields. All fields are combined with a logical ‘and.’ */ export interface ConstructiveInternalTypeOriginFilter { @@ -460,108 +660,6 @@ export interface ConstructiveInternalTypeOriginFilter { /** Greater than or equal to the specified value (case-insensitive). */ greaterThanOrEqualToInsensitive?: string; } -/** A filter to be used against `Email` object types. All fields are combined with a logical ‘and.’ */ -export interface EmailFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `email` field. */ - email?: ConstructiveInternalTypeEmailFilter; - /** Filter by the object’s `isVerified` field. */ - isVerified?: BooleanFilter; - /** Filter by the object’s `isPrimary` field. */ - isPrimary?: BooleanFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: EmailFilter[]; - /** Checks for any expressions in this list. */ - or?: EmailFilter[]; - /** Negates the expression. */ - not?: EmailFilter; - /** Filter by the object’s `owner` relation. */ - owner?: UserFilter; -} -/** A filter to be used against ConstructiveInternalTypeEmail fields. All fields are combined with a logical ‘and.’ */ -export interface ConstructiveInternalTypeEmailFilter { - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Equal to the specified value. */ - equalTo?: string; - /** Not equal to the specified value. */ - notEqualTo?: string; - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: string; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: string; - /** Included in the specified list. */ - in?: string[]; - /** Not included in the specified list. */ - notIn?: string[]; - /** Less than the specified value. */ - lessThan?: string; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: string; - /** Greater than the specified value. */ - greaterThan?: string; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: string; - /** Contains the specified string (case-sensitive). */ - includes?: string; - /** Does not contain the specified string (case-sensitive). */ - notIncludes?: string; - /** Contains the specified string (case-insensitive). */ - includesInsensitive?: ConstructiveInternalTypeEmail; - /** Does not contain the specified string (case-insensitive). */ - notIncludesInsensitive?: ConstructiveInternalTypeEmail; - /** Starts with the specified string (case-sensitive). */ - startsWith?: string; - /** Does not start with the specified string (case-sensitive). */ - notStartsWith?: string; - /** Starts with the specified string (case-insensitive). */ - startsWithInsensitive?: ConstructiveInternalTypeEmail; - /** Does not start with the specified string (case-insensitive). */ - notStartsWithInsensitive?: ConstructiveInternalTypeEmail; - /** Ends with the specified string (case-sensitive). */ - endsWith?: string; - /** Does not end with the specified string (case-sensitive). */ - notEndsWith?: string; - /** Ends with the specified string (case-insensitive). */ - endsWithInsensitive?: ConstructiveInternalTypeEmail; - /** Does not end with the specified string (case-insensitive). */ - notEndsWithInsensitive?: ConstructiveInternalTypeEmail; - /** Matches the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ - like?: string; - /** Does not match the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ - notLike?: string; - /** Matches the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ - likeInsensitive?: ConstructiveInternalTypeEmail; - /** Does not match the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ - notLikeInsensitive?: ConstructiveInternalTypeEmail; - /** Equal to the specified value (case-insensitive). */ - equalToInsensitive?: ConstructiveInternalTypeEmail; - /** Not equal to the specified value (case-insensitive). */ - notEqualToInsensitive?: ConstructiveInternalTypeEmail; - /** Not equal to the specified value, treating null like an ordinary value (case-insensitive). */ - distinctFromInsensitive?: ConstructiveInternalTypeEmail; - /** Equal to the specified value, treating null like an ordinary value (case-insensitive). */ - notDistinctFromInsensitive?: ConstructiveInternalTypeEmail; - /** Included in the specified list (case-insensitive). */ - inInsensitive?: ConstructiveInternalTypeEmail[]; - /** Not included in the specified list (case-insensitive). */ - notInInsensitive?: ConstructiveInternalTypeEmail[]; - /** Less than the specified value (case-insensitive). */ - lessThanInsensitive?: ConstructiveInternalTypeEmail; - /** Less than or equal to the specified value (case-insensitive). */ - lessThanOrEqualToInsensitive?: ConstructiveInternalTypeEmail; - /** Greater than the specified value (case-insensitive). */ - greaterThanInsensitive?: ConstructiveInternalTypeEmail; - /** Greater than or equal to the specified value (case-insensitive). */ - greaterThanOrEqualToInsensitive?: ConstructiveInternalTypeEmail; -} export interface SignOutInput { clientMutationId?: string; } @@ -738,7 +836,7 @@ export interface AuditLogInput { id?: string; /** Type of authentication event (e.g. sign_in, sign_up, password_change, verify_email) */ event: string; - /** User who performed the authentication action */ + /** User who performed the authentication action; NULL if user was deleted */ actorId?: string; /** Request origin (domain) where the auth event occurred */ origin?: ConstructiveInternalTypeOrigin; @@ -867,7 +965,7 @@ export interface AuditLogPatch { id?: string; /** Type of authentication event (e.g. sign_in, sign_up, password_change, verify_email) */ event?: string; - /** User who performed the authentication action */ + /** User who performed the authentication action; NULL if user was deleted */ actorId?: string; /** Request origin (domain) where the auth event occurred */ origin?: ConstructiveInternalTypeOrigin; @@ -1259,10 +1357,6 @@ export interface SignInOneTimeTokenRecord { accessTokenExpiresAt?: string | null; isVerified?: boolean | null; totpEnabled?: boolean | null; - /** TRGM similarity when searching `accessToken`. Returns null when no trgm search filter is active. */ - accessTokenTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface SignInRecord { id?: string | null; @@ -1271,10 +1365,6 @@ export interface SignInRecord { accessTokenExpiresAt?: string | null; isVerified?: boolean | null; totpEnabled?: boolean | null; - /** TRGM similarity when searching `accessToken`. Returns null when no trgm search filter is active. */ - accessTokenTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface SignUpRecord { id?: string | null; @@ -1283,10 +1373,6 @@ export interface SignUpRecord { accessTokenExpiresAt?: string | null; isVerified?: boolean | null; totpEnabled?: boolean | null; - /** TRGM similarity when searching `accessToken`. Returns null when no trgm search filter is active. */ - accessTokenTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface ExtendTokenExpiresRecord { id?: string | null; @@ -1320,14 +1406,6 @@ export interface Session { csrfSecret?: string | null; createdAt?: string | null; updatedAt?: string | null; - /** TRGM similarity when searching `uagent`. Returns null when no trgm search filter is active. */ - uagentTrgmSimilarity?: number | null; - /** TRGM similarity when searching `fingerprintMode`. Returns null when no trgm search filter is active. */ - fingerprintModeTrgmSimilarity?: number | null; - /** TRGM similarity when searching `csrfSecret`. Returns null when no trgm search filter is active. */ - csrfSecretTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } /** Information about a table field/column */ export interface MetaField { diff --git a/sdk/constructive-react/src/auth/types.ts b/sdk/constructive-react/src/auth/types.ts index 1b07d3334..b73b7c9a3 100644 --- a/sdk/constructive-react/src/auth/types.ts +++ b/sdk/constructive-react/src/auth/types.ts @@ -6,20 +6,14 @@ export type ConstructiveInternalTypeEmail = unknown; export type ConstructiveInternalTypeImage = unknown; export type ConstructiveInternalTypeOrigin = unknown; -export interface CryptoAddress { +export interface Email { id: string | null; ownerId: string | null; - address: string | null; + email: ConstructiveInternalTypeEmail | null; isVerified: boolean | null; isPrimary: boolean | null; createdAt: string | null; updatedAt: string | null; - addressTrgmSimilarity: number | null; - searchScore: number | null; -} -export interface RoleType { - id: number | null; - name: string | null; } export interface PhoneNumber { id: string | null; @@ -30,9 +24,15 @@ export interface PhoneNumber { isPrimary: boolean | null; createdAt: string | null; updatedAt: string | null; - ccTrgmSimilarity: number | null; - numberTrgmSimilarity: number | null; - searchScore: number | null; +} +export interface CryptoAddress { + id: string | null; + ownerId: string | null; + address: string | null; + isVerified: boolean | null; + isPrimary: boolean | null; + createdAt: string | null; + updatedAt: string | null; } export interface ConnectedAccount { id: string | null; @@ -43,9 +43,6 @@ export interface ConnectedAccount { isVerified: boolean | null; createdAt: string | null; updatedAt: string | null; - serviceTrgmSimilarity: number | null; - identifierTrgmSimilarity: number | null; - searchScore: number | null; } export interface AuditLog { id: string | null; @@ -56,17 +53,10 @@ export interface AuditLog { ipAddress: string | null; success: boolean | null; createdAt: string | null; - userAgentTrgmSimilarity: number | null; - searchScore: number | null; } -export interface Email { - id: string | null; - ownerId: string | null; - email: ConstructiveInternalTypeEmail | null; - isVerified: boolean | null; - isPrimary: boolean | null; - createdAt: string | null; - updatedAt: string | null; +export interface RoleType { + id: number | null; + name: string | null; } export interface User { id: string | null; diff --git a/sdk/constructive-react/src/index.ts b/sdk/constructive-react/src/index.ts index 640720bc2..4f0892d9e 100644 --- a/sdk/constructive-react/src/index.ts +++ b/sdk/constructive-react/src/index.ts @@ -1,5 +1,9 @@ /** - * @constructive-io/react - Auto-generated React Query hooks and ORM client + * @constructive-io/sdk + * + * Auto-generated GraphQL types and ORM client. + * Run `pnpm run generate` to populate this package from the schema files. + * * @generated by @constructive-io/graphql-codegen */ export * as admin from './admin'; diff --git a/sdk/constructive-react/src/objects/hooks/README.md b/sdk/constructive-react/src/objects/hooks/README.md index 276f40507..ede7822d6 100644 --- a/sdk/constructive-react/src/objects/hooks/README.md +++ b/sdk/constructive-react/src/objects/hooks/README.md @@ -81,7 +81,7 @@ const { data, isLoading } = useGetAllQuery({ const { mutate: create } = useCreateGetAllRecordMutation({ selection: { fields: { id: true } }, }); -create({ path: '', data: '' }); +create({ path: '', data: '' }); ``` ### Object @@ -94,7 +94,7 @@ const { data, isLoading } = useObjectsQuery({ // Get one object const { data: item } = useObjectQuery({ - id: '', + id: '', selection: { fields: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }, }); @@ -102,7 +102,7 @@ const { data: item } = useObjectQuery({ const { mutate: create } = useCreateObjectMutation({ selection: { fields: { id: true } }, }); -create({ hashUuid: '', databaseId: '', kids: '', ktree: '', data: '', frzn: '' }); +create({ hashUuid: '', databaseId: '', kids: '', ktree: '', data: '', frzn: '' }); ``` ### Ref @@ -110,20 +110,20 @@ create({ hashUuid: '', databaseId: '', kids: '', ktree: '', - selection: { fields: { id: true, name: true, databaseId: true, storeId: true, commitId: true, nameTrgmSimilarity: true, searchScore: true } }, + id: '', + selection: { fields: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }, }); // Create a ref const { mutate: create } = useCreateRefMutation({ selection: { fields: { id: true } }, }); -create({ name: '', databaseId: '', storeId: '', commitId: '', nameTrgmSimilarity: '', searchScore: '' }); +create({ name: '', databaseId: '', storeId: '', commitId: '' }); ``` ### Store @@ -131,20 +131,20 @@ create({ name: '', databaseId: '', storeId: '', commitId: ' ```typescript // List all stores const { data, isLoading } = useStoresQuery({ - selection: { fields: { id: true, name: true, databaseId: true, hash: true, createdAt: true, nameTrgmSimilarity: true, searchScore: true } }, + selection: { fields: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }, }); // Get one store const { data: item } = useStoreQuery({ - id: '', - selection: { fields: { id: true, name: true, databaseId: true, hash: true, createdAt: true, nameTrgmSimilarity: true, searchScore: true } }, + id: '', + selection: { fields: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }, }); // Create a store const { mutate: create } = useCreateStoreMutation({ selection: { fields: { id: true } }, }); -create({ name: '', databaseId: '', hash: '', nameTrgmSimilarity: '', searchScore: '' }); +create({ name: '', databaseId: '', hash: '' }); ``` ### Commit @@ -152,20 +152,20 @@ create({ name: '', databaseId: '', hash: '', nameTrgmSimila ```typescript // List all commits const { data, isLoading } = useCommitsQuery({ - selection: { fields: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true, messageTrgmSimilarity: true, searchScore: true } }, + selection: { fields: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }, }); // Get one commit const { data: item } = useCommitQuery({ - id: '', - selection: { fields: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true, messageTrgmSimilarity: true, searchScore: true } }, + id: '', + selection: { fields: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }, }); // Create a commit const { mutate: create } = useCreateCommitMutation({ selection: { fields: { id: true } }, }); -create({ message: '', databaseId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '', messageTrgmSimilarity: '', searchScore: '' }); +create({ message: '', databaseId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }); ``` ## Custom Operation Hooks diff --git a/sdk/constructive-react/src/objects/hooks/skills/commit.md b/sdk/constructive-react/src/objects/hooks/skills/commit.md deleted file mode 100644 index e828be2df..000000000 --- a/sdk/constructive-react/src/objects/hooks/skills/commit.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-commit - - - -A commit records changes to the repository. - -## Usage - -```typescript -useCommitsQuery({ selection: { fields: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } } }) -useCommitQuery({ id: '', selection: { fields: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } } }) -useCreateCommitMutation({ selection: { fields: { id: true } } }) -useUpdateCommitMutation({ selection: { fields: { id: true } } }) -useDeleteCommitMutation({}) -``` - -## Examples - -### List all commits - -```typescript -const { data, isLoading } = useCommitsQuery({ - selection: { fields: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }, -}); -``` - -### Create a commit - -```typescript -const { mutate } = useCreateCommitMutation({ - selection: { fields: { id: true } }, -}); -mutate({ message: '', databaseId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }); -``` diff --git a/sdk/constructive-react/src/objects/hooks/skills/freezeObjects.md b/sdk/constructive-react/src/objects/hooks/skills/freezeObjects.md deleted file mode 100644 index af9fd90c4..000000000 --- a/sdk/constructive-react/src/objects/hooks/skills/freezeObjects.md +++ /dev/null @@ -1,20 +0,0 @@ -# hooks-freezeObjects - - - -React Query mutation hook for freezeObjects - -## Usage - -```typescript -const { mutate } = useFreezeObjectsMutation(); mutate({ input: '' }); -``` - -## Examples - -### Use useFreezeObjectsMutation - -```typescript -const { mutate, isLoading } = useFreezeObjectsMutation(); -mutate({ input: '' }); -``` diff --git a/sdk/constructive-react/src/objects/hooks/skills/getAllObjectsFromRoot.md b/sdk/constructive-react/src/objects/hooks/skills/getAllObjectsFromRoot.md deleted file mode 100644 index 018c673b7..000000000 --- a/sdk/constructive-react/src/objects/hooks/skills/getAllObjectsFromRoot.md +++ /dev/null @@ -1,19 +0,0 @@ -# hooks-getAllObjectsFromRoot - - - -Reads and enables pagination through a set of `Object`. - -## Usage - -```typescript -useGetAllObjectsFromRootQuery({ databaseId: '', id: '', first: '', offset: '', after: '' }) -``` - -## Examples - -### Use useGetAllObjectsFromRootQuery - -```typescript -const { data, isLoading } = useGetAllObjectsFromRootQuery({ databaseId: '', id: '', first: '', offset: '', after: '' }); -``` diff --git a/sdk/constructive-react/src/objects/hooks/skills/getAllRecord.md b/sdk/constructive-react/src/objects/hooks/skills/getAllRecord.md deleted file mode 100644 index 9b7f82198..000000000 --- a/sdk/constructive-react/src/objects/hooks/skills/getAllRecord.md +++ /dev/null @@ -1,31 +0,0 @@ -# hooks-getAllRecord - - - -React Query hooks for GetAllRecord data operations - -## Usage - -```typescript -useGetAllQuery({ selection: { fields: { path: true, data: true } } }) -useCreateGetAllRecordMutation({ selection: { fields: { id: true } } }) -``` - -## Examples - -### List all getAll - -```typescript -const { data, isLoading } = useGetAllQuery({ - selection: { fields: { path: true, data: true } }, -}); -``` - -### Create a getAllRecord - -```typescript -const { mutate } = useCreateGetAllRecordMutation({ - selection: { fields: { id: true } }, -}); -mutate({ path: '', data: '' }); -``` diff --git a/sdk/constructive-react/src/objects/hooks/skills/getObjectAtPath.md b/sdk/constructive-react/src/objects/hooks/skills/getObjectAtPath.md deleted file mode 100644 index c3b9f60f0..000000000 --- a/sdk/constructive-react/src/objects/hooks/skills/getObjectAtPath.md +++ /dev/null @@ -1,19 +0,0 @@ -# hooks-getObjectAtPath - - - -React Query query hook for getObjectAtPath - -## Usage - -```typescript -useGetObjectAtPathQuery({ dbId: '', storeId: '', path: '', refname: '' }) -``` - -## Examples - -### Use useGetObjectAtPathQuery - -```typescript -const { data, isLoading } = useGetObjectAtPathQuery({ dbId: '', storeId: '', path: '', refname: '' }); -``` diff --git a/sdk/constructive-react/src/objects/hooks/skills/getPathObjectsFromRoot.md b/sdk/constructive-react/src/objects/hooks/skills/getPathObjectsFromRoot.md deleted file mode 100644 index dd7cdcd86..000000000 --- a/sdk/constructive-react/src/objects/hooks/skills/getPathObjectsFromRoot.md +++ /dev/null @@ -1,19 +0,0 @@ -# hooks-getPathObjectsFromRoot - - - -Reads and enables pagination through a set of `Object`. - -## Usage - -```typescript -useGetPathObjectsFromRootQuery({ databaseId: '', id: '', path: '', first: '', offset: '', after: '' }) -``` - -## Examples - -### Use useGetPathObjectsFromRootQuery - -```typescript -const { data, isLoading } = useGetPathObjectsFromRootQuery({ databaseId: '', id: '', path: '', first: '', offset: '', after: '' }); -``` diff --git a/sdk/constructive-react/src/objects/hooks/skills/initEmptyRepo.md b/sdk/constructive-react/src/objects/hooks/skills/initEmptyRepo.md deleted file mode 100644 index abd88134d..000000000 --- a/sdk/constructive-react/src/objects/hooks/skills/initEmptyRepo.md +++ /dev/null @@ -1,20 +0,0 @@ -# hooks-initEmptyRepo - - - -React Query mutation hook for initEmptyRepo - -## Usage - -```typescript -const { mutate } = useInitEmptyRepoMutation(); mutate({ input: '' }); -``` - -## Examples - -### Use useInitEmptyRepoMutation - -```typescript -const { mutate, isLoading } = useInitEmptyRepoMutation(); -mutate({ input: '' }); -``` diff --git a/sdk/constructive-react/src/objects/hooks/skills/insertNodeAtPath.md b/sdk/constructive-react/src/objects/hooks/skills/insertNodeAtPath.md deleted file mode 100644 index 7ca72d1cc..000000000 --- a/sdk/constructive-react/src/objects/hooks/skills/insertNodeAtPath.md +++ /dev/null @@ -1,20 +0,0 @@ -# hooks-insertNodeAtPath - - - -React Query mutation hook for insertNodeAtPath - -## Usage - -```typescript -const { mutate } = useInsertNodeAtPathMutation(); mutate({ input: '' }); -``` - -## Examples - -### Use useInsertNodeAtPathMutation - -```typescript -const { mutate, isLoading } = useInsertNodeAtPathMutation(); -mutate({ input: '' }); -``` diff --git a/sdk/constructive-react/src/objects/hooks/skills/object.md b/sdk/constructive-react/src/objects/hooks/skills/object.md deleted file mode 100644 index 869f55493..000000000 --- a/sdk/constructive-react/src/objects/hooks/skills/object.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-object - - - -React Query hooks for Object data operations - -## Usage - -```typescript -useObjectsQuery({ selection: { fields: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } } }) -useObjectQuery({ id: '', selection: { fields: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } } }) -useCreateObjectMutation({ selection: { fields: { id: true } } }) -useUpdateObjectMutation({ selection: { fields: { id: true } } }) -useDeleteObjectMutation({}) -``` - -## Examples - -### List all objects - -```typescript -const { data, isLoading } = useObjectsQuery({ - selection: { fields: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }, -}); -``` - -### Create a object - -```typescript -const { mutate } = useCreateObjectMutation({ - selection: { fields: { id: true } }, -}); -mutate({ hashUuid: '', databaseId: '', kids: '', ktree: '', data: '', frzn: '' }); -``` diff --git a/sdk/constructive-react/src/objects/hooks/skills/ref.md b/sdk/constructive-react/src/objects/hooks/skills/ref.md deleted file mode 100644 index c2f1375b1..000000000 --- a/sdk/constructive-react/src/objects/hooks/skills/ref.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-ref - - - -A ref is a data structure for pointing to a commit. - -## Usage - -```typescript -useRefsQuery({ selection: { fields: { id: true, name: true, databaseId: true, storeId: true, commitId: true } } }) -useRefQuery({ id: '', selection: { fields: { id: true, name: true, databaseId: true, storeId: true, commitId: true } } }) -useCreateRefMutation({ selection: { fields: { id: true } } }) -useUpdateRefMutation({ selection: { fields: { id: true } } }) -useDeleteRefMutation({}) -``` - -## Examples - -### List all refs - -```typescript -const { data, isLoading } = useRefsQuery({ - selection: { fields: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }, -}); -``` - -### Create a ref - -```typescript -const { mutate } = useCreateRefMutation({ - selection: { fields: { id: true } }, -}); -mutate({ name: '', databaseId: '', storeId: '', commitId: '' }); -``` diff --git a/sdk/constructive-react/src/objects/hooks/skills/removeNodeAtPath.md b/sdk/constructive-react/src/objects/hooks/skills/removeNodeAtPath.md deleted file mode 100644 index 55126cbd9..000000000 --- a/sdk/constructive-react/src/objects/hooks/skills/removeNodeAtPath.md +++ /dev/null @@ -1,20 +0,0 @@ -# hooks-removeNodeAtPath - - - -React Query mutation hook for removeNodeAtPath - -## Usage - -```typescript -const { mutate } = useRemoveNodeAtPathMutation(); mutate({ input: '' }); -``` - -## Examples - -### Use useRemoveNodeAtPathMutation - -```typescript -const { mutate, isLoading } = useRemoveNodeAtPathMutation(); -mutate({ input: '' }); -``` diff --git a/sdk/constructive-react/src/objects/hooks/skills/revParse.md b/sdk/constructive-react/src/objects/hooks/skills/revParse.md deleted file mode 100644 index da24b1094..000000000 --- a/sdk/constructive-react/src/objects/hooks/skills/revParse.md +++ /dev/null @@ -1,19 +0,0 @@ -# hooks-revParse - - - -React Query query hook for revParse - -## Usage - -```typescript -useRevParseQuery({ dbId: '', storeId: '', refname: '' }) -``` - -## Examples - -### Use useRevParseQuery - -```typescript -const { data, isLoading } = useRevParseQuery({ dbId: '', storeId: '', refname: '' }); -``` diff --git a/sdk/constructive-react/src/objects/hooks/skills/setAndCommit.md b/sdk/constructive-react/src/objects/hooks/skills/setAndCommit.md deleted file mode 100644 index fe8ee1048..000000000 --- a/sdk/constructive-react/src/objects/hooks/skills/setAndCommit.md +++ /dev/null @@ -1,20 +0,0 @@ -# hooks-setAndCommit - - - -React Query mutation hook for setAndCommit - -## Usage - -```typescript -const { mutate } = useSetAndCommitMutation(); mutate({ input: '' }); -``` - -## Examples - -### Use useSetAndCommitMutation - -```typescript -const { mutate, isLoading } = useSetAndCommitMutation(); -mutate({ input: '' }); -``` diff --git a/sdk/constructive-react/src/objects/hooks/skills/setDataAtPath.md b/sdk/constructive-react/src/objects/hooks/skills/setDataAtPath.md deleted file mode 100644 index 1e407b642..000000000 --- a/sdk/constructive-react/src/objects/hooks/skills/setDataAtPath.md +++ /dev/null @@ -1,20 +0,0 @@ -# hooks-setDataAtPath - - - -React Query mutation hook for setDataAtPath - -## Usage - -```typescript -const { mutate } = useSetDataAtPathMutation(); mutate({ input: '' }); -``` - -## Examples - -### Use useSetDataAtPathMutation - -```typescript -const { mutate, isLoading } = useSetDataAtPathMutation(); -mutate({ input: '' }); -``` diff --git a/sdk/constructive-react/src/objects/hooks/skills/setPropsAndCommit.md b/sdk/constructive-react/src/objects/hooks/skills/setPropsAndCommit.md deleted file mode 100644 index 1767c4d4a..000000000 --- a/sdk/constructive-react/src/objects/hooks/skills/setPropsAndCommit.md +++ /dev/null @@ -1,20 +0,0 @@ -# hooks-setPropsAndCommit - - - -React Query mutation hook for setPropsAndCommit - -## Usage - -```typescript -const { mutate } = useSetPropsAndCommitMutation(); mutate({ input: '' }); -``` - -## Examples - -### Use useSetPropsAndCommitMutation - -```typescript -const { mutate, isLoading } = useSetPropsAndCommitMutation(); -mutate({ input: '' }); -``` diff --git a/sdk/constructive-react/src/objects/hooks/skills/store.md b/sdk/constructive-react/src/objects/hooks/skills/store.md deleted file mode 100644 index 7263efef0..000000000 --- a/sdk/constructive-react/src/objects/hooks/skills/store.md +++ /dev/null @@ -1,34 +0,0 @@ -# hooks-store - - - -A store represents an isolated object repository within a database. - -## Usage - -```typescript -useStoresQuery({ selection: { fields: { id: true, name: true, databaseId: true, hash: true, createdAt: true } } }) -useStoreQuery({ id: '', selection: { fields: { id: true, name: true, databaseId: true, hash: true, createdAt: true } } }) -useCreateStoreMutation({ selection: { fields: { id: true } } }) -useUpdateStoreMutation({ selection: { fields: { id: true } } }) -useDeleteStoreMutation({}) -``` - -## Examples - -### List all stores - -```typescript -const { data, isLoading } = useStoresQuery({ - selection: { fields: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }, -}); -``` - -### Create a store - -```typescript -const { mutate } = useCreateStoreMutation({ - selection: { fields: { id: true } }, -}); -mutate({ name: '', databaseId: '', hash: '' }); -``` diff --git a/sdk/constructive-react/src/objects/hooks/skills/updateNodeAtPath.md b/sdk/constructive-react/src/objects/hooks/skills/updateNodeAtPath.md deleted file mode 100644 index 0b608afea..000000000 --- a/sdk/constructive-react/src/objects/hooks/skills/updateNodeAtPath.md +++ /dev/null @@ -1,20 +0,0 @@ -# hooks-updateNodeAtPath - - - -React Query mutation hook for updateNodeAtPath - -## Usage - -```typescript -const { mutate } = useUpdateNodeAtPathMutation(); mutate({ input: '' }); -``` - -## Examples - -### Use useUpdateNodeAtPathMutation - -```typescript -const { mutate, isLoading } = useUpdateNodeAtPathMutation(); -mutate({ input: '' }); -``` diff --git a/sdk/constructive-react/src/objects/orm/README.md b/sdk/constructive-react/src/objects/orm/README.md index 21100fb3f..477f22a10 100644 --- a/sdk/constructive-react/src/objects/orm/README.md +++ b/sdk/constructive-react/src/objects/orm/README.md @@ -47,16 +47,16 @@ CRUD operations for GetAllRecord records. const items = await db.getAllRecord.findMany({ select: { path: true, data: true } }).execute(); // Get one by id -const item = await db.getAllRecord.findOne({ id: '', select: { path: true, data: true } }).execute(); +const item = await db.getAllRecord.findOne({ id: '', select: { path: true, data: true } }).execute(); // Create -const created = await db.getAllRecord.create({ data: { path: '', data: '' }, select: { id: true } }).execute(); +const created = await db.getAllRecord.create({ data: { path: '', data: '' }, select: { id: true } }).execute(); // Update -const updated = await db.getAllRecord.update({ where: { id: '' }, data: { path: '' }, select: { id: true } }).execute(); +const updated = await db.getAllRecord.update({ where: { id: '' }, data: { path: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.getAllRecord.delete({ where: { id: '' } }).execute(); +const deleted = await db.getAllRecord.delete({ where: { id: '' } }).execute(); ``` ### `db.object` @@ -83,16 +83,16 @@ CRUD operations for Object records. const items = await db.object.findMany({ select: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }).execute(); // Get one by id -const item = await db.object.findOne({ id: '', select: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }).execute(); +const item = await db.object.findOne({ id: '', select: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }).execute(); // Create -const created = await db.object.create({ data: { hashUuid: '', databaseId: '', kids: '', ktree: '', data: '', frzn: '' }, select: { id: true } }).execute(); +const created = await db.object.create({ data: { hashUuid: '', databaseId: '', kids: '', ktree: '', data: '', frzn: '' }, select: { id: true } }).execute(); // Update -const updated = await db.object.update({ where: { id: '' }, data: { hashUuid: '' }, select: { id: true } }).execute(); +const updated = await db.object.update({ where: { id: '' }, data: { hashUuid: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.object.delete({ where: { id: '' } }).execute(); +const deleted = await db.object.delete({ where: { id: '' } }).execute(); ``` ### `db.ref` @@ -108,26 +108,24 @@ CRUD operations for Ref records. | `databaseId` | UUID | Yes | | `storeId` | UUID | Yes | | `commitId` | UUID | Yes | -| `nameTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all ref records -const items = await db.ref.findMany({ select: { id: true, name: true, databaseId: true, storeId: true, commitId: true, nameTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.ref.findMany({ select: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }).execute(); // Get one by id -const item = await db.ref.findOne({ id: '', select: { id: true, name: true, databaseId: true, storeId: true, commitId: true, nameTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.ref.findOne({ id: '', select: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }).execute(); // Create -const created = await db.ref.create({ data: { name: '', databaseId: '', storeId: '', commitId: '', nameTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.ref.create({ data: { name: '', databaseId: '', storeId: '', commitId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.ref.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.ref.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.ref.delete({ where: { id: '' } }).execute(); +const deleted = await db.ref.delete({ where: { id: '' } }).execute(); ``` ### `db.store` @@ -143,26 +141,24 @@ CRUD operations for Store records. | `databaseId` | UUID | Yes | | `hash` | UUID | Yes | | `createdAt` | Datetime | No | -| `nameTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all store records -const items = await db.store.findMany({ select: { id: true, name: true, databaseId: true, hash: true, createdAt: true, nameTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.store.findMany({ select: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }).execute(); // Get one by id -const item = await db.store.findOne({ id: '', select: { id: true, name: true, databaseId: true, hash: true, createdAt: true, nameTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.store.findOne({ id: '', select: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }).execute(); // Create -const created = await db.store.create({ data: { name: '', databaseId: '', hash: '', nameTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.store.create({ data: { name: '', databaseId: '', hash: '' }, select: { id: true } }).execute(); // Update -const updated = await db.store.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.store.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.store.delete({ where: { id: '' } }).execute(); +const deleted = await db.store.delete({ where: { id: '' } }).execute(); ``` ### `db.commit` @@ -182,26 +178,24 @@ CRUD operations for Commit records. | `committerId` | UUID | Yes | | `treeId` | UUID | Yes | | `date` | Datetime | Yes | -| `messageTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all commit records -const items = await db.commit.findMany({ select: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true, messageTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.commit.findMany({ select: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }).execute(); // Get one by id -const item = await db.commit.findOne({ id: '', select: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true, messageTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.commit.findOne({ id: '', select: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }).execute(); // Create -const created = await db.commit.create({ data: { message: '', databaseId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '', messageTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.commit.create({ data: { message: '', databaseId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }, select: { id: true } }).execute(); // Update -const updated = await db.commit.update({ where: { id: '' }, data: { message: '' }, select: { id: true } }).execute(); +const updated = await db.commit.update({ where: { id: '' }, data: { message: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.commit.delete({ where: { id: '' } }).execute(); +const deleted = await db.commit.delete({ where: { id: '' } }).execute(); ``` ## Custom Operations @@ -220,7 +214,7 @@ revParse | `refname` | String | ```typescript -const result = await db.query.revParse({ dbId: '', storeId: '', refname: '' }).execute(); +const result = await db.query.revParse({ dbId: '', storeId: '', refname: '' }).execute(); ``` ### `db.query.getAllObjectsFromRoot` @@ -239,7 +233,7 @@ Reads and enables pagination through a set of `Object`. | `after` | Cursor | ```typescript -const result = await db.query.getAllObjectsFromRoot({ databaseId: '', id: '', first: '', offset: '', after: '' }).execute(); +const result = await db.query.getAllObjectsFromRoot({ databaseId: '', id: '', first: '', offset: '', after: '' }).execute(); ``` ### `db.query.getPathObjectsFromRoot` @@ -259,7 +253,7 @@ Reads and enables pagination through a set of `Object`. | `after` | Cursor | ```typescript -const result = await db.query.getPathObjectsFromRoot({ databaseId: '', id: '', path: '', first: '', offset: '', after: '' }).execute(); +const result = await db.query.getPathObjectsFromRoot({ databaseId: '', id: '', path: '', first: '', offset: '', after: '' }).execute(); ``` ### `db.query.getObjectAtPath` @@ -277,7 +271,7 @@ getObjectAtPath | `refname` | String | ```typescript -const result = await db.query.getObjectAtPath({ dbId: '', storeId: '', path: '', refname: '' }).execute(); +const result = await db.query.getObjectAtPath({ dbId: '', storeId: '', path: '', refname: '' }).execute(); ``` ### `db.mutation.freezeObjects` @@ -292,7 +286,7 @@ freezeObjects | `input` | FreezeObjectsInput (required) | ```typescript -const result = await db.mutation.freezeObjects({ input: '' }).execute(); +const result = await db.mutation.freezeObjects({ input: { databaseId: '', id: '' } }).execute(); ``` ### `db.mutation.initEmptyRepo` @@ -307,7 +301,7 @@ initEmptyRepo | `input` | InitEmptyRepoInput (required) | ```typescript -const result = await db.mutation.initEmptyRepo({ input: '' }).execute(); +const result = await db.mutation.initEmptyRepo({ input: { dbId: '', storeId: '' } }).execute(); ``` ### `db.mutation.removeNodeAtPath` @@ -322,7 +316,7 @@ removeNodeAtPath | `input` | RemoveNodeAtPathInput (required) | ```typescript -const result = await db.mutation.removeNodeAtPath({ input: '' }).execute(); +const result = await db.mutation.removeNodeAtPath({ input: { dbId: '', root: '', path: '' } }).execute(); ``` ### `db.mutation.setDataAtPath` @@ -337,7 +331,7 @@ setDataAtPath | `input` | SetDataAtPathInput (required) | ```typescript -const result = await db.mutation.setDataAtPath({ input: '' }).execute(); +const result = await db.mutation.setDataAtPath({ input: { dbId: '', root: '', path: '', data: '' } }).execute(); ``` ### `db.mutation.setPropsAndCommit` @@ -352,7 +346,7 @@ setPropsAndCommit | `input` | SetPropsAndCommitInput (required) | ```typescript -const result = await db.mutation.setPropsAndCommit({ input: '' }).execute(); +const result = await db.mutation.setPropsAndCommit({ input: { dbId: '', storeId: '', refname: '', path: '', data: '' } }).execute(); ``` ### `db.mutation.insertNodeAtPath` @@ -367,7 +361,7 @@ insertNodeAtPath | `input` | InsertNodeAtPathInput (required) | ```typescript -const result = await db.mutation.insertNodeAtPath({ input: '' }).execute(); +const result = await db.mutation.insertNodeAtPath({ input: '' }).execute(); ``` ### `db.mutation.updateNodeAtPath` @@ -382,7 +376,7 @@ updateNodeAtPath | `input` | UpdateNodeAtPathInput (required) | ```typescript -const result = await db.mutation.updateNodeAtPath({ input: '' }).execute(); +const result = await db.mutation.updateNodeAtPath({ input: '' }).execute(); ``` ### `db.mutation.setAndCommit` @@ -397,7 +391,7 @@ setAndCommit | `input` | SetAndCommitInput (required) | ```typescript -const result = await db.mutation.setAndCommit({ input: '' }).execute(); +const result = await db.mutation.setAndCommit({ input: '' }).execute(); ``` --- diff --git a/sdk/constructive-react/src/objects/orm/input-types.ts b/sdk/constructive-react/src/objects/orm/input-types.ts index 89e77a3f8..b0dc694b9 100644 --- a/sdk/constructive-react/src/objects/orm/input-types.ts +++ b/sdk/constructive-react/src/objects/orm/input-types.ts @@ -232,15 +232,15 @@ export interface UUIDListFilter { } // ============ Entity Types ============ export interface GetAllRecord { - path?: string | null; + path?: string[] | null; data?: Record | null; } export interface Object { hashUuid?: string | null; id: string; databaseId?: string | null; - kids?: string | null; - ktree?: string | null; + kids?: string[] | null; + ktree?: string[] | null; data?: Record | null; frzn?: boolean | null; createdAt?: string | null; @@ -254,10 +254,6 @@ export interface Ref { databaseId?: string | null; storeId?: string | null; commitId?: string | null; - /** TRGM similarity when searching `name`. Returns null when no trgm search filter is active. */ - nameTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } /** A store represents an isolated object repository within a database. */ export interface Store { @@ -270,10 +266,6 @@ export interface Store { /** The current head tree_id for this store. */ hash?: string | null; createdAt?: string | null; - /** TRGM similarity when searching `name`. Returns null when no trgm search filter is active. */ - nameTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } /** A commit records changes to the repository. */ export interface Commit { @@ -285,7 +277,7 @@ export interface Commit { databaseId?: string | null; storeId?: string | null; /** Parent commits */ - parentIds?: string | null; + parentIds?: string[] | null; /** The author of the commit */ authorId?: string | null; /** The committer of the commit */ @@ -293,10 +285,6 @@ export interface Commit { /** The root of the tree */ treeId?: string | null; date?: string | null; - /** TRGM similarity when searching `message`. Returns null when no trgm search filter is active. */ - messageTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } // ============ Relation Helper Types ============ export interface ConnectionResult { @@ -343,8 +331,6 @@ export type RefSelect = { databaseId?: boolean; storeId?: boolean; commitId?: boolean; - nameTrgmSimilarity?: boolean; - searchScore?: boolean; }; export type StoreSelect = { id?: boolean; @@ -352,8 +338,6 @@ export type StoreSelect = { databaseId?: boolean; hash?: boolean; createdAt?: boolean; - nameTrgmSimilarity?: boolean; - searchScore?: boolean; }; export type CommitSelect = { id?: boolean; @@ -365,12 +349,10 @@ export type CommitSelect = { committerId?: boolean; treeId?: boolean; date?: boolean; - messageTrgmSimilarity?: boolean; - searchScore?: boolean; }; // ============ Table Filter Types ============ export interface GetAllRecordFilter { - path?: StringFilter; + path?: StringListFilter; data?: JSONFilter; and?: GetAllRecordFilter[]; or?: GetAllRecordFilter[]; @@ -380,8 +362,8 @@ export interface ObjectFilter { hashUuid?: UUIDFilter; id?: UUIDFilter; databaseId?: UUIDFilter; - kids?: UUIDFilter; - ktree?: StringFilter; + kids?: UUIDListFilter; + ktree?: StringListFilter; data?: JSONFilter; frzn?: BooleanFilter; createdAt?: DatetimeFilter; @@ -395,8 +377,6 @@ export interface RefFilter { databaseId?: UUIDFilter; storeId?: UUIDFilter; commitId?: UUIDFilter; - nameTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: RefFilter[]; or?: RefFilter[]; not?: RefFilter; @@ -407,8 +387,6 @@ export interface StoreFilter { databaseId?: UUIDFilter; hash?: UUIDFilter; createdAt?: DatetimeFilter; - nameTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: StoreFilter[]; or?: StoreFilter[]; not?: StoreFilter; @@ -418,13 +396,11 @@ export interface CommitFilter { message?: StringFilter; databaseId?: UUIDFilter; storeId?: UUIDFilter; - parentIds?: UUIDFilter; + parentIds?: UUIDListFilter; authorId?: UUIDFilter; committerId?: UUIDFilter; treeId?: UUIDFilter; date?: DatetimeFilter; - messageTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: CommitFilter[]; or?: CommitFilter[]; not?: CommitFilter; @@ -439,97 +415,51 @@ export type GetAllRecordsOrderBy = | 'DATA_ASC' | 'DATA_DESC'; export type ObjectOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' - | 'HASH_UUID_ASC' - | 'HASH_UUID_DESC' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'KIDS_ASC' - | 'KIDS_DESC' - | 'KTREE_ASC' - | 'KTREE_DESC' - | 'DATA_ASC' - | 'DATA_DESC' | 'FRZN_ASC' - | 'FRZN_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC'; + | 'FRZN_DESC'; export type RefOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'STORE_ID_ASC' - | 'STORE_ID_DESC' - | 'COMMIT_ID_ASC' - | 'COMMIT_ID_DESC' - | 'NAME_TRGM_SIMILARITY_ASC' - | 'NAME_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'STORE_ID_DESC'; export type StoreOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'HASH_ASC' - | 'HASH_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'NAME_TRGM_SIMILARITY_ASC' - | 'NAME_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'DATABASE_ID_DESC'; export type CommitOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' - | 'MESSAGE_ASC' - | 'MESSAGE_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'STORE_ID_ASC' - | 'STORE_ID_DESC' - | 'PARENT_IDS_ASC' - | 'PARENT_IDS_DESC' - | 'AUTHOR_ID_ASC' - | 'AUTHOR_ID_DESC' - | 'COMMITTER_ID_ASC' - | 'COMMITTER_ID_DESC' - | 'TREE_ID_ASC' - | 'TREE_ID_DESC' - | 'DATE_ASC' - | 'DATE_DESC' - | 'MESSAGE_TRGM_SIMILARITY_ASC' - | 'MESSAGE_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'DATABASE_ID_DESC'; // ============ CRUD Input Types ============ export interface CreateGetAllRecordInput { clientMutationId?: string; getAllRecord: { - path?: string; + path?: string[]; data?: Record; }; } export interface GetAllRecordPatch { - path?: string | null; + path?: string[] | null; data?: Record | null; } export interface UpdateGetAllRecordInput { @@ -552,10 +482,9 @@ export interface CreateObjectInput { }; } export interface ObjectPatch { - hashUuid?: string | null; databaseId?: string | null; - kids?: string | null; - ktree?: string | null; + kids?: string[] | null; + ktree?: string[] | null; data?: Record | null; frzn?: boolean | null; } @@ -582,8 +511,6 @@ export interface RefPatch { databaseId?: string | null; storeId?: string | null; commitId?: string | null; - nameTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateRefInput { clientMutationId?: string; @@ -606,8 +533,6 @@ export interface StorePatch { name?: string | null; databaseId?: string | null; hash?: string | null; - nameTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateStoreInput { clientMutationId?: string; @@ -635,13 +560,11 @@ export interface CommitPatch { message?: string | null; databaseId?: string | null; storeId?: string | null; - parentIds?: string | null; + parentIds?: string[] | null; authorId?: string | null; committerId?: string | null; treeId?: string | null; date?: string | null; - messageTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateCommitInput { clientMutationId?: string; diff --git a/sdk/constructive-react/src/objects/schema-types.ts b/sdk/constructive-react/src/objects/schema-types.ts index 3197f4b28..af6b2c3a5 100644 --- a/sdk/constructive-react/src/objects/schema-types.ts +++ b/sdk/constructive-react/src/objects/schema-types.ts @@ -38,11 +38,7 @@ export type RefOrderBy = | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'STORE_ID_ASC' - | 'STORE_ID_DESC' - | 'NAME_TRGM_SIMILARITY_ASC' - | 'NAME_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'STORE_ID_DESC'; /** Methods to use when ordering `Store`. */ export type StoreOrderBy = | 'NATURAL' @@ -51,11 +47,7 @@ export type StoreOrderBy = | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'NAME_TRGM_SIMILARITY_ASC' - | 'NAME_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'DATABASE_ID_DESC'; /** Methods to use when ordering `Commit`. */ export type CommitOrderBy = | 'NATURAL' @@ -64,11 +56,7 @@ export type CommitOrderBy = | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'MESSAGE_TRGM_SIMILARITY_ASC' - | 'MESSAGE_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'DATABASE_ID_DESC'; /** Methods to use when ordering `Object`. */ export type ObjectOrderBy = | 'NATURAL' @@ -98,22 +86,6 @@ export interface RefFilter { or?: RefFilter[]; /** Negates the expression. */ not?: RefFilter; - /** TRGM search on the `name` column. */ - trgmName?: TrgmSearchInput; - /** - * Composite full-text search. Provide a search string and it will be dispatched - * to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - * simultaneously. Rows matching ANY algorithm are returned. All matching score - * fields are populated. - */ - fullTextSearch?: string; -} -/** Input for pg_trgm fuzzy text matching. Provide a search value and optional similarity threshold. */ -export interface TrgmSearchInput { - /** The text to fuzzy-match against. Typos and misspellings are tolerated. */ - value: string; - /** Minimum similarity threshold (0.0 to 1.0). Higher = stricter matching. Default is 0.3. */ - threshold?: number; } /** A filter to be used against `Store` object types. All fields are combined with a logical ‘and.’ */ export interface StoreFilter { @@ -133,15 +105,6 @@ export interface StoreFilter { or?: StoreFilter[]; /** Negates the expression. */ not?: StoreFilter; - /** TRGM search on the `name` column. */ - trgmName?: TrgmSearchInput; - /** - * Composite full-text search. Provide a search string and it will be dispatched - * to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - * simultaneously. Rows matching ANY algorithm are returned. All matching score - * fields are populated. - */ - fullTextSearch?: string; } /** A filter to be used against `Commit` object types. All fields are combined with a logical ‘and.’ */ export interface CommitFilter { @@ -169,15 +132,6 @@ export interface CommitFilter { or?: CommitFilter[]; /** Negates the expression. */ not?: CommitFilter; - /** TRGM search on the `message` column. */ - trgmMessage?: TrgmSearchInput; - /** - * Composite full-text search. Provide a search string and it will be dispatched - * to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - * simultaneously. Rows matching ANY algorithm are returned. All matching score - * fields are populated. - */ - fullTextSearch?: string; } /** A filter to be used against `Object` object types. All fields are combined with a logical ‘and.’ */ export interface ObjectFilter { diff --git a/sdk/constructive-react/src/objects/types.ts b/sdk/constructive-react/src/objects/types.ts index 9bf4cb699..304a6206d 100644 --- a/sdk/constructive-react/src/objects/types.ts +++ b/sdk/constructive-react/src/objects/types.ts @@ -23,8 +23,6 @@ export interface Ref { databaseId: string | null; storeId: string | null; commitId: string | null; - nameTrgmSimilarity: number | null; - searchScore: number | null; } export interface Store { id: string | null; @@ -32,8 +30,6 @@ export interface Store { databaseId: string | null; hash: string | null; createdAt: string | null; - nameTrgmSimilarity: number | null; - searchScore: number | null; } export interface Commit { id: string | null; @@ -45,8 +41,6 @@ export interface Commit { committerId: string | null; treeId: string | null; date: string | null; - messageTrgmSimilarity: number | null; - searchScore: number | null; } export interface StringFilter { isNull?: boolean; diff --git a/sdk/constructive-react/src/public/README.md b/sdk/constructive-react/src/public/README.md index c4951fdc3..1be8ce21a 100644 --- a/sdk/constructive-react/src/public/README.md +++ b/sdk/constructive-react/src/public/README.md @@ -8,9 +8,9 @@ ## Overview -- **Tables:** 103 +- **Tables:** 107 - **Custom queries:** 19 -- **Custom mutations:** 31 +- **Custom mutations:** 36 **Generators:** ORM, React Query diff --git a/sdk/constructive-react/src/public/hooks/README.md b/sdk/constructive-react/src/public/hooks/README.md index 01a5d5d90..9bb508ec6 100644 --- a/sdk/constructive-react/src/public/hooks/README.md +++ b/sdk/constructive-react/src/public/hooks/README.md @@ -32,12 +32,12 @@ function App() { | Hook | Type | Description | |------|------|-------------| +| `useGetAllQuery` | Query | List all getAll | +| `useCreateGetAllRecordMutation` | Mutation | Create a getAllRecord | | `useOrgGetManagersQuery` | Query | List all orgGetManagers | | `useCreateOrgGetManagersRecordMutation` | Mutation | Create a orgGetManagersRecord | | `useOrgGetSubordinatesQuery` | Query | List all orgGetSubordinates | | `useCreateOrgGetSubordinatesRecordMutation` | Mutation | Create a orgGetSubordinatesRecord | -| `useGetAllQuery` | Query | List all getAll | -| `useCreateGetAllRecordMutation` | Mutation | Create a getAllRecord | | `useObjectsQuery` | Query | List all objects | | `useObjectQuery` | Query | Get one object | | `useCreateObjectMutation` | Mutation | Create a object | @@ -143,6 +143,11 @@ function App() { | `useCreateViewRuleMutation` | Mutation | DO INSTEAD rules for views (e.g., read-only enforcement) | | `useUpdateViewRuleMutation` | Mutation | DO INSTEAD rules for views (e.g., read-only enforcement) | | `useDeleteViewRuleMutation` | Mutation | DO INSTEAD rules for views (e.g., read-only enforcement) | +| `useEmbeddingChunksQuery` | Query | List all embeddingChunks | +| `useEmbeddingChunkQuery` | Query | Get one embeddingChunk | +| `useCreateEmbeddingChunkMutation` | Mutation | Create a embeddingChunk | +| `useUpdateEmbeddingChunkMutation` | Mutation | Update a embeddingChunk | +| `useDeleteEmbeddingChunkMutation` | Mutation | Delete a embeddingChunk | | `useTableTemplateModulesQuery` | Query | List all tableTemplateModules | | `useTableTemplateModuleQuery` | Query | Get one tableTemplateModule | | `useCreateTableTemplateModuleMutation` | Mutation | Create a tableTemplateModule | @@ -203,6 +208,11 @@ function App() { | `useCreateDefaultPrivilegeMutation` | Mutation | Create a defaultPrivilege | | `useUpdateDefaultPrivilegeMutation` | Mutation | Update a defaultPrivilege | | `useDeleteDefaultPrivilegeMutation` | Mutation | Delete a defaultPrivilege | +| `useEnumsQuery` | Query | List all enums | +| `useEnumQuery` | Query | Get one enum | +| `useCreateEnumMutation` | Mutation | Create a enum | +| `useUpdateEnumMutation` | Mutation | Update a enum | +| `useDeleteEnumMutation` | Mutation | Delete a enum | | `useApiSchemasQuery` | Query | Join table linking APIs to the database schemas they expose; controls which schemas are accessible through each API | | `useApiSchemaQuery` | Query | Join table linking APIs to the database schemas they expose; controls which schemas are accessible through each API | | `useCreateApiSchemaMutation` | Mutation | Join table linking APIs to the database schemas they expose; controls which schemas are accessible through each API | @@ -238,6 +248,11 @@ function App() { | `useCreateTriggerFunctionMutation` | Mutation | Create a triggerFunction | | `useUpdateTriggerFunctionMutation` | Mutation | Update a triggerFunction | | `useDeleteTriggerFunctionMutation` | Mutation | Delete a triggerFunction | +| `useDatabaseTransfersQuery` | Query | List all databaseTransfers | +| `useDatabaseTransferQuery` | Query | Get one databaseTransfer | +| `useCreateDatabaseTransferMutation` | Mutation | Create a databaseTransfer | +| `useUpdateDatabaseTransferMutation` | Mutation | Update a databaseTransfer | +| `useDeleteDatabaseTransferMutation` | Mutation | Delete a databaseTransfer | | `useApisQuery` | Query | API endpoint configurations: each record defines a PostGraphile/PostgREST API with its database role and public access settings | | `useApiQuery` | Query | API endpoint configurations: each record defines a PostGraphile/PostgREST API with its database role and public access settings | | `useCreateApiMutation` | Mutation | API endpoint configurations: each record defines a PostGraphile/PostgREST API with its database role and public access settings | @@ -353,11 +368,16 @@ function App() { | `useCreateUsersModuleMutation` | Mutation | Create a usersModule | | `useUpdateUsersModuleMutation` | Mutation | Update a usersModule | | `useDeleteUsersModuleMutation` | Mutation | Delete a usersModule | -| `useUuidModulesQuery` | Query | List all uuidModules | -| `useUuidModuleQuery` | Query | Get one uuidModule | -| `useCreateUuidModuleMutation` | Mutation | Create a uuidModule | -| `useUpdateUuidModuleMutation` | Mutation | Update a uuidModule | -| `useDeleteUuidModuleMutation` | Mutation | Delete a uuidModule | +| `useBlueprintsQuery` | Query | An owned, executable blueprint scoped to a specific database. Created by copying from a blueprint_template via copy_template_to_blueprint() or built from scratch. The owner can customize the definition before executing it with construct_blueprint(). Each blueprint tracks its execution status (draft/constructed/failed) and stores the ref_map of created table IDs after construction. | +| `useBlueprintQuery` | Query | An owned, executable blueprint scoped to a specific database. Created by copying from a blueprint_template via copy_template_to_blueprint() or built from scratch. The owner can customize the definition before executing it with construct_blueprint(). Each blueprint tracks its execution status (draft/constructed/failed) and stores the ref_map of created table IDs after construction. | +| `useCreateBlueprintMutation` | Mutation | An owned, executable blueprint scoped to a specific database. Created by copying from a blueprint_template via copy_template_to_blueprint() or built from scratch. The owner can customize the definition before executing it with construct_blueprint(). Each blueprint tracks its execution status (draft/constructed/failed) and stores the ref_map of created table IDs after construction. | +| `useUpdateBlueprintMutation` | Mutation | An owned, executable blueprint scoped to a specific database. Created by copying from a blueprint_template via copy_template_to_blueprint() or built from scratch. The owner can customize the definition before executing it with construct_blueprint(). Each blueprint tracks its execution status (draft/constructed/failed) and stores the ref_map of created table IDs after construction. | +| `useDeleteBlueprintMutation` | Mutation | An owned, executable blueprint scoped to a specific database. Created by copying from a blueprint_template via copy_template_to_blueprint() or built from scratch. The owner can customize the definition before executing it with construct_blueprint(). Each blueprint tracks its execution status (draft/constructed/failed) and stores the ref_map of created table IDs after construction. | +| `useBlueprintTemplatesQuery` | Query | A shareable, versioned schema recipe for the blueprint marketplace. Templates define arrays of secure_table_provision + relation_provision inputs that together describe a complete domain schema (e.g. e-commerce, telemedicine, habit tracker). Templates are never executed directly — they are copied into a blueprint first via copy_template_to_blueprint(). Can be private (owner-only) or public (marketplace-visible). | +| `useBlueprintTemplateQuery` | Query | A shareable, versioned schema recipe for the blueprint marketplace. Templates define arrays of secure_table_provision + relation_provision inputs that together describe a complete domain schema (e.g. e-commerce, telemedicine, habit tracker). Templates are never executed directly — they are copied into a blueprint first via copy_template_to_blueprint(). Can be private (owner-only) or public (marketplace-visible). | +| `useCreateBlueprintTemplateMutation` | Mutation | A shareable, versioned schema recipe for the blueprint marketplace. Templates define arrays of secure_table_provision + relation_provision inputs that together describe a complete domain schema (e.g. e-commerce, telemedicine, habit tracker). Templates are never executed directly — they are copied into a blueprint first via copy_template_to_blueprint(). Can be private (owner-only) or public (marketplace-visible). | +| `useUpdateBlueprintTemplateMutation` | Mutation | A shareable, versioned schema recipe for the blueprint marketplace. Templates define arrays of secure_table_provision + relation_provision inputs that together describe a complete domain schema (e.g. e-commerce, telemedicine, habit tracker). Templates are never executed directly — they are copied into a blueprint first via copy_template_to_blueprint(). Can be private (owner-only) or public (marketplace-visible). | +| `useDeleteBlueprintTemplateMutation` | Mutation | A shareable, versioned schema recipe for the blueprint marketplace. Templates define arrays of secure_table_provision + relation_provision inputs that together describe a complete domain schema (e.g. e-commerce, telemedicine, habit tracker). Templates are never executed directly — they are copied into a blueprint first via copy_template_to_blueprint(). Can be private (owner-only) or public (marketplace-visible). | | `useDatabaseProvisionModulesQuery` | Query | Tracks database provisioning requests and their status. The BEFORE INSERT trigger creates the database and sets database_id before RLS policies are evaluated. | | `useDatabaseProvisionModuleQuery` | Query | Tracks database provisioning requests and their status. The BEFORE INSERT trigger creates the database and sets database_id before RLS policies are evaluated. | | `useCreateDatabaseProvisionModuleMutation` | Mutation | Tracks database provisioning requests and their status. The BEFORE INSERT trigger creates the database and sets database_id before RLS policies are evaluated. | @@ -413,6 +433,11 @@ function App() { | `useCreateOrgChartEdgeGrantMutation` | Mutation | Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table | | `useUpdateOrgChartEdgeGrantMutation` | Mutation | Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table | | `useDeleteOrgChartEdgeGrantMutation` | Mutation | Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table | +| `useOrgPermissionDefaultsQuery` | Query | Stores the default permission bitmask assigned to new members upon joining | +| `useOrgPermissionDefaultQuery` | Query | Stores the default permission bitmask assigned to new members upon joining | +| `useCreateOrgPermissionDefaultMutation` | Mutation | Stores the default permission bitmask assigned to new members upon joining | +| `useUpdateOrgPermissionDefaultMutation` | Mutation | Stores the default permission bitmask assigned to new members upon joining | +| `useDeleteOrgPermissionDefaultMutation` | Mutation | Stores the default permission bitmask assigned to new members upon joining | | `useAppLimitsQuery` | Query | Tracks per-actor usage counts against configurable maximum limits | | `useAppLimitQuery` | Query | Tracks per-actor usage counts against configurable maximum limits | | `useCreateAppLimitMutation` | Mutation | Tracks per-actor usage counts against configurable maximum limits | @@ -433,6 +458,31 @@ function App() { | `useCreateAppAchievementMutation` | Mutation | Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually | | `useUpdateAppAchievementMutation` | Mutation | Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually | | `useDeleteAppAchievementMutation` | Mutation | Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually | +| `useAppLevelsQuery` | Query | Defines available levels that users can achieve by completing requirements | +| `useAppLevelQuery` | Query | Defines available levels that users can achieve by completing requirements | +| `useCreateAppLevelMutation` | Mutation | Defines available levels that users can achieve by completing requirements | +| `useUpdateAppLevelMutation` | Mutation | Defines available levels that users can achieve by completing requirements | +| `useDeleteAppLevelMutation` | Mutation | Defines available levels that users can achieve by completing requirements | +| `useEmailsQuery` | Query | User email addresses with verification and primary-email management | +| `useEmailQuery` | Query | User email addresses with verification and primary-email management | +| `useCreateEmailMutation` | Mutation | User email addresses with verification and primary-email management | +| `useUpdateEmailMutation` | Mutation | User email addresses with verification and primary-email management | +| `useDeleteEmailMutation` | Mutation | User email addresses with verification and primary-email management | +| `usePhoneNumbersQuery` | Query | User phone numbers with country code, verification, and primary-number management | +| `usePhoneNumberQuery` | Query | User phone numbers with country code, verification, and primary-number management | +| `useCreatePhoneNumberMutation` | Mutation | User phone numbers with country code, verification, and primary-number management | +| `useUpdatePhoneNumberMutation` | Mutation | User phone numbers with country code, verification, and primary-number management | +| `useDeletePhoneNumberMutation` | Mutation | User phone numbers with country code, verification, and primary-number management | +| `useCryptoAddressesQuery` | Query | Cryptocurrency wallet addresses owned by users, with network-specific validation and verification | +| `useCryptoAddressQuery` | Query | Cryptocurrency wallet addresses owned by users, with network-specific validation and verification | +| `useCreateCryptoAddressMutation` | Mutation | Cryptocurrency wallet addresses owned by users, with network-specific validation and verification | +| `useUpdateCryptoAddressMutation` | Mutation | Cryptocurrency wallet addresses owned by users, with network-specific validation and verification | +| `useDeleteCryptoAddressMutation` | Mutation | Cryptocurrency wallet addresses owned by users, with network-specific validation and verification | +| `useConnectedAccountsQuery` | Query | OAuth and social login connections linking external service accounts to users | +| `useConnectedAccountQuery` | Query | OAuth and social login connections linking external service accounts to users | +| `useCreateConnectedAccountMutation` | Mutation | OAuth and social login connections linking external service accounts to users | +| `useUpdateConnectedAccountMutation` | Mutation | OAuth and social login connections linking external service accounts to users | +| `useDeleteConnectedAccountMutation` | Mutation | OAuth and social login connections linking external service accounts to users | | `useInvitesQuery` | Query | Invitation records sent to prospective members via email, with token-based redemption and expiration | | `useInviteQuery` | Query | Invitation records sent to prospective members via email, with token-based redemption and expiration | | `useCreateInviteMutation` | Mutation | Invitation records sent to prospective members via email, with token-based redemption and expiration | @@ -453,6 +503,11 @@ function App() { | `useCreateOrgClaimedInviteMutation` | Mutation | Records of successfully claimed invitations, linking senders to receivers | | `useUpdateOrgClaimedInviteMutation` | Mutation | Records of successfully claimed invitations, linking senders to receivers | | `useDeleteOrgClaimedInviteMutation` | Mutation | Records of successfully claimed invitations, linking senders to receivers | +| `useAuditLogsQuery` | Query | Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) | +| `useAuditLogQuery` | Query | Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) | +| `useCreateAuditLogMutation` | Mutation | Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) | +| `useUpdateAuditLogMutation` | Mutation | Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) | +| `useDeleteAuditLogMutation` | Mutation | Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) | | `useRefsQuery` | Query | A ref is a data structure for pointing to a commit. | | `useRefQuery` | Query | A ref is a data structure for pointing to a commit. | | `useCreateRefMutation` | Mutation | A ref is a data structure for pointing to a commit. | @@ -468,26 +523,11 @@ function App() { | `useCreateAppPermissionDefaultMutation` | Mutation | Stores the default permission bitmask assigned to new members upon joining | | `useUpdateAppPermissionDefaultMutation` | Mutation | Stores the default permission bitmask assigned to new members upon joining | | `useDeleteAppPermissionDefaultMutation` | Mutation | Stores the default permission bitmask assigned to new members upon joining | -| `useCryptoAddressesQuery` | Query | Cryptocurrency wallet addresses owned by users, with network-specific validation and verification | -| `useCryptoAddressQuery` | Query | Cryptocurrency wallet addresses owned by users, with network-specific validation and verification | -| `useCreateCryptoAddressMutation` | Mutation | Cryptocurrency wallet addresses owned by users, with network-specific validation and verification | -| `useUpdateCryptoAddressMutation` | Mutation | Cryptocurrency wallet addresses owned by users, with network-specific validation and verification | -| `useDeleteCryptoAddressMutation` | Mutation | Cryptocurrency wallet addresses owned by users, with network-specific validation and verification | | `useRoleTypesQuery` | Query | List all roleTypes | | `useRoleTypeQuery` | Query | Get one roleType | | `useCreateRoleTypeMutation` | Mutation | Create a roleType | | `useUpdateRoleTypeMutation` | Mutation | Update a roleType | | `useDeleteRoleTypeMutation` | Mutation | Delete a roleType | -| `useOrgPermissionDefaultsQuery` | Query | Stores the default permission bitmask assigned to new members upon joining | -| `useOrgPermissionDefaultQuery` | Query | Stores the default permission bitmask assigned to new members upon joining | -| `useCreateOrgPermissionDefaultMutation` | Mutation | Stores the default permission bitmask assigned to new members upon joining | -| `useUpdateOrgPermissionDefaultMutation` | Mutation | Stores the default permission bitmask assigned to new members upon joining | -| `useDeleteOrgPermissionDefaultMutation` | Mutation | Stores the default permission bitmask assigned to new members upon joining | -| `usePhoneNumbersQuery` | Query | User phone numbers with country code, verification, and primary-number management | -| `usePhoneNumberQuery` | Query | User phone numbers with country code, verification, and primary-number management | -| `useCreatePhoneNumberMutation` | Mutation | User phone numbers with country code, verification, and primary-number management | -| `useUpdatePhoneNumberMutation` | Mutation | User phone numbers with country code, verification, and primary-number management | -| `useDeletePhoneNumberMutation` | Mutation | User phone numbers with country code, verification, and primary-number management | | `useAppLimitDefaultsQuery` | Query | Default maximum values for each named limit, applied when no per-actor override exists | | `useAppLimitDefaultQuery` | Query | Default maximum values for each named limit, applied when no per-actor override exists | | `useCreateAppLimitDefaultMutation` | Mutation | Default maximum values for each named limit, applied when no per-actor override exists | @@ -498,11 +538,6 @@ function App() { | `useCreateOrgLimitDefaultMutation` | Mutation | Default maximum values for each named limit, applied when no per-actor override exists | | `useUpdateOrgLimitDefaultMutation` | Mutation | Default maximum values for each named limit, applied when no per-actor override exists | | `useDeleteOrgLimitDefaultMutation` | Mutation | Default maximum values for each named limit, applied when no per-actor override exists | -| `useConnectedAccountsQuery` | Query | OAuth and social login connections linking external service accounts to users | -| `useConnectedAccountQuery` | Query | OAuth and social login connections linking external service accounts to users | -| `useCreateConnectedAccountMutation` | Mutation | OAuth and social login connections linking external service accounts to users | -| `useUpdateConnectedAccountMutation` | Mutation | OAuth and social login connections linking external service accounts to users | -| `useDeleteConnectedAccountMutation` | Mutation | OAuth and social login connections linking external service accounts to users | | `useNodeTypeRegistriesQuery` | Query | Registry of high-level semantic AST node types using domain-prefixed naming. These IR nodes compile to multiple targets (Postgres RLS, egress, ingress, etc.). | | `useNodeTypeRegistryQuery` | Query | Registry of high-level semantic AST node types using domain-prefixed naming. These IR nodes compile to multiple targets (Postgres RLS, egress, ingress, etc.). | | `useCreateNodeTypeRegistryMutation` | Mutation | Registry of high-level semantic AST node types using domain-prefixed naming. These IR nodes compile to multiple targets (Postgres RLS, egress, ingress, etc.). | @@ -533,26 +568,11 @@ function App() { | `useCreateOrgMembershipDefaultMutation` | Mutation | Default membership settings per entity, controlling initial approval and verification state for new members | | `useUpdateOrgMembershipDefaultMutation` | Mutation | Default membership settings per entity, controlling initial approval and verification state for new members | | `useDeleteOrgMembershipDefaultMutation` | Mutation | Default membership settings per entity, controlling initial approval and verification state for new members | -| `useAuditLogsQuery` | Query | Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) | -| `useAuditLogQuery` | Query | Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) | -| `useCreateAuditLogMutation` | Mutation | Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) | -| `useUpdateAuditLogMutation` | Mutation | Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) | -| `useDeleteAuditLogMutation` | Mutation | Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) | -| `useAppLevelsQuery` | Query | Defines available levels that users can achieve by completing requirements | -| `useAppLevelQuery` | Query | Defines available levels that users can achieve by completing requirements | -| `useCreateAppLevelMutation` | Mutation | Defines available levels that users can achieve by completing requirements | -| `useUpdateAppLevelMutation` | Mutation | Defines available levels that users can achieve by completing requirements | -| `useDeleteAppLevelMutation` | Mutation | Defines available levels that users can achieve by completing requirements | | `useSqlMigrationsQuery` | Query | List all sqlMigrations | | `useSqlMigrationQuery` | Query | Get one sqlMigration | | `useCreateSqlMigrationMutation` | Mutation | Create a sqlMigration | | `useUpdateSqlMigrationMutation` | Mutation | Update a sqlMigration | | `useDeleteSqlMigrationMutation` | Mutation | Delete a sqlMigration | -| `useEmailsQuery` | Query | User email addresses with verification and primary-email management | -| `useEmailQuery` | Query | User email addresses with verification and primary-email management | -| `useCreateEmailMutation` | Mutation | User email addresses with verification and primary-email management | -| `useUpdateEmailMutation` | Mutation | User email addresses with verification and primary-email management | -| `useDeleteEmailMutation` | Mutation | User email addresses with verification and primary-email management | | `useUsersQuery` | Query | List all users | | `useUserQuery` | Query | Get one user | | `useCreateUserMutation` | Mutation | Create a user | @@ -592,23 +612,28 @@ function App() { | `useOrgPermissionsGetByMaskQuery` | Query | Reads and enables pagination through a set of `OrgPermission`. | | `useStepsRequiredQuery` | Query | Reads and enables pagination through a set of `AppLevelRequirement`. | | `useCurrentUserQuery` | Query | currentUser | -| `useSignOutMutation` | Mutation | signOut | | `useSendAccountDeletionEmailMutation` | Mutation | sendAccountDeletionEmail | -| `useCheckPasswordMutation` | Mutation | checkPassword | +| `useSignOutMutation` | Mutation | signOut | +| `useAcceptDatabaseTransferMutation` | Mutation | acceptDatabaseTransfer | +| `useCancelDatabaseTransferMutation` | Mutation | cancelDatabaseTransfer | +| `useRejectDatabaseTransferMutation` | Mutation | rejectDatabaseTransfer | | `useSubmitInviteCodeMutation` | Mutation | submitInviteCode | | `useSubmitOrgInviteCodeMutation` | Mutation | submitOrgInviteCode | -| `useFreezeObjectsMutation` | Mutation | freezeObjects | -| `useInitEmptyRepoMutation` | Mutation | initEmptyRepo | +| `useCheckPasswordMutation` | Mutation | checkPassword | | `useConfirmDeleteAccountMutation` | Mutation | confirmDeleteAccount | | `useSetPasswordMutation` | Mutation | setPassword | | `useVerifyEmailMutation` | Mutation | verifyEmail | -| `useRemoveNodeAtPathMutation` | Mutation | removeNodeAtPath | +| `useFreezeObjectsMutation` | Mutation | freezeObjects | +| `useInitEmptyRepoMutation` | Mutation | initEmptyRepo | +| `useConstructBlueprintMutation` | Mutation | Executes a draft blueprint definition. Four phases: (1) create tables with nodes[], fields, and policies[], (2) create relations between tables, (3) create indexes on table fields (supports BTREE, HNSW, GIN, GIST, BM25, etc.), (4) create full-text search configurations with weighted multi-field TSVector support. nodes[] entries can be strings or {$type, data} objects. Relations use $type for relation_type with junction config in data. Indexes reference table_ref + column name(s) and are resolved to field_ids. Full-text searches reference table_ref + tsvector field + source fields with weights/langs. Builds a ref_map of local ref names to created table UUIDs. Updates blueprint status to constructed (or failed with error_details). Returns the ref_map. | | `useResetPasswordMutation` | Mutation | resetPassword | -| `useBootstrapUserMutation` | Mutation | bootstrapUser | -| `useSetFieldOrderMutation` | Mutation | setFieldOrder | +| `useRemoveNodeAtPathMutation` | Mutation | removeNodeAtPath | | `useSetDataAtPathMutation` | Mutation | setDataAtPath | | `useSetPropsAndCommitMutation` | Mutation | setPropsAndCommit | +| `useCopyTemplateToBlueprintMutation` | Mutation | 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. | | `useProvisionDatabaseWithUserMutation` | Mutation | provisionDatabaseWithUser | +| `useBootstrapUserMutation` | Mutation | bootstrapUser | +| `useSetFieldOrderMutation` | Mutation | setFieldOrder | | `useInsertNodeAtPathMutation` | Mutation | insertNodeAtPath | | `useUpdateNodeAtPathMutation` | Mutation | updateNodeAtPath | | `useSetAndCommitMutation` | Mutation | setAndCommit | @@ -635,13 +660,28 @@ Example usage: | `useSignInMutation` | Mutation | signIn | | `useSignUpMutation` | Mutation | signUp | | `useOneTimeTokenMutation` | Mutation | oneTimeToken | -| `useForgotPasswordMutation` | Mutation | forgotPassword | | `useSendVerificationEmailMutation` | Mutation | sendVerificationEmail | +| `useForgotPasswordMutation` | Mutation | forgotPassword | | `useVerifyPasswordMutation` | Mutation | verifyPassword | | `useVerifyTotpMutation` | Mutation | verifyTotp | ## Table Hooks +### GetAllRecord + +```typescript +// List all getAll +const { data, isLoading } = useGetAllQuery({ + selection: { fields: { path: true, data: true } }, +}); + +// Create a getAllRecord +const { mutate: create } = useCreateGetAllRecordMutation({ + selection: { fields: { id: true } }, +}); +create({ path: '', data: '' }); +``` + ### OrgGetManagersRecord ```typescript @@ -654,7 +694,7 @@ const { data, isLoading } = useOrgGetManagersQuery({ const { mutate: create } = useCreateOrgGetManagersRecordMutation({ selection: { fields: { id: true } }, }); -create({ userId: '', depth: '' }); +create({ userId: '', depth: '' }); ``` ### OrgGetSubordinatesRecord @@ -669,22 +709,7 @@ const { data, isLoading } = useOrgGetSubordinatesQuery({ const { mutate: create } = useCreateOrgGetSubordinatesRecordMutation({ selection: { fields: { id: true } }, }); -create({ userId: '', depth: '' }); -``` - -### GetAllRecord - -```typescript -// List all getAll -const { data, isLoading } = useGetAllQuery({ - selection: { fields: { path: true, data: true } }, -}); - -// Create a getAllRecord -const { mutate: create } = useCreateGetAllRecordMutation({ - selection: { fields: { id: true } }, -}); -create({ path: '', data: '' }); +create({ userId: '', depth: '' }); ``` ### Object @@ -697,7 +722,7 @@ const { data, isLoading } = useObjectsQuery({ // Get one object const { data: item } = useObjectQuery({ - id: '', + id: '', selection: { fields: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }, }); @@ -705,7 +730,7 @@ const { data: item } = useObjectQuery({ const { mutate: create } = useCreateObjectMutation({ selection: { fields: { id: true } }, }); -create({ hashUuid: '', databaseId: '', kids: '', ktree: '', data: '', frzn: '' }); +create({ hashUuid: '', databaseId: '', kids: '', ktree: '', data: '', frzn: '' }); ``` ### AppPermission @@ -713,20 +738,20 @@ create({ hashUuid: '', databaseId: '', kids: '', ktree: '', - selection: { fields: { id: true, name: true, bitnum: true, bitstr: true, description: true, descriptionTrgmSimilarity: true, searchScore: true } }, + id: '', + selection: { fields: { id: true, name: true, bitnum: true, bitstr: true, description: true } }, }); // Create a appPermission const { mutate: create } = useCreateAppPermissionMutation({ selection: { fields: { id: true } }, }); -create({ name: '', bitnum: '', bitstr: '', description: '', descriptionTrgmSimilarity: '', searchScore: '' }); +create({ name: '', bitnum: '', bitstr: '', description: '' }); ``` ### OrgPermission @@ -734,20 +759,20 @@ create({ name: '', bitnum: '', bitstr: '', description: '', - selection: { fields: { id: true, name: true, bitnum: true, bitstr: true, description: true, descriptionTrgmSimilarity: true, searchScore: true } }, + id: '', + selection: { fields: { id: true, name: true, bitnum: true, bitstr: true, description: true } }, }); // Create a orgPermission const { mutate: create } = useCreateOrgPermissionMutation({ selection: { fields: { id: true } }, }); -create({ name: '', bitnum: '', bitstr: '', description: '', descriptionTrgmSimilarity: '', searchScore: '' }); +create({ name: '', bitnum: '', bitstr: '', description: '' }); ``` ### AppLevelRequirement @@ -755,20 +780,20 @@ create({ name: '', bitnum: '', bitstr: '', description: '', - selection: { fields: { id: true, name: true, level: true, description: true, requiredCount: true, priority: true, createdAt: true, updatedAt: true, descriptionTrgmSimilarity: true, searchScore: true } }, + id: '', + selection: { fields: { id: true, name: true, level: true, description: true, requiredCount: true, priority: true, createdAt: true, updatedAt: true } }, }); // Create a appLevelRequirement const { mutate: create } = useCreateAppLevelRequirementMutation({ selection: { fields: { id: true } }, }); -create({ name: '', level: '', description: '', requiredCount: '', priority: '', descriptionTrgmSimilarity: '', searchScore: '' }); +create({ name: '', level: '', description: '', requiredCount: '', priority: '' }); ``` ### Database @@ -776,20 +801,20 @@ create({ name: '', level: '', description: '', requiredCoun ```typescript // List all databases const { data, isLoading } = useDatabasesQuery({ - selection: { fields: { id: true, ownerId: true, schemaHash: true, name: true, label: true, hash: true, createdAt: true, updatedAt: true, schemaHashTrgmSimilarity: true, nameTrgmSimilarity: true, labelTrgmSimilarity: true, searchScore: true } }, + selection: { fields: { id: true, ownerId: true, schemaHash: true, name: true, label: true, hash: true, createdAt: true, updatedAt: true } }, }); // Get one database const { data: item } = useDatabaseQuery({ - id: '', - selection: { fields: { id: true, ownerId: true, schemaHash: true, name: true, label: true, hash: true, createdAt: true, updatedAt: true, schemaHashTrgmSimilarity: true, nameTrgmSimilarity: true, labelTrgmSimilarity: true, searchScore: true } }, + id: '', + selection: { fields: { id: true, ownerId: true, schemaHash: true, name: true, label: true, hash: true, createdAt: true, updatedAt: true } }, }); // Create a database const { mutate: create } = useCreateDatabaseMutation({ selection: { fields: { id: true } }, }); -create({ ownerId: '', schemaHash: '', name: '', label: '', hash: '', schemaHashTrgmSimilarity: '', nameTrgmSimilarity: '', labelTrgmSimilarity: '', searchScore: '' }); +create({ ownerId: '', schemaHash: '', name: '', label: '', hash: '' }); ``` ### Schema @@ -797,20 +822,20 @@ create({ ownerId: '', schemaHash: '', name: '', label: '', - selection: { fields: { id: true, databaseId: true, name: true, schemaName: true, label: true, description: true, smartTags: true, category: true, module: true, scope: true, tags: true, isPublic: true, createdAt: true, updatedAt: true, nameTrgmSimilarity: true, schemaNameTrgmSimilarity: true, labelTrgmSimilarity: true, descriptionTrgmSimilarity: true, moduleTrgmSimilarity: true, searchScore: true } }, + id: '', + selection: { fields: { id: true, databaseId: true, name: true, schemaName: true, label: true, description: true, smartTags: true, category: true, module: true, scope: true, tags: true, isPublic: true, createdAt: true, updatedAt: true } }, }); // Create a schema const { mutate: create } = useCreateSchemaMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', name: '', schemaName: '', label: '', description: '', smartTags: '', category: '', module: '', scope: '', tags: '', isPublic: '', nameTrgmSimilarity: '', schemaNameTrgmSimilarity: '', labelTrgmSimilarity: '', descriptionTrgmSimilarity: '', moduleTrgmSimilarity: '', searchScore: '' }); +create({ databaseId: '', name: '', schemaName: '', label: '', description: '', smartTags: '', category: '', module: '', scope: '', tags: '', isPublic: '' }); ``` ### Table @@ -818,20 +843,20 @@ create({ databaseId: '', name: '', schemaName: '', label: ' ```typescript // List all tables const { data, isLoading } = useTablesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, smartTags: true, category: true, module: true, scope: true, useRls: true, timestamps: true, peoplestamps: true, pluralName: true, singularName: true, tags: true, inheritsId: true, createdAt: true, updatedAt: true, nameTrgmSimilarity: true, labelTrgmSimilarity: true, descriptionTrgmSimilarity: true, moduleTrgmSimilarity: true, pluralNameTrgmSimilarity: true, singularNameTrgmSimilarity: true, searchScore: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, smartTags: true, category: true, module: true, scope: true, useRls: true, timestamps: true, peoplestamps: true, pluralName: true, singularName: true, tags: true, inheritsId: true, createdAt: true, updatedAt: true } }, }); // Get one table const { data: item } = useTableQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, smartTags: true, category: true, module: true, scope: true, useRls: true, timestamps: true, peoplestamps: true, pluralName: true, singularName: true, tags: true, inheritsId: true, createdAt: true, updatedAt: true, nameTrgmSimilarity: true, labelTrgmSimilarity: true, descriptionTrgmSimilarity: true, moduleTrgmSimilarity: true, pluralNameTrgmSimilarity: true, singularNameTrgmSimilarity: true, searchScore: true } }, + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, smartTags: true, category: true, module: true, scope: true, useRls: true, timestamps: true, peoplestamps: true, pluralName: true, singularName: true, tags: true, inheritsId: true, createdAt: true, updatedAt: true } }, }); // Create a table const { mutate: create } = useCreateTableMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', schemaId: '', name: '', label: '', description: '', smartTags: '', category: '', module: '', scope: '', useRls: '', timestamps: '', peoplestamps: '', pluralName: '', singularName: '', tags: '', inheritsId: '', nameTrgmSimilarity: '', labelTrgmSimilarity: '', descriptionTrgmSimilarity: '', moduleTrgmSimilarity: '', pluralNameTrgmSimilarity: '', singularNameTrgmSimilarity: '', searchScore: '' }); +create({ databaseId: '', schemaId: '', name: '', label: '', description: '', smartTags: '', category: '', module: '', scope: '', useRls: '', timestamps: '', peoplestamps: '', pluralName: '', singularName: '', tags: '', inheritsId: '' }); ``` ### CheckConstraint @@ -839,20 +864,20 @@ create({ databaseId: '', schemaId: '', name: '', label: '', - selection: { fields: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, expr: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true, nameTrgmSimilarity: true, typeTrgmSimilarity: true, moduleTrgmSimilarity: true, searchScore: true } }, + id: '', + selection: { fields: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, expr: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, }); // Create a checkConstraint const { mutate: create } = useCreateCheckConstraintMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', tableId: '', name: '', type: '', fieldIds: '', expr: '', smartTags: '', category: '', module: '', scope: '', tags: '', nameTrgmSimilarity: '', typeTrgmSimilarity: '', moduleTrgmSimilarity: '', searchScore: '' }); +create({ databaseId: '', tableId: '', name: '', type: '', fieldIds: '', expr: '', smartTags: '', category: '', module: '', scope: '', tags: '' }); ``` ### Field @@ -860,20 +885,20 @@ create({ databaseId: '', tableId: '', name: '', type: '', - selection: { fields: { id: true, databaseId: true, tableId: true, name: true, label: true, description: true, smartTags: true, isRequired: true, defaultValue: true, defaultValueAst: true, isHidden: true, type: true, fieldOrder: true, regexp: true, chk: true, chkExpr: true, min: true, max: true, tags: true, category: true, module: true, scope: true, createdAt: true, updatedAt: true, nameTrgmSimilarity: true, labelTrgmSimilarity: true, descriptionTrgmSimilarity: true, defaultValueTrgmSimilarity: true, regexpTrgmSimilarity: true, moduleTrgmSimilarity: true, searchScore: true } }, + id: '', + selection: { fields: { id: true, databaseId: true, tableId: true, name: true, label: true, description: true, smartTags: true, isRequired: true, apiRequired: true, defaultValue: true, defaultValueAst: true, isHidden: true, type: true, fieldOrder: true, regexp: true, chk: true, chkExpr: true, min: true, max: true, tags: true, category: true, module: true, scope: true, createdAt: true, updatedAt: true } }, }); // Create a field const { mutate: create } = useCreateFieldMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', tableId: '', name: '', label: '', description: '', smartTags: '', isRequired: '', defaultValue: '', defaultValueAst: '', isHidden: '', type: '', fieldOrder: '', regexp: '', chk: '', chkExpr: '', min: '', max: '', tags: '', category: '', module: '', scope: '', nameTrgmSimilarity: '', labelTrgmSimilarity: '', descriptionTrgmSimilarity: '', defaultValueTrgmSimilarity: '', regexpTrgmSimilarity: '', moduleTrgmSimilarity: '', searchScore: '' }); +create({ databaseId: '', tableId: '', name: '', label: '', description: '', smartTags: '', isRequired: '', apiRequired: '', defaultValue: '', defaultValueAst: '', isHidden: '', type: '', fieldOrder: '', regexp: '', chk: '', chkExpr: '', min: '', max: '', tags: '', category: '', module: '', scope: '' }); ``` ### ForeignKeyConstraint @@ -881,20 +906,20 @@ create({ databaseId: '', tableId: '', name: '', label: '', - selection: { fields: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, refTableId: true, refFieldIds: true, deleteAction: true, updateAction: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true, nameTrgmSimilarity: true, descriptionTrgmSimilarity: true, typeTrgmSimilarity: true, deleteActionTrgmSimilarity: true, updateActionTrgmSimilarity: true, moduleTrgmSimilarity: true, searchScore: true } }, + id: '', + selection: { fields: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, refTableId: true, refFieldIds: true, deleteAction: true, updateAction: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, }); // Create a foreignKeyConstraint const { mutate: create } = useCreateForeignKeyConstraintMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', tableId: '', name: '', description: '', smartTags: '', type: '', fieldIds: '', refTableId: '', refFieldIds: '', deleteAction: '', updateAction: '', category: '', module: '', scope: '', tags: '', nameTrgmSimilarity: '', descriptionTrgmSimilarity: '', typeTrgmSimilarity: '', deleteActionTrgmSimilarity: '', updateActionTrgmSimilarity: '', moduleTrgmSimilarity: '', searchScore: '' }); +create({ databaseId: '', tableId: '', name: '', description: '', smartTags: '', type: '', fieldIds: '', refTableId: '', refFieldIds: '', deleteAction: '', updateAction: '', category: '', module: '', scope: '', tags: '' }); ``` ### FullTextSearch @@ -907,7 +932,7 @@ const { data, isLoading } = useFullTextSearchesQuery({ // Get one fullTextSearch const { data: item } = useFullTextSearchQuery({ - id: '', + id: '', selection: { fields: { id: true, databaseId: true, tableId: true, fieldId: true, fieldIds: true, weights: true, langs: true, createdAt: true, updatedAt: true } }, }); @@ -915,7 +940,7 @@ const { data: item } = useFullTextSearchQuery({ const { mutate: create } = useCreateFullTextSearchMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', tableId: '', fieldId: '', fieldIds: '', weights: '', langs: '' }); +create({ databaseId: '', tableId: '', fieldId: '', fieldIds: '', weights: '', langs: '' }); ``` ### Index @@ -923,20 +948,20 @@ create({ databaseId: '', tableId: '', fieldId: '', fieldIds ```typescript // List all indices const { data, isLoading } = useIndicesQuery({ - selection: { fields: { id: true, databaseId: true, tableId: true, name: true, fieldIds: true, includeFieldIds: true, accessMethod: true, indexParams: true, whereClause: true, isUnique: true, options: true, opClasses: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true, nameTrgmSimilarity: true, accessMethodTrgmSimilarity: true, moduleTrgmSimilarity: true, searchScore: true } }, + selection: { fields: { id: true, databaseId: true, tableId: true, name: true, fieldIds: true, includeFieldIds: true, accessMethod: true, indexParams: true, whereClause: true, isUnique: true, options: true, opClasses: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, }); // Get one index const { data: item } = useIndexQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, tableId: true, name: true, fieldIds: true, includeFieldIds: true, accessMethod: true, indexParams: true, whereClause: true, isUnique: true, options: true, opClasses: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true, nameTrgmSimilarity: true, accessMethodTrgmSimilarity: true, moduleTrgmSimilarity: true, searchScore: true } }, + id: '', + selection: { fields: { id: true, databaseId: true, tableId: true, name: true, fieldIds: true, includeFieldIds: true, accessMethod: true, indexParams: true, whereClause: true, isUnique: true, options: true, opClasses: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, }); // Create a index const { mutate: create } = useCreateIndexMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', tableId: '', name: '', fieldIds: '', includeFieldIds: '', accessMethod: '', indexParams: '', whereClause: '', isUnique: '', options: '', opClasses: '', smartTags: '', category: '', module: '', scope: '', tags: '', nameTrgmSimilarity: '', accessMethodTrgmSimilarity: '', moduleTrgmSimilarity: '', searchScore: '' }); +create({ databaseId: '', tableId: '', name: '', fieldIds: '', includeFieldIds: '', accessMethod: '', indexParams: '', whereClause: '', isUnique: '', options: '', opClasses: '', smartTags: '', category: '', module: '', scope: '', tags: '' }); ``` ### Policy @@ -944,20 +969,20 @@ create({ databaseId: '', tableId: '', name: '', fieldIds: ' ```typescript // List all policies const { data, isLoading } = usePoliciesQuery({ - selection: { fields: { id: true, databaseId: true, tableId: true, name: true, granteeName: true, privilege: true, permissive: true, disabled: true, policyType: true, data: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true, nameTrgmSimilarity: true, granteeNameTrgmSimilarity: true, privilegeTrgmSimilarity: true, policyTypeTrgmSimilarity: true, moduleTrgmSimilarity: true, searchScore: true } }, + selection: { fields: { id: true, databaseId: true, tableId: true, name: true, granteeName: true, privilege: true, permissive: true, disabled: true, policyType: true, data: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, }); // Get one policy const { data: item } = usePolicyQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, tableId: true, name: true, granteeName: true, privilege: true, permissive: true, disabled: true, policyType: true, data: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true, nameTrgmSimilarity: true, granteeNameTrgmSimilarity: true, privilegeTrgmSimilarity: true, policyTypeTrgmSimilarity: true, moduleTrgmSimilarity: true, searchScore: true } }, + id: '', + selection: { fields: { id: true, databaseId: true, tableId: true, name: true, granteeName: true, privilege: true, permissive: true, disabled: true, policyType: true, data: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, }); // Create a policy const { mutate: create } = useCreatePolicyMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', tableId: '', name: '', granteeName: '', privilege: '', permissive: '', disabled: '', policyType: '', data: '', smartTags: '', category: '', module: '', scope: '', tags: '', nameTrgmSimilarity: '', granteeNameTrgmSimilarity: '', privilegeTrgmSimilarity: '', policyTypeTrgmSimilarity: '', moduleTrgmSimilarity: '', searchScore: '' }); +create({ databaseId: '', tableId: '', name: '', granteeName: '', privilege: '', permissive: '', disabled: '', policyType: '', data: '', smartTags: '', category: '', module: '', scope: '', tags: '' }); ``` ### PrimaryKeyConstraint @@ -965,20 +990,20 @@ create({ databaseId: '', tableId: '', name: '', granteeName ```typescript // List all primaryKeyConstraints const { data, isLoading } = usePrimaryKeyConstraintsQuery({ - selection: { fields: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true, nameTrgmSimilarity: true, typeTrgmSimilarity: true, moduleTrgmSimilarity: true, searchScore: true } }, + selection: { fields: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, }); // Get one primaryKeyConstraint const { data: item } = usePrimaryKeyConstraintQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true, nameTrgmSimilarity: true, typeTrgmSimilarity: true, moduleTrgmSimilarity: true, searchScore: true } }, + id: '', + selection: { fields: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, }); // Create a primaryKeyConstraint const { mutate: create } = useCreatePrimaryKeyConstraintMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', tableId: '', name: '', type: '', fieldIds: '', smartTags: '', category: '', module: '', scope: '', tags: '', nameTrgmSimilarity: '', typeTrgmSimilarity: '', moduleTrgmSimilarity: '', searchScore: '' }); +create({ databaseId: '', tableId: '', name: '', type: '', fieldIds: '', smartTags: '', category: '', module: '', scope: '', tags: '' }); ``` ### TableGrant @@ -986,20 +1011,20 @@ create({ databaseId: '', tableId: '', name: '', type: '', - selection: { fields: { id: true, databaseId: true, tableId: true, privilege: true, granteeName: true, fieldIds: true, isGrant: true, createdAt: true, updatedAt: true, privilegeTrgmSimilarity: true, granteeNameTrgmSimilarity: true, searchScore: true } }, + id: '', + selection: { fields: { id: true, databaseId: true, tableId: true, privilege: true, granteeName: true, fieldIds: true, isGrant: true, createdAt: true, updatedAt: true } }, }); // Create a tableGrant const { mutate: create } = useCreateTableGrantMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', tableId: '', privilege: '', granteeName: '', fieldIds: '', isGrant: '', privilegeTrgmSimilarity: '', granteeNameTrgmSimilarity: '', searchScore: '' }); +create({ databaseId: '', tableId: '', privilege: '', granteeName: '', fieldIds: '', isGrant: '' }); ``` ### Trigger @@ -1007,20 +1032,20 @@ create({ databaseId: '', tableId: '', privilege: '', grante ```typescript // List all triggers const { data, isLoading } = useTriggersQuery({ - selection: { fields: { id: true, databaseId: true, tableId: true, name: true, event: true, functionName: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true, nameTrgmSimilarity: true, eventTrgmSimilarity: true, functionNameTrgmSimilarity: true, moduleTrgmSimilarity: true, searchScore: true } }, + selection: { fields: { id: true, databaseId: true, tableId: true, name: true, event: true, functionName: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, }); // Get one trigger const { data: item } = useTriggerQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, tableId: true, name: true, event: true, functionName: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true, nameTrgmSimilarity: true, eventTrgmSimilarity: true, functionNameTrgmSimilarity: true, moduleTrgmSimilarity: true, searchScore: true } }, + id: '', + selection: { fields: { id: true, databaseId: true, tableId: true, name: true, event: true, functionName: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, }); // Create a trigger const { mutate: create } = useCreateTriggerMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', tableId: '', name: '', event: '', functionName: '', smartTags: '', category: '', module: '', scope: '', tags: '', nameTrgmSimilarity: '', eventTrgmSimilarity: '', functionNameTrgmSimilarity: '', moduleTrgmSimilarity: '', searchScore: '' }); +create({ databaseId: '', tableId: '', name: '', event: '', functionName: '', smartTags: '', category: '', module: '', scope: '', tags: '' }); ``` ### UniqueConstraint @@ -1028,20 +1053,20 @@ create({ databaseId: '', tableId: '', name: '', event: '', - selection: { fields: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true, nameTrgmSimilarity: true, descriptionTrgmSimilarity: true, typeTrgmSimilarity: true, moduleTrgmSimilarity: true, searchScore: true } }, + id: '', + selection: { fields: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, }); // Create a uniqueConstraint const { mutate: create } = useCreateUniqueConstraintMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', tableId: '', name: '', description: '', smartTags: '', type: '', fieldIds: '', category: '', module: '', scope: '', tags: '', nameTrgmSimilarity: '', descriptionTrgmSimilarity: '', typeTrgmSimilarity: '', moduleTrgmSimilarity: '', searchScore: '' }); +create({ databaseId: '', tableId: '', name: '', description: '', smartTags: '', type: '', fieldIds: '', category: '', module: '', scope: '', tags: '' }); ``` ### View @@ -1049,20 +1074,20 @@ create({ databaseId: '', tableId: '', name: '', description ```typescript // List all views const { data, isLoading } = useViewsQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, name: true, tableId: true, viewType: true, data: true, filterType: true, filterData: true, securityInvoker: true, isReadOnly: true, smartTags: true, category: true, module: true, scope: true, tags: true, nameTrgmSimilarity: true, viewTypeTrgmSimilarity: true, filterTypeTrgmSimilarity: true, moduleTrgmSimilarity: true, searchScore: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, name: true, tableId: true, viewType: true, data: true, filterType: true, filterData: true, securityInvoker: true, isReadOnly: true, smartTags: true, category: true, module: true, scope: true, tags: true } }, }); // Get one view const { data: item } = useViewQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, name: true, tableId: true, viewType: true, data: true, filterType: true, filterData: true, securityInvoker: true, isReadOnly: true, smartTags: true, category: true, module: true, scope: true, tags: true, nameTrgmSimilarity: true, viewTypeTrgmSimilarity: true, filterTypeTrgmSimilarity: true, moduleTrgmSimilarity: true, searchScore: true } }, + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, name: true, tableId: true, viewType: true, data: true, filterType: true, filterData: true, securityInvoker: true, isReadOnly: true, smartTags: true, category: true, module: true, scope: true, tags: true } }, }); // Create a view const { mutate: create } = useCreateViewMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', schemaId: '', name: '', tableId: '', viewType: '', data: '', filterType: '', filterData: '', securityInvoker: '', isReadOnly: '', smartTags: '', category: '', module: '', scope: '', tags: '', nameTrgmSimilarity: '', viewTypeTrgmSimilarity: '', filterTypeTrgmSimilarity: '', moduleTrgmSimilarity: '', searchScore: '' }); +create({ databaseId: '', schemaId: '', name: '', tableId: '', viewType: '', data: '', filterType: '', filterData: '', securityInvoker: '', isReadOnly: '', smartTags: '', category: '', module: '', scope: '', tags: '' }); ``` ### ViewTable @@ -1075,7 +1100,7 @@ const { data, isLoading } = useViewTablesQuery({ // Get one viewTable const { data: item } = useViewTableQuery({ - id: '', + id: '', selection: { fields: { id: true, viewId: true, tableId: true, joinOrder: true } }, }); @@ -1083,7 +1108,7 @@ const { data: item } = useViewTableQuery({ const { mutate: create } = useCreateViewTableMutation({ selection: { fields: { id: true } }, }); -create({ viewId: '', tableId: '', joinOrder: '' }); +create({ viewId: '', tableId: '', joinOrder: '' }); ``` ### ViewGrant @@ -1091,20 +1116,20 @@ create({ viewId: '', tableId: '', joinOrder: '' }); ```typescript // List all viewGrants const { data, isLoading } = useViewGrantsQuery({ - selection: { fields: { id: true, databaseId: true, viewId: true, granteeName: true, privilege: true, withGrantOption: true, isGrant: true, granteeNameTrgmSimilarity: true, privilegeTrgmSimilarity: true, searchScore: true } }, + selection: { fields: { id: true, databaseId: true, viewId: true, granteeName: true, privilege: true, withGrantOption: true, isGrant: true } }, }); // Get one viewGrant const { data: item } = useViewGrantQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, viewId: true, granteeName: true, privilege: true, withGrantOption: true, isGrant: true, granteeNameTrgmSimilarity: true, privilegeTrgmSimilarity: true, searchScore: true } }, + id: '', + selection: { fields: { id: true, databaseId: true, viewId: true, granteeName: true, privilege: true, withGrantOption: true, isGrant: true } }, }); // Create a viewGrant const { mutate: create } = useCreateViewGrantMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', viewId: '', granteeName: '', privilege: '', withGrantOption: '', isGrant: '', granteeNameTrgmSimilarity: '', privilegeTrgmSimilarity: '', searchScore: '' }); +create({ databaseId: '', viewId: '', granteeName: '', privilege: '', withGrantOption: '', isGrant: '' }); ``` ### ViewRule @@ -1112,20 +1137,41 @@ create({ databaseId: '', viewId: '', granteeName: '', privi ```typescript // List all viewRules const { data, isLoading } = useViewRulesQuery({ - selection: { fields: { id: true, databaseId: true, viewId: true, name: true, event: true, action: true, nameTrgmSimilarity: true, eventTrgmSimilarity: true, actionTrgmSimilarity: true, searchScore: true } }, + selection: { fields: { id: true, databaseId: true, viewId: true, name: true, event: true, action: true } }, }); // Get one viewRule const { data: item } = useViewRuleQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, viewId: true, name: true, event: true, action: true, nameTrgmSimilarity: true, eventTrgmSimilarity: true, actionTrgmSimilarity: true, searchScore: true } }, + id: '', + selection: { fields: { id: true, databaseId: true, viewId: true, name: true, event: true, action: true } }, }); // Create a viewRule const { mutate: create } = useCreateViewRuleMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', viewId: '', name: '', event: '', action: '', nameTrgmSimilarity: '', eventTrgmSimilarity: '', actionTrgmSimilarity: '', searchScore: '' }); +create({ databaseId: '', viewId: '', name: '', event: '', action: '' }); +``` + +### EmbeddingChunk + +```typescript +// List all embeddingChunks +const { data, isLoading } = useEmbeddingChunksQuery({ + selection: { fields: { id: true, databaseId: true, tableId: true, embeddingFieldId: true, chunksTableId: true, chunksTableName: true, contentFieldName: true, dimensions: true, metric: true, chunkSize: true, chunkOverlap: true, chunkStrategy: true, metadataFields: true, enqueueChunkingJob: true, chunkingTaskName: true, parentFkFieldId: true, createdAt: true, updatedAt: true } }, +}); + +// Get one embeddingChunk +const { data: item } = useEmbeddingChunkQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, tableId: true, embeddingFieldId: true, chunksTableId: true, chunksTableName: true, contentFieldName: true, dimensions: true, metric: true, chunkSize: true, chunkOverlap: true, chunkStrategy: true, metadataFields: true, enqueueChunkingJob: true, chunkingTaskName: true, parentFkFieldId: true, createdAt: true, updatedAt: true } }, +}); + +// Create a embeddingChunk +const { mutate: create } = useCreateEmbeddingChunkMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', tableId: '', embeddingFieldId: '', chunksTableId: '', chunksTableName: '', contentFieldName: '', dimensions: '', metric: '', chunkSize: '', chunkOverlap: '', chunkStrategy: '', metadataFields: '', enqueueChunkingJob: '', chunkingTaskName: '', parentFkFieldId: '' }); ``` ### TableTemplateModule @@ -1133,20 +1179,20 @@ create({ databaseId: '', viewId: '', name: '', event: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, nodeType: true, data: true, tableNameTrgmSimilarity: true, nodeTypeTrgmSimilarity: true, searchScore: true } }, + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, nodeType: true, data: true } }, }); // Create a tableTemplateModule const { mutate: create } = useCreateTableTemplateModuleMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '', nodeType: '', data: '', tableNameTrgmSimilarity: '', nodeTypeTrgmSimilarity: '', searchScore: '' }); +create({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '', nodeType: '', data: '' }); ``` ### SecureTableProvision @@ -1154,20 +1200,20 @@ create({ databaseId: '', schemaId: '', privateSchemaId: '', ```typescript // List all secureTableProvisions const { data, isLoading } = useSecureTableProvisionsQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, nodeType: true, useRls: true, nodeData: true, fields: true, grantRoles: true, grantPrivileges: true, policyType: true, policyPrivileges: true, policyRole: true, policyPermissive: true, policyName: true, policyData: true, outFields: true, tableNameTrgmSimilarity: true, nodeTypeTrgmSimilarity: true, policyTypeTrgmSimilarity: true, policyRoleTrgmSimilarity: true, policyNameTrgmSimilarity: true, searchScore: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, nodeType: true, useRls: true, nodeData: true, fields: true, grantRoles: true, grantPrivileges: true, policyType: true, policyPrivileges: true, policyRole: true, policyPermissive: true, policyName: true, policyData: true, outFields: true } }, }); // Get one secureTableProvision const { data: item } = useSecureTableProvisionQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, nodeType: true, useRls: true, nodeData: true, fields: true, grantRoles: true, grantPrivileges: true, policyType: true, policyPrivileges: true, policyRole: true, policyPermissive: true, policyName: true, policyData: true, outFields: true, tableNameTrgmSimilarity: true, nodeTypeTrgmSimilarity: true, policyTypeTrgmSimilarity: true, policyRoleTrgmSimilarity: true, policyNameTrgmSimilarity: true, searchScore: true } }, + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, nodeType: true, useRls: true, nodeData: true, fields: true, grantRoles: true, grantPrivileges: true, policyType: true, policyPrivileges: true, policyRole: true, policyPermissive: true, policyName: true, policyData: true, outFields: true } }, }); // Create a secureTableProvision const { mutate: create } = useCreateSecureTableProvisionMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', schemaId: '', tableId: '', tableName: '', nodeType: '', useRls: '', nodeData: '', fields: '', grantRoles: '', grantPrivileges: '', policyType: '', policyPrivileges: '', policyRole: '', policyPermissive: '', policyName: '', policyData: '', outFields: '', tableNameTrgmSimilarity: '', nodeTypeTrgmSimilarity: '', policyTypeTrgmSimilarity: '', policyRoleTrgmSimilarity: '', policyNameTrgmSimilarity: '', searchScore: '' }); +create({ databaseId: '', schemaId: '', tableId: '', tableName: '', nodeType: '', useRls: '', nodeData: '', fields: '', grantRoles: '', grantPrivileges: '', policyType: '', policyPrivileges: '', policyRole: '', policyPermissive: '', policyName: '', policyData: '', outFields: '' }); ``` ### RelationProvision @@ -1175,20 +1221,20 @@ create({ databaseId: '', schemaId: '', tableId: '', tableNa ```typescript // List all relationProvisions const { data, isLoading } = useRelationProvisionsQuery({ - selection: { fields: { id: true, databaseId: true, relationType: true, sourceTableId: true, targetTableId: true, fieldName: true, deleteAction: true, isRequired: true, junctionTableId: true, junctionTableName: true, junctionSchemaId: true, sourceFieldName: true, targetFieldName: true, useCompositeKey: true, nodeType: true, nodeData: true, grantRoles: true, grantPrivileges: true, policyType: true, policyPrivileges: true, policyRole: true, policyPermissive: true, policyName: true, policyData: true, outFieldId: true, outJunctionTableId: true, outSourceFieldId: true, outTargetFieldId: true, relationTypeTrgmSimilarity: true, fieldNameTrgmSimilarity: true, deleteActionTrgmSimilarity: true, junctionTableNameTrgmSimilarity: true, sourceFieldNameTrgmSimilarity: true, targetFieldNameTrgmSimilarity: true, nodeTypeTrgmSimilarity: true, policyTypeTrgmSimilarity: true, policyRoleTrgmSimilarity: true, policyNameTrgmSimilarity: true, searchScore: true } }, + selection: { fields: { id: true, databaseId: true, relationType: true, sourceTableId: true, targetTableId: true, fieldName: true, deleteAction: true, isRequired: true, apiRequired: true, junctionTableId: true, junctionTableName: true, junctionSchemaId: true, sourceFieldName: true, targetFieldName: true, useCompositeKey: true, createIndex: true, exposeInApi: true, nodeType: true, nodeData: true, grantRoles: true, grantPrivileges: true, policyType: true, policyPrivileges: true, policyRole: true, policyPermissive: true, policyName: true, policyData: true, outFieldId: true, outJunctionTableId: true, outSourceFieldId: true, outTargetFieldId: true } }, }); // Get one relationProvision const { data: item } = useRelationProvisionQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, relationType: true, sourceTableId: true, targetTableId: true, fieldName: true, deleteAction: true, isRequired: true, junctionTableId: true, junctionTableName: true, junctionSchemaId: true, sourceFieldName: true, targetFieldName: true, useCompositeKey: true, nodeType: true, nodeData: true, grantRoles: true, grantPrivileges: true, policyType: true, policyPrivileges: true, policyRole: true, policyPermissive: true, policyName: true, policyData: true, outFieldId: true, outJunctionTableId: true, outSourceFieldId: true, outTargetFieldId: true, relationTypeTrgmSimilarity: true, fieldNameTrgmSimilarity: true, deleteActionTrgmSimilarity: true, junctionTableNameTrgmSimilarity: true, sourceFieldNameTrgmSimilarity: true, targetFieldNameTrgmSimilarity: true, nodeTypeTrgmSimilarity: true, policyTypeTrgmSimilarity: true, policyRoleTrgmSimilarity: true, policyNameTrgmSimilarity: true, searchScore: true } }, + id: '', + selection: { fields: { id: true, databaseId: true, relationType: true, sourceTableId: true, targetTableId: true, fieldName: true, deleteAction: true, isRequired: true, apiRequired: true, junctionTableId: true, junctionTableName: true, junctionSchemaId: true, sourceFieldName: true, targetFieldName: true, useCompositeKey: true, createIndex: true, exposeInApi: true, nodeType: true, nodeData: true, grantRoles: true, grantPrivileges: true, policyType: true, policyPrivileges: true, policyRole: true, policyPermissive: true, policyName: true, policyData: true, outFieldId: true, outJunctionTableId: true, outSourceFieldId: true, outTargetFieldId: true } }, }); // Create a relationProvision const { mutate: create } = useCreateRelationProvisionMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', relationType: '', sourceTableId: '', targetTableId: '', fieldName: '', deleteAction: '', isRequired: '', junctionTableId: '', junctionTableName: '', junctionSchemaId: '', sourceFieldName: '', targetFieldName: '', useCompositeKey: '', nodeType: '', nodeData: '', grantRoles: '', grantPrivileges: '', policyType: '', policyPrivileges: '', policyRole: '', policyPermissive: '', policyName: '', policyData: '', outFieldId: '', outJunctionTableId: '', outSourceFieldId: '', outTargetFieldId: '', relationTypeTrgmSimilarity: '', fieldNameTrgmSimilarity: '', deleteActionTrgmSimilarity: '', junctionTableNameTrgmSimilarity: '', sourceFieldNameTrgmSimilarity: '', targetFieldNameTrgmSimilarity: '', nodeTypeTrgmSimilarity: '', policyTypeTrgmSimilarity: '', policyRoleTrgmSimilarity: '', policyNameTrgmSimilarity: '', searchScore: '' }); +create({ databaseId: '', relationType: '', sourceTableId: '', targetTableId: '', fieldName: '', deleteAction: '', isRequired: '', apiRequired: '', junctionTableId: '', junctionTableName: '', junctionSchemaId: '', sourceFieldName: '', targetFieldName: '', useCompositeKey: '', createIndex: '', exposeInApi: '', nodeType: '', nodeData: '', grantRoles: '', grantPrivileges: '', policyType: '', policyPrivileges: '', policyRole: '', policyPermissive: '', policyName: '', policyData: '', outFieldId: '', outJunctionTableId: '', outSourceFieldId: '', outTargetFieldId: '' }); ``` ### SchemaGrant @@ -1196,20 +1242,20 @@ create({ databaseId: '', relationType: '', sourceTableId: ' ```typescript // List all schemaGrants const { data, isLoading } = useSchemaGrantsQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, granteeName: true, createdAt: true, updatedAt: true, granteeNameTrgmSimilarity: true, searchScore: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, granteeName: true, createdAt: true, updatedAt: true } }, }); // Get one schemaGrant const { data: item } = useSchemaGrantQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, granteeName: true, createdAt: true, updatedAt: true, granteeNameTrgmSimilarity: true, searchScore: true } }, + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, granteeName: true, createdAt: true, updatedAt: true } }, }); // Create a schemaGrant const { mutate: create } = useCreateSchemaGrantMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', schemaId: '', granteeName: '', granteeNameTrgmSimilarity: '', searchScore: '' }); +create({ databaseId: '', schemaId: '', granteeName: '' }); ``` ### DefaultPrivilege @@ -1217,20 +1263,41 @@ create({ databaseId: '', schemaId: '', granteeName: '', gra ```typescript // List all defaultPrivileges const { data, isLoading } = useDefaultPrivilegesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, objectType: true, privilege: true, granteeName: true, isGrant: true, objectTypeTrgmSimilarity: true, privilegeTrgmSimilarity: true, granteeNameTrgmSimilarity: true, searchScore: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, objectType: true, privilege: true, granteeName: true, isGrant: true } }, }); // Get one defaultPrivilege const { data: item } = useDefaultPrivilegeQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, objectType: true, privilege: true, granteeName: true, isGrant: true, objectTypeTrgmSimilarity: true, privilegeTrgmSimilarity: true, granteeNameTrgmSimilarity: true, searchScore: true } }, + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, objectType: true, privilege: true, granteeName: true, isGrant: true } }, }); // Create a defaultPrivilege const { mutate: create } = useCreateDefaultPrivilegeMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', schemaId: '', objectType: '', privilege: '', granteeName: '', isGrant: '', objectTypeTrgmSimilarity: '', privilegeTrgmSimilarity: '', granteeNameTrgmSimilarity: '', searchScore: '' }); +create({ databaseId: '', schemaId: '', objectType: '', privilege: '', granteeName: '', isGrant: '' }); +``` + +### Enum + +```typescript +// List all enums +const { data, isLoading } = useEnumsQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, values: true, smartTags: true, category: true, module: true, scope: true, tags: true } }, +}); + +// Get one enum +const { data: item } = useEnumQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, values: true, smartTags: true, category: true, module: true, scope: true, tags: true } }, +}); + +// Create a enum +const { mutate: create } = useCreateEnumMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', schemaId: '', name: '', label: '', description: '', values: '', smartTags: '', category: '', module: '', scope: '', tags: '' }); ``` ### ApiSchema @@ -1243,7 +1310,7 @@ const { data, isLoading } = useApiSchemasQuery({ // Get one apiSchema const { data: item } = useApiSchemaQuery({ - id: '', + id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, apiId: true } }, }); @@ -1251,7 +1318,7 @@ const { data: item } = useApiSchemaQuery({ const { mutate: create } = useCreateApiSchemaMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', schemaId: '', apiId: '' }); +create({ databaseId: '', schemaId: '', apiId: '' }); ``` ### ApiModule @@ -1259,20 +1326,20 @@ create({ databaseId: '', schemaId: '', apiId: '' }); ```typescript // List all apiModules const { data, isLoading } = useApiModulesQuery({ - selection: { fields: { id: true, databaseId: true, apiId: true, name: true, data: true, nameTrgmSimilarity: true, searchScore: true } }, + selection: { fields: { id: true, databaseId: true, apiId: true, name: true, data: true } }, }); // Get one apiModule const { data: item } = useApiModuleQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, apiId: true, name: true, data: true, nameTrgmSimilarity: true, searchScore: true } }, + id: '', + selection: { fields: { id: true, databaseId: true, apiId: true, name: true, data: true } }, }); // Create a apiModule const { mutate: create } = useCreateApiModuleMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', apiId: '', name: '', data: '', nameTrgmSimilarity: '', searchScore: '' }); +create({ databaseId: '', apiId: '', name: '', data: '' }); ``` ### Domain @@ -1285,7 +1352,7 @@ const { data, isLoading } = useDomainsQuery({ // Get one domain const { data: item } = useDomainQuery({ - id: '', + id: '', selection: { fields: { id: true, databaseId: true, apiId: true, siteId: true, subdomain: true, domain: true } }, }); @@ -1293,7 +1360,7 @@ const { data: item } = useDomainQuery({ const { mutate: create } = useCreateDomainMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', apiId: '', siteId: '', subdomain: '', domain: '' }); +create({ databaseId: '', apiId: '', siteId: '', subdomain: '', domain: '' }); ``` ### SiteMetadatum @@ -1301,20 +1368,20 @@ create({ databaseId: '', apiId: '', siteId: '', subdomain: ```typescript // List all siteMetadata const { data, isLoading } = useSiteMetadataQuery({ - selection: { fields: { id: true, databaseId: true, siteId: true, title: true, description: true, ogImage: true, titleTrgmSimilarity: true, descriptionTrgmSimilarity: true, searchScore: true } }, + selection: { fields: { id: true, databaseId: true, siteId: true, title: true, description: true, ogImage: true } }, }); // Get one siteMetadatum const { data: item } = useSiteMetadatumQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, siteId: true, title: true, description: true, ogImage: true, titleTrgmSimilarity: true, descriptionTrgmSimilarity: true, searchScore: true } }, + id: '', + selection: { fields: { id: true, databaseId: true, siteId: true, title: true, description: true, ogImage: true } }, }); // Create a siteMetadatum const { mutate: create } = useCreateSiteMetadatumMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', siteId: '', title: '', description: '', ogImage: '', titleTrgmSimilarity: '', descriptionTrgmSimilarity: '', searchScore: '' }); +create({ databaseId: '', siteId: '', title: '', description: '', ogImage: '' }); ``` ### SiteModule @@ -1322,20 +1389,20 @@ create({ databaseId: '', siteId: '', title: '', description ```typescript // List all siteModules const { data, isLoading } = useSiteModulesQuery({ - selection: { fields: { id: true, databaseId: true, siteId: true, name: true, data: true, nameTrgmSimilarity: true, searchScore: true } }, + selection: { fields: { id: true, databaseId: true, siteId: true, name: true, data: true } }, }); // Get one siteModule const { data: item } = useSiteModuleQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, siteId: true, name: true, data: true, nameTrgmSimilarity: true, searchScore: true } }, + id: '', + selection: { fields: { id: true, databaseId: true, siteId: true, name: true, data: true } }, }); // Create a siteModule const { mutate: create } = useCreateSiteModuleMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', siteId: '', name: '', data: '', nameTrgmSimilarity: '', searchScore: '' }); +create({ databaseId: '', siteId: '', name: '', data: '' }); ``` ### SiteTheme @@ -1348,7 +1415,7 @@ const { data, isLoading } = useSiteThemesQuery({ // Get one siteTheme const { data: item } = useSiteThemeQuery({ - id: '', + id: '', selection: { fields: { id: true, databaseId: true, siteId: true, theme: true } }, }); @@ -1356,7 +1423,7 @@ const { data: item } = useSiteThemeQuery({ const { mutate: create } = useCreateSiteThemeMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', siteId: '', theme: '' }); +create({ databaseId: '', siteId: '', theme: '' }); ``` ### TriggerFunction @@ -1364,20 +1431,41 @@ create({ databaseId: '', siteId: '', theme: '' }); ```typescript // List all triggerFunctions const { data, isLoading } = useTriggerFunctionsQuery({ - selection: { fields: { id: true, databaseId: true, name: true, code: true, createdAt: true, updatedAt: true, nameTrgmSimilarity: true, codeTrgmSimilarity: true, searchScore: true } }, + selection: { fields: { id: true, databaseId: true, name: true, code: true, createdAt: true, updatedAt: true } }, }); // Get one triggerFunction const { data: item } = useTriggerFunctionQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, name: true, code: true, createdAt: true, updatedAt: true, nameTrgmSimilarity: true, codeTrgmSimilarity: true, searchScore: true } }, + id: '', + selection: { fields: { id: true, databaseId: true, name: true, code: true, createdAt: true, updatedAt: true } }, }); // Create a triggerFunction const { mutate: create } = useCreateTriggerFunctionMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', name: '', code: '', nameTrgmSimilarity: '', codeTrgmSimilarity: '', searchScore: '' }); +create({ databaseId: '', name: '', code: '' }); +``` + +### DatabaseTransfer + +```typescript +// List all databaseTransfers +const { data, isLoading } = useDatabaseTransfersQuery({ + selection: { fields: { id: true, databaseId: true, targetOwnerId: true, sourceApproved: true, targetApproved: true, sourceApprovedAt: true, targetApprovedAt: true, status: true, initiatedBy: true, notes: true, expiresAt: true, createdAt: true, updatedAt: true, completedAt: true } }, +}); + +// Get one databaseTransfer +const { data: item } = useDatabaseTransferQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, targetOwnerId: true, sourceApproved: true, targetApproved: true, sourceApprovedAt: true, targetApprovedAt: true, status: true, initiatedBy: true, notes: true, expiresAt: true, createdAt: true, updatedAt: true, completedAt: true } }, +}); + +// Create a databaseTransfer +const { mutate: create } = useCreateDatabaseTransferMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', targetOwnerId: '', sourceApproved: '', targetApproved: '', sourceApprovedAt: '', targetApprovedAt: '', status: '', initiatedBy: '', notes: '', expiresAt: '', completedAt: '' }); ``` ### Api @@ -1385,20 +1473,20 @@ create({ databaseId: '', name: '', code: '', nameTrgmSimila ```typescript // List all apis const { data, isLoading } = useApisQuery({ - selection: { fields: { id: true, databaseId: true, name: true, dbname: true, roleName: true, anonRole: true, isPublic: true, nameTrgmSimilarity: true, dbnameTrgmSimilarity: true, roleNameTrgmSimilarity: true, anonRoleTrgmSimilarity: true, searchScore: true } }, + selection: { fields: { id: true, databaseId: true, name: true, dbname: true, roleName: true, anonRole: true, isPublic: true } }, }); // Get one api const { data: item } = useApiQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, name: true, dbname: true, roleName: true, anonRole: true, isPublic: true, nameTrgmSimilarity: true, dbnameTrgmSimilarity: true, roleNameTrgmSimilarity: true, anonRoleTrgmSimilarity: true, searchScore: true } }, + id: '', + selection: { fields: { id: true, databaseId: true, name: true, dbname: true, roleName: true, anonRole: true, isPublic: true } }, }); // Create a api const { mutate: create } = useCreateApiMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', name: '', dbname: '', roleName: '', anonRole: '', isPublic: '', nameTrgmSimilarity: '', dbnameTrgmSimilarity: '', roleNameTrgmSimilarity: '', anonRoleTrgmSimilarity: '', searchScore: '' }); +create({ databaseId: '', name: '', dbname: '', roleName: '', anonRole: '', isPublic: '' }); ``` ### Site @@ -1406,20 +1494,20 @@ create({ databaseId: '', name: '', dbname: '', roleName: '< ```typescript // List all sites const { data, isLoading } = useSitesQuery({ - selection: { fields: { id: true, databaseId: true, title: true, description: true, ogImage: true, favicon: true, appleTouchIcon: true, logo: true, dbname: true, titleTrgmSimilarity: true, descriptionTrgmSimilarity: true, dbnameTrgmSimilarity: true, searchScore: true } }, + selection: { fields: { id: true, databaseId: true, title: true, description: true, ogImage: true, favicon: true, appleTouchIcon: true, logo: true, dbname: true } }, }); // Get one site const { data: item } = useSiteQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, title: true, description: true, ogImage: true, favicon: true, appleTouchIcon: true, logo: true, dbname: true, titleTrgmSimilarity: true, descriptionTrgmSimilarity: true, dbnameTrgmSimilarity: true, searchScore: true } }, + id: '', + selection: { fields: { id: true, databaseId: true, title: true, description: true, ogImage: true, favicon: true, appleTouchIcon: true, logo: true, dbname: true } }, }); // Create a site const { mutate: create } = useCreateSiteMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', title: '', description: '', ogImage: '', favicon: '', appleTouchIcon: '', logo: '', dbname: '', titleTrgmSimilarity: '', descriptionTrgmSimilarity: '', dbnameTrgmSimilarity: '', searchScore: '' }); +create({ databaseId: '', title: '', description: '', ogImage: '', favicon: '', appleTouchIcon: '', logo: '', dbname: '' }); ``` ### App @@ -1427,20 +1515,20 @@ create({ databaseId: '', title: '', description: '', ogImag ```typescript // List all apps const { data, isLoading } = useAppsQuery({ - selection: { fields: { id: true, databaseId: true, siteId: true, name: true, appImage: true, appStoreLink: true, appStoreId: true, appIdPrefix: true, playStoreLink: true, nameTrgmSimilarity: true, appStoreIdTrgmSimilarity: true, appIdPrefixTrgmSimilarity: true, searchScore: true } }, + selection: { fields: { id: true, databaseId: true, siteId: true, name: true, appImage: true, appStoreLink: true, appStoreId: true, appIdPrefix: true, playStoreLink: true } }, }); // Get one app const { data: item } = useAppQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, siteId: true, name: true, appImage: true, appStoreLink: true, appStoreId: true, appIdPrefix: true, playStoreLink: true, nameTrgmSimilarity: true, appStoreIdTrgmSimilarity: true, appIdPrefixTrgmSimilarity: true, searchScore: true } }, + id: '', + selection: { fields: { id: true, databaseId: true, siteId: true, name: true, appImage: true, appStoreLink: true, appStoreId: true, appIdPrefix: true, playStoreLink: true } }, }); // Create a app const { mutate: create } = useCreateAppMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', siteId: '', name: '', appImage: '', appStoreLink: '', appStoreId: '', appIdPrefix: '', playStoreLink: '', nameTrgmSimilarity: '', appStoreIdTrgmSimilarity: '', appIdPrefixTrgmSimilarity: '', searchScore: '' }); +create({ databaseId: '', siteId: '', name: '', appImage: '', appStoreLink: '', appStoreId: '', appIdPrefix: '', playStoreLink: '' }); ``` ### ConnectedAccountsModule @@ -1448,20 +1536,20 @@ create({ databaseId: '', siteId: '', name: '', appImage: '< ```typescript // List all connectedAccountsModules const { data, isLoading } = useConnectedAccountsModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, tableNameTrgmSimilarity: true, searchScore: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true } }, }); // Get one connectedAccountsModule const { data: item } = useConnectedAccountsModuleQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, tableNameTrgmSimilarity: true, searchScore: true } }, + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true } }, }); // Create a connectedAccountsModule const { mutate: create } = useCreateConnectedAccountsModuleMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '', tableNameTrgmSimilarity: '', searchScore: '' }); +create({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '' }); ``` ### CryptoAddressesModule @@ -1469,20 +1557,20 @@ create({ databaseId: '', schemaId: '', privateSchemaId: '', ```typescript // List all cryptoAddressesModules const { data, isLoading } = useCryptoAddressesModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, cryptoNetwork: true, tableNameTrgmSimilarity: true, cryptoNetworkTrgmSimilarity: true, searchScore: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, cryptoNetwork: true } }, }); // Get one cryptoAddressesModule const { data: item } = useCryptoAddressesModuleQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, cryptoNetwork: true, tableNameTrgmSimilarity: true, cryptoNetworkTrgmSimilarity: true, searchScore: true } }, + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, cryptoNetwork: true } }, }); // Create a cryptoAddressesModule const { mutate: create } = useCreateCryptoAddressesModuleMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '', cryptoNetwork: '', tableNameTrgmSimilarity: '', cryptoNetworkTrgmSimilarity: '', searchScore: '' }); +create({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '', cryptoNetwork: '' }); ``` ### CryptoAuthModule @@ -1490,20 +1578,20 @@ create({ databaseId: '', schemaId: '', privateSchemaId: '', ```typescript // List all cryptoAuthModules const { data, isLoading } = useCryptoAuthModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, usersTableId: true, secretsTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, addressesTableId: true, userField: true, cryptoNetwork: true, signInRequestChallenge: true, signInRecordFailure: true, signUpWithKey: true, signInWithChallenge: true, userFieldTrgmSimilarity: true, cryptoNetworkTrgmSimilarity: true, signInRequestChallengeTrgmSimilarity: true, signInRecordFailureTrgmSimilarity: true, signUpWithKeyTrgmSimilarity: true, signInWithChallengeTrgmSimilarity: true, searchScore: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, usersTableId: true, secretsTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, addressesTableId: true, userField: true, cryptoNetwork: true, signInRequestChallenge: true, signInRecordFailure: true, signUpWithKey: true, signInWithChallenge: true } }, }); // Get one cryptoAuthModule const { data: item } = useCryptoAuthModuleQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, usersTableId: true, secretsTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, addressesTableId: true, userField: true, cryptoNetwork: true, signInRequestChallenge: true, signInRecordFailure: true, signUpWithKey: true, signInWithChallenge: true, userFieldTrgmSimilarity: true, cryptoNetworkTrgmSimilarity: true, signInRequestChallengeTrgmSimilarity: true, signInRecordFailureTrgmSimilarity: true, signUpWithKeyTrgmSimilarity: true, signInWithChallengeTrgmSimilarity: true, searchScore: true } }, + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, usersTableId: true, secretsTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, addressesTableId: true, userField: true, cryptoNetwork: true, signInRequestChallenge: true, signInRecordFailure: true, signUpWithKey: true, signInWithChallenge: true } }, }); // Create a cryptoAuthModule const { mutate: create } = useCreateCryptoAuthModuleMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', schemaId: '', usersTableId: '', secretsTableId: '', sessionsTableId: '', sessionCredentialsTableId: '', addressesTableId: '', userField: '', cryptoNetwork: '', signInRequestChallenge: '', signInRecordFailure: '', signUpWithKey: '', signInWithChallenge: '', userFieldTrgmSimilarity: '', cryptoNetworkTrgmSimilarity: '', signInRequestChallengeTrgmSimilarity: '', signInRecordFailureTrgmSimilarity: '', signUpWithKeyTrgmSimilarity: '', signInWithChallengeTrgmSimilarity: '', searchScore: '' }); +create({ databaseId: '', schemaId: '', usersTableId: '', secretsTableId: '', sessionsTableId: '', sessionCredentialsTableId: '', addressesTableId: '', userField: '', cryptoNetwork: '', signInRequestChallenge: '', signInRecordFailure: '', signUpWithKey: '', signInWithChallenge: '' }); ``` ### DefaultIdsModule @@ -1516,7 +1604,7 @@ const { data, isLoading } = useDefaultIdsModulesQuery({ // Get one defaultIdsModule const { data: item } = useDefaultIdsModuleQuery({ - id: '', + id: '', selection: { fields: { id: true, databaseId: true } }, }); @@ -1524,7 +1612,7 @@ const { data: item } = useDefaultIdsModuleQuery({ const { mutate: create } = useCreateDefaultIdsModuleMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '' }); +create({ databaseId: '' }); ``` ### DenormalizedTableField @@ -1532,20 +1620,20 @@ create({ databaseId: '' }); ```typescript // List all denormalizedTableFields const { data, isLoading } = useDenormalizedTableFieldsQuery({ - selection: { fields: { id: true, databaseId: true, tableId: true, fieldId: true, setIds: true, refTableId: true, refFieldId: true, refIds: true, useUpdates: true, updateDefaults: true, funcName: true, funcOrder: true, funcNameTrgmSimilarity: true, searchScore: true } }, + selection: { fields: { id: true, databaseId: true, tableId: true, fieldId: true, setIds: true, refTableId: true, refFieldId: true, refIds: true, useUpdates: true, updateDefaults: true, funcName: true, funcOrder: true } }, }); // Get one denormalizedTableField const { data: item } = useDenormalizedTableFieldQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, tableId: true, fieldId: true, setIds: true, refTableId: true, refFieldId: true, refIds: true, useUpdates: true, updateDefaults: true, funcName: true, funcOrder: true, funcNameTrgmSimilarity: true, searchScore: true } }, + id: '', + selection: { fields: { id: true, databaseId: true, tableId: true, fieldId: true, setIds: true, refTableId: true, refFieldId: true, refIds: true, useUpdates: true, updateDefaults: true, funcName: true, funcOrder: true } }, }); // Create a denormalizedTableField const { mutate: create } = useCreateDenormalizedTableFieldMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', tableId: '', fieldId: '', setIds: '', refTableId: '', refFieldId: '', refIds: '', useUpdates: '', updateDefaults: '', funcName: '', funcOrder: '', funcNameTrgmSimilarity: '', searchScore: '' }); +create({ databaseId: '', tableId: '', fieldId: '', setIds: '', refTableId: '', refFieldId: '', refIds: '', useUpdates: '', updateDefaults: '', funcName: '', funcOrder: '' }); ``` ### EmailsModule @@ -1553,20 +1641,20 @@ create({ databaseId: '', tableId: '', fieldId: '', setIds: ```typescript // List all emailsModules const { data, isLoading } = useEmailsModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, tableNameTrgmSimilarity: true, searchScore: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true } }, }); // Get one emailsModule const { data: item } = useEmailsModuleQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, tableNameTrgmSimilarity: true, searchScore: true } }, + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true } }, }); // Create a emailsModule const { mutate: create } = useCreateEmailsModuleMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '', tableNameTrgmSimilarity: '', searchScore: '' }); +create({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '' }); ``` ### EncryptedSecretsModule @@ -1574,20 +1662,20 @@ create({ databaseId: '', schemaId: '', privateSchemaId: '', ```typescript // List all encryptedSecretsModules const { data, isLoading } = useEncryptedSecretsModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, tableNameTrgmSimilarity: true, searchScore: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }, }); // Get one encryptedSecretsModule const { data: item } = useEncryptedSecretsModuleQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, tableNameTrgmSimilarity: true, searchScore: true } }, + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }, }); // Create a encryptedSecretsModule const { mutate: create } = useCreateEncryptedSecretsModuleMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', schemaId: '', tableId: '', tableName: '', tableNameTrgmSimilarity: '', searchScore: '' }); +create({ databaseId: '', schemaId: '', tableId: '', tableName: '' }); ``` ### FieldModule @@ -1595,20 +1683,20 @@ create({ databaseId: '', schemaId: '', tableId: '', tableNa ```typescript // List all fieldModules const { data, isLoading } = useFieldModulesQuery({ - selection: { fields: { id: true, databaseId: true, privateSchemaId: true, tableId: true, fieldId: true, nodeType: true, data: true, triggers: true, functions: true, nodeTypeTrgmSimilarity: true, searchScore: true } }, + selection: { fields: { id: true, databaseId: true, privateSchemaId: true, tableId: true, fieldId: true, nodeType: true, data: true, triggers: true, functions: true } }, }); // Get one fieldModule const { data: item } = useFieldModuleQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, privateSchemaId: true, tableId: true, fieldId: true, nodeType: true, data: true, triggers: true, functions: true, nodeTypeTrgmSimilarity: true, searchScore: true } }, + id: '', + selection: { fields: { id: true, databaseId: true, privateSchemaId: true, tableId: true, fieldId: true, nodeType: true, data: true, triggers: true, functions: true } }, }); // Create a fieldModule const { mutate: create } = useCreateFieldModuleMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', privateSchemaId: '', tableId: '', fieldId: '', nodeType: '', data: '', triggers: '', functions: '', nodeTypeTrgmSimilarity: '', searchScore: '' }); +create({ databaseId: '', privateSchemaId: '', tableId: '', fieldId: '', nodeType: '', data: '', triggers: '', functions: '' }); ``` ### InvitesModule @@ -1616,20 +1704,20 @@ create({ databaseId: '', privateSchemaId: '', tableId: '', ```typescript // List all invitesModules const { data, isLoading } = useInvitesModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, emailsTableId: true, usersTableId: true, invitesTableId: true, claimedInvitesTableId: true, invitesTableName: true, claimedInvitesTableName: true, submitInviteCodeFunction: true, prefix: true, membershipType: true, entityTableId: true, invitesTableNameTrgmSimilarity: true, claimedInvitesTableNameTrgmSimilarity: true, submitInviteCodeFunctionTrgmSimilarity: true, prefixTrgmSimilarity: true, searchScore: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, emailsTableId: true, usersTableId: true, invitesTableId: true, claimedInvitesTableId: true, invitesTableName: true, claimedInvitesTableName: true, submitInviteCodeFunction: true, prefix: true, membershipType: true, entityTableId: true } }, }); // Get one invitesModule const { data: item } = useInvitesModuleQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, emailsTableId: true, usersTableId: true, invitesTableId: true, claimedInvitesTableId: true, invitesTableName: true, claimedInvitesTableName: true, submitInviteCodeFunction: true, prefix: true, membershipType: true, entityTableId: true, invitesTableNameTrgmSimilarity: true, claimedInvitesTableNameTrgmSimilarity: true, submitInviteCodeFunctionTrgmSimilarity: true, prefixTrgmSimilarity: true, searchScore: true } }, + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, emailsTableId: true, usersTableId: true, invitesTableId: true, claimedInvitesTableId: true, invitesTableName: true, claimedInvitesTableName: true, submitInviteCodeFunction: true, prefix: true, membershipType: true, entityTableId: true } }, }); // Create a invitesModule const { mutate: create } = useCreateInvitesModuleMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', schemaId: '', privateSchemaId: '', emailsTableId: '', usersTableId: '', invitesTableId: '', claimedInvitesTableId: '', invitesTableName: '', claimedInvitesTableName: '', submitInviteCodeFunction: '', prefix: '', membershipType: '', entityTableId: '', invitesTableNameTrgmSimilarity: '', claimedInvitesTableNameTrgmSimilarity: '', submitInviteCodeFunctionTrgmSimilarity: '', prefixTrgmSimilarity: '', searchScore: '' }); +create({ databaseId: '', schemaId: '', privateSchemaId: '', emailsTableId: '', usersTableId: '', invitesTableId: '', claimedInvitesTableId: '', invitesTableName: '', claimedInvitesTableName: '', submitInviteCodeFunction: '', prefix: '', membershipType: '', entityTableId: '' }); ``` ### LevelsModule @@ -1637,20 +1725,20 @@ create({ databaseId: '', schemaId: '', privateSchemaId: '', ```typescript // List all levelsModules const { data, isLoading } = useLevelsModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, stepsTableId: true, stepsTableName: true, achievementsTableId: true, achievementsTableName: true, levelsTableId: true, levelsTableName: true, levelRequirementsTableId: true, levelRequirementsTableName: true, completedStep: true, incompletedStep: true, tgAchievement: true, tgAchievementToggle: true, tgAchievementToggleBoolean: true, tgAchievementBoolean: true, upsertAchievement: true, tgUpdateAchievements: true, stepsRequired: true, levelAchieved: true, prefix: true, membershipType: true, entityTableId: true, actorTableId: true, stepsTableNameTrgmSimilarity: true, achievementsTableNameTrgmSimilarity: true, levelsTableNameTrgmSimilarity: true, levelRequirementsTableNameTrgmSimilarity: true, completedStepTrgmSimilarity: true, incompletedStepTrgmSimilarity: true, tgAchievementTrgmSimilarity: true, tgAchievementToggleTrgmSimilarity: true, tgAchievementToggleBooleanTrgmSimilarity: true, tgAchievementBooleanTrgmSimilarity: true, upsertAchievementTrgmSimilarity: true, tgUpdateAchievementsTrgmSimilarity: true, stepsRequiredTrgmSimilarity: true, levelAchievedTrgmSimilarity: true, prefixTrgmSimilarity: true, searchScore: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, stepsTableId: true, stepsTableName: true, achievementsTableId: true, achievementsTableName: true, levelsTableId: true, levelsTableName: true, levelRequirementsTableId: true, levelRequirementsTableName: true, completedStep: true, incompletedStep: true, tgAchievement: true, tgAchievementToggle: true, tgAchievementToggleBoolean: true, tgAchievementBoolean: true, upsertAchievement: true, tgUpdateAchievements: true, stepsRequired: true, levelAchieved: true, prefix: true, membershipType: true, entityTableId: true, actorTableId: true } }, }); // Get one levelsModule const { data: item } = useLevelsModuleQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, stepsTableId: true, stepsTableName: true, achievementsTableId: true, achievementsTableName: true, levelsTableId: true, levelsTableName: true, levelRequirementsTableId: true, levelRequirementsTableName: true, completedStep: true, incompletedStep: true, tgAchievement: true, tgAchievementToggle: true, tgAchievementToggleBoolean: true, tgAchievementBoolean: true, upsertAchievement: true, tgUpdateAchievements: true, stepsRequired: true, levelAchieved: true, prefix: true, membershipType: true, entityTableId: true, actorTableId: true, stepsTableNameTrgmSimilarity: true, achievementsTableNameTrgmSimilarity: true, levelsTableNameTrgmSimilarity: true, levelRequirementsTableNameTrgmSimilarity: true, completedStepTrgmSimilarity: true, incompletedStepTrgmSimilarity: true, tgAchievementTrgmSimilarity: true, tgAchievementToggleTrgmSimilarity: true, tgAchievementToggleBooleanTrgmSimilarity: true, tgAchievementBooleanTrgmSimilarity: true, upsertAchievementTrgmSimilarity: true, tgUpdateAchievementsTrgmSimilarity: true, stepsRequiredTrgmSimilarity: true, levelAchievedTrgmSimilarity: true, prefixTrgmSimilarity: true, searchScore: true } }, + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, stepsTableId: true, stepsTableName: true, achievementsTableId: true, achievementsTableName: true, levelsTableId: true, levelsTableName: true, levelRequirementsTableId: true, levelRequirementsTableName: true, completedStep: true, incompletedStep: true, tgAchievement: true, tgAchievementToggle: true, tgAchievementToggleBoolean: true, tgAchievementBoolean: true, upsertAchievement: true, tgUpdateAchievements: true, stepsRequired: true, levelAchieved: true, prefix: true, membershipType: true, entityTableId: true, actorTableId: true } }, }); // Create a levelsModule const { mutate: create } = useCreateLevelsModuleMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', schemaId: '', privateSchemaId: '', stepsTableId: '', stepsTableName: '', achievementsTableId: '', achievementsTableName: '', levelsTableId: '', levelsTableName: '', levelRequirementsTableId: '', levelRequirementsTableName: '', completedStep: '', incompletedStep: '', tgAchievement: '', tgAchievementToggle: '', tgAchievementToggleBoolean: '', tgAchievementBoolean: '', upsertAchievement: '', tgUpdateAchievements: '', stepsRequired: '', levelAchieved: '', prefix: '', membershipType: '', entityTableId: '', actorTableId: '', stepsTableNameTrgmSimilarity: '', achievementsTableNameTrgmSimilarity: '', levelsTableNameTrgmSimilarity: '', levelRequirementsTableNameTrgmSimilarity: '', completedStepTrgmSimilarity: '', incompletedStepTrgmSimilarity: '', tgAchievementTrgmSimilarity: '', tgAchievementToggleTrgmSimilarity: '', tgAchievementToggleBooleanTrgmSimilarity: '', tgAchievementBooleanTrgmSimilarity: '', upsertAchievementTrgmSimilarity: '', tgUpdateAchievementsTrgmSimilarity: '', stepsRequiredTrgmSimilarity: '', levelAchievedTrgmSimilarity: '', prefixTrgmSimilarity: '', searchScore: '' }); +create({ databaseId: '', schemaId: '', privateSchemaId: '', stepsTableId: '', stepsTableName: '', achievementsTableId: '', achievementsTableName: '', levelsTableId: '', levelsTableName: '', levelRequirementsTableId: '', levelRequirementsTableName: '', completedStep: '', incompletedStep: '', tgAchievement: '', tgAchievementToggle: '', tgAchievementToggleBoolean: '', tgAchievementBoolean: '', upsertAchievement: '', tgUpdateAchievements: '', stepsRequired: '', levelAchieved: '', prefix: '', membershipType: '', entityTableId: '', actorTableId: '' }); ``` ### LimitsModule @@ -1658,20 +1746,20 @@ create({ databaseId: '', schemaId: '', privateSchemaId: '', ```typescript // List all limitsModules const { data, isLoading } = useLimitsModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, limitIncrementFunction: true, limitDecrementFunction: true, limitIncrementTrigger: true, limitDecrementTrigger: true, limitUpdateTrigger: true, limitCheckFunction: true, prefix: true, membershipType: true, entityTableId: true, actorTableId: true, tableNameTrgmSimilarity: true, defaultTableNameTrgmSimilarity: true, limitIncrementFunctionTrgmSimilarity: true, limitDecrementFunctionTrgmSimilarity: true, limitIncrementTriggerTrgmSimilarity: true, limitDecrementTriggerTrgmSimilarity: true, limitUpdateTriggerTrgmSimilarity: true, limitCheckFunctionTrgmSimilarity: true, prefixTrgmSimilarity: true, searchScore: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, limitIncrementFunction: true, limitDecrementFunction: true, limitIncrementTrigger: true, limitDecrementTrigger: true, limitUpdateTrigger: true, limitCheckFunction: true, prefix: true, membershipType: true, entityTableId: true, actorTableId: true } }, }); // Get one limitsModule const { data: item } = useLimitsModuleQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, limitIncrementFunction: true, limitDecrementFunction: true, limitIncrementTrigger: true, limitDecrementTrigger: true, limitUpdateTrigger: true, limitCheckFunction: true, prefix: true, membershipType: true, entityTableId: true, actorTableId: true, tableNameTrgmSimilarity: true, defaultTableNameTrgmSimilarity: true, limitIncrementFunctionTrgmSimilarity: true, limitDecrementFunctionTrgmSimilarity: true, limitIncrementTriggerTrgmSimilarity: true, limitDecrementTriggerTrgmSimilarity: true, limitUpdateTriggerTrgmSimilarity: true, limitCheckFunctionTrgmSimilarity: true, prefixTrgmSimilarity: true, searchScore: true } }, + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, limitIncrementFunction: true, limitDecrementFunction: true, limitIncrementTrigger: true, limitDecrementTrigger: true, limitUpdateTrigger: true, limitCheckFunction: true, prefix: true, membershipType: true, entityTableId: true, actorTableId: true } }, }); // Create a limitsModule const { mutate: create } = useCreateLimitsModuleMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', limitIncrementFunction: '', limitDecrementFunction: '', limitIncrementTrigger: '', limitDecrementTrigger: '', limitUpdateTrigger: '', limitCheckFunction: '', prefix: '', membershipType: '', entityTableId: '', actorTableId: '', tableNameTrgmSimilarity: '', defaultTableNameTrgmSimilarity: '', limitIncrementFunctionTrgmSimilarity: '', limitDecrementFunctionTrgmSimilarity: '', limitIncrementTriggerTrgmSimilarity: '', limitDecrementTriggerTrgmSimilarity: '', limitUpdateTriggerTrgmSimilarity: '', limitCheckFunctionTrgmSimilarity: '', prefixTrgmSimilarity: '', searchScore: '' }); +create({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', limitIncrementFunction: '', limitDecrementFunction: '', limitIncrementTrigger: '', limitDecrementTrigger: '', limitUpdateTrigger: '', limitCheckFunction: '', prefix: '', membershipType: '', entityTableId: '', actorTableId: '' }); ``` ### MembershipTypesModule @@ -1679,20 +1767,20 @@ create({ databaseId: '', schemaId: '', privateSchemaId: '', ```typescript // List all membershipTypesModules const { data, isLoading } = useMembershipTypesModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, tableNameTrgmSimilarity: true, searchScore: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }, }); // Get one membershipTypesModule const { data: item } = useMembershipTypesModuleQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, tableNameTrgmSimilarity: true, searchScore: true } }, + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }, }); // Create a membershipTypesModule const { mutate: create } = useCreateMembershipTypesModuleMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', schemaId: '', tableId: '', tableName: '', tableNameTrgmSimilarity: '', searchScore: '' }); +create({ databaseId: '', schemaId: '', tableId: '', tableName: '' }); ``` ### MembershipsModule @@ -1700,20 +1788,20 @@ create({ databaseId: '', schemaId: '', tableId: '', tableNa ```typescript // List all membershipsModules const { data, isLoading } = useMembershipsModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, membershipsTableId: true, membershipsTableName: true, membersTableId: true, membersTableName: true, membershipDefaultsTableId: true, membershipDefaultsTableName: true, grantsTableId: true, grantsTableName: true, actorTableId: true, limitsTableId: true, defaultLimitsTableId: true, permissionsTableId: true, defaultPermissionsTableId: true, sprtTableId: true, adminGrantsTableId: true, adminGrantsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, membershipType: true, entityTableId: true, entityTableOwnerId: true, prefix: true, actorMaskCheck: true, actorPermCheck: true, entityIdsByMask: true, entityIdsByPerm: true, entityIdsFunction: true, membershipsTableNameTrgmSimilarity: true, membersTableNameTrgmSimilarity: true, membershipDefaultsTableNameTrgmSimilarity: true, grantsTableNameTrgmSimilarity: true, adminGrantsTableNameTrgmSimilarity: true, ownerGrantsTableNameTrgmSimilarity: true, prefixTrgmSimilarity: true, actorMaskCheckTrgmSimilarity: true, actorPermCheckTrgmSimilarity: true, entityIdsByMaskTrgmSimilarity: true, entityIdsByPermTrgmSimilarity: true, entityIdsFunctionTrgmSimilarity: true, searchScore: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, membershipsTableId: true, membershipsTableName: true, membersTableId: true, membersTableName: true, membershipDefaultsTableId: true, membershipDefaultsTableName: true, grantsTableId: true, grantsTableName: true, actorTableId: true, limitsTableId: true, defaultLimitsTableId: true, permissionsTableId: true, defaultPermissionsTableId: true, sprtTableId: true, adminGrantsTableId: true, adminGrantsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, membershipType: true, entityTableId: true, entityTableOwnerId: true, prefix: true, actorMaskCheck: true, actorPermCheck: true, entityIdsByMask: true, entityIdsByPerm: true, entityIdsFunction: true } }, }); // Get one membershipsModule const { data: item } = useMembershipsModuleQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, membershipsTableId: true, membershipsTableName: true, membersTableId: true, membersTableName: true, membershipDefaultsTableId: true, membershipDefaultsTableName: true, grantsTableId: true, grantsTableName: true, actorTableId: true, limitsTableId: true, defaultLimitsTableId: true, permissionsTableId: true, defaultPermissionsTableId: true, sprtTableId: true, adminGrantsTableId: true, adminGrantsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, membershipType: true, entityTableId: true, entityTableOwnerId: true, prefix: true, actorMaskCheck: true, actorPermCheck: true, entityIdsByMask: true, entityIdsByPerm: true, entityIdsFunction: true, membershipsTableNameTrgmSimilarity: true, membersTableNameTrgmSimilarity: true, membershipDefaultsTableNameTrgmSimilarity: true, grantsTableNameTrgmSimilarity: true, adminGrantsTableNameTrgmSimilarity: true, ownerGrantsTableNameTrgmSimilarity: true, prefixTrgmSimilarity: true, actorMaskCheckTrgmSimilarity: true, actorPermCheckTrgmSimilarity: true, entityIdsByMaskTrgmSimilarity: true, entityIdsByPermTrgmSimilarity: true, entityIdsFunctionTrgmSimilarity: true, searchScore: true } }, + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, membershipsTableId: true, membershipsTableName: true, membersTableId: true, membersTableName: true, membershipDefaultsTableId: true, membershipDefaultsTableName: true, grantsTableId: true, grantsTableName: true, actorTableId: true, limitsTableId: true, defaultLimitsTableId: true, permissionsTableId: true, defaultPermissionsTableId: true, sprtTableId: true, adminGrantsTableId: true, adminGrantsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, membershipType: true, entityTableId: true, entityTableOwnerId: true, prefix: true, actorMaskCheck: true, actorPermCheck: true, entityIdsByMask: true, entityIdsByPerm: true, entityIdsFunction: true } }, }); // Create a membershipsModule const { mutate: create } = useCreateMembershipsModuleMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', schemaId: '', privateSchemaId: '', membershipsTableId: '', membershipsTableName: '', membersTableId: '', membersTableName: '', membershipDefaultsTableId: '', membershipDefaultsTableName: '', grantsTableId: '', grantsTableName: '', actorTableId: '', limitsTableId: '', defaultLimitsTableId: '', permissionsTableId: '', defaultPermissionsTableId: '', sprtTableId: '', adminGrantsTableId: '', adminGrantsTableName: '', ownerGrantsTableId: '', ownerGrantsTableName: '', membershipType: '', entityTableId: '', entityTableOwnerId: '', prefix: '', actorMaskCheck: '', actorPermCheck: '', entityIdsByMask: '', entityIdsByPerm: '', entityIdsFunction: '', membershipsTableNameTrgmSimilarity: '', membersTableNameTrgmSimilarity: '', membershipDefaultsTableNameTrgmSimilarity: '', grantsTableNameTrgmSimilarity: '', adminGrantsTableNameTrgmSimilarity: '', ownerGrantsTableNameTrgmSimilarity: '', prefixTrgmSimilarity: '', actorMaskCheckTrgmSimilarity: '', actorPermCheckTrgmSimilarity: '', entityIdsByMaskTrgmSimilarity: '', entityIdsByPermTrgmSimilarity: '', entityIdsFunctionTrgmSimilarity: '', searchScore: '' }); +create({ databaseId: '', schemaId: '', privateSchemaId: '', membershipsTableId: '', membershipsTableName: '', membersTableId: '', membersTableName: '', membershipDefaultsTableId: '', membershipDefaultsTableName: '', grantsTableId: '', grantsTableName: '', actorTableId: '', limitsTableId: '', defaultLimitsTableId: '', permissionsTableId: '', defaultPermissionsTableId: '', sprtTableId: '', adminGrantsTableId: '', adminGrantsTableName: '', ownerGrantsTableId: '', ownerGrantsTableName: '', membershipType: '', entityTableId: '', entityTableOwnerId: '', prefix: '', actorMaskCheck: '', actorPermCheck: '', entityIdsByMask: '', entityIdsByPerm: '', entityIdsFunction: '' }); ``` ### PermissionsModule @@ -1721,20 +1809,20 @@ create({ databaseId: '', schemaId: '', privateSchemaId: '', ```typescript // List all permissionsModules const { data, isLoading } = usePermissionsModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, bitlen: true, membershipType: true, entityTableId: true, actorTableId: true, prefix: true, getPaddedMask: true, getMask: true, getByMask: true, getMaskByName: true, tableNameTrgmSimilarity: true, defaultTableNameTrgmSimilarity: true, prefixTrgmSimilarity: true, getPaddedMaskTrgmSimilarity: true, getMaskTrgmSimilarity: true, getByMaskTrgmSimilarity: true, getMaskByNameTrgmSimilarity: true, searchScore: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, bitlen: true, membershipType: true, entityTableId: true, actorTableId: true, prefix: true, getPaddedMask: true, getMask: true, getByMask: true, getMaskByName: true } }, }); // Get one permissionsModule const { data: item } = usePermissionsModuleQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, bitlen: true, membershipType: true, entityTableId: true, actorTableId: true, prefix: true, getPaddedMask: true, getMask: true, getByMask: true, getMaskByName: true, tableNameTrgmSimilarity: true, defaultTableNameTrgmSimilarity: true, prefixTrgmSimilarity: true, getPaddedMaskTrgmSimilarity: true, getMaskTrgmSimilarity: true, getByMaskTrgmSimilarity: true, getMaskByNameTrgmSimilarity: true, searchScore: true } }, + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, bitlen: true, membershipType: true, entityTableId: true, actorTableId: true, prefix: true, getPaddedMask: true, getMask: true, getByMask: true, getMaskByName: true } }, }); // Create a permissionsModule const { mutate: create } = useCreatePermissionsModuleMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', bitlen: '', membershipType: '', entityTableId: '', actorTableId: '', prefix: '', getPaddedMask: '', getMask: '', getByMask: '', getMaskByName: '', tableNameTrgmSimilarity: '', defaultTableNameTrgmSimilarity: '', prefixTrgmSimilarity: '', getPaddedMaskTrgmSimilarity: '', getMaskTrgmSimilarity: '', getByMaskTrgmSimilarity: '', getMaskByNameTrgmSimilarity: '', searchScore: '' }); +create({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', bitlen: '', membershipType: '', entityTableId: '', actorTableId: '', prefix: '', getPaddedMask: '', getMask: '', getByMask: '', getMaskByName: '' }); ``` ### PhoneNumbersModule @@ -1742,20 +1830,20 @@ create({ databaseId: '', schemaId: '', privateSchemaId: '', ```typescript // List all phoneNumbersModules const { data, isLoading } = usePhoneNumbersModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, tableNameTrgmSimilarity: true, searchScore: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true } }, }); // Get one phoneNumbersModule const { data: item } = usePhoneNumbersModuleQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, tableNameTrgmSimilarity: true, searchScore: true } }, + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true } }, }); // Create a phoneNumbersModule const { mutate: create } = useCreatePhoneNumbersModuleMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '', tableNameTrgmSimilarity: '', searchScore: '' }); +create({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '' }); ``` ### ProfilesModule @@ -1763,20 +1851,20 @@ create({ databaseId: '', schemaId: '', privateSchemaId: '', ```typescript // List all profilesModules const { data, isLoading } = useProfilesModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, membershipType: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, prefix: true, tableNameTrgmSimilarity: true, profilePermissionsTableNameTrgmSimilarity: true, profileGrantsTableNameTrgmSimilarity: true, profileDefinitionGrantsTableNameTrgmSimilarity: true, prefixTrgmSimilarity: true, searchScore: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, membershipType: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, prefix: true } }, }); // Get one profilesModule const { data: item } = useProfilesModuleQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, membershipType: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, prefix: true, tableNameTrgmSimilarity: true, profilePermissionsTableNameTrgmSimilarity: true, profileGrantsTableNameTrgmSimilarity: true, profileDefinitionGrantsTableNameTrgmSimilarity: true, prefixTrgmSimilarity: true, searchScore: true } }, + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, membershipType: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, prefix: true } }, }); // Create a profilesModule const { mutate: create } = useCreateProfilesModuleMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', profilePermissionsTableId: '', profilePermissionsTableName: '', profileGrantsTableId: '', profileGrantsTableName: '', profileDefinitionGrantsTableId: '', profileDefinitionGrantsTableName: '', membershipType: '', entityTableId: '', actorTableId: '', permissionsTableId: '', membershipsTableId: '', prefix: '', tableNameTrgmSimilarity: '', profilePermissionsTableNameTrgmSimilarity: '', profileGrantsTableNameTrgmSimilarity: '', profileDefinitionGrantsTableNameTrgmSimilarity: '', prefixTrgmSimilarity: '', searchScore: '' }); +create({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', profilePermissionsTableId: '', profilePermissionsTableName: '', profileGrantsTableId: '', profileGrantsTableName: '', profileDefinitionGrantsTableId: '', profileDefinitionGrantsTableName: '', membershipType: '', entityTableId: '', actorTableId: '', permissionsTableId: '', membershipsTableId: '', prefix: '' }); ``` ### SecretsModule @@ -1784,20 +1872,20 @@ create({ databaseId: '', schemaId: '', privateSchemaId: '', ```typescript // List all secretsModules const { data, isLoading } = useSecretsModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, tableNameTrgmSimilarity: true, searchScore: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }, }); // Get one secretsModule const { data: item } = useSecretsModuleQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, tableNameTrgmSimilarity: true, searchScore: true } }, + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }, }); // Create a secretsModule const { mutate: create } = useCreateSecretsModuleMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', schemaId: '', tableId: '', tableName: '', tableNameTrgmSimilarity: '', searchScore: '' }); +create({ databaseId: '', schemaId: '', tableId: '', tableName: '' }); ``` ### SessionsModule @@ -1805,20 +1893,20 @@ create({ databaseId: '', schemaId: '', tableId: '', tableNa ```typescript // List all sessionsModules const { data, isLoading } = useSessionsModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, sessionsTableId: true, sessionCredentialsTableId: true, authSettingsTableId: true, usersTableId: true, sessionsDefaultExpiration: true, sessionsTable: true, sessionCredentialsTable: true, authSettingsTable: true, sessionsTableTrgmSimilarity: true, sessionCredentialsTableTrgmSimilarity: true, authSettingsTableTrgmSimilarity: true, searchScore: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, sessionsTableId: true, sessionCredentialsTableId: true, authSettingsTableId: true, usersTableId: true, sessionsDefaultExpiration: true, sessionsTable: true, sessionCredentialsTable: true, authSettingsTable: true } }, }); // Get one sessionsModule const { data: item } = useSessionsModuleQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, sessionsTableId: true, sessionCredentialsTableId: true, authSettingsTableId: true, usersTableId: true, sessionsDefaultExpiration: true, sessionsTable: true, sessionCredentialsTable: true, authSettingsTable: true, sessionsTableTrgmSimilarity: true, sessionCredentialsTableTrgmSimilarity: true, authSettingsTableTrgmSimilarity: true, searchScore: true } }, + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, sessionsTableId: true, sessionCredentialsTableId: true, authSettingsTableId: true, usersTableId: true, sessionsDefaultExpiration: true, sessionsTable: true, sessionCredentialsTable: true, authSettingsTable: true } }, }); // Create a sessionsModule const { mutate: create } = useCreateSessionsModuleMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', schemaId: '', sessionsTableId: '', sessionCredentialsTableId: '', authSettingsTableId: '', usersTableId: '', sessionsDefaultExpiration: '', sessionsTable: '', sessionCredentialsTable: '', authSettingsTable: '', sessionsTableTrgmSimilarity: '', sessionCredentialsTableTrgmSimilarity: '', authSettingsTableTrgmSimilarity: '', searchScore: '' }); +create({ databaseId: '', schemaId: '', sessionsTableId: '', sessionCredentialsTableId: '', authSettingsTableId: '', usersTableId: '', sessionsDefaultExpiration: '', sessionsTable: '', sessionCredentialsTable: '', authSettingsTable: '' }); ``` ### UserAuthModule @@ -1826,20 +1914,20 @@ create({ databaseId: '', schemaId: '', sessionsTableId: '', ```typescript // List all userAuthModules const { data, isLoading } = useUserAuthModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, emailsTableId: true, usersTableId: true, secretsTableId: true, encryptedTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, auditsTableId: true, auditsTableName: true, signInFunction: true, signUpFunction: true, signOutFunction: true, setPasswordFunction: true, resetPasswordFunction: true, forgotPasswordFunction: true, sendVerificationEmailFunction: true, verifyEmailFunction: true, verifyPasswordFunction: true, checkPasswordFunction: true, sendAccountDeletionEmailFunction: true, deleteAccountFunction: true, signInOneTimeTokenFunction: true, oneTimeTokenFunction: true, extendTokenExpires: true, auditsTableNameTrgmSimilarity: true, signInFunctionTrgmSimilarity: true, signUpFunctionTrgmSimilarity: true, signOutFunctionTrgmSimilarity: true, setPasswordFunctionTrgmSimilarity: true, resetPasswordFunctionTrgmSimilarity: true, forgotPasswordFunctionTrgmSimilarity: true, sendVerificationEmailFunctionTrgmSimilarity: true, verifyEmailFunctionTrgmSimilarity: true, verifyPasswordFunctionTrgmSimilarity: true, checkPasswordFunctionTrgmSimilarity: true, sendAccountDeletionEmailFunctionTrgmSimilarity: true, deleteAccountFunctionTrgmSimilarity: true, signInOneTimeTokenFunctionTrgmSimilarity: true, oneTimeTokenFunctionTrgmSimilarity: true, extendTokenExpiresTrgmSimilarity: true, searchScore: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, emailsTableId: true, usersTableId: true, secretsTableId: true, encryptedTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, auditsTableId: true, auditsTableName: true, signInFunction: true, signUpFunction: true, signOutFunction: true, setPasswordFunction: true, resetPasswordFunction: true, forgotPasswordFunction: true, sendVerificationEmailFunction: true, verifyEmailFunction: true, verifyPasswordFunction: true, checkPasswordFunction: true, sendAccountDeletionEmailFunction: true, deleteAccountFunction: true, signInOneTimeTokenFunction: true, oneTimeTokenFunction: true, extendTokenExpires: true } }, }); // Get one userAuthModule const { data: item } = useUserAuthModuleQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, emailsTableId: true, usersTableId: true, secretsTableId: true, encryptedTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, auditsTableId: true, auditsTableName: true, signInFunction: true, signUpFunction: true, signOutFunction: true, setPasswordFunction: true, resetPasswordFunction: true, forgotPasswordFunction: true, sendVerificationEmailFunction: true, verifyEmailFunction: true, verifyPasswordFunction: true, checkPasswordFunction: true, sendAccountDeletionEmailFunction: true, deleteAccountFunction: true, signInOneTimeTokenFunction: true, oneTimeTokenFunction: true, extendTokenExpires: true, auditsTableNameTrgmSimilarity: true, signInFunctionTrgmSimilarity: true, signUpFunctionTrgmSimilarity: true, signOutFunctionTrgmSimilarity: true, setPasswordFunctionTrgmSimilarity: true, resetPasswordFunctionTrgmSimilarity: true, forgotPasswordFunctionTrgmSimilarity: true, sendVerificationEmailFunctionTrgmSimilarity: true, verifyEmailFunctionTrgmSimilarity: true, verifyPasswordFunctionTrgmSimilarity: true, checkPasswordFunctionTrgmSimilarity: true, sendAccountDeletionEmailFunctionTrgmSimilarity: true, deleteAccountFunctionTrgmSimilarity: true, signInOneTimeTokenFunctionTrgmSimilarity: true, oneTimeTokenFunctionTrgmSimilarity: true, extendTokenExpiresTrgmSimilarity: true, searchScore: true } }, + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, emailsTableId: true, usersTableId: true, secretsTableId: true, encryptedTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, auditsTableId: true, auditsTableName: true, signInFunction: true, signUpFunction: true, signOutFunction: true, setPasswordFunction: true, resetPasswordFunction: true, forgotPasswordFunction: true, sendVerificationEmailFunction: true, verifyEmailFunction: true, verifyPasswordFunction: true, checkPasswordFunction: true, sendAccountDeletionEmailFunction: true, deleteAccountFunction: true, signInOneTimeTokenFunction: true, oneTimeTokenFunction: true, extendTokenExpires: true } }, }); // Create a userAuthModule const { mutate: create } = useCreateUserAuthModuleMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', schemaId: '', emailsTableId: '', usersTableId: '', secretsTableId: '', encryptedTableId: '', sessionsTableId: '', sessionCredentialsTableId: '', auditsTableId: '', auditsTableName: '', signInFunction: '', signUpFunction: '', signOutFunction: '', setPasswordFunction: '', resetPasswordFunction: '', forgotPasswordFunction: '', sendVerificationEmailFunction: '', verifyEmailFunction: '', verifyPasswordFunction: '', checkPasswordFunction: '', sendAccountDeletionEmailFunction: '', deleteAccountFunction: '', signInOneTimeTokenFunction: '', oneTimeTokenFunction: '', extendTokenExpires: '', auditsTableNameTrgmSimilarity: '', signInFunctionTrgmSimilarity: '', signUpFunctionTrgmSimilarity: '', signOutFunctionTrgmSimilarity: '', setPasswordFunctionTrgmSimilarity: '', resetPasswordFunctionTrgmSimilarity: '', forgotPasswordFunctionTrgmSimilarity: '', sendVerificationEmailFunctionTrgmSimilarity: '', verifyEmailFunctionTrgmSimilarity: '', verifyPasswordFunctionTrgmSimilarity: '', checkPasswordFunctionTrgmSimilarity: '', sendAccountDeletionEmailFunctionTrgmSimilarity: '', deleteAccountFunctionTrgmSimilarity: '', signInOneTimeTokenFunctionTrgmSimilarity: '', oneTimeTokenFunctionTrgmSimilarity: '', extendTokenExpiresTrgmSimilarity: '', searchScore: '' }); +create({ databaseId: '', schemaId: '', emailsTableId: '', usersTableId: '', secretsTableId: '', encryptedTableId: '', sessionsTableId: '', sessionCredentialsTableId: '', auditsTableId: '', auditsTableName: '', signInFunction: '', signUpFunction: '', signOutFunction: '', setPasswordFunction: '', resetPasswordFunction: '', forgotPasswordFunction: '', sendVerificationEmailFunction: '', verifyEmailFunction: '', verifyPasswordFunction: '', checkPasswordFunction: '', sendAccountDeletionEmailFunction: '', deleteAccountFunction: '', signInOneTimeTokenFunction: '', oneTimeTokenFunction: '', extendTokenExpires: '' }); ``` ### UsersModule @@ -1847,41 +1935,62 @@ create({ databaseId: '', schemaId: '', emailsTableId: '', u ```typescript // List all usersModules const { data, isLoading } = useUsersModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, typeTableId: true, typeTableName: true, tableNameTrgmSimilarity: true, typeTableNameTrgmSimilarity: true, searchScore: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, typeTableId: true, typeTableName: true } }, }); // Get one usersModule const { data: item } = useUsersModuleQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, typeTableId: true, typeTableName: true, tableNameTrgmSimilarity: true, typeTableNameTrgmSimilarity: true, searchScore: true } }, + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, typeTableId: true, typeTableName: true } }, }); // Create a usersModule const { mutate: create } = useCreateUsersModuleMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', schemaId: '', tableId: '', tableName: '', typeTableId: '', typeTableName: '', tableNameTrgmSimilarity: '', typeTableNameTrgmSimilarity: '', searchScore: '' }); +create({ databaseId: '', schemaId: '', tableId: '', tableName: '', typeTableId: '', typeTableName: '' }); +``` + +### Blueprint + +```typescript +// List all blueprints +const { data, isLoading } = useBlueprintsQuery({ + selection: { fields: { id: true, ownerId: true, databaseId: true, name: true, displayName: true, description: true, definition: true, templateId: true, status: true, constructedAt: true, errorDetails: true, refMap: true, constructedDefinition: true, definitionHash: true, tableHashes: true, createdAt: true, updatedAt: true } }, +}); + +// Get one blueprint +const { data: item } = useBlueprintQuery({ + id: '', + selection: { fields: { id: true, ownerId: true, databaseId: true, name: true, displayName: true, description: true, definition: true, templateId: true, status: true, constructedAt: true, errorDetails: true, refMap: true, constructedDefinition: true, definitionHash: true, tableHashes: true, createdAt: true, updatedAt: true } }, +}); + +// Create a blueprint +const { mutate: create } = useCreateBlueprintMutation({ + selection: { fields: { id: true } }, +}); +create({ ownerId: '', databaseId: '', name: '', displayName: '', description: '', definition: '', templateId: '', status: '', constructedAt: '', errorDetails: '', refMap: '', constructedDefinition: '', definitionHash: '', tableHashes: '' }); ``` -### UuidModule +### BlueprintTemplate ```typescript -// List all uuidModules -const { data, isLoading } = useUuidModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, uuidFunction: true, uuidSeed: true, uuidFunctionTrgmSimilarity: true, uuidSeedTrgmSimilarity: true, searchScore: true } }, +// List all blueprintTemplates +const { data, isLoading } = useBlueprintTemplatesQuery({ + selection: { fields: { id: true, name: true, version: true, displayName: true, description: true, ownerId: true, visibility: true, categories: true, tags: true, definition: true, definitionSchemaVersion: true, source: true, complexity: true, copyCount: true, forkCount: true, forkedFromId: true, definitionHash: true, tableHashes: true, createdAt: true, updatedAt: true } }, }); -// Get one uuidModule -const { data: item } = useUuidModuleQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, uuidFunction: true, uuidSeed: true, uuidFunctionTrgmSimilarity: true, uuidSeedTrgmSimilarity: true, searchScore: true } }, +// Get one blueprintTemplate +const { data: item } = useBlueprintTemplateQuery({ + id: '', + selection: { fields: { id: true, name: true, version: true, displayName: true, description: true, ownerId: true, visibility: true, categories: true, tags: true, definition: true, definitionSchemaVersion: true, source: true, complexity: true, copyCount: true, forkCount: true, forkedFromId: true, definitionHash: true, tableHashes: true, createdAt: true, updatedAt: true } }, }); -// Create a uuidModule -const { mutate: create } = useCreateUuidModuleMutation({ +// Create a blueprintTemplate +const { mutate: create } = useCreateBlueprintTemplateMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', schemaId: '', uuidFunction: '', uuidSeed: '', uuidFunctionTrgmSimilarity: '', uuidSeedTrgmSimilarity: '', searchScore: '' }); +create({ name: '', version: '', displayName: '', description: '', ownerId: '', visibility: '', categories: '', tags: '', definition: '', definitionSchemaVersion: '', source: '', complexity: '', copyCount: '', forkCount: '', forkedFromId: '', definitionHash: '', tableHashes: '' }); ``` ### DatabaseProvisionModule @@ -1889,20 +1998,20 @@ create({ databaseId: '', schemaId: '', uuidFunction: '', uu ```typescript // List all databaseProvisionModules const { data, isLoading } = useDatabaseProvisionModulesQuery({ - selection: { fields: { id: true, databaseName: true, ownerId: true, subdomain: true, domain: true, modules: true, options: true, bootstrapUser: true, status: true, errorMessage: true, databaseId: true, createdAt: true, updatedAt: true, completedAt: true, databaseNameTrgmSimilarity: true, subdomainTrgmSimilarity: true, domainTrgmSimilarity: true, statusTrgmSimilarity: true, errorMessageTrgmSimilarity: true, searchScore: true } }, + selection: { fields: { id: true, databaseName: true, ownerId: true, subdomain: true, domain: true, modules: true, options: true, bootstrapUser: true, status: true, errorMessage: true, databaseId: true, createdAt: true, updatedAt: true, completedAt: true } }, }); // Get one databaseProvisionModule const { data: item } = useDatabaseProvisionModuleQuery({ - id: '', - selection: { fields: { id: true, databaseName: true, ownerId: true, subdomain: true, domain: true, modules: true, options: true, bootstrapUser: true, status: true, errorMessage: true, databaseId: true, createdAt: true, updatedAt: true, completedAt: true, databaseNameTrgmSimilarity: true, subdomainTrgmSimilarity: true, domainTrgmSimilarity: true, statusTrgmSimilarity: true, errorMessageTrgmSimilarity: true, searchScore: true } }, + id: '', + selection: { fields: { id: true, databaseName: true, ownerId: true, subdomain: true, domain: true, modules: true, options: true, bootstrapUser: true, status: true, errorMessage: true, databaseId: true, createdAt: true, updatedAt: true, completedAt: true } }, }); // Create a databaseProvisionModule const { mutate: create } = useCreateDatabaseProvisionModuleMutation({ selection: { fields: { id: true } }, }); -create({ databaseName: '', ownerId: '', subdomain: '', domain: '', modules: '', options: '', bootstrapUser: '', status: '', errorMessage: '', databaseId: '', completedAt: '', databaseNameTrgmSimilarity: '', subdomainTrgmSimilarity: '', domainTrgmSimilarity: '', statusTrgmSimilarity: '', errorMessageTrgmSimilarity: '', searchScore: '' }); +create({ databaseName: '', ownerId: '', subdomain: '', domain: '', modules: '', options: '', bootstrapUser: '', status: '', errorMessage: '', databaseId: '', completedAt: '' }); ``` ### AppAdminGrant @@ -1915,7 +2024,7 @@ const { data, isLoading } = useAppAdminGrantsQuery({ // Get one appAdminGrant const { data: item } = useAppAdminGrantQuery({ - id: '', + id: '', selection: { fields: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }, }); @@ -1923,7 +2032,7 @@ const { data: item } = useAppAdminGrantQuery({ const { mutate: create } = useCreateAppAdminGrantMutation({ selection: { fields: { id: true } }, }); -create({ isGrant: '', actorId: '', grantorId: '' }); +create({ isGrant: '', actorId: '', grantorId: '' }); ``` ### AppOwnerGrant @@ -1936,7 +2045,7 @@ const { data, isLoading } = useAppOwnerGrantsQuery({ // Get one appOwnerGrant const { data: item } = useAppOwnerGrantQuery({ - id: '', + id: '', selection: { fields: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }, }); @@ -1944,7 +2053,7 @@ const { data: item } = useAppOwnerGrantQuery({ const { mutate: create } = useCreateAppOwnerGrantMutation({ selection: { fields: { id: true } }, }); -create({ isGrant: '', actorId: '', grantorId: '' }); +create({ isGrant: '', actorId: '', grantorId: '' }); ``` ### AppGrant @@ -1957,7 +2066,7 @@ const { data, isLoading } = useAppGrantsQuery({ // Get one appGrant const { data: item } = useAppGrantQuery({ - id: '', + id: '', selection: { fields: { id: true, permissions: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }, }); @@ -1965,7 +2074,7 @@ const { data: item } = useAppGrantQuery({ const { mutate: create } = useCreateAppGrantMutation({ selection: { fields: { id: true } }, }); -create({ permissions: '', isGrant: '', actorId: '', grantorId: '' }); +create({ permissions: '', isGrant: '', actorId: '', grantorId: '' }); ``` ### OrgMembership @@ -1978,7 +2087,7 @@ const { data, isLoading } = useOrgMembershipsQuery({ // Get one orgMembership const { data: item } = useOrgMembershipQuery({ - id: '', + id: '', selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, profileId: true } }, }); @@ -1986,7 +2095,7 @@ const { data: item } = useOrgMembershipQuery({ const { mutate: create } = useCreateOrgMembershipMutation({ selection: { fields: { id: true } }, }); -create({ createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '', profileId: '' }); +create({ createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '', profileId: '' }); ``` ### OrgMember @@ -1999,7 +2108,7 @@ const { data, isLoading } = useOrgMembersQuery({ // Get one orgMember const { data: item } = useOrgMemberQuery({ - id: '', + id: '', selection: { fields: { id: true, isAdmin: true, actorId: true, entityId: true } }, }); @@ -2007,7 +2116,7 @@ const { data: item } = useOrgMemberQuery({ const { mutate: create } = useCreateOrgMemberMutation({ selection: { fields: { id: true } }, }); -create({ isAdmin: '', actorId: '', entityId: '' }); +create({ isAdmin: '', actorId: '', entityId: '' }); ``` ### OrgAdminGrant @@ -2020,7 +2129,7 @@ const { data, isLoading } = useOrgAdminGrantsQuery({ // Get one orgAdminGrant const { data: item } = useOrgAdminGrantQuery({ - id: '', + id: '', selection: { fields: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }, }); @@ -2028,7 +2137,7 @@ const { data: item } = useOrgAdminGrantQuery({ const { mutate: create } = useCreateOrgAdminGrantMutation({ selection: { fields: { id: true } }, }); -create({ isGrant: '', actorId: '', entityId: '', grantorId: '' }); +create({ isGrant: '', actorId: '', entityId: '', grantorId: '' }); ``` ### OrgOwnerGrant @@ -2041,7 +2150,7 @@ const { data, isLoading } = useOrgOwnerGrantsQuery({ // Get one orgOwnerGrant const { data: item } = useOrgOwnerGrantQuery({ - id: '', + id: '', selection: { fields: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }, }); @@ -2049,7 +2158,7 @@ const { data: item } = useOrgOwnerGrantQuery({ const { mutate: create } = useCreateOrgOwnerGrantMutation({ selection: { fields: { id: true } }, }); -create({ isGrant: '', actorId: '', entityId: '', grantorId: '' }); +create({ isGrant: '', actorId: '', entityId: '', grantorId: '' }); ``` ### OrgGrant @@ -2062,7 +2171,7 @@ const { data, isLoading } = useOrgGrantsQuery({ // Get one orgGrant const { data: item } = useOrgGrantQuery({ - id: '', + id: '', selection: { fields: { id: true, permissions: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }, }); @@ -2070,7 +2179,7 @@ const { data: item } = useOrgGrantQuery({ const { mutate: create } = useCreateOrgGrantMutation({ selection: { fields: { id: true } }, }); -create({ permissions: '', isGrant: '', actorId: '', entityId: '', grantorId: '' }); +create({ permissions: '', isGrant: '', actorId: '', entityId: '', grantorId: '' }); ``` ### OrgChartEdge @@ -2078,20 +2187,20 @@ create({ permissions: '', isGrant: '', actorId: '', entityI ```typescript // List all orgChartEdges const { data, isLoading } = useOrgChartEdgesQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true, positionTitleTrgmSimilarity: true, searchScore: true } }, + selection: { fields: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true } }, }); // Get one orgChartEdge const { data: item } = useOrgChartEdgeQuery({ - id: '', - selection: { fields: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true, positionTitleTrgmSimilarity: true, searchScore: true } }, + id: '', + selection: { fields: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true } }, }); // Create a orgChartEdge const { mutate: create } = useCreateOrgChartEdgeMutation({ selection: { fields: { id: true } }, }); -create({ entityId: '', childId: '', parentId: '', positionTitle: '', positionLevel: '', positionTitleTrgmSimilarity: '', searchScore: '' }); +create({ entityId: '', childId: '', parentId: '', positionTitle: '', positionLevel: '' }); ``` ### OrgChartEdgeGrant @@ -2099,20 +2208,41 @@ create({ entityId: '', childId: '', parentId: '', positionT ```typescript // List all orgChartEdgeGrants const { data, isLoading } = useOrgChartEdgeGrantsQuery({ - selection: { fields: { id: true, entityId: true, childId: true, parentId: true, grantorId: true, isGrant: true, positionTitle: true, positionLevel: true, createdAt: true, positionTitleTrgmSimilarity: true, searchScore: true } }, + selection: { fields: { id: true, entityId: true, childId: true, parentId: true, grantorId: true, isGrant: true, positionTitle: true, positionLevel: true, createdAt: true } }, }); // Get one orgChartEdgeGrant const { data: item } = useOrgChartEdgeGrantQuery({ - id: '', - selection: { fields: { id: true, entityId: true, childId: true, parentId: true, grantorId: true, isGrant: true, positionTitle: true, positionLevel: true, createdAt: true, positionTitleTrgmSimilarity: true, searchScore: true } }, + id: '', + selection: { fields: { id: true, entityId: true, childId: true, parentId: true, grantorId: true, isGrant: true, positionTitle: true, positionLevel: true, createdAt: true } }, }); // Create a orgChartEdgeGrant const { mutate: create } = useCreateOrgChartEdgeGrantMutation({ selection: { fields: { id: true } }, }); -create({ entityId: '', childId: '', parentId: '', grantorId: '', isGrant: '', positionTitle: '', positionLevel: '', positionTitleTrgmSimilarity: '', searchScore: '' }); +create({ entityId: '', childId: '', parentId: '', grantorId: '', isGrant: '', positionTitle: '', positionLevel: '' }); +``` + +### OrgPermissionDefault + +```typescript +// List all orgPermissionDefaults +const { data, isLoading } = useOrgPermissionDefaultsQuery({ + selection: { fields: { id: true, permissions: true, entityId: true } }, +}); + +// Get one orgPermissionDefault +const { data: item } = useOrgPermissionDefaultQuery({ + id: '', + selection: { fields: { id: true, permissions: true, entityId: true } }, +}); + +// Create a orgPermissionDefault +const { mutate: create } = useCreateOrgPermissionDefaultMutation({ + selection: { fields: { id: true } }, +}); +create({ permissions: '', entityId: '' }); ``` ### AppLimit @@ -2125,7 +2255,7 @@ const { data, isLoading } = useAppLimitsQuery({ // Get one appLimit const { data: item } = useAppLimitQuery({ - id: '', + id: '', selection: { fields: { id: true, name: true, actorId: true, num: true, max: true } }, }); @@ -2133,7 +2263,7 @@ const { data: item } = useAppLimitQuery({ const { mutate: create } = useCreateAppLimitMutation({ selection: { fields: { id: true } }, }); -create({ name: '', actorId: '', num: '', max: '' }); +create({ name: '', actorId: '', num: '', max: '' }); ``` ### OrgLimit @@ -2146,7 +2276,7 @@ const { data, isLoading } = useOrgLimitsQuery({ // Get one orgLimit const { data: item } = useOrgLimitQuery({ - id: '', + id: '', selection: { fields: { id: true, name: true, actorId: true, num: true, max: true, entityId: true } }, }); @@ -2154,7 +2284,7 @@ const { data: item } = useOrgLimitQuery({ const { mutate: create } = useCreateOrgLimitMutation({ selection: { fields: { id: true } }, }); -create({ name: '', actorId: '', num: '', max: '', entityId: '' }); +create({ name: '', actorId: '', num: '', max: '', entityId: '' }); ``` ### AppStep @@ -2167,7 +2297,7 @@ const { data, isLoading } = useAppStepsQuery({ // Get one appStep const { data: item } = useAppStepQuery({ - id: '', + id: '', selection: { fields: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }, }); @@ -2175,7 +2305,7 @@ const { data: item } = useAppStepQuery({ const { mutate: create } = useCreateAppStepMutation({ selection: { fields: { id: true } }, }); -create({ actorId: '', name: '', count: '' }); +create({ actorId: '', name: '', count: '' }); ``` ### AppAchievement @@ -2188,7 +2318,7 @@ const { data, isLoading } = useAppAchievementsQuery({ // Get one appAchievement const { data: item } = useAppAchievementQuery({ - id: '', + id: '', selection: { fields: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }, }); @@ -2196,238 +2326,301 @@ const { data: item } = useAppAchievementQuery({ const { mutate: create } = useCreateAppAchievementMutation({ selection: { fields: { id: true } }, }); -create({ actorId: '', name: '', count: '' }); +create({ actorId: '', name: '', count: '' }); ``` -### Invite +### AppLevel ```typescript -// List all invites -const { data, isLoading } = useInvitesQuery({ - selection: { fields: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true, inviteTokenTrgmSimilarity: true, searchScore: true } }, +// List all appLevels +const { data, isLoading } = useAppLevelsQuery({ + selection: { fields: { id: true, name: true, description: true, image: true, ownerId: true, createdAt: true, updatedAt: true } }, }); -// Get one invite -const { data: item } = useInviteQuery({ - id: '', - selection: { fields: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true, inviteTokenTrgmSimilarity: true, searchScore: true } }, +// Get one appLevel +const { data: item } = useAppLevelQuery({ + id: '', + selection: { fields: { id: true, name: true, description: true, image: true, ownerId: true, createdAt: true, updatedAt: true } }, }); -// Create a invite -const { mutate: create } = useCreateInviteMutation({ +// Create a appLevel +const { mutate: create } = useCreateAppLevelMutation({ selection: { fields: { id: true } }, }); -create({ email: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '', inviteTokenTrgmSimilarity: '', searchScore: '' }); +create({ name: '', description: '', image: '', ownerId: '' }); ``` -### ClaimedInvite +### Email ```typescript -// List all claimedInvites -const { data, isLoading } = useClaimedInvitesQuery({ - selection: { fields: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true } }, +// List all emails +const { data, isLoading } = useEmailsQuery({ + selection: { fields: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }, }); -// Get one claimedInvite -const { data: item } = useClaimedInviteQuery({ - id: '', - selection: { fields: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true } }, +// Get one email +const { data: item } = useEmailQuery({ + id: '', + selection: { fields: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }, }); -// Create a claimedInvite -const { mutate: create } = useCreateClaimedInviteMutation({ +// Create a email +const { mutate: create } = useCreateEmailMutation({ selection: { fields: { id: true } }, }); -create({ data: '', senderId: '', receiverId: '' }); +create({ ownerId: '', email: '', isVerified: '', isPrimary: '' }); ``` -### OrgInvite +### PhoneNumber ```typescript -// List all orgInvites -const { data, isLoading } = useOrgInvitesQuery({ - selection: { fields: { id: true, email: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true, inviteTokenTrgmSimilarity: true, searchScore: true } }, +// List all phoneNumbers +const { data, isLoading } = usePhoneNumbersQuery({ + selection: { fields: { id: true, ownerId: true, cc: true, number: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }, }); -// Get one orgInvite -const { data: item } = useOrgInviteQuery({ - id: '', - selection: { fields: { id: true, email: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true, inviteTokenTrgmSimilarity: true, searchScore: true } }, +// Get one phoneNumber +const { data: item } = usePhoneNumberQuery({ + id: '', + selection: { fields: { id: true, ownerId: true, cc: true, number: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }, }); -// Create a orgInvite -const { mutate: create } = useCreateOrgInviteMutation({ +// Create a phoneNumber +const { mutate: create } = useCreatePhoneNumberMutation({ selection: { fields: { id: true } }, }); -create({ email: '', senderId: '', receiverId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '', entityId: '', inviteTokenTrgmSimilarity: '', searchScore: '' }); +create({ ownerId: '', cc: '', number: '', isVerified: '', isPrimary: '' }); ``` -### OrgClaimedInvite +### CryptoAddress ```typescript -// List all orgClaimedInvites -const { data, isLoading } = useOrgClaimedInvitesQuery({ - selection: { fields: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true, entityId: true } }, +// List all cryptoAddresses +const { data, isLoading } = useCryptoAddressesQuery({ + selection: { fields: { id: true, ownerId: true, address: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }, }); -// Get one orgClaimedInvite -const { data: item } = useOrgClaimedInviteQuery({ - id: '', - selection: { fields: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true, entityId: true } }, +// Get one cryptoAddress +const { data: item } = useCryptoAddressQuery({ + id: '', + selection: { fields: { id: true, ownerId: true, address: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }, }); -// Create a orgClaimedInvite -const { mutate: create } = useCreateOrgClaimedInviteMutation({ +// Create a cryptoAddress +const { mutate: create } = useCreateCryptoAddressMutation({ selection: { fields: { id: true } }, }); -create({ data: '', senderId: '', receiverId: '', entityId: '' }); +create({ ownerId: '', address: '', isVerified: '', isPrimary: '' }); ``` -### Ref +### ConnectedAccount ```typescript -// List all refs -const { data, isLoading } = useRefsQuery({ - selection: { fields: { id: true, name: true, databaseId: true, storeId: true, commitId: true, nameTrgmSimilarity: true, searchScore: true } }, +// List all connectedAccounts +const { data, isLoading } = useConnectedAccountsQuery({ + selection: { fields: { id: true, ownerId: true, service: true, identifier: true, details: true, isVerified: true, createdAt: true, updatedAt: true } }, }); -// Get one ref -const { data: item } = useRefQuery({ - id: '', - selection: { fields: { id: true, name: true, databaseId: true, storeId: true, commitId: true, nameTrgmSimilarity: true, searchScore: true } }, +// Get one connectedAccount +const { data: item } = useConnectedAccountQuery({ + id: '', + selection: { fields: { id: true, ownerId: true, service: true, identifier: true, details: true, isVerified: true, createdAt: true, updatedAt: true } }, }); -// Create a ref -const { mutate: create } = useCreateRefMutation({ +// Create a connectedAccount +const { mutate: create } = useCreateConnectedAccountMutation({ selection: { fields: { id: true } }, }); -create({ name: '', databaseId: '', storeId: '', commitId: '', nameTrgmSimilarity: '', searchScore: '' }); +create({ ownerId: '', service: '', identifier: '', details: '', isVerified: '' }); ``` -### Store +### Invite ```typescript -// List all stores -const { data, isLoading } = useStoresQuery({ - selection: { fields: { id: true, name: true, databaseId: true, hash: true, createdAt: true, nameTrgmSimilarity: true, searchScore: true } }, +// List all invites +const { data, isLoading } = useInvitesQuery({ + selection: { fields: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true } }, }); -// Get one store -const { data: item } = useStoreQuery({ - id: '', - selection: { fields: { id: true, name: true, databaseId: true, hash: true, createdAt: true, nameTrgmSimilarity: true, searchScore: true } }, +// Get one invite +const { data: item } = useInviteQuery({ + id: '', + selection: { fields: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true } }, }); -// Create a store -const { mutate: create } = useCreateStoreMutation({ +// Create a invite +const { mutate: create } = useCreateInviteMutation({ selection: { fields: { id: true } }, }); -create({ name: '', databaseId: '', hash: '', nameTrgmSimilarity: '', searchScore: '' }); +create({ email: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '' }); ``` -### AppPermissionDefault +### ClaimedInvite ```typescript -// List all appPermissionDefaults -const { data, isLoading } = useAppPermissionDefaultsQuery({ - selection: { fields: { id: true, permissions: true } }, +// List all claimedInvites +const { data, isLoading } = useClaimedInvitesQuery({ + selection: { fields: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true } }, }); -// Get one appPermissionDefault -const { data: item } = useAppPermissionDefaultQuery({ - id: '', - selection: { fields: { id: true, permissions: true } }, +// Get one claimedInvite +const { data: item } = useClaimedInviteQuery({ + id: '', + selection: { fields: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true } }, }); -// Create a appPermissionDefault -const { mutate: create } = useCreateAppPermissionDefaultMutation({ +// Create a claimedInvite +const { mutate: create } = useCreateClaimedInviteMutation({ selection: { fields: { id: true } }, }); -create({ permissions: '' }); +create({ data: '', senderId: '', receiverId: '' }); ``` -### CryptoAddress +### OrgInvite ```typescript -// List all cryptoAddresses -const { data, isLoading } = useCryptoAddressesQuery({ - selection: { fields: { id: true, ownerId: true, address: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true, addressTrgmSimilarity: true, searchScore: true } }, +// List all orgInvites +const { data, isLoading } = useOrgInvitesQuery({ + selection: { fields: { id: true, email: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true } }, }); -// Get one cryptoAddress -const { data: item } = useCryptoAddressQuery({ - id: '', - selection: { fields: { id: true, ownerId: true, address: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true, addressTrgmSimilarity: true, searchScore: true } }, +// Get one orgInvite +const { data: item } = useOrgInviteQuery({ + id: '', + selection: { fields: { id: true, email: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true } }, }); -// Create a cryptoAddress -const { mutate: create } = useCreateCryptoAddressMutation({ +// Create a orgInvite +const { mutate: create } = useCreateOrgInviteMutation({ selection: { fields: { id: true } }, }); -create({ ownerId: '', address: '', isVerified: '', isPrimary: '', addressTrgmSimilarity: '', searchScore: '' }); +create({ email: '', senderId: '', receiverId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '', entityId: '' }); ``` -### RoleType +### OrgClaimedInvite ```typescript -// List all roleTypes -const { data, isLoading } = useRoleTypesQuery({ - selection: { fields: { id: true, name: true } }, +// List all orgClaimedInvites +const { data, isLoading } = useOrgClaimedInvitesQuery({ + selection: { fields: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true, entityId: true } }, }); -// Get one roleType -const { data: item } = useRoleTypeQuery({ - id: '', - selection: { fields: { id: true, name: true } }, +// Get one orgClaimedInvite +const { data: item } = useOrgClaimedInviteQuery({ + id: '', + selection: { fields: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true, entityId: true } }, }); -// Create a roleType -const { mutate: create } = useCreateRoleTypeMutation({ +// Create a orgClaimedInvite +const { mutate: create } = useCreateOrgClaimedInviteMutation({ selection: { fields: { id: true } }, }); -create({ name: '' }); +create({ data: '', senderId: '', receiverId: '', entityId: '' }); ``` -### OrgPermissionDefault +### AuditLog ```typescript -// List all orgPermissionDefaults -const { data, isLoading } = useOrgPermissionDefaultsQuery({ - selection: { fields: { id: true, permissions: true, entityId: true } }, +// List all auditLogs +const { data, isLoading } = useAuditLogsQuery({ + selection: { fields: { id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true, createdAt: true } }, }); -// Get one orgPermissionDefault -const { data: item } = useOrgPermissionDefaultQuery({ - id: '', - selection: { fields: { id: true, permissions: true, entityId: true } }, +// Get one auditLog +const { data: item } = useAuditLogQuery({ + id: '', + selection: { fields: { id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true, createdAt: true } }, }); -// Create a orgPermissionDefault -const { mutate: create } = useCreateOrgPermissionDefaultMutation({ +// Create a auditLog +const { mutate: create } = useCreateAuditLogMutation({ selection: { fields: { id: true } }, }); -create({ permissions: '', entityId: '' }); +create({ event: '', actorId: '', origin: '', userAgent: '', ipAddress: '', success: '' }); ``` -### PhoneNumber +### Ref ```typescript -// List all phoneNumbers -const { data, isLoading } = usePhoneNumbersQuery({ - selection: { fields: { id: true, ownerId: true, cc: true, number: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true, ccTrgmSimilarity: true, numberTrgmSimilarity: true, searchScore: true } }, +// List all refs +const { data, isLoading } = useRefsQuery({ + selection: { fields: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }, }); -// Get one phoneNumber -const { data: item } = usePhoneNumberQuery({ - id: '', - selection: { fields: { id: true, ownerId: true, cc: true, number: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true, ccTrgmSimilarity: true, numberTrgmSimilarity: true, searchScore: true } }, +// Get one ref +const { data: item } = useRefQuery({ + id: '', + selection: { fields: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }, }); -// Create a phoneNumber -const { mutate: create } = useCreatePhoneNumberMutation({ +// Create a ref +const { mutate: create } = useCreateRefMutation({ + selection: { fields: { id: true } }, +}); +create({ name: '', databaseId: '', storeId: '', commitId: '' }); +``` + +### Store + +```typescript +// List all stores +const { data, isLoading } = useStoresQuery({ + selection: { fields: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }, +}); + +// Get one store +const { data: item } = useStoreQuery({ + id: '', + selection: { fields: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }, +}); + +// Create a store +const { mutate: create } = useCreateStoreMutation({ + selection: { fields: { id: true } }, +}); +create({ name: '', databaseId: '', hash: '' }); +``` + +### AppPermissionDefault + +```typescript +// List all appPermissionDefaults +const { data, isLoading } = useAppPermissionDefaultsQuery({ + selection: { fields: { id: true, permissions: true } }, +}); + +// Get one appPermissionDefault +const { data: item } = useAppPermissionDefaultQuery({ + id: '', + selection: { fields: { id: true, permissions: true } }, +}); + +// Create a appPermissionDefault +const { mutate: create } = useCreateAppPermissionDefaultMutation({ selection: { fields: { id: true } }, }); -create({ ownerId: '', cc: '', number: '', isVerified: '', isPrimary: '', ccTrgmSimilarity: '', numberTrgmSimilarity: '', searchScore: '' }); +create({ permissions: '' }); +``` + +### RoleType + +```typescript +// List all roleTypes +const { data, isLoading } = useRoleTypesQuery({ + selection: { fields: { id: true, name: true } }, +}); + +// Get one roleType +const { data: item } = useRoleTypeQuery({ + id: '', + selection: { fields: { id: true, name: true } }, +}); + +// Create a roleType +const { mutate: create } = useCreateRoleTypeMutation({ + selection: { fields: { id: true } }, +}); +create({ name: '' }); ``` ### AppLimitDefault @@ -2440,7 +2633,7 @@ const { data, isLoading } = useAppLimitDefaultsQuery({ // Get one appLimitDefault const { data: item } = useAppLimitDefaultQuery({ - id: '', + id: '', selection: { fields: { id: true, name: true, max: true } }, }); @@ -2448,7 +2641,7 @@ const { data: item } = useAppLimitDefaultQuery({ const { mutate: create } = useCreateAppLimitDefaultMutation({ selection: { fields: { id: true } }, }); -create({ name: '', max: '' }); +create({ name: '', max: '' }); ``` ### OrgLimitDefault @@ -2461,7 +2654,7 @@ const { data, isLoading } = useOrgLimitDefaultsQuery({ // Get one orgLimitDefault const { data: item } = useOrgLimitDefaultQuery({ - id: '', + id: '', selection: { fields: { id: true, name: true, max: true } }, }); @@ -2469,28 +2662,7 @@ const { data: item } = useOrgLimitDefaultQuery({ const { mutate: create } = useCreateOrgLimitDefaultMutation({ selection: { fields: { id: true } }, }); -create({ name: '', max: '' }); -``` - -### ConnectedAccount - -```typescript -// List all connectedAccounts -const { data, isLoading } = useConnectedAccountsQuery({ - selection: { fields: { id: true, ownerId: true, service: true, identifier: true, details: true, isVerified: true, createdAt: true, updatedAt: true, serviceTrgmSimilarity: true, identifierTrgmSimilarity: true, searchScore: true } }, -}); - -// Get one connectedAccount -const { data: item } = useConnectedAccountQuery({ - id: '', - selection: { fields: { id: true, ownerId: true, service: true, identifier: true, details: true, isVerified: true, createdAt: true, updatedAt: true, serviceTrgmSimilarity: true, identifierTrgmSimilarity: true, searchScore: true } }, -}); - -// Create a connectedAccount -const { mutate: create } = useCreateConnectedAccountMutation({ - selection: { fields: { id: true } }, -}); -create({ ownerId: '', service: '', identifier: '', details: '', isVerified: '', serviceTrgmSimilarity: '', identifierTrgmSimilarity: '', searchScore: '' }); +create({ name: '', max: '' }); ``` ### NodeTypeRegistry @@ -2498,20 +2670,20 @@ create({ ownerId: '', service: '', identifier: '', details: ```typescript // List all nodeTypeRegistries const { data, isLoading } = useNodeTypeRegistriesQuery({ - selection: { fields: { name: true, slug: true, category: true, displayName: true, description: true, parameterSchema: true, tags: true, createdAt: true, updatedAt: true, nameTrgmSimilarity: true, slugTrgmSimilarity: true, categoryTrgmSimilarity: true, displayNameTrgmSimilarity: true, descriptionTrgmSimilarity: true, searchScore: true } }, + selection: { fields: { name: true, slug: true, category: true, displayName: true, description: true, parameterSchema: true, tags: true, createdAt: true, updatedAt: true } }, }); // Get one nodeTypeRegistry const { data: item } = useNodeTypeRegistryQuery({ - name: '', - selection: { fields: { name: true, slug: true, category: true, displayName: true, description: true, parameterSchema: true, tags: true, createdAt: true, updatedAt: true, nameTrgmSimilarity: true, slugTrgmSimilarity: true, categoryTrgmSimilarity: true, displayNameTrgmSimilarity: true, descriptionTrgmSimilarity: true, searchScore: true } }, + name: '', + selection: { fields: { name: true, slug: true, category: true, displayName: true, description: true, parameterSchema: true, tags: true, createdAt: true, updatedAt: true } }, }); // Create a nodeTypeRegistry const { mutate: create } = useCreateNodeTypeRegistryMutation({ selection: { fields: { name: true } }, }); -create({ slug: '', category: '', displayName: '', description: '', parameterSchema: '', tags: '', nameTrgmSimilarity: '', slugTrgmSimilarity: '', categoryTrgmSimilarity: '', displayNameTrgmSimilarity: '', descriptionTrgmSimilarity: '', searchScore: '' }); +create({ slug: '', category: '', displayName: '', description: '', parameterSchema: '', tags: '' }); ``` ### MembershipType @@ -2519,20 +2691,20 @@ create({ slug: '', category: '', displayName: '', descripti ```typescript // List all membershipTypes const { data, isLoading } = useMembershipTypesQuery({ - selection: { fields: { id: true, name: true, description: true, prefix: true, descriptionTrgmSimilarity: true, prefixTrgmSimilarity: true, searchScore: true } }, + selection: { fields: { id: true, name: true, description: true, prefix: true } }, }); // Get one membershipType const { data: item } = useMembershipTypeQuery({ - id: '', - selection: { fields: { id: true, name: true, description: true, prefix: true, descriptionTrgmSimilarity: true, prefixTrgmSimilarity: true, searchScore: true } }, + id: '', + selection: { fields: { id: true, name: true, description: true, prefix: true } }, }); // Create a membershipType const { mutate: create } = useCreateMembershipTypeMutation({ selection: { fields: { id: true } }, }); -create({ name: '', description: '', prefix: '', descriptionTrgmSimilarity: '', prefixTrgmSimilarity: '', searchScore: '' }); +create({ name: '', description: '', prefix: '' }); ``` ### Commit @@ -2540,20 +2712,20 @@ create({ name: '', description: '', prefix: '', description ```typescript // List all commits const { data, isLoading } = useCommitsQuery({ - selection: { fields: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true, messageTrgmSimilarity: true, searchScore: true } }, + selection: { fields: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }, }); // Get one commit const { data: item } = useCommitQuery({ - id: '', - selection: { fields: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true, messageTrgmSimilarity: true, searchScore: true } }, + id: '', + selection: { fields: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }, }); // Create a commit const { mutate: create } = useCreateCommitMutation({ selection: { fields: { id: true } }, }); -create({ message: '', databaseId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '', messageTrgmSimilarity: '', searchScore: '' }); +create({ message: '', databaseId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }); ``` ### AppMembershipDefault @@ -2566,7 +2738,7 @@ const { data, isLoading } = useAppMembershipDefaultsQuery({ // Get one appMembershipDefault const { data: item } = useAppMembershipDefaultQuery({ - id: '', + id: '', selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }, }); @@ -2574,7 +2746,7 @@ const { data: item } = useAppMembershipDefaultQuery({ const { mutate: create } = useCreateAppMembershipDefaultMutation({ selection: { fields: { id: true } }, }); -create({ createdBy: '', updatedBy: '', isApproved: '', isVerified: '' }); +create({ createdBy: '', updatedBy: '', isApproved: '', isVerified: '' }); ``` ### RlsModule @@ -2582,20 +2754,20 @@ create({ createdBy: '', updatedBy: '', isApproved: '', isVe ```typescript // List all rlsModules const { data, isLoading } = useRlsModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, sessionCredentialsTableId: true, sessionsTableId: true, usersTableId: true, authenticate: true, authenticateStrict: true, currentRole: true, currentRoleId: true, authenticateTrgmSimilarity: true, authenticateStrictTrgmSimilarity: true, currentRoleTrgmSimilarity: true, currentRoleIdTrgmSimilarity: true, searchScore: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, sessionCredentialsTableId: true, sessionsTableId: true, usersTableId: true, authenticate: true, authenticateStrict: true, currentRole: true, currentRoleId: true } }, }); // Get one rlsModule const { data: item } = useRlsModuleQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, sessionCredentialsTableId: true, sessionsTableId: true, usersTableId: true, authenticate: true, authenticateStrict: true, currentRole: true, currentRoleId: true, authenticateTrgmSimilarity: true, authenticateStrictTrgmSimilarity: true, currentRoleTrgmSimilarity: true, currentRoleIdTrgmSimilarity: true, searchScore: true } }, + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, sessionCredentialsTableId: true, sessionsTableId: true, usersTableId: true, authenticate: true, authenticateStrict: true, currentRole: true, currentRoleId: true } }, }); // Create a rlsModule const { mutate: create } = useCreateRlsModuleMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', schemaId: '', privateSchemaId: '', sessionCredentialsTableId: '', sessionsTableId: '', usersTableId: '', authenticate: '', authenticateStrict: '', currentRole: '', currentRoleId: '', authenticateTrgmSimilarity: '', authenticateStrictTrgmSimilarity: '', currentRoleTrgmSimilarity: '', currentRoleIdTrgmSimilarity: '', searchScore: '' }); +create({ databaseId: '', schemaId: '', privateSchemaId: '', sessionCredentialsTableId: '', sessionsTableId: '', usersTableId: '', authenticate: '', authenticateStrict: '', currentRole: '', currentRoleId: '' }); ``` ### OrgMembershipDefault @@ -2608,7 +2780,7 @@ const { data, isLoading } = useOrgMembershipDefaultsQuery({ // Get one orgMembershipDefault const { data: item } = useOrgMembershipDefaultQuery({ - id: '', + id: '', selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true, deleteMemberCascadeGroups: true, createGroupsCascadeMembers: true } }, }); @@ -2616,49 +2788,7 @@ const { data: item } = useOrgMembershipDefaultQuery({ const { mutate: create } = useCreateOrgMembershipDefaultMutation({ selection: { fields: { id: true } }, }); -create({ createdBy: '', updatedBy: '', isApproved: '', entityId: '', deleteMemberCascadeGroups: '', createGroupsCascadeMembers: '' }); -``` - -### AuditLog - -```typescript -// List all auditLogs -const { data, isLoading } = useAuditLogsQuery({ - selection: { fields: { id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true, createdAt: true, userAgentTrgmSimilarity: true, searchScore: true } }, -}); - -// Get one auditLog -const { data: item } = useAuditLogQuery({ - id: '', - selection: { fields: { id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true, createdAt: true, userAgentTrgmSimilarity: true, searchScore: true } }, -}); - -// Create a auditLog -const { mutate: create } = useCreateAuditLogMutation({ - selection: { fields: { id: true } }, -}); -create({ event: '', actorId: '', origin: '', userAgent: '', ipAddress: '', success: '', userAgentTrgmSimilarity: '', searchScore: '' }); -``` - -### AppLevel - -```typescript -// List all appLevels -const { data, isLoading } = useAppLevelsQuery({ - selection: { fields: { id: true, name: true, description: true, image: true, ownerId: true, createdAt: true, updatedAt: true, descriptionTrgmSimilarity: true, searchScore: true } }, -}); - -// Get one appLevel -const { data: item } = useAppLevelQuery({ - id: '', - selection: { fields: { id: true, name: true, description: true, image: true, ownerId: true, createdAt: true, updatedAt: true, descriptionTrgmSimilarity: true, searchScore: true } }, -}); - -// Create a appLevel -const { mutate: create } = useCreateAppLevelMutation({ - selection: { fields: { id: true } }, -}); -create({ name: '', description: '', image: '', ownerId: '', descriptionTrgmSimilarity: '', searchScore: '' }); +create({ createdBy: '', updatedBy: '', isApproved: '', entityId: '', deleteMemberCascadeGroups: '', createGroupsCascadeMembers: '' }); ``` ### SqlMigration @@ -2666,41 +2796,20 @@ create({ name: '', description: '', image: '', ownerId: '', - selection: { fields: { id: true, name: true, databaseId: true, deploy: true, deps: true, payload: true, content: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true, nameTrgmSimilarity: true, deployTrgmSimilarity: true, contentTrgmSimilarity: true, revertTrgmSimilarity: true, verifyTrgmSimilarity: true, actionTrgmSimilarity: true, searchScore: true } }, + id: '', + selection: { fields: { id: true, name: true, databaseId: true, deploy: true, deps: true, payload: true, content: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } }, }); // Create a sqlMigration const { mutate: create } = useCreateSqlMigrationMutation({ selection: { fields: { id: true } }, }); -create({ name: '', databaseId: '', deploy: '', deps: '', payload: '', content: '', revert: '', verify: '', action: '', actionId: '', actorId: '', nameTrgmSimilarity: '', deployTrgmSimilarity: '', contentTrgmSimilarity: '', revertTrgmSimilarity: '', verifyTrgmSimilarity: '', actionTrgmSimilarity: '', searchScore: '' }); -``` - -### Email - -```typescript -// List all emails -const { data, isLoading } = useEmailsQuery({ - selection: { fields: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }, -}); - -// Get one email -const { data: item } = useEmailQuery({ - id: '', - selection: { fields: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }, -}); - -// Create a email -const { mutate: create } = useCreateEmailMutation({ - selection: { fields: { id: true } }, -}); -create({ ownerId: '', email: '', isVerified: '', isPrimary: '' }); +create({ name: '', databaseId: '', deploy: '', deps: '', payload: '', content: '', revert: '', verify: '', action: '', actionId: '', actorId: '' }); ``` ### User @@ -2713,7 +2822,7 @@ const { data, isLoading } = useUsersQuery({ // Get one user const { data: item } = useUserQuery({ - id: '', + id: '', selection: { fields: { id: true, username: true, displayName: true, profilePicture: true, searchTsv: true, type: true, createdAt: true, updatedAt: true, searchTsvRank: true, displayNameTrgmSimilarity: true, searchScore: true } }, }); @@ -2721,7 +2830,7 @@ const { data: item } = useUserQuery({ const { mutate: create } = useCreateUserMutation({ selection: { fields: { id: true } }, }); -create({ username: '', displayName: '', profilePicture: '', searchTsv: '', type: '', searchTsvRank: '', displayNameTrgmSimilarity: '', searchScore: '' }); +create({ username: '', displayName: '', profilePicture: '', searchTsv: '', type: '', searchTsvRank: '', displayNameTrgmSimilarity: '', searchScore: '' }); ``` ### AstMigration @@ -2729,20 +2838,20 @@ create({ username: '', displayName: '', profilePicture: '', ```typescript // List all astMigrations const { data, isLoading } = useAstMigrationsQuery({ - selection: { fields: { id: true, databaseId: true, name: true, requires: true, payload: true, deploys: true, deploy: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true, actionTrgmSimilarity: true, searchScore: true } }, + selection: { fields: { id: true, databaseId: true, name: true, requires: true, payload: true, deploys: true, deploy: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } }, }); // Get one astMigration const { data: item } = useAstMigrationQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, name: true, requires: true, payload: true, deploys: true, deploy: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true, actionTrgmSimilarity: true, searchScore: true } }, + id: '', + selection: { fields: { id: true, databaseId: true, name: true, requires: true, payload: true, deploys: true, deploy: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } }, }); // Create a astMigration const { mutate: create } = useCreateAstMigrationMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', name: '', requires: '', payload: '', deploys: '', deploy: '', revert: '', verify: '', action: '', actionId: '', actorId: '', actionTrgmSimilarity: '', searchScore: '' }); +create({ databaseId: '', name: '', requires: '', payload: '', deploys: '', deploy: '', revert: '', verify: '', action: '', actionId: '', actorId: '' }); ``` ### AppMembership @@ -2755,7 +2864,7 @@ const { data, isLoading } = useAppMembershipsQuery({ // Get one appMembership const { data: item } = useAppMembershipQuery({ - id: '', + id: '', selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }, }); @@ -2763,7 +2872,7 @@ const { data: item } = useAppMembershipQuery({ const { mutate: create } = useCreateAppMembershipMutation({ selection: { fields: { id: true } }, }); -create({ createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', profileId: '' }); +create({ createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', profileId: '' }); ``` ### HierarchyModule @@ -2771,20 +2880,20 @@ create({ createdBy: '', updatedBy: '', isApproved: '', isBa ```typescript // List all hierarchyModules const { data, isLoading } = useHierarchyModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, chartEdgesTableId: true, chartEdgesTableName: true, hierarchySprtTableId: true, hierarchySprtTableName: true, chartEdgeGrantsTableId: true, chartEdgeGrantsTableName: true, entityTableId: true, usersTableId: true, prefix: true, privateSchemaName: true, sprtTableName: true, rebuildHierarchyFunction: true, getSubordinatesFunction: true, getManagersFunction: true, isManagerOfFunction: true, createdAt: true, chartEdgesTableNameTrgmSimilarity: true, hierarchySprtTableNameTrgmSimilarity: true, chartEdgeGrantsTableNameTrgmSimilarity: true, prefixTrgmSimilarity: true, privateSchemaNameTrgmSimilarity: true, sprtTableNameTrgmSimilarity: true, rebuildHierarchyFunctionTrgmSimilarity: true, getSubordinatesFunctionTrgmSimilarity: true, getManagersFunctionTrgmSimilarity: true, isManagerOfFunctionTrgmSimilarity: true, searchScore: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, chartEdgesTableId: true, chartEdgesTableName: true, hierarchySprtTableId: true, hierarchySprtTableName: true, chartEdgeGrantsTableId: true, chartEdgeGrantsTableName: true, entityTableId: true, usersTableId: true, prefix: true, privateSchemaName: true, sprtTableName: true, rebuildHierarchyFunction: true, getSubordinatesFunction: true, getManagersFunction: true, isManagerOfFunction: true, createdAt: true } }, }); // Get one hierarchyModule const { data: item } = useHierarchyModuleQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, chartEdgesTableId: true, chartEdgesTableName: true, hierarchySprtTableId: true, hierarchySprtTableName: true, chartEdgeGrantsTableId: true, chartEdgeGrantsTableName: true, entityTableId: true, usersTableId: true, prefix: true, privateSchemaName: true, sprtTableName: true, rebuildHierarchyFunction: true, getSubordinatesFunction: true, getManagersFunction: true, isManagerOfFunction: true, createdAt: true, chartEdgesTableNameTrgmSimilarity: true, hierarchySprtTableNameTrgmSimilarity: true, chartEdgeGrantsTableNameTrgmSimilarity: true, prefixTrgmSimilarity: true, privateSchemaNameTrgmSimilarity: true, sprtTableNameTrgmSimilarity: true, rebuildHierarchyFunctionTrgmSimilarity: true, getSubordinatesFunctionTrgmSimilarity: true, getManagersFunctionTrgmSimilarity: true, isManagerOfFunctionTrgmSimilarity: true, searchScore: true } }, + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, chartEdgesTableId: true, chartEdgesTableName: true, hierarchySprtTableId: true, hierarchySprtTableName: true, chartEdgeGrantsTableId: true, chartEdgeGrantsTableName: true, entityTableId: true, usersTableId: true, prefix: true, privateSchemaName: true, sprtTableName: true, rebuildHierarchyFunction: true, getSubordinatesFunction: true, getManagersFunction: true, isManagerOfFunction: true, createdAt: true } }, }); // Create a hierarchyModule const { mutate: create } = useCreateHierarchyModuleMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', schemaId: '', privateSchemaId: '', chartEdgesTableId: '', chartEdgesTableName: '', hierarchySprtTableId: '', hierarchySprtTableName: '', chartEdgeGrantsTableId: '', chartEdgeGrantsTableName: '', entityTableId: '', usersTableId: '', prefix: '', privateSchemaName: '', sprtTableName: '', rebuildHierarchyFunction: '', getSubordinatesFunction: '', getManagersFunction: '', isManagerOfFunction: '', chartEdgesTableNameTrgmSimilarity: '', hierarchySprtTableNameTrgmSimilarity: '', chartEdgeGrantsTableNameTrgmSimilarity: '', prefixTrgmSimilarity: '', privateSchemaNameTrgmSimilarity: '', sprtTableNameTrgmSimilarity: '', rebuildHierarchyFunctionTrgmSimilarity: '', getSubordinatesFunctionTrgmSimilarity: '', getManagersFunctionTrgmSimilarity: '', isManagerOfFunctionTrgmSimilarity: '', searchScore: '' }); +create({ databaseId: '', schemaId: '', privateSchemaId: '', chartEdgesTableId: '', chartEdgesTableName: '', hierarchySprtTableId: '', hierarchySprtTableName: '', chartEdgeGrantsTableId: '', chartEdgeGrantsTableName: '', entityTableId: '', usersTableId: '', prefix: '', privateSchemaName: '', sprtTableName: '', rebuildHierarchyFunction: '', getSubordinatesFunction: '', getManagersFunction: '', isManagerOfFunction: '' }); ``` ## Custom Operation Hooks @@ -3010,6 +3119,17 @@ currentUser - **Type:** query - **Arguments:** none +### `useSendAccountDeletionEmailMutation` + +sendAccountDeletionEmail + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SendAccountDeletionEmailInput (required) | + ### `useSignOutMutation` signOut @@ -3021,71 +3141,71 @@ signOut |----------|------| | `input` | SignOutInput (required) | -### `useSendAccountDeletionEmailMutation` +### `useAcceptDatabaseTransferMutation` -sendAccountDeletionEmail +acceptDatabaseTransfer - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | SendAccountDeletionEmailInput (required) | + | `input` | AcceptDatabaseTransferInput (required) | -### `useCheckPasswordMutation` +### `useCancelDatabaseTransferMutation` -checkPassword +cancelDatabaseTransfer - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | CheckPasswordInput (required) | + | `input` | CancelDatabaseTransferInput (required) | -### `useSubmitInviteCodeMutation` +### `useRejectDatabaseTransferMutation` -submitInviteCode +rejectDatabaseTransfer - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | SubmitInviteCodeInput (required) | + | `input` | RejectDatabaseTransferInput (required) | -### `useSubmitOrgInviteCodeMutation` +### `useSubmitInviteCodeMutation` -submitOrgInviteCode +submitInviteCode - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | SubmitOrgInviteCodeInput (required) | + | `input` | SubmitInviteCodeInput (required) | -### `useFreezeObjectsMutation` +### `useSubmitOrgInviteCodeMutation` -freezeObjects +submitOrgInviteCode - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | FreezeObjectsInput (required) | + | `input` | SubmitOrgInviteCodeInput (required) | -### `useInitEmptyRepoMutation` +### `useCheckPasswordMutation` -initEmptyRepo +checkPassword - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | InitEmptyRepoInput (required) | + | `input` | CheckPasswordInput (required) | ### `useConfirmDeleteAccountMutation` @@ -3120,49 +3240,60 @@ verifyEmail |----------|------| | `input` | VerifyEmailInput (required) | -### `useRemoveNodeAtPathMutation` +### `useFreezeObjectsMutation` -removeNodeAtPath +freezeObjects - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | RemoveNodeAtPathInput (required) | + | `input` | FreezeObjectsInput (required) | -### `useResetPasswordMutation` +### `useInitEmptyRepoMutation` -resetPassword +initEmptyRepo - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | ResetPasswordInput (required) | + | `input` | InitEmptyRepoInput (required) | -### `useBootstrapUserMutation` +### `useConstructBlueprintMutation` -bootstrapUser +Executes a draft blueprint definition. Four phases: (1) create tables with nodes[], fields, and policies[], (2) create relations between tables, (3) create indexes on table fields (supports BTREE, HNSW, GIN, GIST, BM25, etc.), (4) create full-text search configurations with weighted multi-field TSVector support. nodes[] entries can be strings or {$type, data} objects. Relations use $type for relation_type with junction config in data. Indexes reference table_ref + column name(s) and are resolved to field_ids. Full-text searches reference table_ref + tsvector field + source fields with weights/langs. Builds a ref_map of local ref names to created table UUIDs. Updates blueprint status to constructed (or failed with error_details). Returns the ref_map. - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | BootstrapUserInput (required) | + | `input` | ConstructBlueprintInput (required) | -### `useSetFieldOrderMutation` +### `useResetPasswordMutation` -setFieldOrder +resetPassword - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | SetFieldOrderInput (required) | + | `input` | ResetPasswordInput (required) | + +### `useRemoveNodeAtPathMutation` + +removeNodeAtPath + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | RemoveNodeAtPathInput (required) | ### `useSetDataAtPathMutation` @@ -3186,6 +3317,17 @@ setPropsAndCommit |----------|------| | `input` | SetPropsAndCommitInput (required) | +### `useCopyTemplateToBlueprintMutation` + +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. + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | CopyTemplateToBlueprintInput (required) | + ### `useProvisionDatabaseWithUserMutation` provisionDatabaseWithUser @@ -3197,6 +3339,28 @@ provisionDatabaseWithUser |----------|------| | `input` | ProvisionDatabaseWithUserInput (required) | +### `useBootstrapUserMutation` + +bootstrapUser + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | BootstrapUserInput (required) | + +### `useSetFieldOrderMutation` + +setFieldOrder + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SetFieldOrderInput (required) | + ### `useInsertNodeAtPathMutation` insertNodeAtPath @@ -3323,27 +3487,27 @@ oneTimeToken |----------|------| | `input` | OneTimeTokenInput (required) | -### `useForgotPasswordMutation` +### `useSendVerificationEmailMutation` -forgotPassword +sendVerificationEmail - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | ForgotPasswordInput (required) | + | `input` | SendVerificationEmailInput (required) | -### `useSendVerificationEmailMutation` +### `useForgotPasswordMutation` -sendVerificationEmail +forgotPassword - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | SendVerificationEmailInput (required) | + | `input` | ForgotPasswordInput (required) | ### `useVerifyPasswordMutation` diff --git a/sdk/constructive-react/src/public/hooks/index.ts b/sdk/constructive-react/src/public/hooks/index.ts index e7d977bec..891221180 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, Object, AppPermission, OrgPermission, AppLevelRequirement, Database, Schema, Table, CheckConstraint, Field, ForeignKeyConstraint, FullTextSearch, Index, Policy, PrimaryKeyConstraint, TableGrant, Trigger, UniqueConstraint, View, ViewTable, ViewGrant, ViewRule, TableTemplateModule, SecureTableProvision, RelationProvision, SchemaGrant, DefaultPrivilege, ApiSchema, ApiModule, Domain, SiteMetadatum, SiteModule, SiteTheme, TriggerFunction, Api, Site, App, ConnectedAccountsModule, CryptoAddressesModule, CryptoAuthModule, DefaultIdsModule, DenormalizedTableField, EmailsModule, EncryptedSecretsModule, FieldModule, InvitesModule, LevelsModule, LimitsModule, MembershipTypesModule, MembershipsModule, PermissionsModule, PhoneNumbersModule, ProfilesModule, SecretsModule, SessionsModule, UserAuthModule, UsersModule, UuidModule, DatabaseProvisionModule, AppAdminGrant, AppOwnerGrant, AppGrant, OrgMembership, OrgMember, OrgAdminGrant, OrgOwnerGrant, OrgGrant, OrgChartEdge, OrgChartEdgeGrant, AppLimit, OrgLimit, AppStep, AppAchievement, Invite, ClaimedInvite, OrgInvite, OrgClaimedInvite, Ref, Store, AppPermissionDefault, CryptoAddress, RoleType, OrgPermissionDefault, PhoneNumber, AppLimitDefault, OrgLimitDefault, ConnectedAccount, NodeTypeRegistry, MembershipType, Commit, AppMembershipDefault, RlsModule, OrgMembershipDefault, AuditLog, AppLevel, SqlMigration, Email, User, AstMigration, AppMembership, HierarchyModule + * Tables: GetAllRecord, OrgGetManagersRecord, OrgGetSubordinatesRecord, Object, AppPermission, OrgPermission, AppLevelRequirement, Database, Schema, Table, CheckConstraint, Field, ForeignKeyConstraint, FullTextSearch, Index, Policy, PrimaryKeyConstraint, TableGrant, Trigger, UniqueConstraint, View, ViewTable, ViewGrant, ViewRule, EmbeddingChunk, TableTemplateModule, SecureTableProvision, RelationProvision, SchemaGrant, DefaultPrivilege, Enum, ApiSchema, ApiModule, Domain, SiteMetadatum, SiteModule, SiteTheme, TriggerFunction, DatabaseTransfer, Api, Site, App, ConnectedAccountsModule, CryptoAddressesModule, CryptoAuthModule, DefaultIdsModule, DenormalizedTableField, EmailsModule, EncryptedSecretsModule, FieldModule, InvitesModule, LevelsModule, LimitsModule, MembershipTypesModule, MembershipsModule, PermissionsModule, PhoneNumbersModule, ProfilesModule, SecretsModule, SessionsModule, UserAuthModule, UsersModule, Blueprint, BlueprintTemplate, DatabaseProvisionModule, AppAdminGrant, AppOwnerGrant, AppGrant, OrgMembership, OrgMember, OrgAdminGrant, OrgOwnerGrant, OrgGrant, OrgChartEdge, OrgChartEdgeGrant, OrgPermissionDefault, AppLimit, OrgLimit, AppStep, AppAchievement, AppLevel, Email, PhoneNumber, CryptoAddress, ConnectedAccount, Invite, ClaimedInvite, OrgInvite, OrgClaimedInvite, AuditLog, Ref, Store, AppPermissionDefault, RoleType, AppLimitDefault, OrgLimitDefault, NodeTypeRegistry, MembershipType, Commit, AppMembershipDefault, RlsModule, OrgMembershipDefault, SqlMigration, User, AstMigration, AppMembership, HierarchyModule * * Usage: * diff --git a/sdk/constructive-react/src/public/hooks/invalidation.ts b/sdk/constructive-react/src/public/hooks/invalidation.ts index c688273ec..32cdb3e41 100644 --- a/sdk/constructive-react/src/public/hooks/invalidation.ts +++ b/sdk/constructive-react/src/public/hooks/invalidation.ts @@ -15,9 +15,9 @@ import type { QueryClient } from '@tanstack/react-query'; import { + getAllRecordKeys, orgGetManagersRecordKeys, orgGetSubordinatesRecordKeys, - getAllRecordKeys, objectKeys, appPermissionKeys, orgPermissionKeys, @@ -39,11 +39,13 @@ import { viewTableKeys, viewGrantKeys, viewRuleKeys, + embeddingChunkKeys, tableTemplateModuleKeys, secureTableProvisionKeys, relationProvisionKeys, schemaGrantKeys, defaultPrivilegeKeys, + enumKeys, apiSchemaKeys, apiModuleKeys, domainKeys, @@ -51,6 +53,7 @@ import { siteModuleKeys, siteThemeKeys, triggerFunctionKeys, + databaseTransferKeys, apiKeys, siteKeys, appKeys, @@ -74,7 +77,8 @@ import { sessionsModuleKeys, userAuthModuleKeys, usersModuleKeys, - uuidModuleKeys, + blueprintKeys, + blueprintTemplateKeys, databaseProvisionModuleKeys, appAdminGrantKeys, appOwnerGrantKeys, @@ -86,34 +90,34 @@ import { orgGrantKeys, orgChartEdgeKeys, orgChartEdgeGrantKeys, + orgPermissionDefaultKeys, appLimitKeys, orgLimitKeys, appStepKeys, appAchievementKeys, + appLevelKeys, + emailKeys, + phoneNumberKeys, + cryptoAddressKeys, + connectedAccountKeys, inviteKeys, claimedInviteKeys, orgInviteKeys, orgClaimedInviteKeys, + auditLogKeys, refKeys, storeKeys, appPermissionDefaultKeys, - cryptoAddressKeys, roleTypeKeys, - orgPermissionDefaultKeys, - phoneNumberKeys, appLimitDefaultKeys, orgLimitDefaultKeys, - connectedAccountKeys, nodeTypeRegistryKeys, membershipTypeKeys, commitKeys, appMembershipDefaultKeys, rlsModuleKeys, orgMembershipDefaultKeys, - auditLogKeys, - appLevelKeys, sqlMigrationKeys, - emailKeys, userKeys, astMigrationKeys, appMembershipKeys, @@ -139,6 +143,23 @@ import { * ``` */ export const invalidate = { + /** Invalidate getAllRecord queries */ getAllRecord: { + /** Invalidate all getAllRecord queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: getAllRecordKeys.all, + }), + /** Invalidate getAllRecord list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: getAllRecordKeys.lists(), + }), + /** Invalidate a specific getAllRecord */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: getAllRecordKeys.detail(id), + }), + }, /** Invalidate orgGetManagersRecord queries */ orgGetManagersRecord: { /** Invalidate all orgGetManagersRecord queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -173,23 +194,6 @@ export const invalidate = { queryKey: orgGetSubordinatesRecordKeys.detail(id), }), }, - /** Invalidate getAllRecord queries */ getAllRecord: { - /** Invalidate all getAllRecord queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: getAllRecordKeys.all, - }), - /** Invalidate getAllRecord list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: getAllRecordKeys.lists(), - }), - /** Invalidate a specific getAllRecord */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: getAllRecordKeys.detail(id), - }), - }, /** Invalidate object queries */ object: { /** Invalidate all object queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -517,6 +521,23 @@ export const invalidate = { queryKey: viewRuleKeys.detail(id), }), }, + /** Invalidate embeddingChunk queries */ embeddingChunk: { + /** Invalidate all embeddingChunk queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: embeddingChunkKeys.all, + }), + /** Invalidate embeddingChunk list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: embeddingChunkKeys.lists(), + }), + /** Invalidate a specific embeddingChunk */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: embeddingChunkKeys.detail(id), + }), + }, /** Invalidate tableTemplateModule queries */ tableTemplateModule: { /** Invalidate all tableTemplateModule queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -602,6 +623,20 @@ export const invalidate = { queryKey: defaultPrivilegeKeys.detail(id), }), }, + /** Invalidate enum queries */ enum: { + /** Invalidate all enum queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: enumKeys.all, + }), + /** Invalidate enum list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: enumKeys.lists(), + }), + /** Invalidate a specific enum */ detail: (queryClient: QueryClient, id: string | number) => + queryClient.invalidateQueries({ + queryKey: enumKeys.detail(id), + }), + }, /** Invalidate apiSchema queries */ apiSchema: { /** Invalidate all apiSchema queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -718,6 +753,23 @@ export const invalidate = { queryKey: triggerFunctionKeys.detail(id), }), }, + /** Invalidate databaseTransfer queries */ databaseTransfer: { + /** Invalidate all databaseTransfer queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: databaseTransferKeys.all, + }), + /** Invalidate databaseTransfer list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: databaseTransferKeys.lists(), + }), + /** Invalidate a specific databaseTransfer */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: databaseTransferKeys.detail(id), + }), + }, /** Invalidate api queries */ api: { /** Invalidate all api queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -1100,21 +1152,38 @@ export const invalidate = { queryKey: usersModuleKeys.detail(id), }), }, - /** Invalidate uuidModule queries */ uuidModule: { - /** Invalidate all uuidModule queries */ all: (queryClient: QueryClient) => + /** Invalidate blueprint queries */ blueprint: { + /** Invalidate all blueprint queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: blueprintKeys.all, + }), + /** Invalidate blueprint list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: blueprintKeys.lists(), + }), + /** Invalidate a specific blueprint */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: blueprintKeys.detail(id), + }), + }, + /** Invalidate blueprintTemplate queries */ blueprintTemplate: { + /** Invalidate all blueprintTemplate queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: uuidModuleKeys.all, + queryKey: blueprintTemplateKeys.all, }), - /** Invalidate uuidModule list queries */ lists: (queryClient: QueryClient) => + /** Invalidate blueprintTemplate list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: uuidModuleKeys.lists(), + queryKey: blueprintTemplateKeys.lists(), }), - /** Invalidate a specific uuidModule */ detail: ( + /** Invalidate a specific blueprintTemplate */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: uuidModuleKeys.detail(id), + queryKey: blueprintTemplateKeys.detail(id), }), }, /** Invalidate databaseProvisionModule queries */ databaseProvisionModule: { @@ -1298,6 +1367,23 @@ export const invalidate = { queryKey: orgChartEdgeGrantKeys.detail(id), }), }, + /** Invalidate orgPermissionDefault queries */ orgPermissionDefault: { + /** Invalidate all orgPermissionDefault queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgPermissionDefaultKeys.all, + }), + /** Invalidate orgPermissionDefault list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgPermissionDefaultKeys.lists(), + }), + /** Invalidate a specific orgPermissionDefault */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: orgPermissionDefaultKeys.detail(id), + }), + }, /** Invalidate appLimit queries */ appLimit: { /** Invalidate all appLimit queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -1357,6 +1443,85 @@ export const invalidate = { queryKey: appAchievementKeys.detail(id), }), }, + /** Invalidate appLevel queries */ appLevel: { + /** Invalidate all appLevel queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appLevelKeys.all, + }), + /** Invalidate appLevel list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appLevelKeys.lists(), + }), + /** Invalidate a specific appLevel */ detail: (queryClient: QueryClient, id: string | number) => + queryClient.invalidateQueries({ + queryKey: appLevelKeys.detail(id), + }), + }, + /** Invalidate email queries */ email: { + /** Invalidate all email queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: emailKeys.all, + }), + /** Invalidate email list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: emailKeys.lists(), + }), + /** Invalidate a specific email */ detail: (queryClient: QueryClient, id: string | number) => + queryClient.invalidateQueries({ + queryKey: emailKeys.detail(id), + }), + }, + /** Invalidate phoneNumber queries */ phoneNumber: { + /** Invalidate all phoneNumber queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: phoneNumberKeys.all, + }), + /** Invalidate phoneNumber list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: phoneNumberKeys.lists(), + }), + /** Invalidate a specific phoneNumber */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: phoneNumberKeys.detail(id), + }), + }, + /** Invalidate cryptoAddress queries */ cryptoAddress: { + /** Invalidate all cryptoAddress queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: cryptoAddressKeys.all, + }), + /** Invalidate cryptoAddress list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: cryptoAddressKeys.lists(), + }), + /** Invalidate a specific cryptoAddress */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: cryptoAddressKeys.detail(id), + }), + }, + /** Invalidate connectedAccount queries */ connectedAccount: { + /** Invalidate all connectedAccount queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: connectedAccountKeys.all, + }), + /** Invalidate connectedAccount list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: connectedAccountKeys.lists(), + }), + /** Invalidate a specific connectedAccount */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: connectedAccountKeys.detail(id), + }), + }, /** Invalidate invite queries */ invite: { /** Invalidate all invite queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -1422,6 +1587,20 @@ export const invalidate = { queryKey: orgClaimedInviteKeys.detail(id), }), }, + /** Invalidate auditLog queries */ auditLog: { + /** Invalidate all auditLog queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: auditLogKeys.all, + }), + /** Invalidate auditLog list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: auditLogKeys.lists(), + }), + /** Invalidate a specific auditLog */ detail: (queryClient: QueryClient, id: string | number) => + queryClient.invalidateQueries({ + queryKey: auditLogKeys.detail(id), + }), + }, /** Invalidate ref queries */ ref: { /** Invalidate all ref queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -1467,23 +1646,6 @@ export const invalidate = { queryKey: appPermissionDefaultKeys.detail(id), }), }, - /** Invalidate cryptoAddress queries */ cryptoAddress: { - /** Invalidate all cryptoAddress queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: cryptoAddressKeys.all, - }), - /** Invalidate cryptoAddress list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: cryptoAddressKeys.lists(), - }), - /** Invalidate a specific cryptoAddress */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: cryptoAddressKeys.detail(id), - }), - }, /** Invalidate roleType queries */ roleType: { /** Invalidate all roleType queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -1498,40 +1660,6 @@ export const invalidate = { queryKey: roleTypeKeys.detail(id), }), }, - /** Invalidate orgPermissionDefault queries */ orgPermissionDefault: { - /** Invalidate all orgPermissionDefault queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgPermissionDefaultKeys.all, - }), - /** Invalidate orgPermissionDefault list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgPermissionDefaultKeys.lists(), - }), - /** Invalidate a specific orgPermissionDefault */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: orgPermissionDefaultKeys.detail(id), - }), - }, - /** Invalidate phoneNumber queries */ phoneNumber: { - /** Invalidate all phoneNumber queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: phoneNumberKeys.all, - }), - /** Invalidate phoneNumber list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: phoneNumberKeys.lists(), - }), - /** Invalidate a specific phoneNumber */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: phoneNumberKeys.detail(id), - }), - }, /** Invalidate appLimitDefault queries */ appLimitDefault: { /** Invalidate all appLimitDefault queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -1566,23 +1694,6 @@ export const invalidate = { queryKey: orgLimitDefaultKeys.detail(id), }), }, - /** Invalidate connectedAccount queries */ connectedAccount: { - /** Invalidate all connectedAccount queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: connectedAccountKeys.all, - }), - /** Invalidate connectedAccount list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: connectedAccountKeys.lists(), - }), - /** Invalidate a specific connectedAccount */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: connectedAccountKeys.detail(id), - }), - }, /** Invalidate nodeTypeRegistry queries */ nodeTypeRegistry: { /** Invalidate all nodeTypeRegistry queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -1682,34 +1793,6 @@ export const invalidate = { queryKey: orgMembershipDefaultKeys.detail(id), }), }, - /** Invalidate auditLog queries */ auditLog: { - /** Invalidate all auditLog queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: auditLogKeys.all, - }), - /** Invalidate auditLog list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: auditLogKeys.lists(), - }), - /** Invalidate a specific auditLog */ detail: (queryClient: QueryClient, id: string | number) => - queryClient.invalidateQueries({ - queryKey: auditLogKeys.detail(id), - }), - }, - /** Invalidate appLevel queries */ appLevel: { - /** Invalidate all appLevel queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appLevelKeys.all, - }), - /** Invalidate appLevel list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appLevelKeys.lists(), - }), - /** Invalidate a specific appLevel */ detail: (queryClient: QueryClient, id: string | number) => - queryClient.invalidateQueries({ - queryKey: appLevelKeys.detail(id), - }), - }, /** Invalidate sqlMigration queries */ sqlMigration: { /** Invalidate all sqlMigration queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -1727,20 +1810,6 @@ export const invalidate = { queryKey: sqlMigrationKeys.detail(id), }), }, - /** Invalidate email queries */ email: { - /** Invalidate all email queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: emailKeys.all, - }), - /** Invalidate email list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: emailKeys.lists(), - }), - /** Invalidate a specific email */ detail: (queryClient: QueryClient, id: string | number) => - queryClient.invalidateQueries({ - queryKey: emailKeys.detail(id), - }), - }, /** Invalidate user queries */ user: { /** Invalidate all user queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -1819,28 +1888,28 @@ export const invalidate = { * instead of just invalidating (which would trigger a refetch). */ export const remove = { - /** Remove orgGetManagersRecord from cache */ orgGetManagersRecord: ( + /** Remove getAllRecord from cache */ getAllRecord: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: orgGetManagersRecordKeys.detail(id), + queryKey: getAllRecordKeys.detail(id), }); }, - /** Remove orgGetSubordinatesRecord from cache */ orgGetSubordinatesRecord: ( + /** Remove orgGetManagersRecord from cache */ orgGetManagersRecord: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: orgGetSubordinatesRecordKeys.detail(id), + queryKey: orgGetManagersRecordKeys.detail(id), }); }, - /** Remove getAllRecord from cache */ getAllRecord: ( + /** Remove orgGetSubordinatesRecord from cache */ orgGetSubordinatesRecord: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: getAllRecordKeys.detail(id), + queryKey: orgGetSubordinatesRecordKeys.detail(id), }); }, /** Remove object from cache */ object: (queryClient: QueryClient, id: string | number) => { @@ -1975,6 +2044,14 @@ export const remove = { queryKey: viewRuleKeys.detail(id), }); }, + /** Remove embeddingChunk from cache */ embeddingChunk: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: embeddingChunkKeys.detail(id), + }); + }, /** Remove tableTemplateModule from cache */ tableTemplateModule: ( queryClient: QueryClient, id: string | number @@ -2015,6 +2092,11 @@ export const remove = { queryKey: defaultPrivilegeKeys.detail(id), }); }, + /** Remove enum from cache */ enum: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: enumKeys.detail(id), + }); + }, /** Remove apiSchema from cache */ apiSchema: (queryClient: QueryClient, id: string | number) => { queryClient.removeQueries({ queryKey: apiSchemaKeys.detail(id), @@ -2059,6 +2141,14 @@ export const remove = { queryKey: triggerFunctionKeys.detail(id), }); }, + /** Remove databaseTransfer from cache */ databaseTransfer: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: databaseTransferKeys.detail(id), + }); + }, /** Remove api from cache */ api: (queryClient: QueryClient, id: string | number) => { queryClient.removeQueries({ queryKey: apiKeys.detail(id), @@ -2234,12 +2324,17 @@ export const remove = { queryKey: usersModuleKeys.detail(id), }); }, - /** Remove uuidModule from cache */ uuidModule: ( + /** Remove blueprint from cache */ blueprint: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: blueprintKeys.detail(id), + }); + }, + /** Remove blueprintTemplate from cache */ blueprintTemplate: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: uuidModuleKeys.detail(id), + queryKey: blueprintTemplateKeys.detail(id), }); }, /** Remove databaseProvisionModule from cache */ databaseProvisionModule: ( @@ -2321,6 +2416,14 @@ export const remove = { queryKey: orgChartEdgeGrantKeys.detail(id), }); }, + /** Remove orgPermissionDefault from cache */ orgPermissionDefault: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: orgPermissionDefaultKeys.detail(id), + }); + }, /** Remove appLimit from cache */ appLimit: (queryClient: QueryClient, id: string | number) => { queryClient.removeQueries({ queryKey: appLimitKeys.detail(id), @@ -2344,6 +2447,40 @@ export const remove = { queryKey: appAchievementKeys.detail(id), }); }, + /** Remove appLevel from cache */ appLevel: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: appLevelKeys.detail(id), + }); + }, + /** Remove email from cache */ email: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: emailKeys.detail(id), + }); + }, + /** Remove phoneNumber from cache */ phoneNumber: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: phoneNumberKeys.detail(id), + }); + }, + /** Remove cryptoAddress from cache */ cryptoAddress: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: cryptoAddressKeys.detail(id), + }); + }, + /** Remove connectedAccount from cache */ connectedAccount: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: connectedAccountKeys.detail(id), + }); + }, /** Remove invite from cache */ invite: (queryClient: QueryClient, id: string | number) => { queryClient.removeQueries({ queryKey: inviteKeys.detail(id), @@ -2370,6 +2507,11 @@ export const remove = { queryKey: orgClaimedInviteKeys.detail(id), }); }, + /** Remove auditLog from cache */ auditLog: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: auditLogKeys.detail(id), + }); + }, /** Remove ref from cache */ ref: (queryClient: QueryClient, id: string | number) => { queryClient.removeQueries({ queryKey: refKeys.detail(id), @@ -2388,35 +2530,11 @@ export const remove = { queryKey: appPermissionDefaultKeys.detail(id), }); }, - /** Remove cryptoAddress from cache */ cryptoAddress: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: cryptoAddressKeys.detail(id), - }); - }, /** Remove roleType from cache */ roleType: (queryClient: QueryClient, id: string | number) => { queryClient.removeQueries({ queryKey: roleTypeKeys.detail(id), }); }, - /** Remove orgPermissionDefault from cache */ orgPermissionDefault: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: orgPermissionDefaultKeys.detail(id), - }); - }, - /** Remove phoneNumber from cache */ phoneNumber: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: phoneNumberKeys.detail(id), - }); - }, /** Remove appLimitDefault from cache */ appLimitDefault: ( queryClient: QueryClient, id: string | number @@ -2433,14 +2551,6 @@ export const remove = { queryKey: orgLimitDefaultKeys.detail(id), }); }, - /** Remove connectedAccount from cache */ connectedAccount: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: connectedAccountKeys.detail(id), - }); - }, /** Remove nodeTypeRegistry from cache */ nodeTypeRegistry: ( queryClient: QueryClient, id: string | number @@ -2483,16 +2593,6 @@ export const remove = { queryKey: orgMembershipDefaultKeys.detail(id), }); }, - /** Remove auditLog from cache */ auditLog: (queryClient: QueryClient, id: string | number) => { - queryClient.removeQueries({ - queryKey: auditLogKeys.detail(id), - }); - }, - /** Remove appLevel from cache */ appLevel: (queryClient: QueryClient, id: string | number) => { - queryClient.removeQueries({ - queryKey: appLevelKeys.detail(id), - }); - }, /** Remove sqlMigration from cache */ sqlMigration: ( queryClient: QueryClient, id: string | number @@ -2501,11 +2601,6 @@ export const remove = { queryKey: sqlMigrationKeys.detail(id), }); }, - /** Remove email from cache */ email: (queryClient: QueryClient, id: string | number) => { - queryClient.removeQueries({ - queryKey: emailKeys.detail(id), - }); - }, /** Remove user from cache */ user: (queryClient: QueryClient, id: string | number) => { queryClient.removeQueries({ queryKey: userKeys.detail(id), diff --git a/sdk/constructive-react/src/public/hooks/mutation-keys.ts b/sdk/constructive-react/src/public/hooks/mutation-keys.ts index f8dbf43ef..67a0d3f38 100644 --- a/sdk/constructive-react/src/public/hooks/mutation-keys.ts +++ b/sdk/constructive-react/src/public/hooks/mutation-keys.ts @@ -18,6 +18,15 @@ // Entity Mutation Keys // ============================================================================ +export const getAllRecordMutationKeys = { + /** All getAllRecord mutation keys */ all: ['mutation', 'getallrecord'] as const, + /** Create getAllRecord mutation key */ create: () => + ['mutation', 'getallrecord', 'create'] as const, + /** Update getAllRecord mutation key */ update: (id: string | number) => + ['mutation', 'getallrecord', 'update', id] as const, + /** Delete getAllRecord mutation key */ delete: (id: string | number) => + ['mutation', 'getallrecord', 'delete', id] as const, +} as const; export const orgGetManagersRecordMutationKeys = { /** All orgGetManagersRecord mutation keys */ all: ['mutation', 'orggetmanagersrecord'] as const, /** Create orgGetManagersRecord mutation key */ create: () => @@ -39,15 +48,6 @@ export const orgGetSubordinatesRecordMutationKeys = { /** Delete orgGetSubordinatesRecord mutation key */ delete: (id: string | number) => ['mutation', 'orggetsubordinatesrecord', 'delete', id] as const, } as const; -export const getAllRecordMutationKeys = { - /** All getAllRecord mutation keys */ all: ['mutation', 'getallrecord'] as const, - /** Create getAllRecord mutation key */ create: () => - ['mutation', 'getallrecord', 'create'] as const, - /** Update getAllRecord mutation key */ update: (id: string | number) => - ['mutation', 'getallrecord', 'update', id] as const, - /** Delete getAllRecord mutation key */ delete: (id: string | number) => - ['mutation', 'getallrecord', 'delete', id] as const, -} as const; export const objectMutationKeys = { /** All object mutation keys */ all: ['mutation', 'object'] as const, /** Create object mutation key */ create: () => ['mutation', 'object', 'create'] as const, @@ -224,6 +224,15 @@ export const viewRuleMutationKeys = { /** Delete viewRule mutation key */ delete: (id: string | number) => ['mutation', 'viewrule', 'delete', id] as const, } as const; +export const embeddingChunkMutationKeys = { + /** All embeddingChunk mutation keys */ all: ['mutation', 'embeddingchunk'] as const, + /** Create embeddingChunk mutation key */ create: () => + ['mutation', 'embeddingchunk', 'create'] as const, + /** Update embeddingChunk mutation key */ update: (id: string | number) => + ['mutation', 'embeddingchunk', 'update', id] as const, + /** Delete embeddingChunk mutation key */ delete: (id: string | number) => + ['mutation', 'embeddingchunk', 'delete', id] as const, +} as const; export const tableTemplateModuleMutationKeys = { /** All tableTemplateModule mutation keys */ all: ['mutation', 'tabletemplatemodule'] as const, /** Create tableTemplateModule mutation key */ create: () => @@ -269,6 +278,14 @@ export const defaultPrivilegeMutationKeys = { /** Delete defaultPrivilege mutation key */ delete: (id: string | number) => ['mutation', 'defaultprivilege', 'delete', id] as const, } as const; +export const enumMutationKeys = { + /** All enum mutation keys */ all: ['mutation', 'enum'] as const, + /** Create enum mutation key */ create: () => ['mutation', 'enum', 'create'] as const, + /** Update enum mutation key */ update: (id: string | number) => + ['mutation', 'enum', 'update', id] as const, + /** Delete enum mutation key */ delete: (id: string | number) => + ['mutation', 'enum', 'delete', id] as const, +} as const; export const apiSchemaMutationKeys = { /** All apiSchema mutation keys */ all: ['mutation', 'apischema'] as const, /** Create apiSchema mutation key */ create: () => ['mutation', 'apischema', 'create'] as const, @@ -327,6 +344,15 @@ export const triggerFunctionMutationKeys = { /** Delete triggerFunction mutation key */ delete: (id: string | number) => ['mutation', 'triggerfunction', 'delete', id] as const, } as const; +export const databaseTransferMutationKeys = { + /** All databaseTransfer mutation keys */ all: ['mutation', 'databasetransfer'] as const, + /** Create databaseTransfer mutation key */ create: () => + ['mutation', 'databasetransfer', 'create'] as const, + /** Update databaseTransfer mutation key */ update: (id: string | number) => + ['mutation', 'databasetransfer', 'update', id] as const, + /** Delete databaseTransfer mutation key */ delete: (id: string | number) => + ['mutation', 'databasetransfer', 'delete', id] as const, +} as const; export const apiMutationKeys = { /** All api mutation keys */ all: ['mutation', 'api'] as const, /** Create api mutation key */ create: () => ['mutation', 'api', 'create'] as const, @@ -546,13 +572,22 @@ export const usersModuleMutationKeys = { /** Delete usersModule mutation key */ delete: (id: string | number) => ['mutation', 'usersmodule', 'delete', id] as const, } as const; -export const uuidModuleMutationKeys = { - /** All uuidModule mutation keys */ all: ['mutation', 'uuidmodule'] as const, - /** Create uuidModule mutation key */ create: () => ['mutation', 'uuidmodule', 'create'] as const, - /** Update uuidModule mutation key */ update: (id: string | number) => - ['mutation', 'uuidmodule', 'update', id] as const, - /** Delete uuidModule mutation key */ delete: (id: string | number) => - ['mutation', 'uuidmodule', 'delete', id] as const, +export const blueprintMutationKeys = { + /** All blueprint mutation keys */ all: ['mutation', 'blueprint'] as const, + /** Create blueprint mutation key */ create: () => ['mutation', 'blueprint', 'create'] as const, + /** Update blueprint mutation key */ update: (id: string | number) => + ['mutation', 'blueprint', 'update', id] as const, + /** Delete blueprint mutation key */ delete: (id: string | number) => + ['mutation', 'blueprint', 'delete', id] as const, +} as const; +export const blueprintTemplateMutationKeys = { + /** All blueprintTemplate mutation keys */ all: ['mutation', 'blueprinttemplate'] as const, + /** Create blueprintTemplate mutation key */ create: () => + ['mutation', 'blueprinttemplate', 'create'] as const, + /** Update blueprintTemplate mutation key */ update: (id: string | number) => + ['mutation', 'blueprinttemplate', 'update', id] as const, + /** Delete blueprintTemplate mutation key */ delete: (id: string | number) => + ['mutation', 'blueprinttemplate', 'delete', id] as const, } as const; export const databaseProvisionModuleMutationKeys = { /** All databaseProvisionModule mutation keys */ all: [ @@ -653,6 +688,15 @@ export const orgChartEdgeGrantMutationKeys = { /** Delete orgChartEdgeGrant mutation key */ delete: (id: string | number) => ['mutation', 'orgchartedgegrant', 'delete', id] as const, } as const; +export const orgPermissionDefaultMutationKeys = { + /** All orgPermissionDefault mutation keys */ all: ['mutation', 'orgpermissiondefault'] as const, + /** Create orgPermissionDefault mutation key */ create: () => + ['mutation', 'orgpermissiondefault', 'create'] as const, + /** Update orgPermissionDefault mutation key */ update: (id: string | number) => + ['mutation', 'orgpermissiondefault', 'update', id] as const, + /** Delete orgPermissionDefault mutation key */ delete: (id: string | number) => + ['mutation', 'orgpermissiondefault', 'delete', id] as const, +} as const; export const appLimitMutationKeys = { /** All appLimit mutation keys */ all: ['mutation', 'applimit'] as const, /** Create appLimit mutation key */ create: () => ['mutation', 'applimit', 'create'] as const, @@ -686,6 +730,49 @@ export const appAchievementMutationKeys = { /** Delete appAchievement mutation key */ delete: (id: string | number) => ['mutation', 'appachievement', 'delete', id] as const, } as const; +export const appLevelMutationKeys = { + /** All appLevel mutation keys */ all: ['mutation', 'applevel'] as const, + /** Create appLevel mutation key */ create: () => ['mutation', 'applevel', 'create'] as const, + /** Update appLevel mutation key */ update: (id: string | number) => + ['mutation', 'applevel', 'update', id] as const, + /** Delete appLevel mutation key */ delete: (id: string | number) => + ['mutation', 'applevel', 'delete', id] as const, +} as const; +export const emailMutationKeys = { + /** All email mutation keys */ all: ['mutation', 'email'] as const, + /** Create email mutation key */ create: () => ['mutation', 'email', 'create'] as const, + /** Update email mutation key */ update: (id: string | number) => + ['mutation', 'email', 'update', id] as const, + /** Delete email mutation key */ delete: (id: string | number) => + ['mutation', 'email', 'delete', id] as const, +} as const; +export const phoneNumberMutationKeys = { + /** All phoneNumber mutation keys */ all: ['mutation', 'phonenumber'] as const, + /** Create phoneNumber mutation key */ create: () => + ['mutation', 'phonenumber', 'create'] as const, + /** Update phoneNumber mutation key */ update: (id: string | number) => + ['mutation', 'phonenumber', 'update', id] as const, + /** Delete phoneNumber mutation key */ delete: (id: string | number) => + ['mutation', 'phonenumber', 'delete', id] as const, +} as const; +export const cryptoAddressMutationKeys = { + /** All cryptoAddress mutation keys */ all: ['mutation', 'cryptoaddress'] as const, + /** Create cryptoAddress mutation key */ create: () => + ['mutation', 'cryptoaddress', 'create'] as const, + /** Update cryptoAddress mutation key */ update: (id: string | number) => + ['mutation', 'cryptoaddress', 'update', id] as const, + /** Delete cryptoAddress mutation key */ delete: (id: string | number) => + ['mutation', 'cryptoaddress', 'delete', id] as const, +} as const; +export const connectedAccountMutationKeys = { + /** All connectedAccount mutation keys */ all: ['mutation', 'connectedaccount'] as const, + /** Create connectedAccount mutation key */ create: () => + ['mutation', 'connectedaccount', 'create'] as const, + /** Update connectedAccount mutation key */ update: (id: string | number) => + ['mutation', 'connectedaccount', 'update', id] as const, + /** Delete connectedAccount mutation key */ delete: (id: string | number) => + ['mutation', 'connectedaccount', 'delete', id] as const, +} as const; export const inviteMutationKeys = { /** All invite mutation keys */ all: ['mutation', 'invite'] as const, /** Create invite mutation key */ create: () => ['mutation', 'invite', 'create'] as const, @@ -720,6 +807,14 @@ export const orgClaimedInviteMutationKeys = { /** Delete orgClaimedInvite mutation key */ delete: (id: string | number) => ['mutation', 'orgclaimedinvite', 'delete', id] as const, } as const; +export const auditLogMutationKeys = { + /** All auditLog mutation keys */ all: ['mutation', 'auditlog'] as const, + /** Create auditLog mutation key */ create: () => ['mutation', 'auditlog', 'create'] as const, + /** Update auditLog mutation key */ update: (id: string | number) => + ['mutation', 'auditlog', 'update', id] as const, + /** Delete auditLog mutation key */ delete: (id: string | number) => + ['mutation', 'auditlog', 'delete', id] as const, +} as const; export const refMutationKeys = { /** All ref mutation keys */ all: ['mutation', 'ref'] as const, /** Create ref mutation key */ create: () => ['mutation', 'ref', 'create'] as const, @@ -745,15 +840,6 @@ export const appPermissionDefaultMutationKeys = { /** Delete appPermissionDefault mutation key */ delete: (id: string | number) => ['mutation', 'apppermissiondefault', 'delete', id] as const, } as const; -export const cryptoAddressMutationKeys = { - /** All cryptoAddress mutation keys */ all: ['mutation', 'cryptoaddress'] as const, - /** Create cryptoAddress mutation key */ create: () => - ['mutation', 'cryptoaddress', 'create'] as const, - /** Update cryptoAddress mutation key */ update: (id: string | number) => - ['mutation', 'cryptoaddress', 'update', id] as const, - /** Delete cryptoAddress mutation key */ delete: (id: string | number) => - ['mutation', 'cryptoaddress', 'delete', id] as const, -} as const; export const roleTypeMutationKeys = { /** All roleType mutation keys */ all: ['mutation', 'roletype'] as const, /** Create roleType mutation key */ create: () => ['mutation', 'roletype', 'create'] as const, @@ -762,24 +848,6 @@ export const roleTypeMutationKeys = { /** Delete roleType mutation key */ delete: (id: string | number) => ['mutation', 'roletype', 'delete', id] as const, } as const; -export const orgPermissionDefaultMutationKeys = { - /** All orgPermissionDefault mutation keys */ all: ['mutation', 'orgpermissiondefault'] as const, - /** Create orgPermissionDefault mutation key */ create: () => - ['mutation', 'orgpermissiondefault', 'create'] as const, - /** Update orgPermissionDefault mutation key */ update: (id: string | number) => - ['mutation', 'orgpermissiondefault', 'update', id] as const, - /** Delete orgPermissionDefault mutation key */ delete: (id: string | number) => - ['mutation', 'orgpermissiondefault', 'delete', id] as const, -} as const; -export const phoneNumberMutationKeys = { - /** All phoneNumber mutation keys */ all: ['mutation', 'phonenumber'] as const, - /** Create phoneNumber mutation key */ create: () => - ['mutation', 'phonenumber', 'create'] as const, - /** Update phoneNumber mutation key */ update: (id: string | number) => - ['mutation', 'phonenumber', 'update', id] as const, - /** Delete phoneNumber mutation key */ delete: (id: string | number) => - ['mutation', 'phonenumber', 'delete', id] as const, -} as const; export const appLimitDefaultMutationKeys = { /** All appLimitDefault mutation keys */ all: ['mutation', 'applimitdefault'] as const, /** Create appLimitDefault mutation key */ create: () => @@ -798,15 +866,6 @@ export const orgLimitDefaultMutationKeys = { /** Delete orgLimitDefault mutation key */ delete: (id: string | number) => ['mutation', 'orglimitdefault', 'delete', id] as const, } as const; -export const connectedAccountMutationKeys = { - /** All connectedAccount mutation keys */ all: ['mutation', 'connectedaccount'] as const, - /** Create connectedAccount mutation key */ create: () => - ['mutation', 'connectedaccount', 'create'] as const, - /** Update connectedAccount mutation key */ update: (id: string | number) => - ['mutation', 'connectedaccount', 'update', id] as const, - /** Delete connectedAccount mutation key */ delete: (id: string | number) => - ['mutation', 'connectedaccount', 'delete', id] as const, -} as const; export const nodeTypeRegistryMutationKeys = { /** All nodeTypeRegistry mutation keys */ all: ['mutation', 'nodetyperegistry'] as const, /** Create nodeTypeRegistry mutation key */ create: () => @@ -859,22 +918,6 @@ export const orgMembershipDefaultMutationKeys = { /** Delete orgMembershipDefault mutation key */ delete: (id: string | number) => ['mutation', 'orgmembershipdefault', 'delete', id] as const, } as const; -export const auditLogMutationKeys = { - /** All auditLog mutation keys */ all: ['mutation', 'auditlog'] as const, - /** Create auditLog mutation key */ create: () => ['mutation', 'auditlog', 'create'] as const, - /** Update auditLog mutation key */ update: (id: string | number) => - ['mutation', 'auditlog', 'update', id] as const, - /** Delete auditLog mutation key */ delete: (id: string | number) => - ['mutation', 'auditlog', 'delete', id] as const, -} as const; -export const appLevelMutationKeys = { - /** All appLevel mutation keys */ all: ['mutation', 'applevel'] as const, - /** Create appLevel mutation key */ create: () => ['mutation', 'applevel', 'create'] as const, - /** Update appLevel mutation key */ update: (id: string | number) => - ['mutation', 'applevel', 'update', id] as const, - /** Delete appLevel mutation key */ delete: (id: string | number) => - ['mutation', 'applevel', 'delete', id] as const, -} as const; export const sqlMigrationMutationKeys = { /** All sqlMigration mutation keys */ all: ['mutation', 'sqlmigration'] as const, /** Create sqlMigration mutation key */ create: () => @@ -884,14 +927,6 @@ export const sqlMigrationMutationKeys = { /** Delete sqlMigration mutation key */ delete: (id: string | number) => ['mutation', 'sqlmigration', 'delete', id] as const, } as const; -export const emailMutationKeys = { - /** All email mutation keys */ all: ['mutation', 'email'] as const, - /** Create email mutation key */ create: () => ['mutation', 'email', 'create'] as const, - /** Update email mutation key */ update: (id: string | number) => - ['mutation', 'email', 'update', id] as const, - /** Delete email mutation key */ delete: (id: string | number) => - ['mutation', 'email', 'delete', id] as const, -} as const; export const userMutationKeys = { /** All user mutation keys */ all: ['mutation', 'user'] as const, /** Create user mutation key */ create: () => ['mutation', 'user', 'create'] as const, @@ -933,20 +968,28 @@ export const hierarchyModuleMutationKeys = { // ============================================================================ export const customMutationKeys = { - /** Mutation key for signOut */ signOut: (identifier?: string) => - identifier - ? (['mutation', 'signOut', identifier] as const) - : (['mutation', 'signOut'] as const), /** Mutation key for sendAccountDeletionEmail */ sendAccountDeletionEmail: ( identifier?: string ) => identifier ? (['mutation', 'sendAccountDeletionEmail', identifier] as const) : (['mutation', 'sendAccountDeletionEmail'] as const), - /** Mutation key for checkPassword */ checkPassword: (identifier?: string) => + /** Mutation key for signOut */ signOut: (identifier?: string) => identifier - ? (['mutation', 'checkPassword', identifier] as const) - : (['mutation', 'checkPassword'] as const), + ? (['mutation', 'signOut', identifier] as const) + : (['mutation', 'signOut'] as const), + /** Mutation key for acceptDatabaseTransfer */ acceptDatabaseTransfer: (identifier?: string) => + identifier + ? (['mutation', 'acceptDatabaseTransfer', identifier] as const) + : (['mutation', 'acceptDatabaseTransfer'] as const), + /** Mutation key for cancelDatabaseTransfer */ cancelDatabaseTransfer: (identifier?: string) => + identifier + ? (['mutation', 'cancelDatabaseTransfer', identifier] as const) + : (['mutation', 'cancelDatabaseTransfer'] as const), + /** Mutation key for rejectDatabaseTransfer */ rejectDatabaseTransfer: (identifier?: string) => + identifier + ? (['mutation', 'rejectDatabaseTransfer', identifier] as const) + : (['mutation', 'rejectDatabaseTransfer'] as const), /** Mutation key for submitInviteCode */ submitInviteCode: (identifier?: string) => identifier ? (['mutation', 'submitInviteCode', identifier] as const) @@ -955,14 +998,10 @@ export const customMutationKeys = { identifier ? (['mutation', 'submitOrgInviteCode', identifier] as const) : (['mutation', 'submitOrgInviteCode'] as const), - /** Mutation key for freezeObjects */ freezeObjects: (identifier?: string) => - identifier - ? (['mutation', 'freezeObjects', identifier] as const) - : (['mutation', 'freezeObjects'] as const), - /** Mutation key for initEmptyRepo */ initEmptyRepo: (identifier?: string) => + /** Mutation key for checkPassword */ checkPassword: (identifier?: string) => identifier - ? (['mutation', 'initEmptyRepo', identifier] as const) - : (['mutation', 'initEmptyRepo'] as const), + ? (['mutation', 'checkPassword', identifier] as const) + : (['mutation', 'checkPassword'] as const), /** Mutation key for confirmDeleteAccount */ confirmDeleteAccount: (identifier?: string) => identifier ? (['mutation', 'confirmDeleteAccount', identifier] as const) @@ -975,22 +1014,26 @@ export const customMutationKeys = { identifier ? (['mutation', 'verifyEmail', identifier] as const) : (['mutation', 'verifyEmail'] as const), - /** Mutation key for removeNodeAtPath */ removeNodeAtPath: (identifier?: string) => + /** Mutation key for freezeObjects */ freezeObjects: (identifier?: string) => identifier - ? (['mutation', 'removeNodeAtPath', identifier] as const) - : (['mutation', 'removeNodeAtPath'] as const), + ? (['mutation', 'freezeObjects', identifier] as const) + : (['mutation', 'freezeObjects'] as const), + /** Mutation key for initEmptyRepo */ initEmptyRepo: (identifier?: string) => + identifier + ? (['mutation', 'initEmptyRepo', identifier] as const) + : (['mutation', 'initEmptyRepo'] as const), + /** Mutation key for constructBlueprint */ constructBlueprint: (identifier?: string) => + identifier + ? (['mutation', 'constructBlueprint', identifier] as const) + : (['mutation', 'constructBlueprint'] as const), /** Mutation key for resetPassword */ resetPassword: (identifier?: string) => identifier ? (['mutation', 'resetPassword', identifier] as const) : (['mutation', 'resetPassword'] as const), - /** Mutation key for bootstrapUser */ bootstrapUser: (identifier?: string) => - identifier - ? (['mutation', 'bootstrapUser', identifier] as const) - : (['mutation', 'bootstrapUser'] as const), - /** Mutation key for setFieldOrder */ setFieldOrder: (identifier?: string) => + /** Mutation key for removeNodeAtPath */ removeNodeAtPath: (identifier?: string) => identifier - ? (['mutation', 'setFieldOrder', identifier] as const) - : (['mutation', 'setFieldOrder'] as const), + ? (['mutation', 'removeNodeAtPath', identifier] as const) + : (['mutation', 'removeNodeAtPath'] as const), /** Mutation key for setDataAtPath */ setDataAtPath: (identifier?: string) => identifier ? (['mutation', 'setDataAtPath', identifier] as const) @@ -999,12 +1042,24 @@ export const customMutationKeys = { identifier ? (['mutation', 'setPropsAndCommit', identifier] as const) : (['mutation', 'setPropsAndCommit'] as const), + /** Mutation key for copyTemplateToBlueprint */ copyTemplateToBlueprint: (identifier?: string) => + identifier + ? (['mutation', 'copyTemplateToBlueprint', identifier] as const) + : (['mutation', 'copyTemplateToBlueprint'] as const), /** Mutation key for provisionDatabaseWithUser */ provisionDatabaseWithUser: ( identifier?: string ) => identifier ? (['mutation', 'provisionDatabaseWithUser', identifier] as const) : (['mutation', 'provisionDatabaseWithUser'] as const), + /** Mutation key for bootstrapUser */ bootstrapUser: (identifier?: string) => + identifier + ? (['mutation', 'bootstrapUser', identifier] as const) + : (['mutation', 'bootstrapUser'] as const), + /** Mutation key for setFieldOrder */ setFieldOrder: (identifier?: string) => + identifier + ? (['mutation', 'setFieldOrder', identifier] as const) + : (['mutation', 'setFieldOrder'] as const), /** Mutation key for insertNodeAtPath */ insertNodeAtPath: (identifier?: string) => identifier ? (['mutation', 'insertNodeAtPath', identifier] as const) @@ -1041,14 +1096,14 @@ export const customMutationKeys = { identifier ? (['mutation', 'oneTimeToken', identifier] as const) : (['mutation', 'oneTimeToken'] as const), - /** Mutation key for forgotPassword */ forgotPassword: (identifier?: string) => - identifier - ? (['mutation', 'forgotPassword', identifier] as const) - : (['mutation', 'forgotPassword'] as const), /** Mutation key for sendVerificationEmail */ sendVerificationEmail: (identifier?: string) => identifier ? (['mutation', 'sendVerificationEmail', identifier] as const) : (['mutation', 'sendVerificationEmail'] as const), + /** Mutation key for forgotPassword */ forgotPassword: (identifier?: string) => + identifier + ? (['mutation', 'forgotPassword', identifier] as const) + : (['mutation', 'forgotPassword'] as const), /** Mutation key for verifyPassword */ verifyPassword: (identifier?: string) => identifier ? (['mutation', 'verifyPassword', identifier] as const) @@ -1081,9 +1136,9 @@ export const customMutationKeys = { * ``` */ export const mutationKeys = { + getAllRecord: getAllRecordMutationKeys, orgGetManagersRecord: orgGetManagersRecordMutationKeys, orgGetSubordinatesRecord: orgGetSubordinatesRecordMutationKeys, - getAllRecord: getAllRecordMutationKeys, object: objectMutationKeys, appPermission: appPermissionMutationKeys, orgPermission: orgPermissionMutationKeys, @@ -1105,11 +1160,13 @@ export const mutationKeys = { viewTable: viewTableMutationKeys, viewGrant: viewGrantMutationKeys, viewRule: viewRuleMutationKeys, + embeddingChunk: embeddingChunkMutationKeys, tableTemplateModule: tableTemplateModuleMutationKeys, secureTableProvision: secureTableProvisionMutationKeys, relationProvision: relationProvisionMutationKeys, schemaGrant: schemaGrantMutationKeys, defaultPrivilege: defaultPrivilegeMutationKeys, + enum: enumMutationKeys, apiSchema: apiSchemaMutationKeys, apiModule: apiModuleMutationKeys, domain: domainMutationKeys, @@ -1117,6 +1174,7 @@ export const mutationKeys = { siteModule: siteModuleMutationKeys, siteTheme: siteThemeMutationKeys, triggerFunction: triggerFunctionMutationKeys, + databaseTransfer: databaseTransferMutationKeys, api: apiMutationKeys, site: siteMutationKeys, app: appMutationKeys, @@ -1140,7 +1198,8 @@ export const mutationKeys = { sessionsModule: sessionsModuleMutationKeys, userAuthModule: userAuthModuleMutationKeys, usersModule: usersModuleMutationKeys, - uuidModule: uuidModuleMutationKeys, + blueprint: blueprintMutationKeys, + blueprintTemplate: blueprintTemplateMutationKeys, databaseProvisionModule: databaseProvisionModuleMutationKeys, appAdminGrant: appAdminGrantMutationKeys, appOwnerGrant: appOwnerGrantMutationKeys, @@ -1152,34 +1211,34 @@ export const mutationKeys = { orgGrant: orgGrantMutationKeys, orgChartEdge: orgChartEdgeMutationKeys, orgChartEdgeGrant: orgChartEdgeGrantMutationKeys, + orgPermissionDefault: orgPermissionDefaultMutationKeys, appLimit: appLimitMutationKeys, orgLimit: orgLimitMutationKeys, appStep: appStepMutationKeys, appAchievement: appAchievementMutationKeys, + appLevel: appLevelMutationKeys, + email: emailMutationKeys, + phoneNumber: phoneNumberMutationKeys, + cryptoAddress: cryptoAddressMutationKeys, + connectedAccount: connectedAccountMutationKeys, invite: inviteMutationKeys, claimedInvite: claimedInviteMutationKeys, orgInvite: orgInviteMutationKeys, orgClaimedInvite: orgClaimedInviteMutationKeys, + auditLog: auditLogMutationKeys, ref: refMutationKeys, store: storeMutationKeys, appPermissionDefault: appPermissionDefaultMutationKeys, - cryptoAddress: cryptoAddressMutationKeys, roleType: roleTypeMutationKeys, - orgPermissionDefault: orgPermissionDefaultMutationKeys, - phoneNumber: phoneNumberMutationKeys, appLimitDefault: appLimitDefaultMutationKeys, orgLimitDefault: orgLimitDefaultMutationKeys, - connectedAccount: connectedAccountMutationKeys, nodeTypeRegistry: nodeTypeRegistryMutationKeys, membershipType: membershipTypeMutationKeys, commit: commitMutationKeys, appMembershipDefault: appMembershipDefaultMutationKeys, rlsModule: rlsModuleMutationKeys, orgMembershipDefault: orgMembershipDefaultMutationKeys, - auditLog: auditLogMutationKeys, - appLevel: appLevelMutationKeys, sqlMigration: sqlMigrationMutationKeys, - email: emailMutationKeys, user: userMutationKeys, astMigration: astMigrationMutationKeys, appMembership: appMembershipMutationKeys, diff --git a/sdk/constructive-react/src/public/hooks/mutations/index.ts b/sdk/constructive-react/src/public/hooks/mutations/index.ts index e972756e6..8ca91acbb 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/index.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/index.ts @@ -3,9 +3,9 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ +export * from './useCreateGetAllRecordMutation'; export * from './useCreateOrgGetManagersRecordMutation'; export * from './useCreateOrgGetSubordinatesRecordMutation'; -export * from './useCreateGetAllRecordMutation'; export * from './useCreateObjectMutation'; export * from './useUpdateObjectMutation'; export * from './useDeleteObjectMutation'; @@ -69,6 +69,9 @@ export * from './useDeleteViewGrantMutation'; export * from './useCreateViewRuleMutation'; export * from './useUpdateViewRuleMutation'; export * from './useDeleteViewRuleMutation'; +export * from './useCreateEmbeddingChunkMutation'; +export * from './useUpdateEmbeddingChunkMutation'; +export * from './useDeleteEmbeddingChunkMutation'; export * from './useCreateTableTemplateModuleMutation'; export * from './useUpdateTableTemplateModuleMutation'; export * from './useDeleteTableTemplateModuleMutation'; @@ -84,6 +87,9 @@ export * from './useDeleteSchemaGrantMutation'; export * from './useCreateDefaultPrivilegeMutation'; export * from './useUpdateDefaultPrivilegeMutation'; export * from './useDeleteDefaultPrivilegeMutation'; +export * from './useCreateEnumMutation'; +export * from './useUpdateEnumMutation'; +export * from './useDeleteEnumMutation'; export * from './useCreateApiSchemaMutation'; export * from './useUpdateApiSchemaMutation'; export * from './useDeleteApiSchemaMutation'; @@ -105,6 +111,9 @@ export * from './useDeleteSiteThemeMutation'; export * from './useCreateTriggerFunctionMutation'; export * from './useUpdateTriggerFunctionMutation'; export * from './useDeleteTriggerFunctionMutation'; +export * from './useCreateDatabaseTransferMutation'; +export * from './useUpdateDatabaseTransferMutation'; +export * from './useDeleteDatabaseTransferMutation'; export * from './useCreateApiMutation'; export * from './useUpdateApiMutation'; export * from './useDeleteApiMutation'; @@ -174,9 +183,12 @@ export * from './useDeleteUserAuthModuleMutation'; export * from './useCreateUsersModuleMutation'; export * from './useUpdateUsersModuleMutation'; export * from './useDeleteUsersModuleMutation'; -export * from './useCreateUuidModuleMutation'; -export * from './useUpdateUuidModuleMutation'; -export * from './useDeleteUuidModuleMutation'; +export * from './useCreateBlueprintMutation'; +export * from './useUpdateBlueprintMutation'; +export * from './useDeleteBlueprintMutation'; +export * from './useCreateBlueprintTemplateMutation'; +export * from './useUpdateBlueprintTemplateMutation'; +export * from './useDeleteBlueprintTemplateMutation'; export * from './useCreateDatabaseProvisionModuleMutation'; export * from './useUpdateDatabaseProvisionModuleMutation'; export * from './useDeleteDatabaseProvisionModuleMutation'; @@ -210,6 +222,9 @@ export * from './useDeleteOrgChartEdgeMutation'; export * from './useCreateOrgChartEdgeGrantMutation'; export * from './useUpdateOrgChartEdgeGrantMutation'; export * from './useDeleteOrgChartEdgeGrantMutation'; +export * from './useCreateOrgPermissionDefaultMutation'; +export * from './useUpdateOrgPermissionDefaultMutation'; +export * from './useDeleteOrgPermissionDefaultMutation'; export * from './useCreateAppLimitMutation'; export * from './useUpdateAppLimitMutation'; export * from './useDeleteAppLimitMutation'; @@ -222,6 +237,21 @@ export * from './useDeleteAppStepMutation'; export * from './useCreateAppAchievementMutation'; export * from './useUpdateAppAchievementMutation'; export * from './useDeleteAppAchievementMutation'; +export * from './useCreateAppLevelMutation'; +export * from './useUpdateAppLevelMutation'; +export * from './useDeleteAppLevelMutation'; +export * from './useCreateEmailMutation'; +export * from './useUpdateEmailMutation'; +export * from './useDeleteEmailMutation'; +export * from './useCreatePhoneNumberMutation'; +export * from './useUpdatePhoneNumberMutation'; +export * from './useDeletePhoneNumberMutation'; +export * from './useCreateCryptoAddressMutation'; +export * from './useUpdateCryptoAddressMutation'; +export * from './useDeleteCryptoAddressMutation'; +export * from './useCreateConnectedAccountMutation'; +export * from './useUpdateConnectedAccountMutation'; +export * from './useDeleteConnectedAccountMutation'; export * from './useCreateInviteMutation'; export * from './useUpdateInviteMutation'; export * from './useDeleteInviteMutation'; @@ -234,6 +264,9 @@ export * from './useDeleteOrgInviteMutation'; export * from './useCreateOrgClaimedInviteMutation'; export * from './useUpdateOrgClaimedInviteMutation'; export * from './useDeleteOrgClaimedInviteMutation'; +export * from './useCreateAuditLogMutation'; +export * from './useUpdateAuditLogMutation'; +export * from './useDeleteAuditLogMutation'; export * from './useCreateRefMutation'; export * from './useUpdateRefMutation'; export * from './useDeleteRefMutation'; @@ -243,27 +276,15 @@ export * from './useDeleteStoreMutation'; export * from './useCreateAppPermissionDefaultMutation'; export * from './useUpdateAppPermissionDefaultMutation'; export * from './useDeleteAppPermissionDefaultMutation'; -export * from './useCreateCryptoAddressMutation'; -export * from './useUpdateCryptoAddressMutation'; -export * from './useDeleteCryptoAddressMutation'; export * from './useCreateRoleTypeMutation'; export * from './useUpdateRoleTypeMutation'; export * from './useDeleteRoleTypeMutation'; -export * from './useCreateOrgPermissionDefaultMutation'; -export * from './useUpdateOrgPermissionDefaultMutation'; -export * from './useDeleteOrgPermissionDefaultMutation'; -export * from './useCreatePhoneNumberMutation'; -export * from './useUpdatePhoneNumberMutation'; -export * from './useDeletePhoneNumberMutation'; export * from './useCreateAppLimitDefaultMutation'; export * from './useUpdateAppLimitDefaultMutation'; export * from './useDeleteAppLimitDefaultMutation'; export * from './useCreateOrgLimitDefaultMutation'; export * from './useUpdateOrgLimitDefaultMutation'; export * from './useDeleteOrgLimitDefaultMutation'; -export * from './useCreateConnectedAccountMutation'; -export * from './useUpdateConnectedAccountMutation'; -export * from './useDeleteConnectedAccountMutation'; export * from './useCreateNodeTypeRegistryMutation'; export * from './useUpdateNodeTypeRegistryMutation'; export * from './useDeleteNodeTypeRegistryMutation'; @@ -282,16 +303,7 @@ export * from './useDeleteRlsModuleMutation'; export * from './useCreateOrgMembershipDefaultMutation'; export * from './useUpdateOrgMembershipDefaultMutation'; export * from './useDeleteOrgMembershipDefaultMutation'; -export * from './useCreateAuditLogMutation'; -export * from './useUpdateAuditLogMutation'; -export * from './useDeleteAuditLogMutation'; -export * from './useCreateAppLevelMutation'; -export * from './useUpdateAppLevelMutation'; -export * from './useDeleteAppLevelMutation'; export * from './useCreateSqlMigrationMutation'; -export * from './useCreateEmailMutation'; -export * from './useUpdateEmailMutation'; -export * from './useDeleteEmailMutation'; export * from './useCreateUserMutation'; export * from './useUpdateUserMutation'; export * from './useDeleteUserMutation'; @@ -302,23 +314,28 @@ export * from './useDeleteAppMembershipMutation'; export * from './useCreateHierarchyModuleMutation'; export * from './useUpdateHierarchyModuleMutation'; export * from './useDeleteHierarchyModuleMutation'; -export * from './useSignOutMutation'; export * from './useSendAccountDeletionEmailMutation'; -export * from './useCheckPasswordMutation'; +export * from './useSignOutMutation'; +export * from './useAcceptDatabaseTransferMutation'; +export * from './useCancelDatabaseTransferMutation'; +export * from './useRejectDatabaseTransferMutation'; export * from './useSubmitInviteCodeMutation'; export * from './useSubmitOrgInviteCodeMutation'; -export * from './useFreezeObjectsMutation'; -export * from './useInitEmptyRepoMutation'; +export * from './useCheckPasswordMutation'; export * from './useConfirmDeleteAccountMutation'; export * from './useSetPasswordMutation'; export * from './useVerifyEmailMutation'; -export * from './useRemoveNodeAtPathMutation'; +export * from './useFreezeObjectsMutation'; +export * from './useInitEmptyRepoMutation'; +export * from './useConstructBlueprintMutation'; export * from './useResetPasswordMutation'; -export * from './useBootstrapUserMutation'; -export * from './useSetFieldOrderMutation'; +export * from './useRemoveNodeAtPathMutation'; export * from './useSetDataAtPathMutation'; export * from './useSetPropsAndCommitMutation'; +export * from './useCopyTemplateToBlueprintMutation'; export * from './useProvisionDatabaseWithUserMutation'; +export * from './useBootstrapUserMutation'; +export * from './useSetFieldOrderMutation'; export * from './useInsertNodeAtPathMutation'; export * from './useUpdateNodeAtPathMutation'; export * from './useSetAndCommitMutation'; @@ -329,7 +346,7 @@ export * from './useExtendTokenExpiresMutation'; export * from './useSignInMutation'; export * from './useSignUpMutation'; export * from './useOneTimeTokenMutation'; -export * from './useForgotPasswordMutation'; export * from './useSendVerificationEmailMutation'; +export * from './useForgotPasswordMutation'; export * from './useVerifyPasswordMutation'; export * from './useVerifyTotpMutation'; diff --git a/sdk/constructive-react/src/public/hooks/mutations/useAcceptDatabaseTransferMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useAcceptDatabaseTransferMutation.ts new file mode 100644 index 000000000..c31146bfe --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useAcceptDatabaseTransferMutation.ts @@ -0,0 +1,58 @@ +/** + * Custom mutation hook for acceptDatabaseTransfer + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { customMutationKeys } from '../mutation-keys'; +import type { AcceptDatabaseTransferVariables } from '../../orm/mutation'; +import type { + AcceptDatabaseTransferPayloadSelect, + AcceptDatabaseTransferPayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { AcceptDatabaseTransferVariables } from '../../orm/mutation'; +export type { AcceptDatabaseTransferPayloadSelect } from '../../orm/input-types'; +export function useAcceptDatabaseTransferMutation( + params: { + selection: { + fields: S & AcceptDatabaseTransferPayloadSelect; + } & HookStrictSelect, AcceptDatabaseTransferPayloadSelect>; + } & Omit< + UseMutationOptions< + { + acceptDatabaseTransfer: InferSelectResult | null; + }, + Error, + AcceptDatabaseTransferVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + acceptDatabaseTransfer: InferSelectResult | null; + }, + Error, + AcceptDatabaseTransferVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.acceptDatabaseTransfer(), + mutationFn: (variables: AcceptDatabaseTransferVariables) => + getClient() + .mutation.acceptDatabaseTransfer(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCancelDatabaseTransferMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCancelDatabaseTransferMutation.ts new file mode 100644 index 000000000..99fa89988 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCancelDatabaseTransferMutation.ts @@ -0,0 +1,58 @@ +/** + * Custom mutation hook for cancelDatabaseTransfer + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { customMutationKeys } from '../mutation-keys'; +import type { CancelDatabaseTransferVariables } from '../../orm/mutation'; +import type { + CancelDatabaseTransferPayloadSelect, + CancelDatabaseTransferPayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { CancelDatabaseTransferVariables } from '../../orm/mutation'; +export type { CancelDatabaseTransferPayloadSelect } from '../../orm/input-types'; +export function useCancelDatabaseTransferMutation( + params: { + selection: { + fields: S & CancelDatabaseTransferPayloadSelect; + } & HookStrictSelect, CancelDatabaseTransferPayloadSelect>; + } & Omit< + UseMutationOptions< + { + cancelDatabaseTransfer: InferSelectResult | null; + }, + Error, + CancelDatabaseTransferVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + cancelDatabaseTransfer: InferSelectResult | null; + }, + Error, + CancelDatabaseTransferVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.cancelDatabaseTransfer(), + mutationFn: (variables: CancelDatabaseTransferVariables) => + getClient() + .mutation.cancelDatabaseTransfer(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useConstructBlueprintMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useConstructBlueprintMutation.ts new file mode 100644 index 000000000..78ecd8958 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useConstructBlueprintMutation.ts @@ -0,0 +1,58 @@ +/** + * Custom mutation hook for constructBlueprint + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { customMutationKeys } from '../mutation-keys'; +import type { ConstructBlueprintVariables } from '../../orm/mutation'; +import type { + ConstructBlueprintPayloadSelect, + ConstructBlueprintPayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { ConstructBlueprintVariables } from '../../orm/mutation'; +export type { ConstructBlueprintPayloadSelect } from '../../orm/input-types'; +export function useConstructBlueprintMutation( + params: { + selection: { + fields: S & ConstructBlueprintPayloadSelect; + } & HookStrictSelect, ConstructBlueprintPayloadSelect>; + } & Omit< + UseMutationOptions< + { + constructBlueprint: InferSelectResult | null; + }, + Error, + ConstructBlueprintVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + constructBlueprint: InferSelectResult | null; + }, + Error, + ConstructBlueprintVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.constructBlueprint(), + mutationFn: (variables: ConstructBlueprintVariables) => + getClient() + .mutation.constructBlueprint(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCopyTemplateToBlueprintMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCopyTemplateToBlueprintMutation.ts new file mode 100644 index 000000000..e8e5eda1f --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCopyTemplateToBlueprintMutation.ts @@ -0,0 +1,58 @@ +/** + * Custom mutation hook for copyTemplateToBlueprint + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { customMutationKeys } from '../mutation-keys'; +import type { CopyTemplateToBlueprintVariables } from '../../orm/mutation'; +import type { + CopyTemplateToBlueprintPayloadSelect, + CopyTemplateToBlueprintPayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { CopyTemplateToBlueprintVariables } from '../../orm/mutation'; +export type { CopyTemplateToBlueprintPayloadSelect } from '../../orm/input-types'; +export function useCopyTemplateToBlueprintMutation( + params: { + selection: { + fields: S & CopyTemplateToBlueprintPayloadSelect; + } & HookStrictSelect, CopyTemplateToBlueprintPayloadSelect>; + } & Omit< + UseMutationOptions< + { + copyTemplateToBlueprint: InferSelectResult | null; + }, + Error, + CopyTemplateToBlueprintVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + copyTemplateToBlueprint: InferSelectResult | null; + }, + Error, + CopyTemplateToBlueprintVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.copyTemplateToBlueprint(), + mutationFn: (variables: CopyTemplateToBlueprintVariables) => + getClient() + .mutation.copyTemplateToBlueprint(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateBlueprintMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateBlueprintMutation.ts new file mode 100644 index 000000000..9bcbcb559 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateBlueprintMutation.ts @@ -0,0 +1,88 @@ +/** + * An owned, executable blueprint scoped to a specific database. Created by copying from a blueprint_template via copy_template_to_blueprint() or built from scratch. The owner can customize the definition before executing it with construct_blueprint(). Each blueprint tracks its execution status (draft/constructed/failed) and stores the ref_map of created table IDs after construction. + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { blueprintKeys } from '../query-keys'; +import { blueprintMutationKeys } from '../mutation-keys'; +import type { + BlueprintSelect, + BlueprintWithRelations, + CreateBlueprintInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + BlueprintSelect, + BlueprintWithRelations, + CreateBlueprintInput, +} from '../../orm/input-types'; +/** + * An owned, executable blueprint scoped to a specific database. Created by copying from a blueprint_template via copy_template_to_blueprint() or built from scratch. The owner can customize the definition before executing it with construct_blueprint(). Each blueprint tracks its execution status (draft/constructed/failed) and stores the ref_map of created table IDs after construction. + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateBlueprintMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateBlueprintMutation( + params: { + selection: { + fields: S & BlueprintSelect; + } & HookStrictSelect, BlueprintSelect>; + } & Omit< + UseMutationOptions< + { + createBlueprint: { + blueprint: InferSelectResult; + }; + }, + Error, + CreateBlueprintInput['blueprint'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createBlueprint: { + blueprint: InferSelectResult; + }; + }, + Error, + CreateBlueprintInput['blueprint'] +>; +export function useCreateBlueprintMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: blueprintMutationKeys.create(), + mutationFn: (data: CreateBlueprintInput['blueprint']) => + getClient() + .blueprint.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: blueprintKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateBlueprintTemplateMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateBlueprintTemplateMutation.ts new file mode 100644 index 000000000..5c43a004b --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateBlueprintTemplateMutation.ts @@ -0,0 +1,91 @@ +/** + * A shareable, versioned schema recipe for the blueprint marketplace. Templates define arrays of secure_table_provision + relation_provision inputs that together describe a complete domain schema (e.g. e-commerce, telemedicine, habit tracker). Templates are never executed directly — they are copied into a blueprint first via copy_template_to_blueprint(). Can be private (owner-only) or public (marketplace-visible). + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { blueprintTemplateKeys } from '../query-keys'; +import { blueprintTemplateMutationKeys } from '../mutation-keys'; +import type { + BlueprintTemplateSelect, + BlueprintTemplateWithRelations, + CreateBlueprintTemplateInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + BlueprintTemplateSelect, + BlueprintTemplateWithRelations, + CreateBlueprintTemplateInput, +} from '../../orm/input-types'; +/** + * A shareable, versioned schema recipe for the blueprint marketplace. Templates define arrays of secure_table_provision + relation_provision inputs that together describe a complete domain schema (e.g. e-commerce, telemedicine, habit tracker). Templates are never executed directly — they are copied into a blueprint first via copy_template_to_blueprint(). Can be private (owner-only) or public (marketplace-visible). + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateBlueprintTemplateMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateBlueprintTemplateMutation( + params: { + selection: { + fields: S & BlueprintTemplateSelect; + } & HookStrictSelect, BlueprintTemplateSelect>; + } & Omit< + UseMutationOptions< + { + createBlueprintTemplate: { + blueprintTemplate: InferSelectResult; + }; + }, + Error, + CreateBlueprintTemplateInput['blueprintTemplate'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createBlueprintTemplate: { + blueprintTemplate: InferSelectResult; + }; + }, + Error, + CreateBlueprintTemplateInput['blueprintTemplate'] +>; +export function useCreateBlueprintTemplateMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: blueprintTemplateMutationKeys.create(), + mutationFn: (data: CreateBlueprintTemplateInput['blueprintTemplate']) => + getClient() + .blueprintTemplate.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: blueprintTemplateKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateDatabaseTransferMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateDatabaseTransferMutation.ts new file mode 100644 index 000000000..2103fe731 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateDatabaseTransferMutation.ts @@ -0,0 +1,91 @@ +/** + * Create mutation hook for DatabaseTransfer + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { databaseTransferKeys } from '../query-keys'; +import { databaseTransferMutationKeys } from '../mutation-keys'; +import type { + DatabaseTransferSelect, + DatabaseTransferWithRelations, + CreateDatabaseTransferInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + DatabaseTransferSelect, + DatabaseTransferWithRelations, + CreateDatabaseTransferInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a DatabaseTransfer + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateDatabaseTransferMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateDatabaseTransferMutation( + params: { + selection: { + fields: S & DatabaseTransferSelect; + } & HookStrictSelect, DatabaseTransferSelect>; + } & Omit< + UseMutationOptions< + { + createDatabaseTransfer: { + databaseTransfer: InferSelectResult; + }; + }, + Error, + CreateDatabaseTransferInput['databaseTransfer'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createDatabaseTransfer: { + databaseTransfer: InferSelectResult; + }; + }, + Error, + CreateDatabaseTransferInput['databaseTransfer'] +>; +export function useCreateDatabaseTransferMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: databaseTransferMutationKeys.create(), + mutationFn: (data: CreateDatabaseTransferInput['databaseTransfer']) => + getClient() + .databaseTransfer.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: databaseTransferKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateEmbeddingChunkMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateEmbeddingChunkMutation.ts new file mode 100644 index 000000000..f63d86efb --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateEmbeddingChunkMutation.ts @@ -0,0 +1,91 @@ +/** + * Create mutation hook for EmbeddingChunk + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { embeddingChunkKeys } from '../query-keys'; +import { embeddingChunkMutationKeys } from '../mutation-keys'; +import type { + EmbeddingChunkSelect, + EmbeddingChunkWithRelations, + CreateEmbeddingChunkInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + EmbeddingChunkSelect, + EmbeddingChunkWithRelations, + CreateEmbeddingChunkInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a EmbeddingChunk + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateEmbeddingChunkMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateEmbeddingChunkMutation( + params: { + selection: { + fields: S & EmbeddingChunkSelect; + } & HookStrictSelect, EmbeddingChunkSelect>; + } & Omit< + UseMutationOptions< + { + createEmbeddingChunk: { + embeddingChunk: InferSelectResult; + }; + }, + Error, + CreateEmbeddingChunkInput['embeddingChunk'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createEmbeddingChunk: { + embeddingChunk: InferSelectResult; + }; + }, + Error, + CreateEmbeddingChunkInput['embeddingChunk'] +>; +export function useCreateEmbeddingChunkMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: embeddingChunkMutationKeys.create(), + mutationFn: (data: CreateEmbeddingChunkInput['embeddingChunk']) => + getClient() + .embeddingChunk.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: embeddingChunkKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateEnumMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateEnumMutation.ts new file mode 100644 index 000000000..94d606336 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateEnumMutation.ts @@ -0,0 +1,80 @@ +/** + * Create mutation hook for Enum + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { enumKeys } from '../query-keys'; +import { enumMutationKeys } from '../mutation-keys'; +import type { EnumSelect, EnumWithRelations, CreateEnumInput } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { EnumSelect, EnumWithRelations, CreateEnumInput } from '../../orm/input-types'; +/** + * Mutation hook for creating a Enum + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateEnumMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateEnumMutation( + params: { + selection: { + fields: S & EnumSelect; + } & HookStrictSelect, EnumSelect>; + } & Omit< + UseMutationOptions< + { + createEnum: { + enum: InferSelectResult; + }; + }, + Error, + CreateEnumInput['enum'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createEnum: { + enum: InferSelectResult; + }; + }, + Error, + CreateEnumInput['enum'] +>; +export function useCreateEnumMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: enumMutationKeys.create(), + mutationFn: (data: CreateEnumInput['enum']) => + getClient() + .enum.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: enumKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateUuidModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateUuidModuleMutation.ts deleted file mode 100644 index feb0e549c..000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useCreateUuidModuleMutation.ts +++ /dev/null @@ -1,88 +0,0 @@ -/** - * Create mutation hook for UuidModule - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation, useQueryClient } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { uuidModuleKeys } from '../query-keys'; -import { uuidModuleMutationKeys } from '../mutation-keys'; -import type { - UuidModuleSelect, - UuidModuleWithRelations, - CreateUuidModuleInput, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - UuidModuleSelect, - UuidModuleWithRelations, - CreateUuidModuleInput, -} from '../../orm/input-types'; -/** - * Mutation hook for creating a UuidModule - * - * @example - * ```tsx - * const { mutate, isPending } = useCreateUuidModuleMutation({ - * selection: { fields: { id: true, name: true } }, - * }); - * - * mutate({ name: 'New item' }); - * ``` - */ -export function useCreateUuidModuleMutation( - params: { - selection: { - fields: S & UuidModuleSelect; - } & HookStrictSelect, UuidModuleSelect>; - } & Omit< - UseMutationOptions< - { - createUuidModule: { - uuidModule: InferSelectResult; - }; - }, - Error, - CreateUuidModuleInput['uuidModule'] - >, - 'mutationFn' - > -): UseMutationResult< - { - createUuidModule: { - uuidModule: InferSelectResult; - }; - }, - Error, - CreateUuidModuleInput['uuidModule'] ->; -export function useCreateUuidModuleMutation( - params: { - selection: SelectionConfig; - } & Omit, 'mutationFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - const queryClient = useQueryClient(); - return useMutation({ - mutationKey: uuidModuleMutationKeys.create(), - mutationFn: (data: CreateUuidModuleInput['uuidModule']) => - getClient() - .uuidModule.create({ - data, - select: args.select, - }) - .unwrap(), - onSuccess: () => { - queryClient.invalidateQueries({ - queryKey: uuidModuleKeys.lists(), - }); - }, - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteBlueprintMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteBlueprintMutation.ts new file mode 100644 index 000000000..c5e36f939 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteBlueprintMutation.ts @@ -0,0 +1,98 @@ +/** + * An owned, executable blueprint scoped to a specific database. Created by copying from a blueprint_template via copy_template_to_blueprint() or built from scratch. The owner can customize the definition before executing it with construct_blueprint(). Each blueprint tracks its execution status (draft/constructed/failed) and stores the ref_map of created table IDs after construction. + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { blueprintKeys } from '../query-keys'; +import { blueprintMutationKeys } from '../mutation-keys'; +import type { BlueprintSelect, BlueprintWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { BlueprintSelect, BlueprintWithRelations } from '../../orm/input-types'; +/** + * An owned, executable blueprint scoped to a specific database. Created by copying from a blueprint_template via copy_template_to_blueprint() or built from scratch. The owner can customize the definition before executing it with construct_blueprint(). Each blueprint tracks its execution status (draft/constructed/failed) and stores the ref_map of created table IDs after construction. + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteBlueprintMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteBlueprintMutation( + params: { + selection: { + fields: S & BlueprintSelect; + } & HookStrictSelect, BlueprintSelect>; + } & Omit< + UseMutationOptions< + { + deleteBlueprint: { + blueprint: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteBlueprint: { + blueprint: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteBlueprintMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: blueprintMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .blueprint.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: blueprintKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: blueprintKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteBlueprintTemplateMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteBlueprintTemplateMutation.ts new file mode 100644 index 000000000..e67f9712f --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteBlueprintTemplateMutation.ts @@ -0,0 +1,104 @@ +/** + * A shareable, versioned schema recipe for the blueprint marketplace. Templates define arrays of secure_table_provision + relation_provision inputs that together describe a complete domain schema (e.g. e-commerce, telemedicine, habit tracker). Templates are never executed directly — they are copied into a blueprint first via copy_template_to_blueprint(). Can be private (owner-only) or public (marketplace-visible). + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { blueprintTemplateKeys } from '../query-keys'; +import { blueprintTemplateMutationKeys } from '../mutation-keys'; +import type { + BlueprintTemplateSelect, + BlueprintTemplateWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + BlueprintTemplateSelect, + BlueprintTemplateWithRelations, +} from '../../orm/input-types'; +/** + * A shareable, versioned schema recipe for the blueprint marketplace. Templates define arrays of secure_table_provision + relation_provision inputs that together describe a complete domain schema (e.g. e-commerce, telemedicine, habit tracker). Templates are never executed directly — they are copied into a blueprint first via copy_template_to_blueprint(). Can be private (owner-only) or public (marketplace-visible). + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteBlueprintTemplateMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteBlueprintTemplateMutation( + params: { + selection: { + fields: S & BlueprintTemplateSelect; + } & HookStrictSelect, BlueprintTemplateSelect>; + } & Omit< + UseMutationOptions< + { + deleteBlueprintTemplate: { + blueprintTemplate: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteBlueprintTemplate: { + blueprintTemplate: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteBlueprintTemplateMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: blueprintTemplateMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .blueprintTemplate.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: blueprintTemplateKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: blueprintTemplateKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteDatabaseTransferMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteDatabaseTransferMutation.ts new file mode 100644 index 000000000..5b6460e12 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteDatabaseTransferMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for DatabaseTransfer + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { databaseTransferKeys } from '../query-keys'; +import { databaseTransferMutationKeys } from '../mutation-keys'; +import type { DatabaseTransferSelect, DatabaseTransferWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { DatabaseTransferSelect, DatabaseTransferWithRelations } from '../../orm/input-types'; +/** + * Mutation hook for deleting a DatabaseTransfer with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteDatabaseTransferMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteDatabaseTransferMutation( + params: { + selection: { + fields: S & DatabaseTransferSelect; + } & HookStrictSelect, DatabaseTransferSelect>; + } & Omit< + UseMutationOptions< + { + deleteDatabaseTransfer: { + databaseTransfer: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteDatabaseTransfer: { + databaseTransfer: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteDatabaseTransferMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: databaseTransferMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .databaseTransfer.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: databaseTransferKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: databaseTransferKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteEmbeddingChunkMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteEmbeddingChunkMutation.ts new file mode 100644 index 000000000..405f15d48 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteEmbeddingChunkMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for EmbeddingChunk + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { embeddingChunkKeys } from '../query-keys'; +import { embeddingChunkMutationKeys } from '../mutation-keys'; +import type { EmbeddingChunkSelect, EmbeddingChunkWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { EmbeddingChunkSelect, EmbeddingChunkWithRelations } from '../../orm/input-types'; +/** + * Mutation hook for deleting a EmbeddingChunk with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteEmbeddingChunkMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteEmbeddingChunkMutation( + params: { + selection: { + fields: S & EmbeddingChunkSelect; + } & HookStrictSelect, EmbeddingChunkSelect>; + } & Omit< + UseMutationOptions< + { + deleteEmbeddingChunk: { + embeddingChunk: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteEmbeddingChunk: { + embeddingChunk: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteEmbeddingChunkMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: embeddingChunkMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .embeddingChunk.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: embeddingChunkKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: embeddingChunkKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteUuidModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteEnumMutation.ts similarity index 56% rename from sdk/constructive-react/src/public/hooks/mutations/useDeleteUuidModuleMutation.ts rename to sdk/constructive-react/src/public/hooks/mutations/useDeleteEnumMutation.ts index 0dc11108f..2b5f85b69 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useDeleteUuidModuleMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteEnumMutation.ts @@ -1,5 +1,5 @@ /** - * Delete mutation hook for UuidModule + * Delete mutation hook for Enum * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -9,33 +9,33 @@ import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-quer import { getClient } from '../client'; import { buildSelectionArgs } from '../selection'; import type { SelectionConfig } from '../selection'; -import { uuidModuleKeys } from '../query-keys'; -import { uuidModuleMutationKeys } from '../mutation-keys'; -import type { UuidModuleSelect, UuidModuleWithRelations } from '../../orm/input-types'; +import { enumKeys } from '../query-keys'; +import { enumMutationKeys } from '../mutation-keys'; +import type { EnumSelect, EnumWithRelations } from '../../orm/input-types'; import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { UuidModuleSelect, UuidModuleWithRelations } from '../../orm/input-types'; +export type { EnumSelect, EnumWithRelations } from '../../orm/input-types'; /** - * Mutation hook for deleting a UuidModule with typed selection + * Mutation hook for deleting a Enum with typed selection * * @example * ```tsx - * const { mutate, isPending } = useDeleteUuidModuleMutation({ + * const { mutate, isPending } = useDeleteEnumMutation({ * selection: { fields: { id: true } }, * }); * * mutate({ id: 'value-to-delete' }); * ``` */ -export function useDeleteUuidModuleMutation( +export function useDeleteEnumMutation( params: { selection: { - fields: S & UuidModuleSelect; - } & HookStrictSelect, UuidModuleSelect>; + fields: S & EnumSelect; + } & HookStrictSelect, EnumSelect>; } & Omit< UseMutationOptions< { - deleteUuidModule: { - uuidModule: InferSelectResult; + deleteEnum: { + enum: InferSelectResult; }; }, Error, @@ -47,8 +47,8 @@ export function useDeleteUuidModuleMutation( > ): UseMutationResult< { - deleteUuidModule: { - uuidModule: InferSelectResult; + deleteEnum: { + enum: InferSelectResult; }; }, Error, @@ -56,9 +56,9 @@ export function useDeleteUuidModuleMutation( id: string; } >; -export function useDeleteUuidModuleMutation( +export function useDeleteEnumMutation( params: { - selection: SelectionConfig; + selection: SelectionConfig; } & Omit< UseMutationOptions< any, @@ -70,15 +70,15 @@ export function useDeleteUuidModuleMutation( 'mutationFn' > ) { - const args = buildSelectionArgs(params.selection); + const args = buildSelectionArgs(params.selection); const { selection: _selection, ...mutationOptions } = params ?? {}; void _selection; const queryClient = useQueryClient(); return useMutation({ - mutationKey: uuidModuleMutationKeys.all, + mutationKey: enumMutationKeys.all, mutationFn: ({ id }: { id: string }) => getClient() - .uuidModule.delete({ + .enum.delete({ where: { id, }, @@ -87,10 +87,10 @@ export function useDeleteUuidModuleMutation( .unwrap(), onSuccess: (_, variables) => { queryClient.removeQueries({ - queryKey: uuidModuleKeys.detail(variables.id), + queryKey: enumKeys.detail(variables.id), }); queryClient.invalidateQueries({ - queryKey: uuidModuleKeys.lists(), + queryKey: enumKeys.lists(), }); }, ...mutationOptions, diff --git a/sdk/constructive-react/src/public/hooks/mutations/useRejectDatabaseTransferMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useRejectDatabaseTransferMutation.ts new file mode 100644 index 000000000..10cdc7f84 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useRejectDatabaseTransferMutation.ts @@ -0,0 +1,58 @@ +/** + * Custom mutation hook for rejectDatabaseTransfer + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { customMutationKeys } from '../mutation-keys'; +import type { RejectDatabaseTransferVariables } from '../../orm/mutation'; +import type { + RejectDatabaseTransferPayloadSelect, + RejectDatabaseTransferPayload, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { RejectDatabaseTransferVariables } from '../../orm/mutation'; +export type { RejectDatabaseTransferPayloadSelect } from '../../orm/input-types'; +export function useRejectDatabaseTransferMutation( + params: { + selection: { + fields: S & RejectDatabaseTransferPayloadSelect; + } & HookStrictSelect, RejectDatabaseTransferPayloadSelect>; + } & Omit< + UseMutationOptions< + { + rejectDatabaseTransfer: InferSelectResult | null; + }, + Error, + RejectDatabaseTransferVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + rejectDatabaseTransfer: InferSelectResult | null; + }, + Error, + RejectDatabaseTransferVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.rejectDatabaseTransfer(), + mutationFn: (variables: RejectDatabaseTransferVariables) => + getClient() + .mutation.rejectDatabaseTransfer(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateBlueprintMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateBlueprintMutation.ts new file mode 100644 index 000000000..0a55e79c7 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateBlueprintMutation.ts @@ -0,0 +1,110 @@ +/** + * An owned, executable blueprint scoped to a specific database. Created by copying from a blueprint_template via copy_template_to_blueprint() or built from scratch. The owner can customize the definition before executing it with construct_blueprint(). Each blueprint tracks its execution status (draft/constructed/failed) and stores the ref_map of created table IDs after construction. + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { blueprintKeys } from '../query-keys'; +import { blueprintMutationKeys } from '../mutation-keys'; +import type { + BlueprintSelect, + BlueprintWithRelations, + BlueprintPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + BlueprintSelect, + BlueprintWithRelations, + BlueprintPatch, +} from '../../orm/input-types'; +/** + * An owned, executable blueprint scoped to a specific database. Created by copying from a blueprint_template via copy_template_to_blueprint() or built from scratch. The owner can customize the definition before executing it with construct_blueprint(). Each blueprint tracks its execution status (draft/constructed/failed) and stores the ref_map of created table IDs after construction. + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateBlueprintMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', blueprintPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateBlueprintMutation( + params: { + selection: { + fields: S & BlueprintSelect; + } & HookStrictSelect, BlueprintSelect>; + } & Omit< + UseMutationOptions< + { + updateBlueprint: { + blueprint: InferSelectResult; + }; + }, + Error, + { + id: string; + blueprintPatch: BlueprintPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateBlueprint: { + blueprint: InferSelectResult; + }; + }, + Error, + { + id: string; + blueprintPatch: BlueprintPatch; + } +>; +export function useUpdateBlueprintMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + blueprintPatch: BlueprintPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: blueprintMutationKeys.all, + mutationFn: ({ id, blueprintPatch }: { id: string; blueprintPatch: BlueprintPatch }) => + getClient() + .blueprint.update({ + where: { + id, + }, + data: blueprintPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: blueprintKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: blueprintKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateBlueprintTemplateMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateBlueprintTemplateMutation.ts new file mode 100644 index 000000000..324321d9a --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateBlueprintTemplateMutation.ts @@ -0,0 +1,116 @@ +/** + * A shareable, versioned schema recipe for the blueprint marketplace. Templates define arrays of secure_table_provision + relation_provision inputs that together describe a complete domain schema (e.g. e-commerce, telemedicine, habit tracker). Templates are never executed directly — they are copied into a blueprint first via copy_template_to_blueprint(). Can be private (owner-only) or public (marketplace-visible). + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { blueprintTemplateKeys } from '../query-keys'; +import { blueprintTemplateMutationKeys } from '../mutation-keys'; +import type { + BlueprintTemplateSelect, + BlueprintTemplateWithRelations, + BlueprintTemplatePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + BlueprintTemplateSelect, + BlueprintTemplateWithRelations, + BlueprintTemplatePatch, +} from '../../orm/input-types'; +/** + * A shareable, versioned schema recipe for the blueprint marketplace. Templates define arrays of secure_table_provision + relation_provision inputs that together describe a complete domain schema (e.g. e-commerce, telemedicine, habit tracker). Templates are never executed directly — they are copied into a blueprint first via copy_template_to_blueprint(). Can be private (owner-only) or public (marketplace-visible). + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateBlueprintTemplateMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', blueprintTemplatePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateBlueprintTemplateMutation( + params: { + selection: { + fields: S & BlueprintTemplateSelect; + } & HookStrictSelect, BlueprintTemplateSelect>; + } & Omit< + UseMutationOptions< + { + updateBlueprintTemplate: { + blueprintTemplate: InferSelectResult; + }; + }, + Error, + { + id: string; + blueprintTemplatePatch: BlueprintTemplatePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateBlueprintTemplate: { + blueprintTemplate: InferSelectResult; + }; + }, + Error, + { + id: string; + blueprintTemplatePatch: BlueprintTemplatePatch; + } +>; +export function useUpdateBlueprintTemplateMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + blueprintTemplatePatch: BlueprintTemplatePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: blueprintTemplateMutationKeys.all, + mutationFn: ({ + id, + blueprintTemplatePatch, + }: { + id: string; + blueprintTemplatePatch: BlueprintTemplatePatch; + }) => + getClient() + .blueprintTemplate.update({ + where: { + id, + }, + data: blueprintTemplatePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: blueprintTemplateKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: blueprintTemplateKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateDatabaseTransferMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateDatabaseTransferMutation.ts new file mode 100644 index 000000000..33628d38b --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateDatabaseTransferMutation.ts @@ -0,0 +1,116 @@ +/** + * Update mutation hook for DatabaseTransfer + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { databaseTransferKeys } from '../query-keys'; +import { databaseTransferMutationKeys } from '../mutation-keys'; +import type { + DatabaseTransferSelect, + DatabaseTransferWithRelations, + DatabaseTransferPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + DatabaseTransferSelect, + DatabaseTransferWithRelations, + DatabaseTransferPatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a DatabaseTransfer + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateDatabaseTransferMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', databaseTransferPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateDatabaseTransferMutation( + params: { + selection: { + fields: S & DatabaseTransferSelect; + } & HookStrictSelect, DatabaseTransferSelect>; + } & Omit< + UseMutationOptions< + { + updateDatabaseTransfer: { + databaseTransfer: InferSelectResult; + }; + }, + Error, + { + id: string; + databaseTransferPatch: DatabaseTransferPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateDatabaseTransfer: { + databaseTransfer: InferSelectResult; + }; + }, + Error, + { + id: string; + databaseTransferPatch: DatabaseTransferPatch; + } +>; +export function useUpdateDatabaseTransferMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + databaseTransferPatch: DatabaseTransferPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: databaseTransferMutationKeys.all, + mutationFn: ({ + id, + databaseTransferPatch, + }: { + id: string; + databaseTransferPatch: DatabaseTransferPatch; + }) => + getClient() + .databaseTransfer.update({ + where: { + id, + }, + data: databaseTransferPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: databaseTransferKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: databaseTransferKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateEmbeddingChunkMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateEmbeddingChunkMutation.ts new file mode 100644 index 000000000..de871f086 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateEmbeddingChunkMutation.ts @@ -0,0 +1,116 @@ +/** + * Update mutation hook for EmbeddingChunk + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { embeddingChunkKeys } from '../query-keys'; +import { embeddingChunkMutationKeys } from '../mutation-keys'; +import type { + EmbeddingChunkSelect, + EmbeddingChunkWithRelations, + EmbeddingChunkPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + EmbeddingChunkSelect, + EmbeddingChunkWithRelations, + EmbeddingChunkPatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a EmbeddingChunk + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateEmbeddingChunkMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', embeddingChunkPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateEmbeddingChunkMutation( + params: { + selection: { + fields: S & EmbeddingChunkSelect; + } & HookStrictSelect, EmbeddingChunkSelect>; + } & Omit< + UseMutationOptions< + { + updateEmbeddingChunk: { + embeddingChunk: InferSelectResult; + }; + }, + Error, + { + id: string; + embeddingChunkPatch: EmbeddingChunkPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateEmbeddingChunk: { + embeddingChunk: InferSelectResult; + }; + }, + Error, + { + id: string; + embeddingChunkPatch: EmbeddingChunkPatch; + } +>; +export function useUpdateEmbeddingChunkMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + embeddingChunkPatch: EmbeddingChunkPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: embeddingChunkMutationKeys.all, + mutationFn: ({ + id, + embeddingChunkPatch, + }: { + id: string; + embeddingChunkPatch: EmbeddingChunkPatch; + }) => + getClient() + .embeddingChunk.update({ + where: { + id, + }, + data: embeddingChunkPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: embeddingChunkKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: embeddingChunkKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateUuidModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateEnumMutation.ts similarity index 50% rename from sdk/constructive-react/src/public/hooks/mutations/useUpdateUuidModuleMutation.ts rename to sdk/constructive-react/src/public/hooks/mutations/useUpdateEnumMutation.ts index d567d4730..2cb358b4f 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/useUpdateUuidModuleMutation.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateEnumMutation.ts @@ -1,5 +1,5 @@ /** - * Update mutation hook for UuidModule + * Update mutation hook for Enum * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -9,100 +9,92 @@ import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-quer import { getClient } from '../client'; import { buildSelectionArgs } from '../selection'; import type { SelectionConfig } from '../selection'; -import { uuidModuleKeys } from '../query-keys'; -import { uuidModuleMutationKeys } from '../mutation-keys'; -import type { - UuidModuleSelect, - UuidModuleWithRelations, - UuidModulePatch, -} from '../../orm/input-types'; +import { enumKeys } from '../query-keys'; +import { enumMutationKeys } from '../mutation-keys'; +import type { EnumSelect, EnumWithRelations, EnumPatch } from '../../orm/input-types'; import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { - UuidModuleSelect, - UuidModuleWithRelations, - UuidModulePatch, -} from '../../orm/input-types'; +export type { EnumSelect, EnumWithRelations, EnumPatch } from '../../orm/input-types'; /** - * Mutation hook for updating a UuidModule + * Mutation hook for updating a Enum * * @example * ```tsx - * const { mutate, isPending } = useUpdateUuidModuleMutation({ + * const { mutate, isPending } = useUpdateEnumMutation({ * selection: { fields: { id: true, name: true } }, * }); * - * mutate({ id: 'value-here', uuidModulePatch: { name: 'Updated' } }); + * mutate({ id: 'value-here', enumPatch: { name: 'Updated' } }); * ``` */ -export function useUpdateUuidModuleMutation( +export function useUpdateEnumMutation( params: { selection: { - fields: S & UuidModuleSelect; - } & HookStrictSelect, UuidModuleSelect>; + fields: S & EnumSelect; + } & HookStrictSelect, EnumSelect>; } & Omit< UseMutationOptions< { - updateUuidModule: { - uuidModule: InferSelectResult; + updateEnum: { + enum: InferSelectResult; }; }, Error, { id: string; - uuidModulePatch: UuidModulePatch; + enumPatch: EnumPatch; } >, 'mutationFn' > ): UseMutationResult< { - updateUuidModule: { - uuidModule: InferSelectResult; + updateEnum: { + enum: InferSelectResult; }; }, Error, { id: string; - uuidModulePatch: UuidModulePatch; + enumPatch: EnumPatch; } >; -export function useUpdateUuidModuleMutation( +export function useUpdateEnumMutation( params: { - selection: SelectionConfig; + selection: SelectionConfig; } & Omit< UseMutationOptions< any, Error, { id: string; - uuidModulePatch: UuidModulePatch; + enumPatch: EnumPatch; } >, 'mutationFn' > ) { - const args = buildSelectionArgs(params.selection); + const args = buildSelectionArgs(params.selection); const { selection: _selection, ...mutationOptions } = params ?? {}; void _selection; const queryClient = useQueryClient(); return useMutation({ - mutationKey: uuidModuleMutationKeys.all, - mutationFn: ({ id, uuidModulePatch }: { id: string; uuidModulePatch: UuidModulePatch }) => + mutationKey: enumMutationKeys.all, + mutationFn: ({ id, enumPatch }: { id: string; enumPatch: EnumPatch }) => getClient() - .uuidModule.update({ + .enum.update({ where: { id, }, - data: uuidModulePatch, + data: enumPatch, select: args.select, }) .unwrap(), onSuccess: (_, variables) => { queryClient.invalidateQueries({ - queryKey: uuidModuleKeys.detail(variables.id), + queryKey: enumKeys.detail(variables.id), }); queryClient.invalidateQueries({ - queryKey: uuidModuleKeys.lists(), + queryKey: enumKeys.lists(), }); }, ...mutationOptions, diff --git a/sdk/constructive-react/src/public/hooks/queries/index.ts b/sdk/constructive-react/src/public/hooks/queries/index.ts index c3dc01b30..31b4508d0 100644 --- a/sdk/constructive-react/src/public/hooks/queries/index.ts +++ b/sdk/constructive-react/src/public/hooks/queries/index.ts @@ -3,9 +3,9 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ +export * from './useGetAllQuery'; export * from './useOrgGetManagersQuery'; export * from './useOrgGetSubordinatesQuery'; -export * from './useGetAllQuery'; export * from './useObjectsQuery'; export * from './useObjectQuery'; export * from './useAppPermissionsQuery'; @@ -48,6 +48,8 @@ export * from './useViewGrantsQuery'; export * from './useViewGrantQuery'; export * from './useViewRulesQuery'; export * from './useViewRuleQuery'; +export * from './useEmbeddingChunksQuery'; +export * from './useEmbeddingChunkQuery'; export * from './useTableTemplateModulesQuery'; export * from './useTableTemplateModuleQuery'; export * from './useSecureTableProvisionsQuery'; @@ -58,6 +60,8 @@ export * from './useSchemaGrantsQuery'; export * from './useSchemaGrantQuery'; export * from './useDefaultPrivilegesQuery'; export * from './useDefaultPrivilegeQuery'; +export * from './useEnumsQuery'; +export * from './useEnumQuery'; export * from './useApiSchemasQuery'; export * from './useApiSchemaQuery'; export * from './useApiModulesQuery'; @@ -72,6 +76,8 @@ export * from './useSiteThemesQuery'; export * from './useSiteThemeQuery'; export * from './useTriggerFunctionsQuery'; export * from './useTriggerFunctionQuery'; +export * from './useDatabaseTransfersQuery'; +export * from './useDatabaseTransferQuery'; export * from './useApisQuery'; export * from './useApiQuery'; export * from './useSitesQuery'; @@ -118,8 +124,10 @@ export * from './useUserAuthModulesQuery'; export * from './useUserAuthModuleQuery'; export * from './useUsersModulesQuery'; export * from './useUsersModuleQuery'; -export * from './useUuidModulesQuery'; -export * from './useUuidModuleQuery'; +export * from './useBlueprintsQuery'; +export * from './useBlueprintQuery'; +export * from './useBlueprintTemplatesQuery'; +export * from './useBlueprintTemplateQuery'; export * from './useDatabaseProvisionModulesQuery'; export * from './useDatabaseProvisionModuleQuery'; export * from './useAppAdminGrantsQuery'; @@ -142,6 +150,8 @@ export * from './useOrgChartEdgesQuery'; export * from './useOrgChartEdgeQuery'; export * from './useOrgChartEdgeGrantsQuery'; export * from './useOrgChartEdgeGrantQuery'; +export * from './useOrgPermissionDefaultsQuery'; +export * from './useOrgPermissionDefaultQuery'; export * from './useAppLimitsQuery'; export * from './useAppLimitQuery'; export * from './useOrgLimitsQuery'; @@ -150,6 +160,16 @@ export * from './useAppStepsQuery'; export * from './useAppStepQuery'; export * from './useAppAchievementsQuery'; export * from './useAppAchievementQuery'; +export * from './useAppLevelsQuery'; +export * from './useAppLevelQuery'; +export * from './useEmailsQuery'; +export * from './useEmailQuery'; +export * from './usePhoneNumbersQuery'; +export * from './usePhoneNumberQuery'; +export * from './useCryptoAddressesQuery'; +export * from './useCryptoAddressQuery'; +export * from './useConnectedAccountsQuery'; +export * from './useConnectedAccountQuery'; export * from './useInvitesQuery'; export * from './useInviteQuery'; export * from './useClaimedInvitesQuery'; @@ -158,26 +178,20 @@ export * from './useOrgInvitesQuery'; export * from './useOrgInviteQuery'; export * from './useOrgClaimedInvitesQuery'; export * from './useOrgClaimedInviteQuery'; +export * from './useAuditLogsQuery'; +export * from './useAuditLogQuery'; export * from './useRefsQuery'; export * from './useRefQuery'; export * from './useStoresQuery'; export * from './useStoreQuery'; export * from './useAppPermissionDefaultsQuery'; export * from './useAppPermissionDefaultQuery'; -export * from './useCryptoAddressesQuery'; -export * from './useCryptoAddressQuery'; export * from './useRoleTypesQuery'; export * from './useRoleTypeQuery'; -export * from './useOrgPermissionDefaultsQuery'; -export * from './useOrgPermissionDefaultQuery'; -export * from './usePhoneNumbersQuery'; -export * from './usePhoneNumberQuery'; export * from './useAppLimitDefaultsQuery'; export * from './useAppLimitDefaultQuery'; export * from './useOrgLimitDefaultsQuery'; export * from './useOrgLimitDefaultQuery'; -export * from './useConnectedAccountsQuery'; -export * from './useConnectedAccountQuery'; export * from './useNodeTypeRegistriesQuery'; export * from './useNodeTypeRegistryQuery'; export * from './useMembershipTypesQuery'; @@ -190,14 +204,8 @@ export * from './useRlsModulesQuery'; export * from './useRlsModuleQuery'; export * from './useOrgMembershipDefaultsQuery'; export * from './useOrgMembershipDefaultQuery'; -export * from './useAuditLogsQuery'; -export * from './useAuditLogQuery'; -export * from './useAppLevelsQuery'; -export * from './useAppLevelQuery'; export * from './useSqlMigrationsQuery'; export * from './useSqlMigrationQuery'; -export * from './useEmailsQuery'; -export * from './useEmailQuery'; export * from './useUsersQuery'; export * from './useUserQuery'; export * from './useAstMigrationsQuery'; diff --git a/sdk/constructive-react/src/public/hooks/queries/useBlueprintQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useBlueprintQuery.ts new file mode 100644 index 000000000..1cbd0e9cc --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useBlueprintQuery.ts @@ -0,0 +1,138 @@ +/** + * An owned, executable blueprint scoped to a specific database. Created by copying from a blueprint_template via copy_template_to_blueprint() or built from scratch. The owner can customize the definition before executing it with construct_blueprint(). Each blueprint tracks its execution status (draft/constructed/failed) and stores the ref_map of created table IDs after construction. + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { blueprintKeys } from '../query-keys'; +import type { BlueprintSelect, BlueprintWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { BlueprintSelect, BlueprintWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const blueprintQueryKey = blueprintKeys.detail; +/** + * An owned, executable blueprint scoped to a specific database. Created by copying from a blueprint_template via copy_template_to_blueprint() or built from scratch. The owner can customize the definition before executing it with construct_blueprint(). Each blueprint tracks its execution status (draft/constructed/failed) and stores the ref_map of created table IDs after construction. + * + * @example + * ```tsx + * const { data, isLoading } = useBlueprintQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useBlueprintQuery< + S extends BlueprintSelect, + TData = { + blueprint: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, BlueprintSelect>; + } & Omit< + UseQueryOptions< + { + blueprint: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useBlueprintQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: blueprintKeys.detail(params.id), + queryFn: () => + getClient() + .blueprint.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * An owned, executable blueprint scoped to a specific database. Created by copying from a blueprint_template via copy_template_to_blueprint() or built from scratch. The owner can customize the definition before executing it with construct_blueprint(). Each blueprint tracks its execution status (draft/constructed/failed) and stores the ref_map of created table IDs after construction. + * + * @example + * ```ts + * const data = await fetchBlueprintQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchBlueprintQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, BlueprintSelect>; +}): Promise<{ + blueprint: InferSelectResult | null; +}>; +export async function fetchBlueprintQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .blueprint.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * An owned, executable blueprint scoped to a specific database. Created by copying from a blueprint_template via copy_template_to_blueprint() or built from scratch. The owner can customize the definition before executing it with construct_blueprint(). Each blueprint tracks its execution status (draft/constructed/failed) and stores the ref_map of created table IDs after construction. + * + * @example + * ```ts + * await prefetchBlueprintQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchBlueprintQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, BlueprintSelect>; + } +): Promise; +export async function prefetchBlueprintQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: blueprintKeys.detail(params.id), + queryFn: () => + getClient() + .blueprint.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useBlueprintTemplateQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useBlueprintTemplateQuery.ts new file mode 100644 index 000000000..469aa8a83 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useBlueprintTemplateQuery.ts @@ -0,0 +1,144 @@ +/** + * A shareable, versioned schema recipe for the blueprint marketplace. Templates define arrays of secure_table_provision + relation_provision inputs that together describe a complete domain schema (e.g. e-commerce, telemedicine, habit tracker). Templates are never executed directly — they are copied into a blueprint first via copy_template_to_blueprint(). Can be private (owner-only) or public (marketplace-visible). + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { blueprintTemplateKeys } from '../query-keys'; +import type { + BlueprintTemplateSelect, + BlueprintTemplateWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + BlueprintTemplateSelect, + BlueprintTemplateWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const blueprintTemplateQueryKey = blueprintTemplateKeys.detail; +/** + * A shareable, versioned schema recipe for the blueprint marketplace. Templates define arrays of secure_table_provision + relation_provision inputs that together describe a complete domain schema (e.g. e-commerce, telemedicine, habit tracker). Templates are never executed directly — they are copied into a blueprint first via copy_template_to_blueprint(). Can be private (owner-only) or public (marketplace-visible). + * + * @example + * ```tsx + * const { data, isLoading } = useBlueprintTemplateQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useBlueprintTemplateQuery< + S extends BlueprintTemplateSelect, + TData = { + blueprintTemplate: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, BlueprintTemplateSelect>; + } & Omit< + UseQueryOptions< + { + blueprintTemplate: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useBlueprintTemplateQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: blueprintTemplateKeys.detail(params.id), + queryFn: () => + getClient() + .blueprintTemplate.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * A shareable, versioned schema recipe for the blueprint marketplace. Templates define arrays of secure_table_provision + relation_provision inputs that together describe a complete domain schema (e.g. e-commerce, telemedicine, habit tracker). Templates are never executed directly — they are copied into a blueprint first via copy_template_to_blueprint(). Can be private (owner-only) or public (marketplace-visible). + * + * @example + * ```ts + * const data = await fetchBlueprintTemplateQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchBlueprintTemplateQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, BlueprintTemplateSelect>; +}): Promise<{ + blueprintTemplate: InferSelectResult | null; +}>; +export async function fetchBlueprintTemplateQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .blueprintTemplate.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * A shareable, versioned schema recipe for the blueprint marketplace. Templates define arrays of secure_table_provision + relation_provision inputs that together describe a complete domain schema (e.g. e-commerce, telemedicine, habit tracker). Templates are never executed directly — they are copied into a blueprint first via copy_template_to_blueprint(). Can be private (owner-only) or public (marketplace-visible). + * + * @example + * ```ts + * await prefetchBlueprintTemplateQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchBlueprintTemplateQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, BlueprintTemplateSelect>; + } +): Promise; +export async function prefetchBlueprintTemplateQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: blueprintTemplateKeys.detail(params.id), + queryFn: () => + getClient() + .blueprintTemplate.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useBlueprintTemplatesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useBlueprintTemplatesQuery.ts new file mode 100644 index 000000000..49d0c9e4e --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useBlueprintTemplatesQuery.ts @@ -0,0 +1,163 @@ +/** + * A shareable, versioned schema recipe for the blueprint marketplace. Templates define arrays of secure_table_provision + relation_provision inputs that together describe a complete domain schema (e.g. e-commerce, telemedicine, habit tracker). Templates are never executed directly — they are copied into a blueprint first via copy_template_to_blueprint(). Can be private (owner-only) or public (marketplace-visible). + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildListSelectionArgs } from '../selection'; +import type { ListSelectionConfig } from '../selection'; +import { blueprintTemplateKeys } from '../query-keys'; +import type { + BlueprintTemplateSelect, + BlueprintTemplateWithRelations, + BlueprintTemplateFilter, + BlueprintTemplateOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + BlueprintTemplateSelect, + BlueprintTemplateWithRelations, + BlueprintTemplateFilter, + BlueprintTemplateOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const blueprintTemplatesQueryKey = blueprintTemplateKeys.list; +/** + * A shareable, versioned schema recipe for the blueprint marketplace. Templates define arrays of secure_table_provision + relation_provision inputs that together describe a complete domain schema (e.g. e-commerce, telemedicine, habit tracker). Templates are never executed directly — they are copied into a blueprint first via copy_template_to_blueprint(). Can be private (owner-only) or public (marketplace-visible). + * + * @example + * ```tsx + * const { data, isLoading } = useBlueprintTemplatesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useBlueprintTemplatesQuery< + S extends BlueprintTemplateSelect, + TData = { + blueprintTemplates: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, BlueprintTemplateSelect>; + } & Omit< + UseQueryOptions< + { + blueprintTemplates: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useBlueprintTemplatesQuery( + params: { + selection: ListSelectionConfig< + BlueprintTemplateSelect, + BlueprintTemplateFilter, + BlueprintTemplateOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + BlueprintTemplateSelect, + BlueprintTemplateFilter, + BlueprintTemplateOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: blueprintTemplateKeys.list(args), + queryFn: () => getClient().blueprintTemplate.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * A shareable, versioned schema recipe for the blueprint marketplace. Templates define arrays of secure_table_provision + relation_provision inputs that together describe a complete domain schema (e.g. e-commerce, telemedicine, habit tracker). Templates are never executed directly — they are copied into a blueprint first via copy_template_to_blueprint(). Can be private (owner-only) or public (marketplace-visible). + * + * @example + * ```ts + * const data = await fetchBlueprintTemplatesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchBlueprintTemplatesQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, BlueprintTemplateSelect>; +}): Promise<{ + blueprintTemplates: ConnectionResult>; +}>; +export async function fetchBlueprintTemplatesQuery(params: { + selection: ListSelectionConfig< + BlueprintTemplateSelect, + BlueprintTemplateFilter, + BlueprintTemplateOrderBy + >; +}) { + const args = buildListSelectionArgs< + BlueprintTemplateSelect, + BlueprintTemplateFilter, + BlueprintTemplateOrderBy + >(params.selection); + return getClient().blueprintTemplate.findMany(args).unwrap(); +} +/** + * A shareable, versioned schema recipe for the blueprint marketplace. Templates define arrays of secure_table_provision + relation_provision inputs that together describe a complete domain schema (e.g. e-commerce, telemedicine, habit tracker). Templates are never executed directly — they are copied into a blueprint first via copy_template_to_blueprint(). Can be private (owner-only) or public (marketplace-visible). + * + * @example + * ```ts + * await prefetchBlueprintTemplatesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchBlueprintTemplatesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, BlueprintTemplateSelect>; + } +): Promise; +export async function prefetchBlueprintTemplatesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + BlueprintTemplateSelect, + BlueprintTemplateFilter, + BlueprintTemplateOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + BlueprintTemplateSelect, + BlueprintTemplateFilter, + BlueprintTemplateOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: blueprintTemplateKeys.list(args), + queryFn: () => getClient().blueprintTemplate.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useBlueprintsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useBlueprintsQuery.ts new file mode 100644 index 000000000..c6d388a71 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useBlueprintsQuery.ts @@ -0,0 +1,145 @@ +/** + * An owned, executable blueprint scoped to a specific database. Created by copying from a blueprint_template via copy_template_to_blueprint() or built from scratch. The owner can customize the definition before executing it with construct_blueprint(). Each blueprint tracks its execution status (draft/constructed/failed) and stores the ref_map of created table IDs after construction. + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildListSelectionArgs } from '../selection'; +import type { ListSelectionConfig } from '../selection'; +import { blueprintKeys } from '../query-keys'; +import type { + BlueprintSelect, + BlueprintWithRelations, + BlueprintFilter, + BlueprintOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + BlueprintSelect, + BlueprintWithRelations, + BlueprintFilter, + BlueprintOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const blueprintsQueryKey = blueprintKeys.list; +/** + * An owned, executable blueprint scoped to a specific database. Created by copying from a blueprint_template via copy_template_to_blueprint() or built from scratch. The owner can customize the definition before executing it with construct_blueprint(). Each blueprint tracks its execution status (draft/constructed/failed) and stores the ref_map of created table IDs after construction. + * + * @example + * ```tsx + * const { data, isLoading } = useBlueprintsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useBlueprintsQuery< + S extends BlueprintSelect, + TData = { + blueprints: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, BlueprintSelect>; + } & Omit< + UseQueryOptions< + { + blueprints: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useBlueprintsQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs( + params.selection + ); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: blueprintKeys.list(args), + queryFn: () => getClient().blueprint.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * An owned, executable blueprint scoped to a specific database. Created by copying from a blueprint_template via copy_template_to_blueprint() or built from scratch. The owner can customize the definition before executing it with construct_blueprint(). Each blueprint tracks its execution status (draft/constructed/failed) and stores the ref_map of created table IDs after construction. + * + * @example + * ```ts + * const data = await fetchBlueprintsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchBlueprintsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, BlueprintSelect>; +}): Promise<{ + blueprints: ConnectionResult>; +}>; +export async function fetchBlueprintsQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs( + params.selection + ); + return getClient().blueprint.findMany(args).unwrap(); +} +/** + * An owned, executable blueprint scoped to a specific database. Created by copying from a blueprint_template via copy_template_to_blueprint() or built from scratch. The owner can customize the definition before executing it with construct_blueprint(). Each blueprint tracks its execution status (draft/constructed/failed) and stores the ref_map of created table IDs after construction. + * + * @example + * ```ts + * await prefetchBlueprintsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchBlueprintsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, BlueprintSelect>; + } +): Promise; +export async function prefetchBlueprintsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs( + params.selection + ); + await queryClient.prefetchQuery({ + queryKey: blueprintKeys.list(args), + queryFn: () => getClient().blueprint.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useDatabaseTransferQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useDatabaseTransferQuery.ts new file mode 100644 index 000000000..67dbacc3f --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useDatabaseTransferQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for DatabaseTransfer + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { databaseTransferKeys } from '../query-keys'; +import type { DatabaseTransferSelect, DatabaseTransferWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { DatabaseTransferSelect, DatabaseTransferWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const databaseTransferQueryKey = databaseTransferKeys.detail; +/** + * Query hook for fetching a single DatabaseTransfer + * + * @example + * ```tsx + * const { data, isLoading } = useDatabaseTransferQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useDatabaseTransferQuery< + S extends DatabaseTransferSelect, + TData = { + databaseTransfer: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, DatabaseTransferSelect>; + } & Omit< + UseQueryOptions< + { + databaseTransfer: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useDatabaseTransferQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: databaseTransferKeys.detail(params.id), + queryFn: () => + getClient() + .databaseTransfer.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single DatabaseTransfer without React hooks + * + * @example + * ```ts + * const data = await fetchDatabaseTransferQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchDatabaseTransferQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, DatabaseTransferSelect>; +}): Promise<{ + databaseTransfer: InferSelectResult | null; +}>; +export async function fetchDatabaseTransferQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .databaseTransfer.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single DatabaseTransfer for SSR or cache warming + * + * @example + * ```ts + * await prefetchDatabaseTransferQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchDatabaseTransferQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, DatabaseTransferSelect>; + } +): Promise; +export async function prefetchDatabaseTransferQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: databaseTransferKeys.detail(params.id), + queryFn: () => + getClient() + .databaseTransfer.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useDatabaseTransfersQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useDatabaseTransfersQuery.ts new file mode 100644 index 000000000..44c987e9b --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useDatabaseTransfersQuery.ts @@ -0,0 +1,163 @@ +/** + * List query hook for DatabaseTransfer + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildListSelectionArgs } from '../selection'; +import type { ListSelectionConfig } from '../selection'; +import { databaseTransferKeys } from '../query-keys'; +import type { + DatabaseTransferSelect, + DatabaseTransferWithRelations, + DatabaseTransferFilter, + DatabaseTransferOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + DatabaseTransferSelect, + DatabaseTransferWithRelations, + DatabaseTransferFilter, + DatabaseTransferOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const databaseTransfersQueryKey = databaseTransferKeys.list; +/** + * Query hook for fetching DatabaseTransfer list + * + * @example + * ```tsx + * const { data, isLoading } = useDatabaseTransfersQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useDatabaseTransfersQuery< + S extends DatabaseTransferSelect, + TData = { + databaseTransfers: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, DatabaseTransferSelect>; + } & Omit< + UseQueryOptions< + { + databaseTransfers: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useDatabaseTransfersQuery( + params: { + selection: ListSelectionConfig< + DatabaseTransferSelect, + DatabaseTransferFilter, + DatabaseTransferOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + DatabaseTransferSelect, + DatabaseTransferFilter, + DatabaseTransferOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: databaseTransferKeys.list(args), + queryFn: () => getClient().databaseTransfer.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch DatabaseTransfer list without React hooks + * + * @example + * ```ts + * const data = await fetchDatabaseTransfersQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchDatabaseTransfersQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, DatabaseTransferSelect>; +}): Promise<{ + databaseTransfers: ConnectionResult>; +}>; +export async function fetchDatabaseTransfersQuery(params: { + selection: ListSelectionConfig< + DatabaseTransferSelect, + DatabaseTransferFilter, + DatabaseTransferOrderBy + >; +}) { + const args = buildListSelectionArgs< + DatabaseTransferSelect, + DatabaseTransferFilter, + DatabaseTransferOrderBy + >(params.selection); + return getClient().databaseTransfer.findMany(args).unwrap(); +} +/** + * Prefetch DatabaseTransfer list for SSR or cache warming + * + * @example + * ```ts + * await prefetchDatabaseTransfersQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchDatabaseTransfersQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, DatabaseTransferSelect>; + } +): Promise; +export async function prefetchDatabaseTransfersQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + DatabaseTransferSelect, + DatabaseTransferFilter, + DatabaseTransferOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + DatabaseTransferSelect, + DatabaseTransferFilter, + DatabaseTransferOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: databaseTransferKeys.list(args), + queryFn: () => getClient().databaseTransfer.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useEmbeddingChunkQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useEmbeddingChunkQuery.ts new file mode 100644 index 000000000..3832d3c67 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useEmbeddingChunkQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for EmbeddingChunk + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { embeddingChunkKeys } from '../query-keys'; +import type { EmbeddingChunkSelect, EmbeddingChunkWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { EmbeddingChunkSelect, EmbeddingChunkWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const embeddingChunkQueryKey = embeddingChunkKeys.detail; +/** + * Query hook for fetching a single EmbeddingChunk + * + * @example + * ```tsx + * const { data, isLoading } = useEmbeddingChunkQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useEmbeddingChunkQuery< + S extends EmbeddingChunkSelect, + TData = { + embeddingChunk: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, EmbeddingChunkSelect>; + } & Omit< + UseQueryOptions< + { + embeddingChunk: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useEmbeddingChunkQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: embeddingChunkKeys.detail(params.id), + queryFn: () => + getClient() + .embeddingChunk.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single EmbeddingChunk without React hooks + * + * @example + * ```ts + * const data = await fetchEmbeddingChunkQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchEmbeddingChunkQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, EmbeddingChunkSelect>; +}): Promise<{ + embeddingChunk: InferSelectResult | null; +}>; +export async function fetchEmbeddingChunkQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .embeddingChunk.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single EmbeddingChunk for SSR or cache warming + * + * @example + * ```ts + * await prefetchEmbeddingChunkQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchEmbeddingChunkQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, EmbeddingChunkSelect>; + } +): Promise; +export async function prefetchEmbeddingChunkQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: embeddingChunkKeys.detail(params.id), + queryFn: () => + getClient() + .embeddingChunk.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useEmbeddingChunksQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useEmbeddingChunksQuery.ts new file mode 100644 index 000000000..79caf38a3 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useEmbeddingChunksQuery.ts @@ -0,0 +1,159 @@ +/** + * List query hook for EmbeddingChunk + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildListSelectionArgs } from '../selection'; +import type { ListSelectionConfig } from '../selection'; +import { embeddingChunkKeys } from '../query-keys'; +import type { + EmbeddingChunkSelect, + EmbeddingChunkWithRelations, + EmbeddingChunkFilter, + EmbeddingChunkOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + EmbeddingChunkSelect, + EmbeddingChunkWithRelations, + EmbeddingChunkFilter, + EmbeddingChunkOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const embeddingChunksQueryKey = embeddingChunkKeys.list; +/** + * Query hook for fetching EmbeddingChunk list + * + * @example + * ```tsx + * const { data, isLoading } = useEmbeddingChunksQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useEmbeddingChunksQuery< + S extends EmbeddingChunkSelect, + TData = { + embeddingChunks: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, EmbeddingChunkSelect>; + } & Omit< + UseQueryOptions< + { + embeddingChunks: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useEmbeddingChunksQuery( + params: { + selection: ListSelectionConfig< + EmbeddingChunkSelect, + EmbeddingChunkFilter, + EmbeddingChunkOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + EmbeddingChunkSelect, + EmbeddingChunkFilter, + EmbeddingChunkOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: embeddingChunkKeys.list(args), + queryFn: () => getClient().embeddingChunk.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch EmbeddingChunk list without React hooks + * + * @example + * ```ts + * const data = await fetchEmbeddingChunksQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchEmbeddingChunksQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, EmbeddingChunkSelect>; +}): Promise<{ + embeddingChunks: ConnectionResult>; +}>; +export async function fetchEmbeddingChunksQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs< + EmbeddingChunkSelect, + EmbeddingChunkFilter, + EmbeddingChunkOrderBy + >(params.selection); + return getClient().embeddingChunk.findMany(args).unwrap(); +} +/** + * Prefetch EmbeddingChunk list for SSR or cache warming + * + * @example + * ```ts + * await prefetchEmbeddingChunksQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchEmbeddingChunksQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, EmbeddingChunkSelect>; + } +): Promise; +export async function prefetchEmbeddingChunksQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + EmbeddingChunkSelect, + EmbeddingChunkFilter, + EmbeddingChunkOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + EmbeddingChunkSelect, + EmbeddingChunkFilter, + EmbeddingChunkOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: embeddingChunkKeys.list(args), + queryFn: () => getClient().embeddingChunk.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useEnumQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useEnumQuery.ts new file mode 100644 index 000000000..1b36d0eaf --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useEnumQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for Enum + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { enumKeys } from '../query-keys'; +import type { EnumSelect, EnumWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { EnumSelect, EnumWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const enumQueryKey = enumKeys.detail; +/** + * Query hook for fetching a single Enum + * + * @example + * ```tsx + * const { data, isLoading } = useEnumQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useEnumQuery< + S extends EnumSelect, + TData = { + enum: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, EnumSelect>; + } & Omit< + UseQueryOptions< + { + enum: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useEnumQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: enumKeys.detail(params.id), + queryFn: () => + getClient() + .enum.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single Enum without React hooks + * + * @example + * ```ts + * const data = await fetchEnumQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchEnumQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, EnumSelect>; +}): Promise<{ + enum: InferSelectResult | null; +}>; +export async function fetchEnumQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .enum.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single Enum for SSR or cache warming + * + * @example + * ```ts + * await prefetchEnumQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchEnumQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, EnumSelect>; + } +): Promise; +export async function prefetchEnumQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: enumKeys.detail(params.id), + queryFn: () => + getClient() + .enum.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useEnumsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useEnumsQuery.ts new file mode 100644 index 000000000..83abc49ec --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useEnumsQuery.ts @@ -0,0 +1,129 @@ +/** + * List query hook for Enum + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildListSelectionArgs } from '../selection'; +import type { ListSelectionConfig } from '../selection'; +import { enumKeys } from '../query-keys'; +import type { EnumSelect, EnumWithRelations, EnumFilter, EnumOrderBy } from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { EnumSelect, EnumWithRelations, EnumFilter, EnumOrderBy } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const enumsQueryKey = enumKeys.list; +/** + * Query hook for fetching Enum list + * + * @example + * ```tsx + * const { data, isLoading } = useEnumsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useEnumsQuery< + S extends EnumSelect, + TData = { + enums: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, EnumSelect>; + } & Omit< + UseQueryOptions< + { + enums: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useEnumsQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: enumKeys.list(args), + queryFn: () => getClient().enum.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch Enum list without React hooks + * + * @example + * ```ts + * const data = await fetchEnumsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchEnumsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, EnumSelect>; +}): Promise<{ + enums: ConnectionResult>; +}>; +export async function fetchEnumsQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs(params.selection); + return getClient().enum.findMany(args).unwrap(); +} +/** + * Prefetch Enum list for SSR or cache warming + * + * @example + * ```ts + * await prefetchEnumsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchEnumsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, EnumSelect>; + } +): Promise; +export async function prefetchEnumsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: enumKeys.list(args), + queryFn: () => getClient().enum.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useUuidModuleQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useUuidModuleQuery.ts deleted file mode 100644 index 0a42306d3..000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useUuidModuleQuery.ts +++ /dev/null @@ -1,138 +0,0 @@ -/** - * Single item query hook for UuidModule - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { uuidModuleKeys } from '../query-keys'; -import type { UuidModuleSelect, UuidModuleWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { UuidModuleSelect, UuidModuleWithRelations } from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const uuidModuleQueryKey = uuidModuleKeys.detail; -/** - * Query hook for fetching a single UuidModule - * - * @example - * ```tsx - * const { data, isLoading } = useUuidModuleQuery({ - * id: 'some-id', - * selection: { fields: { id: true, name: true } }, - * }); - * ``` - */ -export function useUuidModuleQuery< - S extends UuidModuleSelect, - TData = { - uuidModule: InferSelectResult | null; - }, ->( - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, UuidModuleSelect>; - } & Omit< - UseQueryOptions< - { - uuidModule: InferSelectResult | null; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useUuidModuleQuery( - params: { - id: string; - selection: SelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: uuidModuleKeys.detail(params.id), - queryFn: () => - getClient() - .uuidModule.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - ...queryOptions, - }); -} -/** - * Fetch a single UuidModule without React hooks - * - * @example - * ```ts - * const data = await fetchUuidModuleQuery({ - * id: 'some-id', - * selection: { fields: { id: true } }, - * }); - * ``` - */ -export async function fetchUuidModuleQuery(params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, UuidModuleSelect>; -}): Promise<{ - uuidModule: InferSelectResult | null; -}>; -export async function fetchUuidModuleQuery(params: { - id: string; - selection: SelectionConfig; -}) { - const args = buildSelectionArgs(params.selection); - return getClient() - .uuidModule.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(); -} -/** - * Prefetch a single UuidModule for SSR or cache warming - * - * @example - * ```ts - * await prefetchUuidModuleQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); - * ``` - */ -export async function prefetchUuidModuleQuery( - queryClient: QueryClient, - params: { - id: string; - selection: { - fields: S; - } & HookStrictSelect, UuidModuleSelect>; - } -): Promise; -export async function prefetchUuidModuleQuery( - queryClient: QueryClient, - params: { - id: string; - selection: SelectionConfig; - } -): Promise { - const args = buildSelectionArgs(params.selection); - await queryClient.prefetchQuery({ - queryKey: uuidModuleKeys.detail(params.id), - queryFn: () => - getClient() - .uuidModule.findOne({ - id: params.id, - select: args.select, - }) - .unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/queries/useUuidModulesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useUuidModulesQuery.ts deleted file mode 100644 index b3a26771f..000000000 --- a/sdk/constructive-react/src/public/hooks/queries/useUuidModulesQuery.ts +++ /dev/null @@ -1,145 +0,0 @@ -/** - * List query hook for UuidModule - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { uuidModuleKeys } from '../query-keys'; -import type { - UuidModuleSelect, - UuidModuleWithRelations, - UuidModuleFilter, - UuidModuleOrderBy, -} from '../../orm/input-types'; -import type { - FindManyArgs, - InferSelectResult, - ConnectionResult, - HookStrictSelect, -} from '../../orm/select-types'; -export type { - UuidModuleSelect, - UuidModuleWithRelations, - UuidModuleFilter, - UuidModuleOrderBy, -} from '../../orm/input-types'; -/** Query key factory - re-exported from query-keys.ts */ -export const uuidModulesQueryKey = uuidModuleKeys.list; -/** - * Query hook for fetching UuidModule list - * - * @example - * ```tsx - * const { data, isLoading } = useUuidModulesQuery({ - * selection: { - * fields: { id: true, name: true }, - * where: { name: { equalTo: "example" } }, - * orderBy: ['CREATED_AT_DESC'], - * first: 10, - * }, - * }); - * ``` - */ -export function useUuidModulesQuery< - S extends UuidModuleSelect, - TData = { - uuidModules: ConnectionResult>; - }, ->( - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, UuidModuleSelect>; - } & Omit< - UseQueryOptions< - { - uuidModules: ConnectionResult>; - }, - Error, - TData - >, - 'queryKey' | 'queryFn' - > -): UseQueryResult; -export function useUuidModulesQuery( - params: { - selection: ListSelectionConfig; - } & Omit, 'queryKey' | 'queryFn'> -) { - const args = buildListSelectionArgs( - params.selection - ); - const { selection: _selection, ...queryOptions } = params ?? {}; - void _selection; - return useQuery({ - queryKey: uuidModuleKeys.list(args), - queryFn: () => getClient().uuidModule.findMany(args).unwrap(), - ...queryOptions, - }); -} -/** - * Fetch UuidModule list without React hooks - * - * @example - * ```ts - * const data = await fetchUuidModulesQuery({ - * selection: { - * fields: { id: true }, - * first: 10, - * }, - * }); - * ``` - */ -export async function fetchUuidModulesQuery(params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, UuidModuleSelect>; -}): Promise<{ - uuidModules: ConnectionResult>; -}>; -export async function fetchUuidModulesQuery(params: { - selection: ListSelectionConfig; -}) { - const args = buildListSelectionArgs( - params.selection - ); - return getClient().uuidModule.findMany(args).unwrap(); -} -/** - * Prefetch UuidModule list for SSR or cache warming - * - * @example - * ```ts - * await prefetchUuidModulesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); - * ``` - */ -export async function prefetchUuidModulesQuery( - queryClient: QueryClient, - params: { - selection: { - fields: S; - } & Omit, 'fields'> & - HookStrictSelect, UuidModuleSelect>; - } -): Promise; -export async function prefetchUuidModulesQuery( - queryClient: QueryClient, - params: { - selection: ListSelectionConfig; - } -): Promise { - const args = buildListSelectionArgs( - params.selection - ); - await queryClient.prefetchQuery({ - queryKey: uuidModuleKeys.list(args), - queryFn: () => getClient().uuidModule.findMany(args).unwrap(), - }); -} diff --git a/sdk/constructive-react/src/public/hooks/query-keys.ts b/sdk/constructive-react/src/public/hooks/query-keys.ts index eaed3876d..57c22ce0a 100644 --- a/sdk/constructive-react/src/public/hooks/query-keys.ts +++ b/sdk/constructive-react/src/public/hooks/query-keys.ts @@ -19,6 +19,15 @@ // Entity Query Keys // ============================================================================ +export const getAllRecordKeys = { + /** All getAllRecord queries */ all: ['getallrecord'] as const, + /** List query keys */ lists: () => [...getAllRecordKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...getAllRecordKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...getAllRecordKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...getAllRecordKeys.details(), id] as const, +} as const; export const orgGetManagersRecordKeys = { /** All orgGetManagersRecord queries */ all: ['orggetmanagersrecord'] as const, /** List query keys */ lists: () => [...orgGetManagersRecordKeys.all, 'list'] as const, @@ -37,15 +46,6 @@ export const orgGetSubordinatesRecordKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...orgGetSubordinatesRecordKeys.details(), id] as const, } as const; -export const getAllRecordKeys = { - /** All getAllRecord queries */ all: ['getallrecord'] as const, - /** List query keys */ lists: () => [...getAllRecordKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...getAllRecordKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...getAllRecordKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...getAllRecordKeys.details(), id] as const, -} as const; export const objectKeys = { /** All object queries */ all: ['object'] as const, /** List query keys */ lists: () => [...objectKeys.all, 'list'] as const, @@ -235,6 +235,15 @@ export const viewRuleKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...viewRuleKeys.details(), id] as const, } as const; +export const embeddingChunkKeys = { + /** All embeddingChunk queries */ all: ['embeddingchunk'] as const, + /** List query keys */ lists: () => [...embeddingChunkKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...embeddingChunkKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...embeddingChunkKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...embeddingChunkKeys.details(), id] as const, +} as const; export const tableTemplateModuleKeys = { /** All tableTemplateModule queries */ all: ['tabletemplatemodule'] as const, /** List query keys */ lists: () => [...tableTemplateModuleKeys.all, 'list'] as const, @@ -280,6 +289,15 @@ export const defaultPrivilegeKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...defaultPrivilegeKeys.details(), id] as const, } as const; +export const enumKeys = { + /** All enum queries */ all: ['enum'] as const, + /** List query keys */ lists: () => [...enumKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...enumKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...enumKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...enumKeys.details(), id] as const, +} as const; export const apiSchemaKeys = { /** All apiSchema queries */ all: ['apischema'] as const, /** List query keys */ lists: () => [...apiSchemaKeys.all, 'list'] as const, @@ -343,6 +361,15 @@ export const triggerFunctionKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...triggerFunctionKeys.details(), id] as const, } as const; +export const databaseTransferKeys = { + /** All databaseTransfer queries */ all: ['databasetransfer'] as const, + /** List query keys */ lists: () => [...databaseTransferKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...databaseTransferKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...databaseTransferKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...databaseTransferKeys.details(), id] as const, +} as const; export const apiKeys = { /** All api queries */ all: ['api'] as const, /** List query keys */ lists: () => [...apiKeys.all, 'list'] as const, @@ -550,14 +577,23 @@ export const usersModuleKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...usersModuleKeys.details(), id] as const, } as const; -export const uuidModuleKeys = { - /** All uuidModule queries */ all: ['uuidmodule'] as const, - /** List query keys */ lists: () => [...uuidModuleKeys.all, 'list'] as const, +export const blueprintKeys = { + /** All blueprint queries */ all: ['blueprint'] as const, + /** List query keys */ lists: () => [...blueprintKeys.all, 'list'] as const, /** List query key with variables */ list: (variables?: object) => - [...uuidModuleKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...uuidModuleKeys.all, 'detail'] as const, + [...blueprintKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...blueprintKeys.all, 'detail'] as const, /** Detail query key for specific item */ detail: (id: string | number) => - [...uuidModuleKeys.details(), id] as const, + [...blueprintKeys.details(), id] as const, +} as const; +export const blueprintTemplateKeys = { + /** All blueprintTemplate queries */ all: ['blueprinttemplate'] as const, + /** List query keys */ lists: () => [...blueprintTemplateKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...blueprintTemplateKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...blueprintTemplateKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...blueprintTemplateKeys.details(), id] as const, } as const; export const databaseProvisionModuleKeys = { /** All databaseProvisionModule queries */ all: ['databaseprovisionmodule'] as const, @@ -658,6 +694,15 @@ export const orgChartEdgeGrantKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...orgChartEdgeGrantKeys.details(), id] as const, } as const; +export const orgPermissionDefaultKeys = { + /** All orgPermissionDefault queries */ all: ['orgpermissiondefault'] as const, + /** List query keys */ lists: () => [...orgPermissionDefaultKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...orgPermissionDefaultKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...orgPermissionDefaultKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...orgPermissionDefaultKeys.details(), id] as const, +} as const; export const appLimitKeys = { /** All appLimit queries */ all: ['applimit'] as const, /** List query keys */ lists: () => [...appLimitKeys.all, 'list'] as const, @@ -694,6 +739,51 @@ export const appAchievementKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...appAchievementKeys.details(), id] as const, } as const; +export const appLevelKeys = { + /** All appLevel queries */ all: ['applevel'] as const, + /** List query keys */ lists: () => [...appLevelKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...appLevelKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...appLevelKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...appLevelKeys.details(), id] as const, +} as const; +export const emailKeys = { + /** All email queries */ all: ['email'] as const, + /** List query keys */ lists: () => [...emailKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...emailKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...emailKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...emailKeys.details(), id] as const, +} as const; +export const phoneNumberKeys = { + /** All phoneNumber queries */ all: ['phonenumber'] as const, + /** List query keys */ lists: () => [...phoneNumberKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...phoneNumberKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...phoneNumberKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...phoneNumberKeys.details(), id] as const, +} as const; +export const cryptoAddressKeys = { + /** All cryptoAddress queries */ all: ['cryptoaddress'] as const, + /** List query keys */ lists: () => [...cryptoAddressKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...cryptoAddressKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...cryptoAddressKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...cryptoAddressKeys.details(), id] as const, +} as const; +export const connectedAccountKeys = { + /** All connectedAccount queries */ all: ['connectedaccount'] as const, + /** List query keys */ lists: () => [...connectedAccountKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...connectedAccountKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...connectedAccountKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...connectedAccountKeys.details(), id] as const, +} as const; export const inviteKeys = { /** All invite queries */ all: ['invite'] as const, /** List query keys */ lists: () => [...inviteKeys.all, 'list'] as const, @@ -730,6 +820,15 @@ export const orgClaimedInviteKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...orgClaimedInviteKeys.details(), id] as const, } as const; +export const auditLogKeys = { + /** All auditLog queries */ all: ['auditlog'] as const, + /** List query keys */ lists: () => [...auditLogKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...auditLogKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...auditLogKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...auditLogKeys.details(), id] as const, +} as const; export const refKeys = { /** All ref queries */ all: ['ref'] as const, /** List query keys */ lists: () => [...refKeys.all, 'list'] as const, @@ -757,15 +856,6 @@ export const appPermissionDefaultKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...appPermissionDefaultKeys.details(), id] as const, } as const; -export const cryptoAddressKeys = { - /** All cryptoAddress queries */ all: ['cryptoaddress'] as const, - /** List query keys */ lists: () => [...cryptoAddressKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...cryptoAddressKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...cryptoAddressKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...cryptoAddressKeys.details(), id] as const, -} as const; export const roleTypeKeys = { /** All roleType queries */ all: ['roletype'] as const, /** List query keys */ lists: () => [...roleTypeKeys.all, 'list'] as const, @@ -775,24 +865,6 @@ export const roleTypeKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...roleTypeKeys.details(), id] as const, } as const; -export const orgPermissionDefaultKeys = { - /** All orgPermissionDefault queries */ all: ['orgpermissiondefault'] as const, - /** List query keys */ lists: () => [...orgPermissionDefaultKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...orgPermissionDefaultKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...orgPermissionDefaultKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...orgPermissionDefaultKeys.details(), id] as const, -} as const; -export const phoneNumberKeys = { - /** All phoneNumber queries */ all: ['phonenumber'] as const, - /** List query keys */ lists: () => [...phoneNumberKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...phoneNumberKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...phoneNumberKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...phoneNumberKeys.details(), id] as const, -} as const; export const appLimitDefaultKeys = { /** All appLimitDefault queries */ all: ['applimitdefault'] as const, /** List query keys */ lists: () => [...appLimitDefaultKeys.all, 'list'] as const, @@ -811,15 +883,6 @@ export const orgLimitDefaultKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...orgLimitDefaultKeys.details(), id] as const, } as const; -export const connectedAccountKeys = { - /** All connectedAccount queries */ all: ['connectedaccount'] as const, - /** List query keys */ lists: () => [...connectedAccountKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...connectedAccountKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...connectedAccountKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...connectedAccountKeys.details(), id] as const, -} as const; export const nodeTypeRegistryKeys = { /** All nodeTypeRegistry queries */ all: ['nodetyperegistry'] as const, /** List query keys */ lists: () => [...nodeTypeRegistryKeys.all, 'list'] as const, @@ -874,24 +937,6 @@ export const orgMembershipDefaultKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...orgMembershipDefaultKeys.details(), id] as const, } as const; -export const auditLogKeys = { - /** All auditLog queries */ all: ['auditlog'] as const, - /** List query keys */ lists: () => [...auditLogKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...auditLogKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...auditLogKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...auditLogKeys.details(), id] as const, -} as const; -export const appLevelKeys = { - /** All appLevel queries */ all: ['applevel'] as const, - /** List query keys */ lists: () => [...appLevelKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...appLevelKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...appLevelKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...appLevelKeys.details(), id] as const, -} as const; export const sqlMigrationKeys = { /** All sqlMigration queries */ all: ['sqlmigration'] as const, /** List query keys */ lists: () => [...sqlMigrationKeys.all, 'list'] as const, @@ -901,15 +946,6 @@ export const sqlMigrationKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...sqlMigrationKeys.details(), id] as const, } as const; -export const emailKeys = { - /** All email queries */ all: ['email'] as const, - /** List query keys */ lists: () => [...emailKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...emailKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...emailKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...emailKeys.details(), id] as const, -} as const; export const userKeys = { /** All user queries */ all: ['user'] as const, /** List query keys */ lists: () => [...userKeys.all, 'list'] as const, @@ -1013,9 +1049,9 @@ export const customQueryKeys = { * ``` */ export const queryKeys = { + getAllRecord: getAllRecordKeys, orgGetManagersRecord: orgGetManagersRecordKeys, orgGetSubordinatesRecord: orgGetSubordinatesRecordKeys, - getAllRecord: getAllRecordKeys, object: objectKeys, appPermission: appPermissionKeys, orgPermission: orgPermissionKeys, @@ -1037,11 +1073,13 @@ export const queryKeys = { viewTable: viewTableKeys, viewGrant: viewGrantKeys, viewRule: viewRuleKeys, + embeddingChunk: embeddingChunkKeys, tableTemplateModule: tableTemplateModuleKeys, secureTableProvision: secureTableProvisionKeys, relationProvision: relationProvisionKeys, schemaGrant: schemaGrantKeys, defaultPrivilege: defaultPrivilegeKeys, + enum: enumKeys, apiSchema: apiSchemaKeys, apiModule: apiModuleKeys, domain: domainKeys, @@ -1049,6 +1087,7 @@ export const queryKeys = { siteModule: siteModuleKeys, siteTheme: siteThemeKeys, triggerFunction: triggerFunctionKeys, + databaseTransfer: databaseTransferKeys, api: apiKeys, site: siteKeys, app: appKeys, @@ -1072,7 +1111,8 @@ export const queryKeys = { sessionsModule: sessionsModuleKeys, userAuthModule: userAuthModuleKeys, usersModule: usersModuleKeys, - uuidModule: uuidModuleKeys, + blueprint: blueprintKeys, + blueprintTemplate: blueprintTemplateKeys, databaseProvisionModule: databaseProvisionModuleKeys, appAdminGrant: appAdminGrantKeys, appOwnerGrant: appOwnerGrantKeys, @@ -1084,34 +1124,34 @@ export const queryKeys = { orgGrant: orgGrantKeys, orgChartEdge: orgChartEdgeKeys, orgChartEdgeGrant: orgChartEdgeGrantKeys, + orgPermissionDefault: orgPermissionDefaultKeys, appLimit: appLimitKeys, orgLimit: orgLimitKeys, appStep: appStepKeys, appAchievement: appAchievementKeys, + appLevel: appLevelKeys, + email: emailKeys, + phoneNumber: phoneNumberKeys, + cryptoAddress: cryptoAddressKeys, + connectedAccount: connectedAccountKeys, invite: inviteKeys, claimedInvite: claimedInviteKeys, orgInvite: orgInviteKeys, orgClaimedInvite: orgClaimedInviteKeys, + auditLog: auditLogKeys, ref: refKeys, store: storeKeys, appPermissionDefault: appPermissionDefaultKeys, - cryptoAddress: cryptoAddressKeys, roleType: roleTypeKeys, - orgPermissionDefault: orgPermissionDefaultKeys, - phoneNumber: phoneNumberKeys, appLimitDefault: appLimitDefaultKeys, orgLimitDefault: orgLimitDefaultKeys, - connectedAccount: connectedAccountKeys, nodeTypeRegistry: nodeTypeRegistryKeys, membershipType: membershipTypeKeys, commit: commitKeys, appMembershipDefault: appMembershipDefaultKeys, rlsModule: rlsModuleKeys, orgMembershipDefault: orgMembershipDefaultKeys, - auditLog: auditLogKeys, - appLevel: appLevelKeys, sqlMigration: sqlMigrationKeys, - email: emailKeys, user: userKeys, astMigration: astMigrationKeys, appMembership: appMembershipKeys, diff --git a/sdk/constructive-react/src/public/orm/README.md b/sdk/constructive-react/src/public/orm/README.md index 3433a90fc..345968ed7 100644 --- a/sdk/constructive-react/src/public/orm/README.md +++ b/sdk/constructive-react/src/public/orm/README.md @@ -21,9 +21,9 @@ const db = createClient({ | Model | Operations | |-------|------------| +| `getAllRecord` | findMany, findOne, create, update, delete | | `orgGetManagersRecord` | findMany, findOne, create, update, delete | | `orgGetSubordinatesRecord` | findMany, findOne, create, update, delete | -| `getAllRecord` | findMany, findOne, create, update, delete | | `object` | findMany, findOne, create, update, delete | | `appPermission` | findMany, findOne, create, update, delete | | `orgPermission` | findMany, findOne, create, update, delete | @@ -45,11 +45,13 @@ const db = createClient({ | `viewTable` | findMany, findOne, create, update, delete | | `viewGrant` | findMany, findOne, create, update, delete | | `viewRule` | findMany, findOne, create, update, delete | +| `embeddingChunk` | findMany, findOne, create, update, delete | | `tableTemplateModule` | findMany, findOne, create, update, delete | | `secureTableProvision` | findMany, findOne, create, update, delete | | `relationProvision` | findMany, findOne, create, update, delete | | `schemaGrant` | findMany, findOne, create, update, delete | | `defaultPrivilege` | findMany, findOne, create, update, delete | +| `enum` | findMany, findOne, create, update, delete | | `apiSchema` | findMany, findOne, create, update, delete | | `apiModule` | findMany, findOne, create, update, delete | | `domain` | findMany, findOne, create, update, delete | @@ -57,6 +59,7 @@ const db = createClient({ | `siteModule` | findMany, findOne, create, update, delete | | `siteTheme` | findMany, findOne, create, update, delete | | `triggerFunction` | findMany, findOne, create, update, delete | +| `databaseTransfer` | findMany, findOne, create, update, delete | | `api` | findMany, findOne, create, update, delete | | `site` | findMany, findOne, create, update, delete | | `app` | findMany, findOne, create, update, delete | @@ -80,7 +83,8 @@ const db = createClient({ | `sessionsModule` | findMany, findOne, create, update, delete | | `userAuthModule` | findMany, findOne, create, update, delete | | `usersModule` | findMany, findOne, create, update, delete | -| `uuidModule` | findMany, findOne, create, update, delete | +| `blueprint` | findMany, findOne, create, update, delete | +| `blueprintTemplate` | findMany, findOne, create, update, delete | | `databaseProvisionModule` | findMany, findOne, create, update, delete | | `appAdminGrant` | findMany, findOne, create, update, delete | | `appOwnerGrant` | findMany, findOne, create, update, delete | @@ -92,34 +96,34 @@ const db = createClient({ | `orgGrant` | findMany, findOne, create, update, delete | | `orgChartEdge` | findMany, findOne, create, update, delete | | `orgChartEdgeGrant` | findMany, findOne, create, update, delete | +| `orgPermissionDefault` | findMany, findOne, create, update, delete | | `appLimit` | findMany, findOne, create, update, delete | | `orgLimit` | findMany, findOne, create, update, delete | | `appStep` | findMany, findOne, create, update, delete | | `appAchievement` | findMany, findOne, create, update, delete | +| `appLevel` | findMany, findOne, create, update, delete | +| `email` | findMany, findOne, create, update, delete | +| `phoneNumber` | findMany, findOne, create, update, delete | +| `cryptoAddress` | findMany, findOne, create, update, delete | +| `connectedAccount` | findMany, findOne, create, update, delete | | `invite` | findMany, findOne, create, update, delete | | `claimedInvite` | findMany, findOne, create, update, delete | | `orgInvite` | findMany, findOne, create, update, delete | | `orgClaimedInvite` | findMany, findOne, create, update, delete | +| `auditLog` | findMany, findOne, create, update, delete | | `ref` | findMany, findOne, create, update, delete | | `store` | findMany, findOne, create, update, delete | | `appPermissionDefault` | findMany, findOne, create, update, delete | -| `cryptoAddress` | findMany, findOne, create, update, delete | | `roleType` | findMany, findOne, create, update, delete | -| `orgPermissionDefault` | findMany, findOne, create, update, delete | -| `phoneNumber` | findMany, findOne, create, update, delete | | `appLimitDefault` | findMany, findOne, create, update, delete | | `orgLimitDefault` | findMany, findOne, create, update, delete | -| `connectedAccount` | findMany, findOne, create, update, delete | | `nodeTypeRegistry` | findMany, findOne, create, update, delete | | `membershipType` | findMany, findOne, create, update, delete | | `commit` | findMany, findOne, create, update, delete | | `appMembershipDefault` | findMany, findOne, create, update, delete | | `rlsModule` | findMany, findOne, create, update, delete | | `orgMembershipDefault` | findMany, findOne, create, update, delete | -| `auditLog` | findMany, findOne, create, update, delete | -| `appLevel` | findMany, findOne, create, update, delete | | `sqlMigration` | findMany, findOne, create, update, delete | -| `email` | findMany, findOne, create, update, delete | | `user` | findMany, findOne, create, update, delete | | `astMigration` | findMany, findOne, create, update, delete | | `appMembership` | findMany, findOne, create, update, delete | @@ -127,39 +131,39 @@ const db = createClient({ ## Table Operations -### `db.orgGetManagersRecord` +### `db.getAllRecord` -CRUD operations for OrgGetManagersRecord records. +CRUD operations for GetAllRecord records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `userId` | UUID | Yes | -| `depth` | Int | Yes | +| `path` | String | Yes | +| `data` | JSON | Yes | **Operations:** ```typescript -// List all orgGetManagersRecord records -const items = await db.orgGetManagersRecord.findMany({ select: { userId: true, depth: true } }).execute(); +// List all getAllRecord records +const items = await db.getAllRecord.findMany({ select: { path: true, data: true } }).execute(); // Get one by id -const item = await db.orgGetManagersRecord.findOne({ id: '', select: { userId: true, depth: true } }).execute(); +const item = await db.getAllRecord.findOne({ id: '', select: { path: true, data: true } }).execute(); // Create -const created = await db.orgGetManagersRecord.create({ data: { userId: '', depth: '' }, select: { id: true } }).execute(); +const created = await db.getAllRecord.create({ data: { path: '', data: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgGetManagersRecord.update({ where: { id: '' }, data: { userId: '' }, select: { id: true } }).execute(); +const updated = await db.getAllRecord.update({ where: { id: '' }, data: { path: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgGetManagersRecord.delete({ where: { id: '' } }).execute(); +const deleted = await db.getAllRecord.delete({ where: { id: '' } }).execute(); ``` -### `db.orgGetSubordinatesRecord` +### `db.orgGetManagersRecord` -CRUD operations for OrgGetSubordinatesRecord records. +CRUD operations for OrgGetManagersRecord records. **Fields:** @@ -171,50 +175,50 @@ CRUD operations for OrgGetSubordinatesRecord records. **Operations:** ```typescript -// List all orgGetSubordinatesRecord records -const items = await db.orgGetSubordinatesRecord.findMany({ select: { userId: true, depth: true } }).execute(); +// List all orgGetManagersRecord records +const items = await db.orgGetManagersRecord.findMany({ select: { userId: true, depth: true } }).execute(); // Get one by id -const item = await db.orgGetSubordinatesRecord.findOne({ id: '', select: { userId: true, depth: true } }).execute(); +const item = await db.orgGetManagersRecord.findOne({ id: '', select: { userId: true, depth: true } }).execute(); // Create -const created = await db.orgGetSubordinatesRecord.create({ data: { userId: '', depth: '' }, select: { id: true } }).execute(); +const created = await db.orgGetManagersRecord.create({ data: { userId: '', depth: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgGetSubordinatesRecord.update({ where: { id: '' }, data: { userId: '' }, select: { id: true } }).execute(); +const updated = await db.orgGetManagersRecord.update({ where: { id: '' }, data: { userId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgGetSubordinatesRecord.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgGetManagersRecord.delete({ where: { id: '' } }).execute(); ``` -### `db.getAllRecord` +### `db.orgGetSubordinatesRecord` -CRUD operations for GetAllRecord records. +CRUD operations for OrgGetSubordinatesRecord records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `path` | String | Yes | -| `data` | JSON | Yes | +| `userId` | UUID | Yes | +| `depth` | Int | Yes | **Operations:** ```typescript -// List all getAllRecord records -const items = await db.getAllRecord.findMany({ select: { path: true, data: true } }).execute(); +// List all orgGetSubordinatesRecord records +const items = await db.orgGetSubordinatesRecord.findMany({ select: { userId: true, depth: true } }).execute(); // Get one by id -const item = await db.getAllRecord.findOne({ id: '', select: { path: true, data: true } }).execute(); +const item = await db.orgGetSubordinatesRecord.findOne({ id: '', select: { userId: true, depth: true } }).execute(); // Create -const created = await db.getAllRecord.create({ data: { path: '', data: '' }, select: { id: true } }).execute(); +const created = await db.orgGetSubordinatesRecord.create({ data: { userId: '', depth: '' }, select: { id: true } }).execute(); // Update -const updated = await db.getAllRecord.update({ where: { id: '' }, data: { path: '' }, select: { id: true } }).execute(); +const updated = await db.orgGetSubordinatesRecord.update({ where: { id: '' }, data: { userId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.getAllRecord.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgGetSubordinatesRecord.delete({ where: { id: '' } }).execute(); ``` ### `db.object` @@ -241,16 +245,16 @@ CRUD operations for Object records. const items = await db.object.findMany({ select: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }).execute(); // Get one by id -const item = await db.object.findOne({ id: '', select: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }).execute(); +const item = await db.object.findOne({ id: '', select: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }).execute(); // Create -const created = await db.object.create({ data: { hashUuid: '', databaseId: '', kids: '', ktree: '', data: '', frzn: '' }, select: { id: true } }).execute(); +const created = await db.object.create({ data: { hashUuid: '', databaseId: '', kids: '', ktree: '', data: '', frzn: '' }, select: { id: true } }).execute(); // Update -const updated = await db.object.update({ where: { id: '' }, data: { hashUuid: '' }, select: { id: true } }).execute(); +const updated = await db.object.update({ where: { id: '' }, data: { hashUuid: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.object.delete({ where: { id: '' } }).execute(); +const deleted = await db.object.delete({ where: { id: '' } }).execute(); ``` ### `db.appPermission` @@ -266,26 +270,24 @@ CRUD operations for AppPermission records. | `bitnum` | Int | Yes | | `bitstr` | BitString | Yes | | `description` | String | Yes | -| `descriptionTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all appPermission records -const items = await db.appPermission.findMany({ select: { id: true, name: true, bitnum: true, bitstr: true, description: true, descriptionTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.appPermission.findMany({ select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); // Get one by id -const item = await db.appPermission.findOne({ id: '', select: { id: true, name: true, bitnum: true, bitstr: true, description: true, descriptionTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.appPermission.findOne({ id: '', select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); // Create -const created = await db.appPermission.create({ data: { name: '', bitnum: '', bitstr: '', description: '', descriptionTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.appPermission.create({ data: { name: '', bitnum: '', bitstr: '', description: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appPermission.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.appPermission.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appPermission.delete({ where: { id: '' } }).execute(); +const deleted = await db.appPermission.delete({ where: { id: '' } }).execute(); ``` ### `db.orgPermission` @@ -301,26 +303,24 @@ CRUD operations for OrgPermission records. | `bitnum` | Int | Yes | | `bitstr` | BitString | Yes | | `description` | String | Yes | -| `descriptionTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all orgPermission records -const items = await db.orgPermission.findMany({ select: { id: true, name: true, bitnum: true, bitstr: true, description: true, descriptionTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.orgPermission.findMany({ select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); // Get one by id -const item = await db.orgPermission.findOne({ id: '', select: { id: true, name: true, bitnum: true, bitstr: true, description: true, descriptionTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.orgPermission.findOne({ id: '', select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); // Create -const created = await db.orgPermission.create({ data: { name: '', bitnum: '', bitstr: '', description: '', descriptionTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.orgPermission.create({ data: { name: '', bitnum: '', bitstr: '', description: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgPermission.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.orgPermission.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgPermission.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgPermission.delete({ where: { id: '' } }).execute(); ``` ### `db.appLevelRequirement` @@ -339,26 +339,24 @@ CRUD operations for AppLevelRequirement records. | `priority` | Int | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `descriptionTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all appLevelRequirement records -const items = await db.appLevelRequirement.findMany({ select: { id: true, name: true, level: true, description: true, requiredCount: true, priority: true, createdAt: true, updatedAt: true, descriptionTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.appLevelRequirement.findMany({ select: { id: true, name: true, level: true, description: true, requiredCount: true, priority: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.appLevelRequirement.findOne({ id: '', select: { id: true, name: true, level: true, description: true, requiredCount: true, priority: true, createdAt: true, updatedAt: true, descriptionTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.appLevelRequirement.findOne({ id: '', select: { id: true, name: true, level: true, description: true, requiredCount: true, priority: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.appLevelRequirement.create({ data: { name: '', level: '', description: '', requiredCount: '', priority: '', descriptionTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.appLevelRequirement.create({ data: { name: '', level: '', description: '', requiredCount: '', priority: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appLevelRequirement.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.appLevelRequirement.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appLevelRequirement.delete({ where: { id: '' } }).execute(); +const deleted = await db.appLevelRequirement.delete({ where: { id: '' } }).execute(); ``` ### `db.database` @@ -377,28 +375,24 @@ CRUD operations for Database records. | `hash` | UUID | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `schemaHashTrgmSimilarity` | Float | Yes | -| `nameTrgmSimilarity` | Float | Yes | -| `labelTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all database records -const items = await db.database.findMany({ select: { id: true, ownerId: true, schemaHash: true, name: true, label: true, hash: true, createdAt: true, updatedAt: true, schemaHashTrgmSimilarity: true, nameTrgmSimilarity: true, labelTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.database.findMany({ select: { id: true, ownerId: true, schemaHash: true, name: true, label: true, hash: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.database.findOne({ id: '', select: { id: true, ownerId: true, schemaHash: true, name: true, label: true, hash: true, createdAt: true, updatedAt: true, schemaHashTrgmSimilarity: true, nameTrgmSimilarity: true, labelTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.database.findOne({ id: '', select: { id: true, ownerId: true, schemaHash: true, name: true, label: true, hash: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.database.create({ data: { ownerId: '', schemaHash: '', name: '', label: '', hash: '', schemaHashTrgmSimilarity: '', nameTrgmSimilarity: '', labelTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.database.create({ data: { ownerId: '', schemaHash: '', name: '', label: '', hash: '' }, select: { id: true } }).execute(); // Update -const updated = await db.database.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); +const updated = await db.database.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.database.delete({ where: { id: '' } }).execute(); +const deleted = await db.database.delete({ where: { id: '' } }).execute(); ``` ### `db.schema` @@ -423,30 +417,24 @@ CRUD operations for Schema records. | `isPublic` | Boolean | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `nameTrgmSimilarity` | Float | Yes | -| `schemaNameTrgmSimilarity` | Float | Yes | -| `labelTrgmSimilarity` | Float | Yes | -| `descriptionTrgmSimilarity` | Float | Yes | -| `moduleTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all schema records -const items = await db.schema.findMany({ select: { id: true, databaseId: true, name: true, schemaName: true, label: true, description: true, smartTags: true, category: true, module: true, scope: true, tags: true, isPublic: true, createdAt: true, updatedAt: true, nameTrgmSimilarity: true, schemaNameTrgmSimilarity: true, labelTrgmSimilarity: true, descriptionTrgmSimilarity: true, moduleTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.schema.findMany({ select: { id: true, databaseId: true, name: true, schemaName: true, label: true, description: true, smartTags: true, category: true, module: true, scope: true, tags: true, isPublic: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.schema.findOne({ id: '', select: { id: true, databaseId: true, name: true, schemaName: true, label: true, description: true, smartTags: true, category: true, module: true, scope: true, tags: true, isPublic: true, createdAt: true, updatedAt: true, nameTrgmSimilarity: true, schemaNameTrgmSimilarity: true, labelTrgmSimilarity: true, descriptionTrgmSimilarity: true, moduleTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.schema.findOne({ id: '', select: { id: true, databaseId: true, name: true, schemaName: true, label: true, description: true, smartTags: true, category: true, module: true, scope: true, tags: true, isPublic: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.schema.create({ data: { databaseId: '', name: '', schemaName: '', label: '', description: '', smartTags: '', category: '', module: '', scope: '', tags: '', isPublic: '', nameTrgmSimilarity: '', schemaNameTrgmSimilarity: '', labelTrgmSimilarity: '', descriptionTrgmSimilarity: '', moduleTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.schema.create({ data: { databaseId: '', name: '', schemaName: '', label: '', description: '', smartTags: '', category: '', module: '', scope: '', tags: '', isPublic: '' }, select: { id: true } }).execute(); // Update -const updated = await db.schema.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.schema.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.schema.delete({ where: { id: '' } }).execute(); +const deleted = await db.schema.delete({ where: { id: '' } }).execute(); ``` ### `db.table` @@ -476,31 +464,24 @@ CRUD operations for Table records. | `inheritsId` | UUID | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `nameTrgmSimilarity` | Float | Yes | -| `labelTrgmSimilarity` | Float | Yes | -| `descriptionTrgmSimilarity` | Float | Yes | -| `moduleTrgmSimilarity` | Float | Yes | -| `pluralNameTrgmSimilarity` | Float | Yes | -| `singularNameTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all table records -const items = await db.table.findMany({ select: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, smartTags: true, category: true, module: true, scope: true, useRls: true, timestamps: true, peoplestamps: true, pluralName: true, singularName: true, tags: true, inheritsId: true, createdAt: true, updatedAt: true, nameTrgmSimilarity: true, labelTrgmSimilarity: true, descriptionTrgmSimilarity: true, moduleTrgmSimilarity: true, pluralNameTrgmSimilarity: true, singularNameTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.table.findMany({ select: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, smartTags: true, category: true, module: true, scope: true, useRls: true, timestamps: true, peoplestamps: true, pluralName: true, singularName: true, tags: true, inheritsId: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.table.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, smartTags: true, category: true, module: true, scope: true, useRls: true, timestamps: true, peoplestamps: true, pluralName: true, singularName: true, tags: true, inheritsId: true, createdAt: true, updatedAt: true, nameTrgmSimilarity: true, labelTrgmSimilarity: true, descriptionTrgmSimilarity: true, moduleTrgmSimilarity: true, pluralNameTrgmSimilarity: true, singularNameTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.table.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, smartTags: true, category: true, module: true, scope: true, useRls: true, timestamps: true, peoplestamps: true, pluralName: true, singularName: true, tags: true, inheritsId: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.table.create({ data: { databaseId: '', schemaId: '', name: '', label: '', description: '', smartTags: '', category: '', module: '', scope: '', useRls: '', timestamps: '', peoplestamps: '', pluralName: '', singularName: '', tags: '', inheritsId: '', nameTrgmSimilarity: '', labelTrgmSimilarity: '', descriptionTrgmSimilarity: '', moduleTrgmSimilarity: '', pluralNameTrgmSimilarity: '', singularNameTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.table.create({ data: { databaseId: '', schemaId: '', name: '', label: '', description: '', smartTags: '', category: '', module: '', scope: '', useRls: '', timestamps: '', peoplestamps: '', pluralName: '', singularName: '', tags: '', inheritsId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.table.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.table.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.table.delete({ where: { id: '' } }).execute(); +const deleted = await db.table.delete({ where: { id: '' } }).execute(); ``` ### `db.checkConstraint` @@ -525,28 +506,24 @@ CRUD operations for CheckConstraint records. | `tags` | String | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `nameTrgmSimilarity` | Float | Yes | -| `typeTrgmSimilarity` | Float | Yes | -| `moduleTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all checkConstraint records -const items = await db.checkConstraint.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, expr: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true, nameTrgmSimilarity: true, typeTrgmSimilarity: true, moduleTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.checkConstraint.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, expr: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.checkConstraint.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, expr: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true, nameTrgmSimilarity: true, typeTrgmSimilarity: true, moduleTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.checkConstraint.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, expr: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.checkConstraint.create({ data: { databaseId: '', tableId: '', name: '', type: '', fieldIds: '', expr: '', smartTags: '', category: '', module: '', scope: '', tags: '', nameTrgmSimilarity: '', typeTrgmSimilarity: '', moduleTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.checkConstraint.create({ data: { databaseId: '', tableId: '', name: '', type: '', fieldIds: '', expr: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); // Update -const updated = await db.checkConstraint.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.checkConstraint.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.checkConstraint.delete({ where: { id: '' } }).execute(); +const deleted = await db.checkConstraint.delete({ where: { id: '' } }).execute(); ``` ### `db.field` @@ -565,6 +542,7 @@ CRUD operations for Field records. | `description` | String | Yes | | `smartTags` | JSON | Yes | | `isRequired` | Boolean | Yes | +| `apiRequired` | Boolean | Yes | | `defaultValue` | String | Yes | | `defaultValueAst` | JSON | Yes | | `isHidden` | Boolean | Yes | @@ -581,31 +559,24 @@ CRUD operations for Field records. | `scope` | Int | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `nameTrgmSimilarity` | Float | Yes | -| `labelTrgmSimilarity` | Float | Yes | -| `descriptionTrgmSimilarity` | Float | Yes | -| `defaultValueTrgmSimilarity` | Float | Yes | -| `regexpTrgmSimilarity` | Float | Yes | -| `moduleTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all field records -const items = await db.field.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, label: true, description: true, smartTags: true, isRequired: true, defaultValue: true, defaultValueAst: true, isHidden: true, type: true, fieldOrder: true, regexp: true, chk: true, chkExpr: true, min: true, max: true, tags: true, category: true, module: true, scope: true, createdAt: true, updatedAt: true, nameTrgmSimilarity: true, labelTrgmSimilarity: true, descriptionTrgmSimilarity: true, defaultValueTrgmSimilarity: true, regexpTrgmSimilarity: true, moduleTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.field.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, label: true, description: true, smartTags: true, isRequired: true, apiRequired: true, defaultValue: true, defaultValueAst: true, isHidden: true, type: true, fieldOrder: true, regexp: true, chk: true, chkExpr: true, min: true, max: true, tags: true, category: true, module: true, scope: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.field.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, label: true, description: true, smartTags: true, isRequired: true, defaultValue: true, defaultValueAst: true, isHidden: true, type: true, fieldOrder: true, regexp: true, chk: true, chkExpr: true, min: true, max: true, tags: true, category: true, module: true, scope: true, createdAt: true, updatedAt: true, nameTrgmSimilarity: true, labelTrgmSimilarity: true, descriptionTrgmSimilarity: true, defaultValueTrgmSimilarity: true, regexpTrgmSimilarity: true, moduleTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.field.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, label: true, description: true, smartTags: true, isRequired: true, apiRequired: true, defaultValue: true, defaultValueAst: true, isHidden: true, type: true, fieldOrder: true, regexp: true, chk: true, chkExpr: true, min: true, max: true, tags: true, category: true, module: true, scope: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.field.create({ data: { databaseId: '', tableId: '', name: '', label: '', description: '', smartTags: '', isRequired: '', defaultValue: '', defaultValueAst: '', isHidden: '', type: '', fieldOrder: '', regexp: '', chk: '', chkExpr: '', min: '', max: '', tags: '', category: '', module: '', scope: '', nameTrgmSimilarity: '', labelTrgmSimilarity: '', descriptionTrgmSimilarity: '', defaultValueTrgmSimilarity: '', regexpTrgmSimilarity: '', moduleTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.field.create({ data: { databaseId: '', tableId: '', name: '', label: '', description: '', smartTags: '', isRequired: '', apiRequired: '', defaultValue: '', defaultValueAst: '', isHidden: '', type: '', fieldOrder: '', regexp: '', chk: '', chkExpr: '', min: '', max: '', tags: '', category: '', module: '', scope: '' }, select: { id: true } }).execute(); // Update -const updated = await db.field.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.field.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.field.delete({ where: { id: '' } }).execute(); +const deleted = await db.field.delete({ where: { id: '' } }).execute(); ``` ### `db.foreignKeyConstraint` @@ -634,31 +605,24 @@ CRUD operations for ForeignKeyConstraint records. | `tags` | String | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `nameTrgmSimilarity` | Float | Yes | -| `descriptionTrgmSimilarity` | Float | Yes | -| `typeTrgmSimilarity` | Float | Yes | -| `deleteActionTrgmSimilarity` | Float | Yes | -| `updateActionTrgmSimilarity` | Float | Yes | -| `moduleTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all foreignKeyConstraint records -const items = await db.foreignKeyConstraint.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, refTableId: true, refFieldIds: true, deleteAction: true, updateAction: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true, nameTrgmSimilarity: true, descriptionTrgmSimilarity: true, typeTrgmSimilarity: true, deleteActionTrgmSimilarity: true, updateActionTrgmSimilarity: true, moduleTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.foreignKeyConstraint.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, refTableId: true, refFieldIds: true, deleteAction: true, updateAction: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.foreignKeyConstraint.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, refTableId: true, refFieldIds: true, deleteAction: true, updateAction: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true, nameTrgmSimilarity: true, descriptionTrgmSimilarity: true, typeTrgmSimilarity: true, deleteActionTrgmSimilarity: true, updateActionTrgmSimilarity: true, moduleTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.foreignKeyConstraint.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, refTableId: true, refFieldIds: true, deleteAction: true, updateAction: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.foreignKeyConstraint.create({ data: { databaseId: '', tableId: '', name: '', description: '', smartTags: '', type: '', fieldIds: '', refTableId: '', refFieldIds: '', deleteAction: '', updateAction: '', category: '', module: '', scope: '', tags: '', nameTrgmSimilarity: '', descriptionTrgmSimilarity: '', typeTrgmSimilarity: '', deleteActionTrgmSimilarity: '', updateActionTrgmSimilarity: '', moduleTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.foreignKeyConstraint.create({ data: { databaseId: '', tableId: '', name: '', description: '', smartTags: '', type: '', fieldIds: '', refTableId: '', refFieldIds: '', deleteAction: '', updateAction: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); // Update -const updated = await db.foreignKeyConstraint.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.foreignKeyConstraint.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.foreignKeyConstraint.delete({ where: { id: '' } }).execute(); +const deleted = await db.foreignKeyConstraint.delete({ where: { id: '' } }).execute(); ``` ### `db.fullTextSearch` @@ -686,16 +650,16 @@ CRUD operations for FullTextSearch records. const items = await db.fullTextSearch.findMany({ select: { id: true, databaseId: true, tableId: true, fieldId: true, fieldIds: true, weights: true, langs: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.fullTextSearch.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, fieldId: true, fieldIds: true, weights: true, langs: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.fullTextSearch.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, fieldId: true, fieldIds: true, weights: true, langs: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.fullTextSearch.create({ data: { databaseId: '', tableId: '', fieldId: '', fieldIds: '', weights: '', langs: '' }, select: { id: true } }).execute(); +const created = await db.fullTextSearch.create({ data: { databaseId: '', tableId: '', fieldId: '', fieldIds: '', weights: '', langs: '' }, select: { id: true } }).execute(); // Update -const updated = await db.fullTextSearch.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.fullTextSearch.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.fullTextSearch.delete({ where: { id: '' } }).execute(); +const deleted = await db.fullTextSearch.delete({ where: { id: '' } }).execute(); ``` ### `db.index` @@ -725,28 +689,24 @@ CRUD operations for Index records. | `tags` | String | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `nameTrgmSimilarity` | Float | Yes | -| `accessMethodTrgmSimilarity` | Float | Yes | -| `moduleTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all index records -const items = await db.index.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, fieldIds: true, includeFieldIds: true, accessMethod: true, indexParams: true, whereClause: true, isUnique: true, options: true, opClasses: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true, nameTrgmSimilarity: true, accessMethodTrgmSimilarity: true, moduleTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.index.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, fieldIds: true, includeFieldIds: true, accessMethod: true, indexParams: true, whereClause: true, isUnique: true, options: true, opClasses: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.index.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, fieldIds: true, includeFieldIds: true, accessMethod: true, indexParams: true, whereClause: true, isUnique: true, options: true, opClasses: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true, nameTrgmSimilarity: true, accessMethodTrgmSimilarity: true, moduleTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.index.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, fieldIds: true, includeFieldIds: true, accessMethod: true, indexParams: true, whereClause: true, isUnique: true, options: true, opClasses: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.index.create({ data: { databaseId: '', tableId: '', name: '', fieldIds: '', includeFieldIds: '', accessMethod: '', indexParams: '', whereClause: '', isUnique: '', options: '', opClasses: '', smartTags: '', category: '', module: '', scope: '', tags: '', nameTrgmSimilarity: '', accessMethodTrgmSimilarity: '', moduleTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.index.create({ data: { databaseId: '', tableId: '', name: '', fieldIds: '', includeFieldIds: '', accessMethod: '', indexParams: '', whereClause: '', isUnique: '', options: '', opClasses: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); // Update -const updated = await db.index.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.index.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.index.delete({ where: { id: '' } }).execute(); +const deleted = await db.index.delete({ where: { id: '' } }).execute(); ``` ### `db.policy` @@ -774,30 +734,24 @@ CRUD operations for Policy records. | `tags` | String | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `nameTrgmSimilarity` | Float | Yes | -| `granteeNameTrgmSimilarity` | Float | Yes | -| `privilegeTrgmSimilarity` | Float | Yes | -| `policyTypeTrgmSimilarity` | Float | Yes | -| `moduleTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all policy records -const items = await db.policy.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, granteeName: true, privilege: true, permissive: true, disabled: true, policyType: true, data: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true, nameTrgmSimilarity: true, granteeNameTrgmSimilarity: true, privilegeTrgmSimilarity: true, policyTypeTrgmSimilarity: true, moduleTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.policy.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, granteeName: true, privilege: true, permissive: true, disabled: true, policyType: true, data: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.policy.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, granteeName: true, privilege: true, permissive: true, disabled: true, policyType: true, data: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true, nameTrgmSimilarity: true, granteeNameTrgmSimilarity: true, privilegeTrgmSimilarity: true, policyTypeTrgmSimilarity: true, moduleTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.policy.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, granteeName: true, privilege: true, permissive: true, disabled: true, policyType: true, data: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.policy.create({ data: { databaseId: '', tableId: '', name: '', granteeName: '', privilege: '', permissive: '', disabled: '', policyType: '', data: '', smartTags: '', category: '', module: '', scope: '', tags: '', nameTrgmSimilarity: '', granteeNameTrgmSimilarity: '', privilegeTrgmSimilarity: '', policyTypeTrgmSimilarity: '', moduleTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.policy.create({ data: { databaseId: '', tableId: '', name: '', granteeName: '', privilege: '', permissive: '', disabled: '', policyType: '', data: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); // Update -const updated = await db.policy.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.policy.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.policy.delete({ where: { id: '' } }).execute(); +const deleted = await db.policy.delete({ where: { id: '' } }).execute(); ``` ### `db.primaryKeyConstraint` @@ -821,28 +775,24 @@ CRUD operations for PrimaryKeyConstraint records. | `tags` | String | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `nameTrgmSimilarity` | Float | Yes | -| `typeTrgmSimilarity` | Float | Yes | -| `moduleTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all primaryKeyConstraint records -const items = await db.primaryKeyConstraint.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true, nameTrgmSimilarity: true, typeTrgmSimilarity: true, moduleTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.primaryKeyConstraint.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.primaryKeyConstraint.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true, nameTrgmSimilarity: true, typeTrgmSimilarity: true, moduleTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.primaryKeyConstraint.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.primaryKeyConstraint.create({ data: { databaseId: '', tableId: '', name: '', type: '', fieldIds: '', smartTags: '', category: '', module: '', scope: '', tags: '', nameTrgmSimilarity: '', typeTrgmSimilarity: '', moduleTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.primaryKeyConstraint.create({ data: { databaseId: '', tableId: '', name: '', type: '', fieldIds: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); // Update -const updated = await db.primaryKeyConstraint.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.primaryKeyConstraint.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.primaryKeyConstraint.delete({ where: { id: '' } }).execute(); +const deleted = await db.primaryKeyConstraint.delete({ where: { id: '' } }).execute(); ``` ### `db.tableGrant` @@ -862,27 +812,24 @@ CRUD operations for TableGrant records. | `isGrant` | Boolean | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `privilegeTrgmSimilarity` | Float | Yes | -| `granteeNameTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all tableGrant records -const items = await db.tableGrant.findMany({ select: { id: true, databaseId: true, tableId: true, privilege: true, granteeName: true, fieldIds: true, isGrant: true, createdAt: true, updatedAt: true, privilegeTrgmSimilarity: true, granteeNameTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.tableGrant.findMany({ select: { id: true, databaseId: true, tableId: true, privilege: true, granteeName: true, fieldIds: true, isGrant: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.tableGrant.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, privilege: true, granteeName: true, fieldIds: true, isGrant: true, createdAt: true, updatedAt: true, privilegeTrgmSimilarity: true, granteeNameTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.tableGrant.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, privilege: true, granteeName: true, fieldIds: true, isGrant: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.tableGrant.create({ data: { databaseId: '', tableId: '', privilege: '', granteeName: '', fieldIds: '', isGrant: '', privilegeTrgmSimilarity: '', granteeNameTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.tableGrant.create({ data: { databaseId: '', tableId: '', privilege: '', granteeName: '', fieldIds: '', isGrant: '' }, select: { id: true } }).execute(); // Update -const updated = await db.tableGrant.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.tableGrant.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.tableGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.tableGrant.delete({ where: { id: '' } }).execute(); ``` ### `db.trigger` @@ -906,29 +853,24 @@ CRUD operations for Trigger records. | `tags` | String | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `nameTrgmSimilarity` | Float | Yes | -| `eventTrgmSimilarity` | Float | Yes | -| `functionNameTrgmSimilarity` | Float | Yes | -| `moduleTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all trigger records -const items = await db.trigger.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, event: true, functionName: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true, nameTrgmSimilarity: true, eventTrgmSimilarity: true, functionNameTrgmSimilarity: true, moduleTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.trigger.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, event: true, functionName: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.trigger.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, event: true, functionName: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true, nameTrgmSimilarity: true, eventTrgmSimilarity: true, functionNameTrgmSimilarity: true, moduleTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.trigger.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, event: true, functionName: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.trigger.create({ data: { databaseId: '', tableId: '', name: '', event: '', functionName: '', smartTags: '', category: '', module: '', scope: '', tags: '', nameTrgmSimilarity: '', eventTrgmSimilarity: '', functionNameTrgmSimilarity: '', moduleTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.trigger.create({ data: { databaseId: '', tableId: '', name: '', event: '', functionName: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); // Update -const updated = await db.trigger.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.trigger.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.trigger.delete({ where: { id: '' } }).execute(); +const deleted = await db.trigger.delete({ where: { id: '' } }).execute(); ``` ### `db.uniqueConstraint` @@ -953,29 +895,24 @@ CRUD operations for UniqueConstraint records. | `tags` | String | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `nameTrgmSimilarity` | Float | Yes | -| `descriptionTrgmSimilarity` | Float | Yes | -| `typeTrgmSimilarity` | Float | Yes | -| `moduleTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all uniqueConstraint records -const items = await db.uniqueConstraint.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true, nameTrgmSimilarity: true, descriptionTrgmSimilarity: true, typeTrgmSimilarity: true, moduleTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.uniqueConstraint.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.uniqueConstraint.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true, nameTrgmSimilarity: true, descriptionTrgmSimilarity: true, typeTrgmSimilarity: true, moduleTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.uniqueConstraint.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.uniqueConstraint.create({ data: { databaseId: '', tableId: '', name: '', description: '', smartTags: '', type: '', fieldIds: '', category: '', module: '', scope: '', tags: '', nameTrgmSimilarity: '', descriptionTrgmSimilarity: '', typeTrgmSimilarity: '', moduleTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.uniqueConstraint.create({ data: { databaseId: '', tableId: '', name: '', description: '', smartTags: '', type: '', fieldIds: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); // Update -const updated = await db.uniqueConstraint.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.uniqueConstraint.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.uniqueConstraint.delete({ where: { id: '' } }).execute(); +const deleted = await db.uniqueConstraint.delete({ where: { id: '' } }).execute(); ``` ### `db.view` @@ -1002,29 +939,24 @@ CRUD operations for View records. | `module` | String | Yes | | `scope` | Int | Yes | | `tags` | String | Yes | -| `nameTrgmSimilarity` | Float | Yes | -| `viewTypeTrgmSimilarity` | Float | Yes | -| `filterTypeTrgmSimilarity` | Float | Yes | -| `moduleTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all view records -const items = await db.view.findMany({ select: { id: true, databaseId: true, schemaId: true, name: true, tableId: true, viewType: true, data: true, filterType: true, filterData: true, securityInvoker: true, isReadOnly: true, smartTags: true, category: true, module: true, scope: true, tags: true, nameTrgmSimilarity: true, viewTypeTrgmSimilarity: true, filterTypeTrgmSimilarity: true, moduleTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.view.findMany({ select: { id: true, databaseId: true, schemaId: true, name: true, tableId: true, viewType: true, data: true, filterType: true, filterData: true, securityInvoker: true, isReadOnly: true, smartTags: true, category: true, module: true, scope: true, tags: true } }).execute(); // Get one by id -const item = await db.view.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, name: true, tableId: true, viewType: true, data: true, filterType: true, filterData: true, securityInvoker: true, isReadOnly: true, smartTags: true, category: true, module: true, scope: true, tags: true, nameTrgmSimilarity: true, viewTypeTrgmSimilarity: true, filterTypeTrgmSimilarity: true, moduleTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.view.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, name: true, tableId: true, viewType: true, data: true, filterType: true, filterData: true, securityInvoker: true, isReadOnly: true, smartTags: true, category: true, module: true, scope: true, tags: true } }).execute(); // Create -const created = await db.view.create({ data: { databaseId: '', schemaId: '', name: '', tableId: '', viewType: '', data: '', filterType: '', filterData: '', securityInvoker: '', isReadOnly: '', smartTags: '', category: '', module: '', scope: '', tags: '', nameTrgmSimilarity: '', viewTypeTrgmSimilarity: '', filterTypeTrgmSimilarity: '', moduleTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.view.create({ data: { databaseId: '', schemaId: '', name: '', tableId: '', viewType: '', data: '', filterType: '', filterData: '', securityInvoker: '', isReadOnly: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); // Update -const updated = await db.view.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.view.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.view.delete({ where: { id: '' } }).execute(); +const deleted = await db.view.delete({ where: { id: '' } }).execute(); ``` ### `db.viewTable` @@ -1047,16 +979,16 @@ CRUD operations for ViewTable records. const items = await db.viewTable.findMany({ select: { id: true, viewId: true, tableId: true, joinOrder: true } }).execute(); // Get one by id -const item = await db.viewTable.findOne({ id: '', select: { id: true, viewId: true, tableId: true, joinOrder: true } }).execute(); +const item = await db.viewTable.findOne({ id: '', select: { id: true, viewId: true, tableId: true, joinOrder: true } }).execute(); // Create -const created = await db.viewTable.create({ data: { viewId: '', tableId: '', joinOrder: '' }, select: { id: true } }).execute(); +const created = await db.viewTable.create({ data: { viewId: '', tableId: '', joinOrder: '' }, select: { id: true } }).execute(); // Update -const updated = await db.viewTable.update({ where: { id: '' }, data: { viewId: '' }, select: { id: true } }).execute(); +const updated = await db.viewTable.update({ where: { id: '' }, data: { viewId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.viewTable.delete({ where: { id: '' } }).execute(); +const deleted = await db.viewTable.delete({ where: { id: '' } }).execute(); ``` ### `db.viewGrant` @@ -1074,27 +1006,24 @@ CRUD operations for ViewGrant records. | `privilege` | String | Yes | | `withGrantOption` | Boolean | Yes | | `isGrant` | Boolean | Yes | -| `granteeNameTrgmSimilarity` | Float | Yes | -| `privilegeTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all viewGrant records -const items = await db.viewGrant.findMany({ select: { id: true, databaseId: true, viewId: true, granteeName: true, privilege: true, withGrantOption: true, isGrant: true, granteeNameTrgmSimilarity: true, privilegeTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.viewGrant.findMany({ select: { id: true, databaseId: true, viewId: true, granteeName: true, privilege: true, withGrantOption: true, isGrant: true } }).execute(); // Get one by id -const item = await db.viewGrant.findOne({ id: '', select: { id: true, databaseId: true, viewId: true, granteeName: true, privilege: true, withGrantOption: true, isGrant: true, granteeNameTrgmSimilarity: true, privilegeTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.viewGrant.findOne({ id: '', select: { id: true, databaseId: true, viewId: true, granteeName: true, privilege: true, withGrantOption: true, isGrant: true } }).execute(); // Create -const created = await db.viewGrant.create({ data: { databaseId: '', viewId: '', granteeName: '', privilege: '', withGrantOption: '', isGrant: '', granteeNameTrgmSimilarity: '', privilegeTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.viewGrant.create({ data: { databaseId: '', viewId: '', granteeName: '', privilege: '', withGrantOption: '', isGrant: '' }, select: { id: true } }).execute(); // Update -const updated = await db.viewGrant.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.viewGrant.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.viewGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.viewGrant.delete({ where: { id: '' } }).execute(); ``` ### `db.viewRule` @@ -1111,28 +1040,70 @@ CRUD operations for ViewRule records. | `name` | String | Yes | | `event` | String | Yes | | `action` | String | Yes | -| `nameTrgmSimilarity` | Float | Yes | -| `eventTrgmSimilarity` | Float | Yes | -| `actionTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all viewRule records -const items = await db.viewRule.findMany({ select: { id: true, databaseId: true, viewId: true, name: true, event: true, action: true, nameTrgmSimilarity: true, eventTrgmSimilarity: true, actionTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.viewRule.findMany({ select: { id: true, databaseId: true, viewId: true, name: true, event: true, action: true } }).execute(); + +// Get one by id +const item = await db.viewRule.findOne({ id: '', select: { id: true, databaseId: true, viewId: true, name: true, event: true, action: true } }).execute(); + +// Create +const created = await db.viewRule.create({ data: { databaseId: '', viewId: '', name: '', event: '', action: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.viewRule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.viewRule.delete({ where: { id: '' } }).execute(); +``` + +### `db.embeddingChunk` + +CRUD operations for EmbeddingChunk records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `embeddingFieldId` | UUID | Yes | +| `chunksTableId` | UUID | Yes | +| `chunksTableName` | String | Yes | +| `contentFieldName` | String | Yes | +| `dimensions` | Int | Yes | +| `metric` | String | Yes | +| `chunkSize` | Int | Yes | +| `chunkOverlap` | Int | Yes | +| `chunkStrategy` | String | Yes | +| `metadataFields` | JSON | Yes | +| `enqueueChunkingJob` | Boolean | Yes | +| `chunkingTaskName` | String | Yes | +| `parentFkFieldId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all embeddingChunk records +const items = await db.embeddingChunk.findMany({ select: { id: true, databaseId: true, tableId: true, embeddingFieldId: true, chunksTableId: true, chunksTableName: true, contentFieldName: true, dimensions: true, metric: true, chunkSize: true, chunkOverlap: true, chunkStrategy: true, metadataFields: true, enqueueChunkingJob: true, chunkingTaskName: true, parentFkFieldId: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.viewRule.findOne({ id: '', select: { id: true, databaseId: true, viewId: true, name: true, event: true, action: true, nameTrgmSimilarity: true, eventTrgmSimilarity: true, actionTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.embeddingChunk.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, embeddingFieldId: true, chunksTableId: true, chunksTableName: true, contentFieldName: true, dimensions: true, metric: true, chunkSize: true, chunkOverlap: true, chunkStrategy: true, metadataFields: true, enqueueChunkingJob: true, chunkingTaskName: true, parentFkFieldId: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.viewRule.create({ data: { databaseId: '', viewId: '', name: '', event: '', action: '', nameTrgmSimilarity: '', eventTrgmSimilarity: '', actionTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.embeddingChunk.create({ data: { databaseId: '', tableId: '', embeddingFieldId: '', chunksTableId: '', chunksTableName: '', contentFieldName: '', dimensions: '', metric: '', chunkSize: '', chunkOverlap: '', chunkStrategy: '', metadataFields: '', enqueueChunkingJob: '', chunkingTaskName: '', parentFkFieldId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.viewRule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.embeddingChunk.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.viewRule.delete({ where: { id: '' } }).execute(); +const deleted = await db.embeddingChunk.delete({ where: { id: '' } }).execute(); ``` ### `db.tableTemplateModule` @@ -1152,27 +1123,24 @@ CRUD operations for TableTemplateModule records. | `tableName` | String | Yes | | `nodeType` | String | Yes | | `data` | JSON | Yes | -| `tableNameTrgmSimilarity` | Float | Yes | -| `nodeTypeTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all tableTemplateModule records -const items = await db.tableTemplateModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, nodeType: true, data: true, tableNameTrgmSimilarity: true, nodeTypeTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.tableTemplateModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, nodeType: true, data: true } }).execute(); // Get one by id -const item = await db.tableTemplateModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, nodeType: true, data: true, tableNameTrgmSimilarity: true, nodeTypeTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.tableTemplateModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, nodeType: true, data: true } }).execute(); // Create -const created = await db.tableTemplateModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '', nodeType: '', data: '', tableNameTrgmSimilarity: '', nodeTypeTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.tableTemplateModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '', nodeType: '', data: '' }, select: { id: true } }).execute(); // Update -const updated = await db.tableTemplateModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.tableTemplateModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.tableTemplateModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.tableTemplateModule.delete({ where: { id: '' } }).execute(); ``` ### `db.secureTableProvision` @@ -1201,30 +1169,24 @@ CRUD operations for SecureTableProvision records. | `policyName` | String | Yes | | `policyData` | JSON | Yes | | `outFields` | UUID | Yes | -| `tableNameTrgmSimilarity` | Float | Yes | -| `nodeTypeTrgmSimilarity` | Float | Yes | -| `policyTypeTrgmSimilarity` | Float | Yes | -| `policyRoleTrgmSimilarity` | Float | Yes | -| `policyNameTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all secureTableProvision records -const items = await db.secureTableProvision.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, nodeType: true, useRls: true, nodeData: true, fields: true, grantRoles: true, grantPrivileges: true, policyType: true, policyPrivileges: true, policyRole: true, policyPermissive: true, policyName: true, policyData: true, outFields: true, tableNameTrgmSimilarity: true, nodeTypeTrgmSimilarity: true, policyTypeTrgmSimilarity: true, policyRoleTrgmSimilarity: true, policyNameTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.secureTableProvision.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, nodeType: true, useRls: true, nodeData: true, fields: true, grantRoles: true, grantPrivileges: true, policyType: true, policyPrivileges: true, policyRole: true, policyPermissive: true, policyName: true, policyData: true, outFields: true } }).execute(); // Get one by id -const item = await db.secureTableProvision.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, nodeType: true, useRls: true, nodeData: true, fields: true, grantRoles: true, grantPrivileges: true, policyType: true, policyPrivileges: true, policyRole: true, policyPermissive: true, policyName: true, policyData: true, outFields: true, tableNameTrgmSimilarity: true, nodeTypeTrgmSimilarity: true, policyTypeTrgmSimilarity: true, policyRoleTrgmSimilarity: true, policyNameTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.secureTableProvision.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, nodeType: true, useRls: true, nodeData: true, fields: true, grantRoles: true, grantPrivileges: true, policyType: true, policyPrivileges: true, policyRole: true, policyPermissive: true, policyName: true, policyData: true, outFields: true } }).execute(); // Create -const created = await db.secureTableProvision.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '', nodeType: '', useRls: '', nodeData: '', fields: '', grantRoles: '', grantPrivileges: '', policyType: '', policyPrivileges: '', policyRole: '', policyPermissive: '', policyName: '', policyData: '', outFields: '', tableNameTrgmSimilarity: '', nodeTypeTrgmSimilarity: '', policyTypeTrgmSimilarity: '', policyRoleTrgmSimilarity: '', policyNameTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.secureTableProvision.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '', nodeType: '', useRls: '', nodeData: '', fields: '', grantRoles: '', grantPrivileges: '', policyType: '', policyPrivileges: '', policyRole: '', policyPermissive: '', policyName: '', policyData: '', outFields: '' }, select: { id: true } }).execute(); // Update -const updated = await db.secureTableProvision.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.secureTableProvision.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.secureTableProvision.delete({ where: { id: '' } }).execute(); +const deleted = await db.secureTableProvision.delete({ where: { id: '' } }).execute(); ``` ### `db.relationProvision` @@ -1243,12 +1205,15 @@ CRUD operations for RelationProvision records. | `fieldName` | String | Yes | | `deleteAction` | String | Yes | | `isRequired` | Boolean | Yes | +| `apiRequired` | Boolean | Yes | | `junctionTableId` | UUID | Yes | | `junctionTableName` | String | Yes | | `junctionSchemaId` | UUID | Yes | | `sourceFieldName` | String | Yes | | `targetFieldName` | String | Yes | | `useCompositeKey` | Boolean | Yes | +| `createIndex` | Boolean | Yes | +| `exposeInApi` | Boolean | Yes | | `nodeType` | String | Yes | | `nodeData` | JSON | Yes | | `grantRoles` | String | Yes | @@ -1263,35 +1228,24 @@ CRUD operations for RelationProvision records. | `outJunctionTableId` | UUID | Yes | | `outSourceFieldId` | UUID | Yes | | `outTargetFieldId` | UUID | Yes | -| `relationTypeTrgmSimilarity` | Float | Yes | -| `fieldNameTrgmSimilarity` | Float | Yes | -| `deleteActionTrgmSimilarity` | Float | Yes | -| `junctionTableNameTrgmSimilarity` | Float | Yes | -| `sourceFieldNameTrgmSimilarity` | Float | Yes | -| `targetFieldNameTrgmSimilarity` | Float | Yes | -| `nodeTypeTrgmSimilarity` | Float | Yes | -| `policyTypeTrgmSimilarity` | Float | Yes | -| `policyRoleTrgmSimilarity` | Float | Yes | -| `policyNameTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all relationProvision records -const items = await db.relationProvision.findMany({ select: { id: true, databaseId: true, relationType: true, sourceTableId: true, targetTableId: true, fieldName: true, deleteAction: true, isRequired: true, junctionTableId: true, junctionTableName: true, junctionSchemaId: true, sourceFieldName: true, targetFieldName: true, useCompositeKey: true, nodeType: true, nodeData: true, grantRoles: true, grantPrivileges: true, policyType: true, policyPrivileges: true, policyRole: true, policyPermissive: true, policyName: true, policyData: true, outFieldId: true, outJunctionTableId: true, outSourceFieldId: true, outTargetFieldId: true, relationTypeTrgmSimilarity: true, fieldNameTrgmSimilarity: true, deleteActionTrgmSimilarity: true, junctionTableNameTrgmSimilarity: true, sourceFieldNameTrgmSimilarity: true, targetFieldNameTrgmSimilarity: true, nodeTypeTrgmSimilarity: true, policyTypeTrgmSimilarity: true, policyRoleTrgmSimilarity: true, policyNameTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.relationProvision.findMany({ select: { id: true, databaseId: true, relationType: true, sourceTableId: true, targetTableId: true, fieldName: true, deleteAction: true, isRequired: true, apiRequired: true, junctionTableId: true, junctionTableName: true, junctionSchemaId: true, sourceFieldName: true, targetFieldName: true, useCompositeKey: true, createIndex: true, exposeInApi: true, nodeType: true, nodeData: true, grantRoles: true, grantPrivileges: true, policyType: true, policyPrivileges: true, policyRole: true, policyPermissive: true, policyName: true, policyData: true, outFieldId: true, outJunctionTableId: true, outSourceFieldId: true, outTargetFieldId: true } }).execute(); // Get one by id -const item = await db.relationProvision.findOne({ id: '', select: { id: true, databaseId: true, relationType: true, sourceTableId: true, targetTableId: true, fieldName: true, deleteAction: true, isRequired: true, junctionTableId: true, junctionTableName: true, junctionSchemaId: true, sourceFieldName: true, targetFieldName: true, useCompositeKey: true, nodeType: true, nodeData: true, grantRoles: true, grantPrivileges: true, policyType: true, policyPrivileges: true, policyRole: true, policyPermissive: true, policyName: true, policyData: true, outFieldId: true, outJunctionTableId: true, outSourceFieldId: true, outTargetFieldId: true, relationTypeTrgmSimilarity: true, fieldNameTrgmSimilarity: true, deleteActionTrgmSimilarity: true, junctionTableNameTrgmSimilarity: true, sourceFieldNameTrgmSimilarity: true, targetFieldNameTrgmSimilarity: true, nodeTypeTrgmSimilarity: true, policyTypeTrgmSimilarity: true, policyRoleTrgmSimilarity: true, policyNameTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.relationProvision.findOne({ id: '', select: { id: true, databaseId: true, relationType: true, sourceTableId: true, targetTableId: true, fieldName: true, deleteAction: true, isRequired: true, apiRequired: true, junctionTableId: true, junctionTableName: true, junctionSchemaId: true, sourceFieldName: true, targetFieldName: true, useCompositeKey: true, createIndex: true, exposeInApi: true, nodeType: true, nodeData: true, grantRoles: true, grantPrivileges: true, policyType: true, policyPrivileges: true, policyRole: true, policyPermissive: true, policyName: true, policyData: true, outFieldId: true, outJunctionTableId: true, outSourceFieldId: true, outTargetFieldId: true } }).execute(); // Create -const created = await db.relationProvision.create({ data: { databaseId: '', relationType: '', sourceTableId: '', targetTableId: '', fieldName: '', deleteAction: '', isRequired: '', junctionTableId: '', junctionTableName: '', junctionSchemaId: '', sourceFieldName: '', targetFieldName: '', useCompositeKey: '', nodeType: '', nodeData: '', grantRoles: '', grantPrivileges: '', policyType: '', policyPrivileges: '', policyRole: '', policyPermissive: '', policyName: '', policyData: '', outFieldId: '', outJunctionTableId: '', outSourceFieldId: '', outTargetFieldId: '', relationTypeTrgmSimilarity: '', fieldNameTrgmSimilarity: '', deleteActionTrgmSimilarity: '', junctionTableNameTrgmSimilarity: '', sourceFieldNameTrgmSimilarity: '', targetFieldNameTrgmSimilarity: '', nodeTypeTrgmSimilarity: '', policyTypeTrgmSimilarity: '', policyRoleTrgmSimilarity: '', policyNameTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.relationProvision.create({ data: { databaseId: '', relationType: '', sourceTableId: '', targetTableId: '', fieldName: '', deleteAction: '', isRequired: '', apiRequired: '', junctionTableId: '', junctionTableName: '', junctionSchemaId: '', sourceFieldName: '', targetFieldName: '', useCompositeKey: '', createIndex: '', exposeInApi: '', nodeType: '', nodeData: '', grantRoles: '', grantPrivileges: '', policyType: '', policyPrivileges: '', policyRole: '', policyPermissive: '', policyName: '', policyData: '', outFieldId: '', outJunctionTableId: '', outSourceFieldId: '', outTargetFieldId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.relationProvision.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.relationProvision.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.relationProvision.delete({ where: { id: '' } }).execute(); +const deleted = await db.relationProvision.delete({ where: { id: '' } }).execute(); ``` ### `db.schemaGrant` @@ -1308,26 +1262,24 @@ CRUD operations for SchemaGrant records. | `granteeName` | String | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `granteeNameTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all schemaGrant records -const items = await db.schemaGrant.findMany({ select: { id: true, databaseId: true, schemaId: true, granteeName: true, createdAt: true, updatedAt: true, granteeNameTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.schemaGrant.findMany({ select: { id: true, databaseId: true, schemaId: true, granteeName: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.schemaGrant.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, granteeName: true, createdAt: true, updatedAt: true, granteeNameTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.schemaGrant.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, granteeName: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.schemaGrant.create({ data: { databaseId: '', schemaId: '', granteeName: '', granteeNameTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.schemaGrant.create({ data: { databaseId: '', schemaId: '', granteeName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.schemaGrant.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.schemaGrant.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.schemaGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.schemaGrant.delete({ where: { id: '' } }).execute(); ``` ### `db.defaultPrivilege` @@ -1345,28 +1297,64 @@ CRUD operations for DefaultPrivilege records. | `privilege` | String | Yes | | `granteeName` | String | Yes | | `isGrant` | Boolean | Yes | -| `objectTypeTrgmSimilarity` | Float | Yes | -| `privilegeTrgmSimilarity` | Float | Yes | -| `granteeNameTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all defaultPrivilege records -const items = await db.defaultPrivilege.findMany({ select: { id: true, databaseId: true, schemaId: true, objectType: true, privilege: true, granteeName: true, isGrant: true, objectTypeTrgmSimilarity: true, privilegeTrgmSimilarity: true, granteeNameTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.defaultPrivilege.findMany({ select: { id: true, databaseId: true, schemaId: true, objectType: true, privilege: true, granteeName: true, isGrant: true } }).execute(); // Get one by id -const item = await db.defaultPrivilege.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, objectType: true, privilege: true, granteeName: true, isGrant: true, objectTypeTrgmSimilarity: true, privilegeTrgmSimilarity: true, granteeNameTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.defaultPrivilege.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, objectType: true, privilege: true, granteeName: true, isGrant: true } }).execute(); // Create -const created = await db.defaultPrivilege.create({ data: { databaseId: '', schemaId: '', objectType: '', privilege: '', granteeName: '', isGrant: '', objectTypeTrgmSimilarity: '', privilegeTrgmSimilarity: '', granteeNameTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.defaultPrivilege.create({ data: { databaseId: '', schemaId: '', objectType: '', privilege: '', granteeName: '', isGrant: '' }, select: { id: true } }).execute(); // Update -const updated = await db.defaultPrivilege.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.defaultPrivilege.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.defaultPrivilege.delete({ where: { id: '' } }).execute(); +const deleted = await db.defaultPrivilege.delete({ where: { id: '' } }).execute(); +``` + +### `db.enum` + +CRUD operations for Enum records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `name` | String | Yes | +| `label` | String | Yes | +| `description` | String | Yes | +| `values` | String | Yes | +| `smartTags` | JSON | Yes | +| `category` | ObjectCategory | Yes | +| `module` | String | Yes | +| `scope` | Int | Yes | +| `tags` | String | Yes | + +**Operations:** + +```typescript +// List all enum records +const items = await db.enum.findMany({ select: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, values: true, smartTags: true, category: true, module: true, scope: true, tags: true } }).execute(); + +// Get one by id +const item = await db.enum.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, values: true, smartTags: true, category: true, module: true, scope: true, tags: true } }).execute(); + +// Create +const created = await db.enum.create({ data: { databaseId: '', schemaId: '', name: '', label: '', description: '', values: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.enum.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.enum.delete({ where: { id: '' } }).execute(); ``` ### `db.apiSchema` @@ -1389,16 +1377,16 @@ CRUD operations for ApiSchema records. const items = await db.apiSchema.findMany({ select: { id: true, databaseId: true, schemaId: true, apiId: true } }).execute(); // Get one by id -const item = await db.apiSchema.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, apiId: true } }).execute(); +const item = await db.apiSchema.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, apiId: true } }).execute(); // Create -const created = await db.apiSchema.create({ data: { databaseId: '', schemaId: '', apiId: '' }, select: { id: true } }).execute(); +const created = await db.apiSchema.create({ data: { databaseId: '', schemaId: '', apiId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.apiSchema.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.apiSchema.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.apiSchema.delete({ where: { id: '' } }).execute(); +const deleted = await db.apiSchema.delete({ where: { id: '' } }).execute(); ``` ### `db.apiModule` @@ -1414,26 +1402,24 @@ CRUD operations for ApiModule records. | `apiId` | UUID | Yes | | `name` | String | Yes | | `data` | JSON | Yes | -| `nameTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all apiModule records -const items = await db.apiModule.findMany({ select: { id: true, databaseId: true, apiId: true, name: true, data: true, nameTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.apiModule.findMany({ select: { id: true, databaseId: true, apiId: true, name: true, data: true } }).execute(); // Get one by id -const item = await db.apiModule.findOne({ id: '', select: { id: true, databaseId: true, apiId: true, name: true, data: true, nameTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.apiModule.findOne({ id: '', select: { id: true, databaseId: true, apiId: true, name: true, data: true } }).execute(); // Create -const created = await db.apiModule.create({ data: { databaseId: '', apiId: '', name: '', data: '', nameTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.apiModule.create({ data: { databaseId: '', apiId: '', name: '', data: '' }, select: { id: true } }).execute(); // Update -const updated = await db.apiModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.apiModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.apiModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.apiModule.delete({ where: { id: '' } }).execute(); ``` ### `db.domain` @@ -1458,16 +1444,16 @@ CRUD operations for Domain records. const items = await db.domain.findMany({ select: { id: true, databaseId: true, apiId: true, siteId: true, subdomain: true, domain: true } }).execute(); // Get one by id -const item = await db.domain.findOne({ id: '', select: { id: true, databaseId: true, apiId: true, siteId: true, subdomain: true, domain: true } }).execute(); +const item = await db.domain.findOne({ id: '', select: { id: true, databaseId: true, apiId: true, siteId: true, subdomain: true, domain: true } }).execute(); // Create -const created = await db.domain.create({ data: { databaseId: '', apiId: '', siteId: '', subdomain: '', domain: '' }, select: { id: true } }).execute(); +const created = await db.domain.create({ data: { databaseId: '', apiId: '', siteId: '', subdomain: '', domain: '' }, select: { id: true } }).execute(); // Update -const updated = await db.domain.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.domain.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.domain.delete({ where: { id: '' } }).execute(); +const deleted = await db.domain.delete({ where: { id: '' } }).execute(); ``` ### `db.siteMetadatum` @@ -1484,27 +1470,24 @@ CRUD operations for SiteMetadatum records. | `title` | String | Yes | | `description` | String | Yes | | `ogImage` | ConstructiveInternalTypeImage | Yes | -| `titleTrgmSimilarity` | Float | Yes | -| `descriptionTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all siteMetadatum records -const items = await db.siteMetadatum.findMany({ select: { id: true, databaseId: true, siteId: true, title: true, description: true, ogImage: true, titleTrgmSimilarity: true, descriptionTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.siteMetadatum.findMany({ select: { id: true, databaseId: true, siteId: true, title: true, description: true, ogImage: true } }).execute(); // Get one by id -const item = await db.siteMetadatum.findOne({ id: '', select: { id: true, databaseId: true, siteId: true, title: true, description: true, ogImage: true, titleTrgmSimilarity: true, descriptionTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.siteMetadatum.findOne({ id: '', select: { id: true, databaseId: true, siteId: true, title: true, description: true, ogImage: true } }).execute(); // Create -const created = await db.siteMetadatum.create({ data: { databaseId: '', siteId: '', title: '', description: '', ogImage: '', titleTrgmSimilarity: '', descriptionTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.siteMetadatum.create({ data: { databaseId: '', siteId: '', title: '', description: '', ogImage: '' }, select: { id: true } }).execute(); // Update -const updated = await db.siteMetadatum.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.siteMetadatum.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.siteMetadatum.delete({ where: { id: '' } }).execute(); +const deleted = await db.siteMetadatum.delete({ where: { id: '' } }).execute(); ``` ### `db.siteModule` @@ -1520,26 +1503,24 @@ CRUD operations for SiteModule records. | `siteId` | UUID | Yes | | `name` | String | Yes | | `data` | JSON | Yes | -| `nameTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all siteModule records -const items = await db.siteModule.findMany({ select: { id: true, databaseId: true, siteId: true, name: true, data: true, nameTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.siteModule.findMany({ select: { id: true, databaseId: true, siteId: true, name: true, data: true } }).execute(); // Get one by id -const item = await db.siteModule.findOne({ id: '', select: { id: true, databaseId: true, siteId: true, name: true, data: true, nameTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.siteModule.findOne({ id: '', select: { id: true, databaseId: true, siteId: true, name: true, data: true } }).execute(); // Create -const created = await db.siteModule.create({ data: { databaseId: '', siteId: '', name: '', data: '', nameTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.siteModule.create({ data: { databaseId: '', siteId: '', name: '', data: '' }, select: { id: true } }).execute(); // Update -const updated = await db.siteModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.siteModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.siteModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.siteModule.delete({ where: { id: '' } }).execute(); ``` ### `db.siteTheme` @@ -1562,16 +1543,16 @@ CRUD operations for SiteTheme records. const items = await db.siteTheme.findMany({ select: { id: true, databaseId: true, siteId: true, theme: true } }).execute(); // Get one by id -const item = await db.siteTheme.findOne({ id: '', select: { id: true, databaseId: true, siteId: true, theme: true } }).execute(); +const item = await db.siteTheme.findOne({ id: '', select: { id: true, databaseId: true, siteId: true, theme: true } }).execute(); // Create -const created = await db.siteTheme.create({ data: { databaseId: '', siteId: '', theme: '' }, select: { id: true } }).execute(); +const created = await db.siteTheme.create({ data: { databaseId: '', siteId: '', theme: '' }, select: { id: true } }).execute(); // Update -const updated = await db.siteTheme.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.siteTheme.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.siteTheme.delete({ where: { id: '' } }).execute(); +const deleted = await db.siteTheme.delete({ where: { id: '' } }).execute(); ``` ### `db.triggerFunction` @@ -1588,27 +1569,66 @@ CRUD operations for TriggerFunction records. | `code` | String | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `nameTrgmSimilarity` | Float | Yes | -| `codeTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all triggerFunction records -const items = await db.triggerFunction.findMany({ select: { id: true, databaseId: true, name: true, code: true, createdAt: true, updatedAt: true, nameTrgmSimilarity: true, codeTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.triggerFunction.findMany({ select: { id: true, databaseId: true, name: true, code: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.triggerFunction.findOne({ id: '', select: { id: true, databaseId: true, name: true, code: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.triggerFunction.create({ data: { databaseId: '', name: '', code: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.triggerFunction.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.triggerFunction.delete({ where: { id: '' } }).execute(); +``` + +### `db.databaseTransfer` + +CRUD operations for DatabaseTransfer records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `targetOwnerId` | UUID | Yes | +| `sourceApproved` | Boolean | Yes | +| `targetApproved` | Boolean | Yes | +| `sourceApprovedAt` | Datetime | Yes | +| `targetApprovedAt` | Datetime | Yes | +| `status` | String | Yes | +| `initiatedBy` | UUID | Yes | +| `notes` | String | Yes | +| `expiresAt` | Datetime | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `completedAt` | Datetime | Yes | + +**Operations:** + +```typescript +// List all databaseTransfer records +const items = await db.databaseTransfer.findMany({ select: { id: true, databaseId: true, targetOwnerId: true, sourceApproved: true, targetApproved: true, sourceApprovedAt: true, targetApprovedAt: true, status: true, initiatedBy: true, notes: true, expiresAt: true, createdAt: true, updatedAt: true, completedAt: true } }).execute(); // Get one by id -const item = await db.triggerFunction.findOne({ id: '', select: { id: true, databaseId: true, name: true, code: true, createdAt: true, updatedAt: true, nameTrgmSimilarity: true, codeTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.databaseTransfer.findOne({ id: '', select: { id: true, databaseId: true, targetOwnerId: true, sourceApproved: true, targetApproved: true, sourceApprovedAt: true, targetApprovedAt: true, status: true, initiatedBy: true, notes: true, expiresAt: true, createdAt: true, updatedAt: true, completedAt: true } }).execute(); // Create -const created = await db.triggerFunction.create({ data: { databaseId: '', name: '', code: '', nameTrgmSimilarity: '', codeTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.databaseTransfer.create({ data: { databaseId: '', targetOwnerId: '', sourceApproved: '', targetApproved: '', sourceApprovedAt: '', targetApprovedAt: '', status: '', initiatedBy: '', notes: '', expiresAt: '', completedAt: '' }, select: { id: true } }).execute(); // Update -const updated = await db.triggerFunction.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.databaseTransfer.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.triggerFunction.delete({ where: { id: '' } }).execute(); +const deleted = await db.databaseTransfer.delete({ where: { id: '' } }).execute(); ``` ### `db.api` @@ -1626,29 +1646,24 @@ CRUD operations for Api records. | `roleName` | String | Yes | | `anonRole` | String | Yes | | `isPublic` | Boolean | Yes | -| `nameTrgmSimilarity` | Float | Yes | -| `dbnameTrgmSimilarity` | Float | Yes | -| `roleNameTrgmSimilarity` | Float | Yes | -| `anonRoleTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all api records -const items = await db.api.findMany({ select: { id: true, databaseId: true, name: true, dbname: true, roleName: true, anonRole: true, isPublic: true, nameTrgmSimilarity: true, dbnameTrgmSimilarity: true, roleNameTrgmSimilarity: true, anonRoleTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.api.findMany({ select: { id: true, databaseId: true, name: true, dbname: true, roleName: true, anonRole: true, isPublic: true } }).execute(); // Get one by id -const item = await db.api.findOne({ id: '', select: { id: true, databaseId: true, name: true, dbname: true, roleName: true, anonRole: true, isPublic: true, nameTrgmSimilarity: true, dbnameTrgmSimilarity: true, roleNameTrgmSimilarity: true, anonRoleTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.api.findOne({ id: '', select: { id: true, databaseId: true, name: true, dbname: true, roleName: true, anonRole: true, isPublic: true } }).execute(); // Create -const created = await db.api.create({ data: { databaseId: '', name: '', dbname: '', roleName: '', anonRole: '', isPublic: '', nameTrgmSimilarity: '', dbnameTrgmSimilarity: '', roleNameTrgmSimilarity: '', anonRoleTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.api.create({ data: { databaseId: '', name: '', dbname: '', roleName: '', anonRole: '', isPublic: '' }, select: { id: true } }).execute(); // Update -const updated = await db.api.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.api.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.api.delete({ where: { id: '' } }).execute(); +const deleted = await db.api.delete({ where: { id: '' } }).execute(); ``` ### `db.site` @@ -1668,28 +1683,24 @@ CRUD operations for Site records. | `appleTouchIcon` | ConstructiveInternalTypeImage | Yes | | `logo` | ConstructiveInternalTypeImage | Yes | | `dbname` | String | Yes | -| `titleTrgmSimilarity` | Float | Yes | -| `descriptionTrgmSimilarity` | Float | Yes | -| `dbnameTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all site records -const items = await db.site.findMany({ select: { id: true, databaseId: true, title: true, description: true, ogImage: true, favicon: true, appleTouchIcon: true, logo: true, dbname: true, titleTrgmSimilarity: true, descriptionTrgmSimilarity: true, dbnameTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.site.findMany({ select: { id: true, databaseId: true, title: true, description: true, ogImage: true, favicon: true, appleTouchIcon: true, logo: true, dbname: true } }).execute(); // Get one by id -const item = await db.site.findOne({ id: '', select: { id: true, databaseId: true, title: true, description: true, ogImage: true, favicon: true, appleTouchIcon: true, logo: true, dbname: true, titleTrgmSimilarity: true, descriptionTrgmSimilarity: true, dbnameTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.site.findOne({ id: '', select: { id: true, databaseId: true, title: true, description: true, ogImage: true, favicon: true, appleTouchIcon: true, logo: true, dbname: true } }).execute(); // Create -const created = await db.site.create({ data: { databaseId: '', title: '', description: '', ogImage: '', favicon: '', appleTouchIcon: '', logo: '', dbname: '', titleTrgmSimilarity: '', descriptionTrgmSimilarity: '', dbnameTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.site.create({ data: { databaseId: '', title: '', description: '', ogImage: '', favicon: '', appleTouchIcon: '', logo: '', dbname: '' }, select: { id: true } }).execute(); // Update -const updated = await db.site.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.site.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.site.delete({ where: { id: '' } }).execute(); +const deleted = await db.site.delete({ where: { id: '' } }).execute(); ``` ### `db.app` @@ -1709,28 +1720,24 @@ CRUD operations for App records. | `appStoreId` | String | Yes | | `appIdPrefix` | String | Yes | | `playStoreLink` | ConstructiveInternalTypeUrl | Yes | -| `nameTrgmSimilarity` | Float | Yes | -| `appStoreIdTrgmSimilarity` | Float | Yes | -| `appIdPrefixTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all app records -const items = await db.app.findMany({ select: { id: true, databaseId: true, siteId: true, name: true, appImage: true, appStoreLink: true, appStoreId: true, appIdPrefix: true, playStoreLink: true, nameTrgmSimilarity: true, appStoreIdTrgmSimilarity: true, appIdPrefixTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.app.findMany({ select: { id: true, databaseId: true, siteId: true, name: true, appImage: true, appStoreLink: true, appStoreId: true, appIdPrefix: true, playStoreLink: true } }).execute(); // Get one by id -const item = await db.app.findOne({ id: '', select: { id: true, databaseId: true, siteId: true, name: true, appImage: true, appStoreLink: true, appStoreId: true, appIdPrefix: true, playStoreLink: true, nameTrgmSimilarity: true, appStoreIdTrgmSimilarity: true, appIdPrefixTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.app.findOne({ id: '', select: { id: true, databaseId: true, siteId: true, name: true, appImage: true, appStoreLink: true, appStoreId: true, appIdPrefix: true, playStoreLink: true } }).execute(); // Create -const created = await db.app.create({ data: { databaseId: '', siteId: '', name: '', appImage: '', appStoreLink: '', appStoreId: '', appIdPrefix: '', playStoreLink: '', nameTrgmSimilarity: '', appStoreIdTrgmSimilarity: '', appIdPrefixTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.app.create({ data: { databaseId: '', siteId: '', name: '', appImage: '', appStoreLink: '', appStoreId: '', appIdPrefix: '', playStoreLink: '' }, select: { id: true } }).execute(); // Update -const updated = await db.app.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.app.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.app.delete({ where: { id: '' } }).execute(); +const deleted = await db.app.delete({ where: { id: '' } }).execute(); ``` ### `db.connectedAccountsModule` @@ -1748,26 +1755,24 @@ CRUD operations for ConnectedAccountsModule records. | `tableId` | UUID | Yes | | `ownerTableId` | UUID | Yes | | `tableName` | String | Yes | -| `tableNameTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all connectedAccountsModule records -const items = await db.connectedAccountsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, tableNameTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.connectedAccountsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true } }).execute(); // Get one by id -const item = await db.connectedAccountsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, tableNameTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.connectedAccountsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true } }).execute(); // Create -const created = await db.connectedAccountsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '', tableNameTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.connectedAccountsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.connectedAccountsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.connectedAccountsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.connectedAccountsModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.connectedAccountsModule.delete({ where: { id: '' } }).execute(); ``` ### `db.cryptoAddressesModule` @@ -1786,27 +1791,24 @@ CRUD operations for CryptoAddressesModule records. | `ownerTableId` | UUID | Yes | | `tableName` | String | Yes | | `cryptoNetwork` | String | Yes | -| `tableNameTrgmSimilarity` | Float | Yes | -| `cryptoNetworkTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all cryptoAddressesModule records -const items = await db.cryptoAddressesModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, cryptoNetwork: true, tableNameTrgmSimilarity: true, cryptoNetworkTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.cryptoAddressesModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, cryptoNetwork: true } }).execute(); // Get one by id -const item = await db.cryptoAddressesModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, cryptoNetwork: true, tableNameTrgmSimilarity: true, cryptoNetworkTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.cryptoAddressesModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, cryptoNetwork: true } }).execute(); // Create -const created = await db.cryptoAddressesModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '', cryptoNetwork: '', tableNameTrgmSimilarity: '', cryptoNetworkTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.cryptoAddressesModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '', cryptoNetwork: '' }, select: { id: true } }).execute(); // Update -const updated = await db.cryptoAddressesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.cryptoAddressesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.cryptoAddressesModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.cryptoAddressesModule.delete({ where: { id: '' } }).execute(); ``` ### `db.cryptoAuthModule` @@ -1831,31 +1833,24 @@ CRUD operations for CryptoAuthModule records. | `signInRecordFailure` | String | Yes | | `signUpWithKey` | String | Yes | | `signInWithChallenge` | String | Yes | -| `userFieldTrgmSimilarity` | Float | Yes | -| `cryptoNetworkTrgmSimilarity` | Float | Yes | -| `signInRequestChallengeTrgmSimilarity` | Float | Yes | -| `signInRecordFailureTrgmSimilarity` | Float | Yes | -| `signUpWithKeyTrgmSimilarity` | Float | Yes | -| `signInWithChallengeTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all cryptoAuthModule records -const items = await db.cryptoAuthModule.findMany({ select: { id: true, databaseId: true, schemaId: true, usersTableId: true, secretsTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, addressesTableId: true, userField: true, cryptoNetwork: true, signInRequestChallenge: true, signInRecordFailure: true, signUpWithKey: true, signInWithChallenge: true, userFieldTrgmSimilarity: true, cryptoNetworkTrgmSimilarity: true, signInRequestChallengeTrgmSimilarity: true, signInRecordFailureTrgmSimilarity: true, signUpWithKeyTrgmSimilarity: true, signInWithChallengeTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.cryptoAuthModule.findMany({ select: { id: true, databaseId: true, schemaId: true, usersTableId: true, secretsTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, addressesTableId: true, userField: true, cryptoNetwork: true, signInRequestChallenge: true, signInRecordFailure: true, signUpWithKey: true, signInWithChallenge: true } }).execute(); // Get one by id -const item = await db.cryptoAuthModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, usersTableId: true, secretsTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, addressesTableId: true, userField: true, cryptoNetwork: true, signInRequestChallenge: true, signInRecordFailure: true, signUpWithKey: true, signInWithChallenge: true, userFieldTrgmSimilarity: true, cryptoNetworkTrgmSimilarity: true, signInRequestChallengeTrgmSimilarity: true, signInRecordFailureTrgmSimilarity: true, signUpWithKeyTrgmSimilarity: true, signInWithChallengeTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.cryptoAuthModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, usersTableId: true, secretsTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, addressesTableId: true, userField: true, cryptoNetwork: true, signInRequestChallenge: true, signInRecordFailure: true, signUpWithKey: true, signInWithChallenge: true } }).execute(); // Create -const created = await db.cryptoAuthModule.create({ data: { databaseId: '', schemaId: '', usersTableId: '', secretsTableId: '', sessionsTableId: '', sessionCredentialsTableId: '', addressesTableId: '', userField: '', cryptoNetwork: '', signInRequestChallenge: '', signInRecordFailure: '', signUpWithKey: '', signInWithChallenge: '', userFieldTrgmSimilarity: '', cryptoNetworkTrgmSimilarity: '', signInRequestChallengeTrgmSimilarity: '', signInRecordFailureTrgmSimilarity: '', signUpWithKeyTrgmSimilarity: '', signInWithChallengeTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.cryptoAuthModule.create({ data: { databaseId: '', schemaId: '', usersTableId: '', secretsTableId: '', sessionsTableId: '', sessionCredentialsTableId: '', addressesTableId: '', userField: '', cryptoNetwork: '', signInRequestChallenge: '', signInRecordFailure: '', signUpWithKey: '', signInWithChallenge: '' }, select: { id: true } }).execute(); // Update -const updated = await db.cryptoAuthModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.cryptoAuthModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.cryptoAuthModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.cryptoAuthModule.delete({ where: { id: '' } }).execute(); ``` ### `db.defaultIdsModule` @@ -1876,16 +1871,16 @@ CRUD operations for DefaultIdsModule records. const items = await db.defaultIdsModule.findMany({ select: { id: true, databaseId: true } }).execute(); // Get one by id -const item = await db.defaultIdsModule.findOne({ id: '', select: { id: true, databaseId: true } }).execute(); +const item = await db.defaultIdsModule.findOne({ id: '', select: { id: true, databaseId: true } }).execute(); // Create -const created = await db.defaultIdsModule.create({ data: { databaseId: '' }, select: { id: true } }).execute(); +const created = await db.defaultIdsModule.create({ data: { databaseId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.defaultIdsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.defaultIdsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.defaultIdsModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.defaultIdsModule.delete({ where: { id: '' } }).execute(); ``` ### `db.denormalizedTableField` @@ -1908,26 +1903,24 @@ CRUD operations for DenormalizedTableField records. | `updateDefaults` | Boolean | Yes | | `funcName` | String | Yes | | `funcOrder` | Int | Yes | -| `funcNameTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all denormalizedTableField records -const items = await db.denormalizedTableField.findMany({ select: { id: true, databaseId: true, tableId: true, fieldId: true, setIds: true, refTableId: true, refFieldId: true, refIds: true, useUpdates: true, updateDefaults: true, funcName: true, funcOrder: true, funcNameTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.denormalizedTableField.findMany({ select: { id: true, databaseId: true, tableId: true, fieldId: true, setIds: true, refTableId: true, refFieldId: true, refIds: true, useUpdates: true, updateDefaults: true, funcName: true, funcOrder: true } }).execute(); // Get one by id -const item = await db.denormalizedTableField.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, fieldId: true, setIds: true, refTableId: true, refFieldId: true, refIds: true, useUpdates: true, updateDefaults: true, funcName: true, funcOrder: true, funcNameTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.denormalizedTableField.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, fieldId: true, setIds: true, refTableId: true, refFieldId: true, refIds: true, useUpdates: true, updateDefaults: true, funcName: true, funcOrder: true } }).execute(); // Create -const created = await db.denormalizedTableField.create({ data: { databaseId: '', tableId: '', fieldId: '', setIds: '', refTableId: '', refFieldId: '', refIds: '', useUpdates: '', updateDefaults: '', funcName: '', funcOrder: '', funcNameTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.denormalizedTableField.create({ data: { databaseId: '', tableId: '', fieldId: '', setIds: '', refTableId: '', refFieldId: '', refIds: '', useUpdates: '', updateDefaults: '', funcName: '', funcOrder: '' }, select: { id: true } }).execute(); // Update -const updated = await db.denormalizedTableField.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.denormalizedTableField.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.denormalizedTableField.delete({ where: { id: '' } }).execute(); +const deleted = await db.denormalizedTableField.delete({ where: { id: '' } }).execute(); ``` ### `db.emailsModule` @@ -1945,26 +1938,24 @@ CRUD operations for EmailsModule records. | `tableId` | UUID | Yes | | `ownerTableId` | UUID | Yes | | `tableName` | String | Yes | -| `tableNameTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all emailsModule records -const items = await db.emailsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, tableNameTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.emailsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true } }).execute(); // Get one by id -const item = await db.emailsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, tableNameTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.emailsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true } }).execute(); // Create -const created = await db.emailsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '', tableNameTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.emailsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.emailsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.emailsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.emailsModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.emailsModule.delete({ where: { id: '' } }).execute(); ``` ### `db.encryptedSecretsModule` @@ -1980,26 +1971,24 @@ CRUD operations for EncryptedSecretsModule records. | `schemaId` | UUID | Yes | | `tableId` | UUID | Yes | | `tableName` | String | Yes | -| `tableNameTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all encryptedSecretsModule records -const items = await db.encryptedSecretsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, tableNameTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.encryptedSecretsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }).execute(); // Get one by id -const item = await db.encryptedSecretsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, tableNameTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.encryptedSecretsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }).execute(); // Create -const created = await db.encryptedSecretsModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '', tableNameTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.encryptedSecretsModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.encryptedSecretsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.encryptedSecretsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.encryptedSecretsModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.encryptedSecretsModule.delete({ where: { id: '' } }).execute(); ``` ### `db.fieldModule` @@ -2019,26 +2008,24 @@ CRUD operations for FieldModule records. | `data` | JSON | Yes | | `triggers` | String | Yes | | `functions` | String | Yes | -| `nodeTypeTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all fieldModule records -const items = await db.fieldModule.findMany({ select: { id: true, databaseId: true, privateSchemaId: true, tableId: true, fieldId: true, nodeType: true, data: true, triggers: true, functions: true, nodeTypeTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.fieldModule.findMany({ select: { id: true, databaseId: true, privateSchemaId: true, tableId: true, fieldId: true, nodeType: true, data: true, triggers: true, functions: true } }).execute(); // Get one by id -const item = await db.fieldModule.findOne({ id: '', select: { id: true, databaseId: true, privateSchemaId: true, tableId: true, fieldId: true, nodeType: true, data: true, triggers: true, functions: true, nodeTypeTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.fieldModule.findOne({ id: '', select: { id: true, databaseId: true, privateSchemaId: true, tableId: true, fieldId: true, nodeType: true, data: true, triggers: true, functions: true } }).execute(); // Create -const created = await db.fieldModule.create({ data: { databaseId: '', privateSchemaId: '', tableId: '', fieldId: '', nodeType: '', data: '', triggers: '', functions: '', nodeTypeTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.fieldModule.create({ data: { databaseId: '', privateSchemaId: '', tableId: '', fieldId: '', nodeType: '', data: '', triggers: '', functions: '' }, select: { id: true } }).execute(); // Update -const updated = await db.fieldModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.fieldModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.fieldModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.fieldModule.delete({ where: { id: '' } }).execute(); ``` ### `db.invitesModule` @@ -2063,29 +2050,24 @@ CRUD operations for InvitesModule records. | `prefix` | String | Yes | | `membershipType` | Int | Yes | | `entityTableId` | UUID | Yes | -| `invitesTableNameTrgmSimilarity` | Float | Yes | -| `claimedInvitesTableNameTrgmSimilarity` | Float | Yes | -| `submitInviteCodeFunctionTrgmSimilarity` | Float | Yes | -| `prefixTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all invitesModule records -const items = await db.invitesModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, emailsTableId: true, usersTableId: true, invitesTableId: true, claimedInvitesTableId: true, invitesTableName: true, claimedInvitesTableName: true, submitInviteCodeFunction: true, prefix: true, membershipType: true, entityTableId: true, invitesTableNameTrgmSimilarity: true, claimedInvitesTableNameTrgmSimilarity: true, submitInviteCodeFunctionTrgmSimilarity: true, prefixTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.invitesModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, emailsTableId: true, usersTableId: true, invitesTableId: true, claimedInvitesTableId: true, invitesTableName: true, claimedInvitesTableName: true, submitInviteCodeFunction: true, prefix: true, membershipType: true, entityTableId: true } }).execute(); // Get one by id -const item = await db.invitesModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, emailsTableId: true, usersTableId: true, invitesTableId: true, claimedInvitesTableId: true, invitesTableName: true, claimedInvitesTableName: true, submitInviteCodeFunction: true, prefix: true, membershipType: true, entityTableId: true, invitesTableNameTrgmSimilarity: true, claimedInvitesTableNameTrgmSimilarity: true, submitInviteCodeFunctionTrgmSimilarity: true, prefixTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.invitesModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, emailsTableId: true, usersTableId: true, invitesTableId: true, claimedInvitesTableId: true, invitesTableName: true, claimedInvitesTableName: true, submitInviteCodeFunction: true, prefix: true, membershipType: true, entityTableId: true } }).execute(); // Create -const created = await db.invitesModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', emailsTableId: '', usersTableId: '', invitesTableId: '', claimedInvitesTableId: '', invitesTableName: '', claimedInvitesTableName: '', submitInviteCodeFunction: '', prefix: '', membershipType: '', entityTableId: '', invitesTableNameTrgmSimilarity: '', claimedInvitesTableNameTrgmSimilarity: '', submitInviteCodeFunctionTrgmSimilarity: '', prefixTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.invitesModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', emailsTableId: '', usersTableId: '', invitesTableId: '', claimedInvitesTableId: '', invitesTableName: '', claimedInvitesTableName: '', submitInviteCodeFunction: '', prefix: '', membershipType: '', entityTableId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.invitesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.invitesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.invitesModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.invitesModule.delete({ where: { id: '' } }).execute(); ``` ### `db.levelsModule` @@ -2122,40 +2104,24 @@ CRUD operations for LevelsModule records. | `membershipType` | Int | Yes | | `entityTableId` | UUID | Yes | | `actorTableId` | UUID | Yes | -| `stepsTableNameTrgmSimilarity` | Float | Yes | -| `achievementsTableNameTrgmSimilarity` | Float | Yes | -| `levelsTableNameTrgmSimilarity` | Float | Yes | -| `levelRequirementsTableNameTrgmSimilarity` | Float | Yes | -| `completedStepTrgmSimilarity` | Float | Yes | -| `incompletedStepTrgmSimilarity` | Float | Yes | -| `tgAchievementTrgmSimilarity` | Float | Yes | -| `tgAchievementToggleTrgmSimilarity` | Float | Yes | -| `tgAchievementToggleBooleanTrgmSimilarity` | Float | Yes | -| `tgAchievementBooleanTrgmSimilarity` | Float | Yes | -| `upsertAchievementTrgmSimilarity` | Float | Yes | -| `tgUpdateAchievementsTrgmSimilarity` | Float | Yes | -| `stepsRequiredTrgmSimilarity` | Float | Yes | -| `levelAchievedTrgmSimilarity` | Float | Yes | -| `prefixTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all levelsModule records -const items = await db.levelsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, stepsTableId: true, stepsTableName: true, achievementsTableId: true, achievementsTableName: true, levelsTableId: true, levelsTableName: true, levelRequirementsTableId: true, levelRequirementsTableName: true, completedStep: true, incompletedStep: true, tgAchievement: true, tgAchievementToggle: true, tgAchievementToggleBoolean: true, tgAchievementBoolean: true, upsertAchievement: true, tgUpdateAchievements: true, stepsRequired: true, levelAchieved: true, prefix: true, membershipType: true, entityTableId: true, actorTableId: true, stepsTableNameTrgmSimilarity: true, achievementsTableNameTrgmSimilarity: true, levelsTableNameTrgmSimilarity: true, levelRequirementsTableNameTrgmSimilarity: true, completedStepTrgmSimilarity: true, incompletedStepTrgmSimilarity: true, tgAchievementTrgmSimilarity: true, tgAchievementToggleTrgmSimilarity: true, tgAchievementToggleBooleanTrgmSimilarity: true, tgAchievementBooleanTrgmSimilarity: true, upsertAchievementTrgmSimilarity: true, tgUpdateAchievementsTrgmSimilarity: true, stepsRequiredTrgmSimilarity: true, levelAchievedTrgmSimilarity: true, prefixTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.levelsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, stepsTableId: true, stepsTableName: true, achievementsTableId: true, achievementsTableName: true, levelsTableId: true, levelsTableName: true, levelRequirementsTableId: true, levelRequirementsTableName: true, completedStep: true, incompletedStep: true, tgAchievement: true, tgAchievementToggle: true, tgAchievementToggleBoolean: true, tgAchievementBoolean: true, upsertAchievement: true, tgUpdateAchievements: true, stepsRequired: true, levelAchieved: true, prefix: true, membershipType: true, entityTableId: true, actorTableId: true } }).execute(); // Get one by id -const item = await db.levelsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, stepsTableId: true, stepsTableName: true, achievementsTableId: true, achievementsTableName: true, levelsTableId: true, levelsTableName: true, levelRequirementsTableId: true, levelRequirementsTableName: true, completedStep: true, incompletedStep: true, tgAchievement: true, tgAchievementToggle: true, tgAchievementToggleBoolean: true, tgAchievementBoolean: true, upsertAchievement: true, tgUpdateAchievements: true, stepsRequired: true, levelAchieved: true, prefix: true, membershipType: true, entityTableId: true, actorTableId: true, stepsTableNameTrgmSimilarity: true, achievementsTableNameTrgmSimilarity: true, levelsTableNameTrgmSimilarity: true, levelRequirementsTableNameTrgmSimilarity: true, completedStepTrgmSimilarity: true, incompletedStepTrgmSimilarity: true, tgAchievementTrgmSimilarity: true, tgAchievementToggleTrgmSimilarity: true, tgAchievementToggleBooleanTrgmSimilarity: true, tgAchievementBooleanTrgmSimilarity: true, upsertAchievementTrgmSimilarity: true, tgUpdateAchievementsTrgmSimilarity: true, stepsRequiredTrgmSimilarity: true, levelAchievedTrgmSimilarity: true, prefixTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.levelsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, stepsTableId: true, stepsTableName: true, achievementsTableId: true, achievementsTableName: true, levelsTableId: true, levelsTableName: true, levelRequirementsTableId: true, levelRequirementsTableName: true, completedStep: true, incompletedStep: true, tgAchievement: true, tgAchievementToggle: true, tgAchievementToggleBoolean: true, tgAchievementBoolean: true, upsertAchievement: true, tgUpdateAchievements: true, stepsRequired: true, levelAchieved: true, prefix: true, membershipType: true, entityTableId: true, actorTableId: true } }).execute(); // Create -const created = await db.levelsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', stepsTableId: '', stepsTableName: '', achievementsTableId: '', achievementsTableName: '', levelsTableId: '', levelsTableName: '', levelRequirementsTableId: '', levelRequirementsTableName: '', completedStep: '', incompletedStep: '', tgAchievement: '', tgAchievementToggle: '', tgAchievementToggleBoolean: '', tgAchievementBoolean: '', upsertAchievement: '', tgUpdateAchievements: '', stepsRequired: '', levelAchieved: '', prefix: '', membershipType: '', entityTableId: '', actorTableId: '', stepsTableNameTrgmSimilarity: '', achievementsTableNameTrgmSimilarity: '', levelsTableNameTrgmSimilarity: '', levelRequirementsTableNameTrgmSimilarity: '', completedStepTrgmSimilarity: '', incompletedStepTrgmSimilarity: '', tgAchievementTrgmSimilarity: '', tgAchievementToggleTrgmSimilarity: '', tgAchievementToggleBooleanTrgmSimilarity: '', tgAchievementBooleanTrgmSimilarity: '', upsertAchievementTrgmSimilarity: '', tgUpdateAchievementsTrgmSimilarity: '', stepsRequiredTrgmSimilarity: '', levelAchievedTrgmSimilarity: '', prefixTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.levelsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', stepsTableId: '', stepsTableName: '', achievementsTableId: '', achievementsTableName: '', levelsTableId: '', levelsTableName: '', levelRequirementsTableId: '', levelRequirementsTableName: '', completedStep: '', incompletedStep: '', tgAchievement: '', tgAchievementToggle: '', tgAchievementToggleBoolean: '', tgAchievementBoolean: '', upsertAchievement: '', tgUpdateAchievements: '', stepsRequired: '', levelAchieved: '', prefix: '', membershipType: '', entityTableId: '', actorTableId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.levelsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.levelsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.levelsModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.levelsModule.delete({ where: { id: '' } }).execute(); ``` ### `db.limitsModule` @@ -2184,34 +2150,24 @@ CRUD operations for LimitsModule records. | `membershipType` | Int | Yes | | `entityTableId` | UUID | Yes | | `actorTableId` | UUID | Yes | -| `tableNameTrgmSimilarity` | Float | Yes | -| `defaultTableNameTrgmSimilarity` | Float | Yes | -| `limitIncrementFunctionTrgmSimilarity` | Float | Yes | -| `limitDecrementFunctionTrgmSimilarity` | Float | Yes | -| `limitIncrementTriggerTrgmSimilarity` | Float | Yes | -| `limitDecrementTriggerTrgmSimilarity` | Float | Yes | -| `limitUpdateTriggerTrgmSimilarity` | Float | Yes | -| `limitCheckFunctionTrgmSimilarity` | Float | Yes | -| `prefixTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all limitsModule records -const items = await db.limitsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, limitIncrementFunction: true, limitDecrementFunction: true, limitIncrementTrigger: true, limitDecrementTrigger: true, limitUpdateTrigger: true, limitCheckFunction: true, prefix: true, membershipType: true, entityTableId: true, actorTableId: true, tableNameTrgmSimilarity: true, defaultTableNameTrgmSimilarity: true, limitIncrementFunctionTrgmSimilarity: true, limitDecrementFunctionTrgmSimilarity: true, limitIncrementTriggerTrgmSimilarity: true, limitDecrementTriggerTrgmSimilarity: true, limitUpdateTriggerTrgmSimilarity: true, limitCheckFunctionTrgmSimilarity: true, prefixTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.limitsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, limitIncrementFunction: true, limitDecrementFunction: true, limitIncrementTrigger: true, limitDecrementTrigger: true, limitUpdateTrigger: true, limitCheckFunction: true, prefix: true, membershipType: true, entityTableId: true, actorTableId: true } }).execute(); // Get one by id -const item = await db.limitsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, limitIncrementFunction: true, limitDecrementFunction: true, limitIncrementTrigger: true, limitDecrementTrigger: true, limitUpdateTrigger: true, limitCheckFunction: true, prefix: true, membershipType: true, entityTableId: true, actorTableId: true, tableNameTrgmSimilarity: true, defaultTableNameTrgmSimilarity: true, limitIncrementFunctionTrgmSimilarity: true, limitDecrementFunctionTrgmSimilarity: true, limitIncrementTriggerTrgmSimilarity: true, limitDecrementTriggerTrgmSimilarity: true, limitUpdateTriggerTrgmSimilarity: true, limitCheckFunctionTrgmSimilarity: true, prefixTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.limitsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, limitIncrementFunction: true, limitDecrementFunction: true, limitIncrementTrigger: true, limitDecrementTrigger: true, limitUpdateTrigger: true, limitCheckFunction: true, prefix: true, membershipType: true, entityTableId: true, actorTableId: true } }).execute(); // Create -const created = await db.limitsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', limitIncrementFunction: '', limitDecrementFunction: '', limitIncrementTrigger: '', limitDecrementTrigger: '', limitUpdateTrigger: '', limitCheckFunction: '', prefix: '', membershipType: '', entityTableId: '', actorTableId: '', tableNameTrgmSimilarity: '', defaultTableNameTrgmSimilarity: '', limitIncrementFunctionTrgmSimilarity: '', limitDecrementFunctionTrgmSimilarity: '', limitIncrementTriggerTrgmSimilarity: '', limitDecrementTriggerTrgmSimilarity: '', limitUpdateTriggerTrgmSimilarity: '', limitCheckFunctionTrgmSimilarity: '', prefixTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.limitsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', limitIncrementFunction: '', limitDecrementFunction: '', limitIncrementTrigger: '', limitDecrementTrigger: '', limitUpdateTrigger: '', limitCheckFunction: '', prefix: '', membershipType: '', entityTableId: '', actorTableId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.limitsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.limitsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.limitsModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.limitsModule.delete({ where: { id: '' } }).execute(); ``` ### `db.membershipTypesModule` @@ -2227,26 +2183,24 @@ CRUD operations for MembershipTypesModule records. | `schemaId` | UUID | Yes | | `tableId` | UUID | Yes | | `tableName` | String | Yes | -| `tableNameTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all membershipTypesModule records -const items = await db.membershipTypesModule.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, tableNameTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.membershipTypesModule.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }).execute(); // Get one by id -const item = await db.membershipTypesModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, tableNameTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.membershipTypesModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }).execute(); // Create -const created = await db.membershipTypesModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '', tableNameTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.membershipTypesModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.membershipTypesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.membershipTypesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.membershipTypesModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.membershipTypesModule.delete({ where: { id: '' } }).execute(); ``` ### `db.membershipsModule` @@ -2288,37 +2242,24 @@ CRUD operations for MembershipsModule records. | `entityIdsByMask` | String | Yes | | `entityIdsByPerm` | String | Yes | | `entityIdsFunction` | String | Yes | -| `membershipsTableNameTrgmSimilarity` | Float | Yes | -| `membersTableNameTrgmSimilarity` | Float | Yes | -| `membershipDefaultsTableNameTrgmSimilarity` | Float | Yes | -| `grantsTableNameTrgmSimilarity` | Float | Yes | -| `adminGrantsTableNameTrgmSimilarity` | Float | Yes | -| `ownerGrantsTableNameTrgmSimilarity` | Float | Yes | -| `prefixTrgmSimilarity` | Float | Yes | -| `actorMaskCheckTrgmSimilarity` | Float | Yes | -| `actorPermCheckTrgmSimilarity` | Float | Yes | -| `entityIdsByMaskTrgmSimilarity` | Float | Yes | -| `entityIdsByPermTrgmSimilarity` | Float | Yes | -| `entityIdsFunctionTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all membershipsModule records -const items = await db.membershipsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, membershipsTableId: true, membershipsTableName: true, membersTableId: true, membersTableName: true, membershipDefaultsTableId: true, membershipDefaultsTableName: true, grantsTableId: true, grantsTableName: true, actorTableId: true, limitsTableId: true, defaultLimitsTableId: true, permissionsTableId: true, defaultPermissionsTableId: true, sprtTableId: true, adminGrantsTableId: true, adminGrantsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, membershipType: true, entityTableId: true, entityTableOwnerId: true, prefix: true, actorMaskCheck: true, actorPermCheck: true, entityIdsByMask: true, entityIdsByPerm: true, entityIdsFunction: true, membershipsTableNameTrgmSimilarity: true, membersTableNameTrgmSimilarity: true, membershipDefaultsTableNameTrgmSimilarity: true, grantsTableNameTrgmSimilarity: true, adminGrantsTableNameTrgmSimilarity: true, ownerGrantsTableNameTrgmSimilarity: true, prefixTrgmSimilarity: true, actorMaskCheckTrgmSimilarity: true, actorPermCheckTrgmSimilarity: true, entityIdsByMaskTrgmSimilarity: true, entityIdsByPermTrgmSimilarity: true, entityIdsFunctionTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.membershipsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, membershipsTableId: true, membershipsTableName: true, membersTableId: true, membersTableName: true, membershipDefaultsTableId: true, membershipDefaultsTableName: true, grantsTableId: true, grantsTableName: true, actorTableId: true, limitsTableId: true, defaultLimitsTableId: true, permissionsTableId: true, defaultPermissionsTableId: true, sprtTableId: true, adminGrantsTableId: true, adminGrantsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, membershipType: true, entityTableId: true, entityTableOwnerId: true, prefix: true, actorMaskCheck: true, actorPermCheck: true, entityIdsByMask: true, entityIdsByPerm: true, entityIdsFunction: true } }).execute(); // Get one by id -const item = await db.membershipsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, membershipsTableId: true, membershipsTableName: true, membersTableId: true, membersTableName: true, membershipDefaultsTableId: true, membershipDefaultsTableName: true, grantsTableId: true, grantsTableName: true, actorTableId: true, limitsTableId: true, defaultLimitsTableId: true, permissionsTableId: true, defaultPermissionsTableId: true, sprtTableId: true, adminGrantsTableId: true, adminGrantsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, membershipType: true, entityTableId: true, entityTableOwnerId: true, prefix: true, actorMaskCheck: true, actorPermCheck: true, entityIdsByMask: true, entityIdsByPerm: true, entityIdsFunction: true, membershipsTableNameTrgmSimilarity: true, membersTableNameTrgmSimilarity: true, membershipDefaultsTableNameTrgmSimilarity: true, grantsTableNameTrgmSimilarity: true, adminGrantsTableNameTrgmSimilarity: true, ownerGrantsTableNameTrgmSimilarity: true, prefixTrgmSimilarity: true, actorMaskCheckTrgmSimilarity: true, actorPermCheckTrgmSimilarity: true, entityIdsByMaskTrgmSimilarity: true, entityIdsByPermTrgmSimilarity: true, entityIdsFunctionTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.membershipsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, membershipsTableId: true, membershipsTableName: true, membersTableId: true, membersTableName: true, membershipDefaultsTableId: true, membershipDefaultsTableName: true, grantsTableId: true, grantsTableName: true, actorTableId: true, limitsTableId: true, defaultLimitsTableId: true, permissionsTableId: true, defaultPermissionsTableId: true, sprtTableId: true, adminGrantsTableId: true, adminGrantsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, membershipType: true, entityTableId: true, entityTableOwnerId: true, prefix: true, actorMaskCheck: true, actorPermCheck: true, entityIdsByMask: true, entityIdsByPerm: true, entityIdsFunction: true } }).execute(); // Create -const created = await db.membershipsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', membershipsTableId: '', membershipsTableName: '', membersTableId: '', membersTableName: '', membershipDefaultsTableId: '', membershipDefaultsTableName: '', grantsTableId: '', grantsTableName: '', actorTableId: '', limitsTableId: '', defaultLimitsTableId: '', permissionsTableId: '', defaultPermissionsTableId: '', sprtTableId: '', adminGrantsTableId: '', adminGrantsTableName: '', ownerGrantsTableId: '', ownerGrantsTableName: '', membershipType: '', entityTableId: '', entityTableOwnerId: '', prefix: '', actorMaskCheck: '', actorPermCheck: '', entityIdsByMask: '', entityIdsByPerm: '', entityIdsFunction: '', membershipsTableNameTrgmSimilarity: '', membersTableNameTrgmSimilarity: '', membershipDefaultsTableNameTrgmSimilarity: '', grantsTableNameTrgmSimilarity: '', adminGrantsTableNameTrgmSimilarity: '', ownerGrantsTableNameTrgmSimilarity: '', prefixTrgmSimilarity: '', actorMaskCheckTrgmSimilarity: '', actorPermCheckTrgmSimilarity: '', entityIdsByMaskTrgmSimilarity: '', entityIdsByPermTrgmSimilarity: '', entityIdsFunctionTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.membershipsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', membershipsTableId: '', membershipsTableName: '', membersTableId: '', membersTableName: '', membershipDefaultsTableId: '', membershipDefaultsTableName: '', grantsTableId: '', grantsTableName: '', actorTableId: '', limitsTableId: '', defaultLimitsTableId: '', permissionsTableId: '', defaultPermissionsTableId: '', sprtTableId: '', adminGrantsTableId: '', adminGrantsTableName: '', ownerGrantsTableId: '', ownerGrantsTableName: '', membershipType: '', entityTableId: '', entityTableOwnerId: '', prefix: '', actorMaskCheck: '', actorPermCheck: '', entityIdsByMask: '', entityIdsByPerm: '', entityIdsFunction: '' }, select: { id: true } }).execute(); // Update -const updated = await db.membershipsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.membershipsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.membershipsModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.membershipsModule.delete({ where: { id: '' } }).execute(); ``` ### `db.permissionsModule` @@ -2346,32 +2287,24 @@ CRUD operations for PermissionsModule records. | `getMask` | String | Yes | | `getByMask` | String | Yes | | `getMaskByName` | String | Yes | -| `tableNameTrgmSimilarity` | Float | Yes | -| `defaultTableNameTrgmSimilarity` | Float | Yes | -| `prefixTrgmSimilarity` | Float | Yes | -| `getPaddedMaskTrgmSimilarity` | Float | Yes | -| `getMaskTrgmSimilarity` | Float | Yes | -| `getByMaskTrgmSimilarity` | Float | Yes | -| `getMaskByNameTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all permissionsModule records -const items = await db.permissionsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, bitlen: true, membershipType: true, entityTableId: true, actorTableId: true, prefix: true, getPaddedMask: true, getMask: true, getByMask: true, getMaskByName: true, tableNameTrgmSimilarity: true, defaultTableNameTrgmSimilarity: true, prefixTrgmSimilarity: true, getPaddedMaskTrgmSimilarity: true, getMaskTrgmSimilarity: true, getByMaskTrgmSimilarity: true, getMaskByNameTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.permissionsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, bitlen: true, membershipType: true, entityTableId: true, actorTableId: true, prefix: true, getPaddedMask: true, getMask: true, getByMask: true, getMaskByName: true } }).execute(); // Get one by id -const item = await db.permissionsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, bitlen: true, membershipType: true, entityTableId: true, actorTableId: true, prefix: true, getPaddedMask: true, getMask: true, getByMask: true, getMaskByName: true, tableNameTrgmSimilarity: true, defaultTableNameTrgmSimilarity: true, prefixTrgmSimilarity: true, getPaddedMaskTrgmSimilarity: true, getMaskTrgmSimilarity: true, getByMaskTrgmSimilarity: true, getMaskByNameTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.permissionsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, bitlen: true, membershipType: true, entityTableId: true, actorTableId: true, prefix: true, getPaddedMask: true, getMask: true, getByMask: true, getMaskByName: true } }).execute(); // Create -const created = await db.permissionsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', bitlen: '', membershipType: '', entityTableId: '', actorTableId: '', prefix: '', getPaddedMask: '', getMask: '', getByMask: '', getMaskByName: '', tableNameTrgmSimilarity: '', defaultTableNameTrgmSimilarity: '', prefixTrgmSimilarity: '', getPaddedMaskTrgmSimilarity: '', getMaskTrgmSimilarity: '', getByMaskTrgmSimilarity: '', getMaskByNameTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.permissionsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', bitlen: '', membershipType: '', entityTableId: '', actorTableId: '', prefix: '', getPaddedMask: '', getMask: '', getByMask: '', getMaskByName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.permissionsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.permissionsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.permissionsModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.permissionsModule.delete({ where: { id: '' } }).execute(); ``` ### `db.phoneNumbersModule` @@ -2389,26 +2322,24 @@ CRUD operations for PhoneNumbersModule records. | `tableId` | UUID | Yes | | `ownerTableId` | UUID | Yes | | `tableName` | String | Yes | -| `tableNameTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all phoneNumbersModule records -const items = await db.phoneNumbersModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, tableNameTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.phoneNumbersModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true } }).execute(); // Get one by id -const item = await db.phoneNumbersModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, tableNameTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.phoneNumbersModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true } }).execute(); // Create -const created = await db.phoneNumbersModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '', tableNameTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.phoneNumbersModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.phoneNumbersModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.phoneNumbersModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.phoneNumbersModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.phoneNumbersModule.delete({ where: { id: '' } }).execute(); ``` ### `db.profilesModule` @@ -2437,30 +2368,24 @@ CRUD operations for ProfilesModule records. | `permissionsTableId` | UUID | Yes | | `membershipsTableId` | UUID | Yes | | `prefix` | String | Yes | -| `tableNameTrgmSimilarity` | Float | Yes | -| `profilePermissionsTableNameTrgmSimilarity` | Float | Yes | -| `profileGrantsTableNameTrgmSimilarity` | Float | Yes | -| `profileDefinitionGrantsTableNameTrgmSimilarity` | Float | Yes | -| `prefixTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all profilesModule records -const items = await db.profilesModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, membershipType: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, prefix: true, tableNameTrgmSimilarity: true, profilePermissionsTableNameTrgmSimilarity: true, profileGrantsTableNameTrgmSimilarity: true, profileDefinitionGrantsTableNameTrgmSimilarity: true, prefixTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.profilesModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, membershipType: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, prefix: true } }).execute(); // Get one by id -const item = await db.profilesModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, membershipType: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, prefix: true, tableNameTrgmSimilarity: true, profilePermissionsTableNameTrgmSimilarity: true, profileGrantsTableNameTrgmSimilarity: true, profileDefinitionGrantsTableNameTrgmSimilarity: true, prefixTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.profilesModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, membershipType: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, prefix: true } }).execute(); // Create -const created = await db.profilesModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', profilePermissionsTableId: '', profilePermissionsTableName: '', profileGrantsTableId: '', profileGrantsTableName: '', profileDefinitionGrantsTableId: '', profileDefinitionGrantsTableName: '', membershipType: '', entityTableId: '', actorTableId: '', permissionsTableId: '', membershipsTableId: '', prefix: '', tableNameTrgmSimilarity: '', profilePermissionsTableNameTrgmSimilarity: '', profileGrantsTableNameTrgmSimilarity: '', profileDefinitionGrantsTableNameTrgmSimilarity: '', prefixTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.profilesModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', profilePermissionsTableId: '', profilePermissionsTableName: '', profileGrantsTableId: '', profileGrantsTableName: '', profileDefinitionGrantsTableId: '', profileDefinitionGrantsTableName: '', membershipType: '', entityTableId: '', actorTableId: '', permissionsTableId: '', membershipsTableId: '', prefix: '' }, select: { id: true } }).execute(); // Update -const updated = await db.profilesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.profilesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.profilesModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.profilesModule.delete({ where: { id: '' } }).execute(); ``` ### `db.secretsModule` @@ -2476,26 +2401,24 @@ CRUD operations for SecretsModule records. | `schemaId` | UUID | Yes | | `tableId` | UUID | Yes | | `tableName` | String | Yes | -| `tableNameTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all secretsModule records -const items = await db.secretsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, tableNameTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.secretsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }).execute(); // Get one by id -const item = await db.secretsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, tableNameTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.secretsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }).execute(); // Create -const created = await db.secretsModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '', tableNameTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.secretsModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.secretsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.secretsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.secretsModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.secretsModule.delete({ where: { id: '' } }).execute(); ``` ### `db.sessionsModule` @@ -2517,28 +2440,24 @@ CRUD operations for SessionsModule records. | `sessionsTable` | String | Yes | | `sessionCredentialsTable` | String | Yes | | `authSettingsTable` | String | Yes | -| `sessionsTableTrgmSimilarity` | Float | Yes | -| `sessionCredentialsTableTrgmSimilarity` | Float | Yes | -| `authSettingsTableTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all sessionsModule records -const items = await db.sessionsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, sessionsTableId: true, sessionCredentialsTableId: true, authSettingsTableId: true, usersTableId: true, sessionsDefaultExpiration: true, sessionsTable: true, sessionCredentialsTable: true, authSettingsTable: true, sessionsTableTrgmSimilarity: true, sessionCredentialsTableTrgmSimilarity: true, authSettingsTableTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.sessionsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, sessionsTableId: true, sessionCredentialsTableId: true, authSettingsTableId: true, usersTableId: true, sessionsDefaultExpiration: true, sessionsTable: true, sessionCredentialsTable: true, authSettingsTable: true } }).execute(); // Get one by id -const item = await db.sessionsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, sessionsTableId: true, sessionCredentialsTableId: true, authSettingsTableId: true, usersTableId: true, sessionsDefaultExpiration: true, sessionsTable: true, sessionCredentialsTable: true, authSettingsTable: true, sessionsTableTrgmSimilarity: true, sessionCredentialsTableTrgmSimilarity: true, authSettingsTableTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.sessionsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, sessionsTableId: true, sessionCredentialsTableId: true, authSettingsTableId: true, usersTableId: true, sessionsDefaultExpiration: true, sessionsTable: true, sessionCredentialsTable: true, authSettingsTable: true } }).execute(); // Create -const created = await db.sessionsModule.create({ data: { databaseId: '', schemaId: '', sessionsTableId: '', sessionCredentialsTableId: '', authSettingsTableId: '', usersTableId: '', sessionsDefaultExpiration: '', sessionsTable: '', sessionCredentialsTable: '', authSettingsTable: '', sessionsTableTrgmSimilarity: '', sessionCredentialsTableTrgmSimilarity: '', authSettingsTableTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.sessionsModule.create({ data: { databaseId: '', schemaId: '', sessionsTableId: '', sessionCredentialsTableId: '', authSettingsTableId: '', usersTableId: '', sessionsDefaultExpiration: '', sessionsTable: '', sessionCredentialsTable: '', authSettingsTable: '' }, select: { id: true } }).execute(); // Update -const updated = await db.sessionsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.sessionsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.sessionsModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.sessionsModule.delete({ where: { id: '' } }).execute(); ``` ### `db.userAuthModule` @@ -2575,41 +2494,24 @@ CRUD operations for UserAuthModule records. | `signInOneTimeTokenFunction` | String | Yes | | `oneTimeTokenFunction` | String | Yes | | `extendTokenExpires` | String | Yes | -| `auditsTableNameTrgmSimilarity` | Float | Yes | -| `signInFunctionTrgmSimilarity` | Float | Yes | -| `signUpFunctionTrgmSimilarity` | Float | Yes | -| `signOutFunctionTrgmSimilarity` | Float | Yes | -| `setPasswordFunctionTrgmSimilarity` | Float | Yes | -| `resetPasswordFunctionTrgmSimilarity` | Float | Yes | -| `forgotPasswordFunctionTrgmSimilarity` | Float | Yes | -| `sendVerificationEmailFunctionTrgmSimilarity` | Float | Yes | -| `verifyEmailFunctionTrgmSimilarity` | Float | Yes | -| `verifyPasswordFunctionTrgmSimilarity` | Float | Yes | -| `checkPasswordFunctionTrgmSimilarity` | Float | Yes | -| `sendAccountDeletionEmailFunctionTrgmSimilarity` | Float | Yes | -| `deleteAccountFunctionTrgmSimilarity` | Float | Yes | -| `signInOneTimeTokenFunctionTrgmSimilarity` | Float | Yes | -| `oneTimeTokenFunctionTrgmSimilarity` | Float | Yes | -| `extendTokenExpiresTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all userAuthModule records -const items = await db.userAuthModule.findMany({ select: { id: true, databaseId: true, schemaId: true, emailsTableId: true, usersTableId: true, secretsTableId: true, encryptedTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, auditsTableId: true, auditsTableName: true, signInFunction: true, signUpFunction: true, signOutFunction: true, setPasswordFunction: true, resetPasswordFunction: true, forgotPasswordFunction: true, sendVerificationEmailFunction: true, verifyEmailFunction: true, verifyPasswordFunction: true, checkPasswordFunction: true, sendAccountDeletionEmailFunction: true, deleteAccountFunction: true, signInOneTimeTokenFunction: true, oneTimeTokenFunction: true, extendTokenExpires: true, auditsTableNameTrgmSimilarity: true, signInFunctionTrgmSimilarity: true, signUpFunctionTrgmSimilarity: true, signOutFunctionTrgmSimilarity: true, setPasswordFunctionTrgmSimilarity: true, resetPasswordFunctionTrgmSimilarity: true, forgotPasswordFunctionTrgmSimilarity: true, sendVerificationEmailFunctionTrgmSimilarity: true, verifyEmailFunctionTrgmSimilarity: true, verifyPasswordFunctionTrgmSimilarity: true, checkPasswordFunctionTrgmSimilarity: true, sendAccountDeletionEmailFunctionTrgmSimilarity: true, deleteAccountFunctionTrgmSimilarity: true, signInOneTimeTokenFunctionTrgmSimilarity: true, oneTimeTokenFunctionTrgmSimilarity: true, extendTokenExpiresTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.userAuthModule.findMany({ select: { id: true, databaseId: true, schemaId: true, emailsTableId: true, usersTableId: true, secretsTableId: true, encryptedTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, auditsTableId: true, auditsTableName: true, signInFunction: true, signUpFunction: true, signOutFunction: true, setPasswordFunction: true, resetPasswordFunction: true, forgotPasswordFunction: true, sendVerificationEmailFunction: true, verifyEmailFunction: true, verifyPasswordFunction: true, checkPasswordFunction: true, sendAccountDeletionEmailFunction: true, deleteAccountFunction: true, signInOneTimeTokenFunction: true, oneTimeTokenFunction: true, extendTokenExpires: true } }).execute(); // Get one by id -const item = await db.userAuthModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, emailsTableId: true, usersTableId: true, secretsTableId: true, encryptedTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, auditsTableId: true, auditsTableName: true, signInFunction: true, signUpFunction: true, signOutFunction: true, setPasswordFunction: true, resetPasswordFunction: true, forgotPasswordFunction: true, sendVerificationEmailFunction: true, verifyEmailFunction: true, verifyPasswordFunction: true, checkPasswordFunction: true, sendAccountDeletionEmailFunction: true, deleteAccountFunction: true, signInOneTimeTokenFunction: true, oneTimeTokenFunction: true, extendTokenExpires: true, auditsTableNameTrgmSimilarity: true, signInFunctionTrgmSimilarity: true, signUpFunctionTrgmSimilarity: true, signOutFunctionTrgmSimilarity: true, setPasswordFunctionTrgmSimilarity: true, resetPasswordFunctionTrgmSimilarity: true, forgotPasswordFunctionTrgmSimilarity: true, sendVerificationEmailFunctionTrgmSimilarity: true, verifyEmailFunctionTrgmSimilarity: true, verifyPasswordFunctionTrgmSimilarity: true, checkPasswordFunctionTrgmSimilarity: true, sendAccountDeletionEmailFunctionTrgmSimilarity: true, deleteAccountFunctionTrgmSimilarity: true, signInOneTimeTokenFunctionTrgmSimilarity: true, oneTimeTokenFunctionTrgmSimilarity: true, extendTokenExpiresTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.userAuthModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, emailsTableId: true, usersTableId: true, secretsTableId: true, encryptedTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, auditsTableId: true, auditsTableName: true, signInFunction: true, signUpFunction: true, signOutFunction: true, setPasswordFunction: true, resetPasswordFunction: true, forgotPasswordFunction: true, sendVerificationEmailFunction: true, verifyEmailFunction: true, verifyPasswordFunction: true, checkPasswordFunction: true, sendAccountDeletionEmailFunction: true, deleteAccountFunction: true, signInOneTimeTokenFunction: true, oneTimeTokenFunction: true, extendTokenExpires: true } }).execute(); // Create -const created = await db.userAuthModule.create({ data: { databaseId: '', schemaId: '', emailsTableId: '', usersTableId: '', secretsTableId: '', encryptedTableId: '', sessionsTableId: '', sessionCredentialsTableId: '', auditsTableId: '', auditsTableName: '', signInFunction: '', signUpFunction: '', signOutFunction: '', setPasswordFunction: '', resetPasswordFunction: '', forgotPasswordFunction: '', sendVerificationEmailFunction: '', verifyEmailFunction: '', verifyPasswordFunction: '', checkPasswordFunction: '', sendAccountDeletionEmailFunction: '', deleteAccountFunction: '', signInOneTimeTokenFunction: '', oneTimeTokenFunction: '', extendTokenExpires: '', auditsTableNameTrgmSimilarity: '', signInFunctionTrgmSimilarity: '', signUpFunctionTrgmSimilarity: '', signOutFunctionTrgmSimilarity: '', setPasswordFunctionTrgmSimilarity: '', resetPasswordFunctionTrgmSimilarity: '', forgotPasswordFunctionTrgmSimilarity: '', sendVerificationEmailFunctionTrgmSimilarity: '', verifyEmailFunctionTrgmSimilarity: '', verifyPasswordFunctionTrgmSimilarity: '', checkPasswordFunctionTrgmSimilarity: '', sendAccountDeletionEmailFunctionTrgmSimilarity: '', deleteAccountFunctionTrgmSimilarity: '', signInOneTimeTokenFunctionTrgmSimilarity: '', oneTimeTokenFunctionTrgmSimilarity: '', extendTokenExpiresTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.userAuthModule.create({ data: { databaseId: '', schemaId: '', emailsTableId: '', usersTableId: '', secretsTableId: '', encryptedTableId: '', sessionsTableId: '', sessionCredentialsTableId: '', auditsTableId: '', auditsTableName: '', signInFunction: '', signUpFunction: '', signOutFunction: '', setPasswordFunction: '', resetPasswordFunction: '', forgotPasswordFunction: '', sendVerificationEmailFunction: '', verifyEmailFunction: '', verifyPasswordFunction: '', checkPasswordFunction: '', sendAccountDeletionEmailFunction: '', deleteAccountFunction: '', signInOneTimeTokenFunction: '', oneTimeTokenFunction: '', extendTokenExpires: '' }, select: { id: true } }).execute(); // Update -const updated = await db.userAuthModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.userAuthModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.userAuthModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.userAuthModule.delete({ where: { id: '' } }).execute(); ``` ### `db.usersModule` @@ -2627,63 +2529,117 @@ CRUD operations for UsersModule records. | `tableName` | String | Yes | | `typeTableId` | UUID | Yes | | `typeTableName` | String | Yes | -| `tableNameTrgmSimilarity` | Float | Yes | -| `typeTableNameTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all usersModule records -const items = await db.usersModule.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, typeTableId: true, typeTableName: true, tableNameTrgmSimilarity: true, typeTableNameTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.usersModule.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, typeTableId: true, typeTableName: true } }).execute(); // Get one by id -const item = await db.usersModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, typeTableId: true, typeTableName: true, tableNameTrgmSimilarity: true, typeTableNameTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.usersModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, typeTableId: true, typeTableName: true } }).execute(); // Create -const created = await db.usersModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '', typeTableId: '', typeTableName: '', tableNameTrgmSimilarity: '', typeTableNameTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.usersModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '', typeTableId: '', typeTableName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.usersModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.usersModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.usersModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.usersModule.delete({ where: { id: '' } }).execute(); ``` -### `db.uuidModule` +### `db.blueprint` -CRUD operations for UuidModule records. +CRUD operations for Blueprint records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | +| `ownerId` | UUID | Yes | | `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `uuidFunction` | String | Yes | -| `uuidSeed` | String | Yes | -| `uuidFunctionTrgmSimilarity` | Float | Yes | -| `uuidSeedTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | +| `name` | String | Yes | +| `displayName` | String | Yes | +| `description` | String | Yes | +| `definition` | JSON | Yes | +| `templateId` | UUID | Yes | +| `status` | String | Yes | +| `constructedAt` | Datetime | Yes | +| `errorDetails` | String | Yes | +| `refMap` | JSON | Yes | +| `constructedDefinition` | JSON | Yes | +| `definitionHash` | UUID | Yes | +| `tableHashes` | JSON | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all blueprint records +const items = await db.blueprint.findMany({ select: { id: true, ownerId: true, databaseId: true, name: true, displayName: true, description: true, definition: true, templateId: true, status: true, constructedAt: true, errorDetails: true, refMap: true, constructedDefinition: true, definitionHash: true, tableHashes: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.blueprint.findOne({ id: '', select: { id: true, ownerId: true, databaseId: true, name: true, displayName: true, description: true, definition: true, templateId: true, status: true, constructedAt: true, errorDetails: true, refMap: true, constructedDefinition: true, definitionHash: true, tableHashes: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.blueprint.create({ data: { ownerId: '', databaseId: '', name: '', displayName: '', description: '', definition: '', templateId: '', status: '', constructedAt: '', errorDetails: '', refMap: '', constructedDefinition: '', definitionHash: '', tableHashes: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.blueprint.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.blueprint.delete({ where: { id: '' } }).execute(); +``` + +### `db.blueprintTemplate` + +CRUD operations for BlueprintTemplate records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `version` | String | Yes | +| `displayName` | String | Yes | +| `description` | String | Yes | +| `ownerId` | UUID | Yes | +| `visibility` | String | Yes | +| `categories` | String | Yes | +| `tags` | String | Yes | +| `definition` | JSON | Yes | +| `definitionSchemaVersion` | String | Yes | +| `source` | String | Yes | +| `complexity` | String | Yes | +| `copyCount` | Int | Yes | +| `forkCount` | Int | Yes | +| `forkedFromId` | UUID | Yes | +| `definitionHash` | UUID | Yes | +| `tableHashes` | JSON | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | **Operations:** ```typescript -// List all uuidModule records -const items = await db.uuidModule.findMany({ select: { id: true, databaseId: true, schemaId: true, uuidFunction: true, uuidSeed: true, uuidFunctionTrgmSimilarity: true, uuidSeedTrgmSimilarity: true, searchScore: true } }).execute(); +// List all blueprintTemplate records +const items = await db.blueprintTemplate.findMany({ select: { id: true, name: true, version: true, displayName: true, description: true, ownerId: true, visibility: true, categories: true, tags: true, definition: true, definitionSchemaVersion: true, source: true, complexity: true, copyCount: true, forkCount: true, forkedFromId: true, definitionHash: true, tableHashes: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.uuidModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, uuidFunction: true, uuidSeed: true, uuidFunctionTrgmSimilarity: true, uuidSeedTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.blueprintTemplate.findOne({ id: '', select: { id: true, name: true, version: true, displayName: true, description: true, ownerId: true, visibility: true, categories: true, tags: true, definition: true, definitionSchemaVersion: true, source: true, complexity: true, copyCount: true, forkCount: true, forkedFromId: true, definitionHash: true, tableHashes: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.uuidModule.create({ data: { databaseId: '', schemaId: '', uuidFunction: '', uuidSeed: '', uuidFunctionTrgmSimilarity: '', uuidSeedTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.blueprintTemplate.create({ data: { name: '', version: '', displayName: '', description: '', ownerId: '', visibility: '', categories: '', tags: '', definition: '', definitionSchemaVersion: '', source: '', complexity: '', copyCount: '', forkCount: '', forkedFromId: '', definitionHash: '', tableHashes: '' }, select: { id: true } }).execute(); // Update -const updated = await db.uuidModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.blueprintTemplate.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.uuidModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.blueprintTemplate.delete({ where: { id: '' } }).execute(); ``` ### `db.databaseProvisionModule` @@ -2708,30 +2664,24 @@ CRUD operations for DatabaseProvisionModule records. | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | | `completedAt` | Datetime | Yes | -| `databaseNameTrgmSimilarity` | Float | Yes | -| `subdomainTrgmSimilarity` | Float | Yes | -| `domainTrgmSimilarity` | Float | Yes | -| `statusTrgmSimilarity` | Float | Yes | -| `errorMessageTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all databaseProvisionModule records -const items = await db.databaseProvisionModule.findMany({ select: { id: true, databaseName: true, ownerId: true, subdomain: true, domain: true, modules: true, options: true, bootstrapUser: true, status: true, errorMessage: true, databaseId: true, createdAt: true, updatedAt: true, completedAt: true, databaseNameTrgmSimilarity: true, subdomainTrgmSimilarity: true, domainTrgmSimilarity: true, statusTrgmSimilarity: true, errorMessageTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.databaseProvisionModule.findMany({ select: { id: true, databaseName: true, ownerId: true, subdomain: true, domain: true, modules: true, options: true, bootstrapUser: true, status: true, errorMessage: true, databaseId: true, createdAt: true, updatedAt: true, completedAt: true } }).execute(); // Get one by id -const item = await db.databaseProvisionModule.findOne({ id: '', select: { id: true, databaseName: true, ownerId: true, subdomain: true, domain: true, modules: true, options: true, bootstrapUser: true, status: true, errorMessage: true, databaseId: true, createdAt: true, updatedAt: true, completedAt: true, databaseNameTrgmSimilarity: true, subdomainTrgmSimilarity: true, domainTrgmSimilarity: true, statusTrgmSimilarity: true, errorMessageTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.databaseProvisionModule.findOne({ id: '', select: { id: true, databaseName: true, ownerId: true, subdomain: true, domain: true, modules: true, options: true, bootstrapUser: true, status: true, errorMessage: true, databaseId: true, createdAt: true, updatedAt: true, completedAt: true } }).execute(); // Create -const created = await db.databaseProvisionModule.create({ data: { databaseName: '', ownerId: '', subdomain: '', domain: '', modules: '', options: '', bootstrapUser: '', status: '', errorMessage: '', databaseId: '', completedAt: '', databaseNameTrgmSimilarity: '', subdomainTrgmSimilarity: '', domainTrgmSimilarity: '', statusTrgmSimilarity: '', errorMessageTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.databaseProvisionModule.create({ data: { databaseName: '', ownerId: '', subdomain: '', domain: '', modules: '', options: '', bootstrapUser: '', status: '', errorMessage: '', databaseId: '', completedAt: '' }, select: { id: true } }).execute(); // Update -const updated = await db.databaseProvisionModule.update({ where: { id: '' }, data: { databaseName: '' }, select: { id: true } }).execute(); +const updated = await db.databaseProvisionModule.update({ where: { id: '' }, data: { databaseName: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.databaseProvisionModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.databaseProvisionModule.delete({ where: { id: '' } }).execute(); ``` ### `db.appAdminGrant` @@ -2756,16 +2706,16 @@ CRUD operations for AppAdminGrant records. const items = await db.appAdminGrant.findMany({ select: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.appAdminGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.appAdminGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.appAdminGrant.create({ data: { isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute(); +const created = await db.appAdminGrant.create({ data: { isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appAdminGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); +const updated = await db.appAdminGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appAdminGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.appAdminGrant.delete({ where: { id: '' } }).execute(); ``` ### `db.appOwnerGrant` @@ -2790,16 +2740,16 @@ CRUD operations for AppOwnerGrant records. const items = await db.appOwnerGrant.findMany({ select: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.appOwnerGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.appOwnerGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.appOwnerGrant.create({ data: { isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute(); +const created = await db.appOwnerGrant.create({ data: { isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appOwnerGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); +const updated = await db.appOwnerGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appOwnerGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.appOwnerGrant.delete({ where: { id: '' } }).execute(); ``` ### `db.appGrant` @@ -2825,16 +2775,16 @@ CRUD operations for AppGrant records. const items = await db.appGrant.findMany({ select: { id: true, permissions: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.appGrant.findOne({ id: '', select: { id: true, permissions: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.appGrant.findOne({ id: '', select: { id: true, permissions: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.appGrant.create({ data: { permissions: '', isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute(); +const created = await db.appGrant.create({ data: { permissions: '', isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appGrant.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); +const updated = await db.appGrant.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.appGrant.delete({ where: { id: '' } }).execute(); ``` ### `db.orgMembership` @@ -2869,16 +2819,16 @@ CRUD operations for OrgMembership records. const items = await db.orgMembership.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, profileId: true } }).execute(); // Get one by id -const item = await db.orgMembership.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, profileId: true } }).execute(); +const item = await db.orgMembership.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, profileId: true } }).execute(); // Create -const created = await db.orgMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '', profileId: '' }, select: { id: true } }).execute(); +const created = await db.orgMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '', profileId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); +const updated = await db.orgMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgMembership.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgMembership.delete({ where: { id: '' } }).execute(); ``` ### `db.orgMember` @@ -2901,16 +2851,16 @@ CRUD operations for OrgMember records. const items = await db.orgMember.findMany({ select: { id: true, isAdmin: true, actorId: true, entityId: true } }).execute(); // Get one by id -const item = await db.orgMember.findOne({ id: '', select: { id: true, isAdmin: true, actorId: true, entityId: true } }).execute(); +const item = await db.orgMember.findOne({ id: '', select: { id: true, isAdmin: true, actorId: true, entityId: true } }).execute(); // Create -const created = await db.orgMember.create({ data: { isAdmin: '', actorId: '', entityId: '' }, select: { id: true } }).execute(); +const created = await db.orgMember.create({ data: { isAdmin: '', actorId: '', entityId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgMember.update({ where: { id: '' }, data: { isAdmin: '' }, select: { id: true } }).execute(); +const updated = await db.orgMember.update({ where: { id: '' }, data: { isAdmin: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgMember.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgMember.delete({ where: { id: '' } }).execute(); ``` ### `db.orgAdminGrant` @@ -2936,16 +2886,16 @@ CRUD operations for OrgAdminGrant records. const items = await db.orgAdminGrant.findMany({ select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.orgAdminGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.orgAdminGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.orgAdminGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); +const created = await db.orgAdminGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgAdminGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); +const updated = await db.orgAdminGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgAdminGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgAdminGrant.delete({ where: { id: '' } }).execute(); ``` ### `db.orgOwnerGrant` @@ -2971,16 +2921,16 @@ CRUD operations for OrgOwnerGrant records. const items = await db.orgOwnerGrant.findMany({ select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.orgOwnerGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.orgOwnerGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.orgOwnerGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); +const created = await db.orgOwnerGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgOwnerGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); +const updated = await db.orgOwnerGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgOwnerGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgOwnerGrant.delete({ where: { id: '' } }).execute(); ``` ### `db.orgGrant` @@ -3007,16 +2957,16 @@ CRUD operations for OrgGrant records. const items = await db.orgGrant.findMany({ select: { id: true, permissions: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.orgGrant.findOne({ id: '', select: { id: true, permissions: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.orgGrant.findOne({ id: '', select: { id: true, permissions: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.orgGrant.create({ data: { permissions: '', isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); +const created = await db.orgGrant.create({ data: { permissions: '', isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgGrant.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); +const updated = await db.orgGrant.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgGrant.delete({ where: { id: '' } }).execute(); ``` ### `db.orgChartEdge` @@ -3035,26 +2985,24 @@ CRUD operations for OrgChartEdge records. | `parentId` | UUID | Yes | | `positionTitle` | String | Yes | | `positionLevel` | Int | Yes | -| `positionTitleTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all orgChartEdge records -const items = await db.orgChartEdge.findMany({ select: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true, positionTitleTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.orgChartEdge.findMany({ select: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true } }).execute(); // Get one by id -const item = await db.orgChartEdge.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true, positionTitleTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.orgChartEdge.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true } }).execute(); // Create -const created = await db.orgChartEdge.create({ data: { entityId: '', childId: '', parentId: '', positionTitle: '', positionLevel: '', positionTitleTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.orgChartEdge.create({ data: { entityId: '', childId: '', parentId: '', positionTitle: '', positionLevel: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgChartEdge.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); +const updated = await db.orgChartEdge.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgChartEdge.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgChartEdge.delete({ where: { id: '' } }).execute(); ``` ### `db.orgChartEdgeGrant` @@ -3074,26 +3022,55 @@ CRUD operations for OrgChartEdgeGrant records. | `positionTitle` | String | Yes | | `positionLevel` | Int | Yes | | `createdAt` | Datetime | No | -| `positionTitleTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all orgChartEdgeGrant records -const items = await db.orgChartEdgeGrant.findMany({ select: { id: true, entityId: true, childId: true, parentId: true, grantorId: true, isGrant: true, positionTitle: true, positionLevel: true, createdAt: true, positionTitleTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.orgChartEdgeGrant.findMany({ select: { id: true, entityId: true, childId: true, parentId: true, grantorId: true, isGrant: true, positionTitle: true, positionLevel: true, createdAt: true } }).execute(); + +// Get one by id +const item = await db.orgChartEdgeGrant.findOne({ id: '', select: { id: true, entityId: true, childId: true, parentId: true, grantorId: true, isGrant: true, positionTitle: true, positionLevel: true, createdAt: true } }).execute(); + +// Create +const created = await db.orgChartEdgeGrant.create({ data: { entityId: '', childId: '', parentId: '', grantorId: '', isGrant: '', positionTitle: '', positionLevel: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgChartEdgeGrant.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgChartEdgeGrant.delete({ where: { id: '' } }).execute(); +``` + +### `db.orgPermissionDefault` + +CRUD operations for OrgPermissionDefault records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `permissions` | BitString | Yes | +| `entityId` | UUID | Yes | + +**Operations:** + +```typescript +// List all orgPermissionDefault records +const items = await db.orgPermissionDefault.findMany({ select: { id: true, permissions: true, entityId: true } }).execute(); // Get one by id -const item = await db.orgChartEdgeGrant.findOne({ id: '', select: { id: true, entityId: true, childId: true, parentId: true, grantorId: true, isGrant: true, positionTitle: true, positionLevel: true, createdAt: true, positionTitleTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.orgPermissionDefault.findOne({ id: '', select: { id: true, permissions: true, entityId: true } }).execute(); // Create -const created = await db.orgChartEdgeGrant.create({ data: { entityId: '', childId: '', parentId: '', grantorId: '', isGrant: '', positionTitle: '', positionLevel: '', positionTitleTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.orgPermissionDefault.create({ data: { permissions: '', entityId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgChartEdgeGrant.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); +const updated = await db.orgPermissionDefault.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgChartEdgeGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgPermissionDefault.delete({ where: { id: '' } }).execute(); ``` ### `db.appLimit` @@ -3117,16 +3094,16 @@ CRUD operations for AppLimit records. const items = await db.appLimit.findMany({ select: { id: true, name: true, actorId: true, num: true, max: true } }).execute(); // Get one by id -const item = await db.appLimit.findOne({ id: '', select: { id: true, name: true, actorId: true, num: true, max: true } }).execute(); +const item = await db.appLimit.findOne({ id: '', select: { id: true, name: true, actorId: true, num: true, max: true } }).execute(); // Create -const created = await db.appLimit.create({ data: { name: '', actorId: '', num: '', max: '' }, select: { id: true } }).execute(); +const created = await db.appLimit.create({ data: { name: '', actorId: '', num: '', max: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appLimit.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.appLimit.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appLimit.delete({ where: { id: '' } }).execute(); +const deleted = await db.appLimit.delete({ where: { id: '' } }).execute(); ``` ### `db.orgLimit` @@ -3151,16 +3128,16 @@ CRUD operations for OrgLimit records. const items = await db.orgLimit.findMany({ select: { id: true, name: true, actorId: true, num: true, max: true, entityId: true } }).execute(); // Get one by id -const item = await db.orgLimit.findOne({ id: '', select: { id: true, name: true, actorId: true, num: true, max: true, entityId: true } }).execute(); +const item = await db.orgLimit.findOne({ id: '', select: { id: true, name: true, actorId: true, num: true, max: true, entityId: true } }).execute(); // Create -const created = await db.orgLimit.create({ data: { name: '', actorId: '', num: '', max: '', entityId: '' }, select: { id: true } }).execute(); +const created = await db.orgLimit.create({ data: { name: '', actorId: '', num: '', max: '', entityId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgLimit.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.orgLimit.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgLimit.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgLimit.delete({ where: { id: '' } }).execute(); ``` ### `db.appStep` @@ -3185,16 +3162,16 @@ CRUD operations for AppStep records. const items = await db.appStep.findMany({ select: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.appStep.findOne({ id: '', select: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.appStep.findOne({ id: '', select: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.appStep.create({ data: { actorId: '', name: '', count: '' }, select: { id: true } }).execute(); +const created = await db.appStep.create({ data: { actorId: '', name: '', count: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appStep.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); +const updated = await db.appStep.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appStep.delete({ where: { id: '' } }).execute(); +const deleted = await db.appStep.delete({ where: { id: '' } }).execute(); ``` ### `db.appAchievement` @@ -3219,444 +3196,511 @@ CRUD operations for AppAchievement records. const items = await db.appAchievement.findMany({ select: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.appAchievement.findOne({ id: '', select: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.appAchievement.findOne({ id: '', select: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.appAchievement.create({ data: { actorId: '', name: '', count: '' }, select: { id: true } }).execute(); +const created = await db.appAchievement.create({ data: { actorId: '', name: '', count: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appAchievement.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); +const updated = await db.appAchievement.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appAchievement.delete({ where: { id: '' } }).execute(); +const deleted = await db.appAchievement.delete({ where: { id: '' } }).execute(); ``` -### `db.invite` +### `db.appLevel` -CRUD operations for Invite records. +CRUD operations for AppLevel records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `email` | ConstructiveInternalTypeEmail | Yes | -| `senderId` | UUID | Yes | -| `inviteToken` | String | Yes | -| `inviteValid` | Boolean | Yes | -| `inviteLimit` | Int | Yes | -| `inviteCount` | Int | Yes | -| `multiple` | Boolean | Yes | -| `data` | JSON | Yes | -| `expiresAt` | Datetime | Yes | +| `name` | String | Yes | +| `description` | String | Yes | +| `image` | ConstructiveInternalTypeImage | Yes | +| `ownerId` | UUID | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `inviteTokenTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript -// List all invite records -const items = await db.invite.findMany({ select: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true, inviteTokenTrgmSimilarity: true, searchScore: true } }).execute(); +// List all appLevel records +const items = await db.appLevel.findMany({ select: { id: true, name: true, description: true, image: true, ownerId: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.invite.findOne({ id: '', select: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true, inviteTokenTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.appLevel.findOne({ id: '', select: { id: true, name: true, description: true, image: true, ownerId: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.invite.create({ data: { email: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '', inviteTokenTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.appLevel.create({ data: { name: '', description: '', image: '', ownerId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.invite.update({ where: { id: '' }, data: { email: '' }, select: { id: true } }).execute(); +const updated = await db.appLevel.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.invite.delete({ where: { id: '' } }).execute(); +const deleted = await db.appLevel.delete({ where: { id: '' } }).execute(); ``` -### `db.claimedInvite` +### `db.email` -CRUD operations for ClaimedInvite records. +CRUD operations for Email records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `data` | JSON | Yes | -| `senderId` | UUID | Yes | -| `receiverId` | UUID | Yes | +| `ownerId` | UUID | Yes | +| `email` | ConstructiveInternalTypeEmail | Yes | +| `isVerified` | Boolean | Yes | +| `isPrimary` | Boolean | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | **Operations:** ```typescript -// List all claimedInvite records -const items = await db.claimedInvite.findMany({ select: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true } }).execute(); +// List all email records +const items = await db.email.findMany({ select: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.claimedInvite.findOne({ id: '', select: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.email.findOne({ id: '', select: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.claimedInvite.create({ data: { data: '', senderId: '', receiverId: '' }, select: { id: true } }).execute(); +const created = await db.email.create({ data: { ownerId: '', email: '', isVerified: '', isPrimary: '' }, select: { id: true } }).execute(); // Update -const updated = await db.claimedInvite.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); +const updated = await db.email.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.claimedInvite.delete({ where: { id: '' } }).execute(); +const deleted = await db.email.delete({ where: { id: '' } }).execute(); ``` -### `db.orgInvite` +### `db.phoneNumber` -CRUD operations for OrgInvite records. +CRUD operations for PhoneNumber records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `email` | ConstructiveInternalTypeEmail | Yes | -| `senderId` | UUID | Yes | -| `receiverId` | UUID | Yes | -| `inviteToken` | String | Yes | -| `inviteValid` | Boolean | Yes | -| `inviteLimit` | Int | Yes | -| `inviteCount` | Int | Yes | -| `multiple` | Boolean | Yes | -| `data` | JSON | Yes | -| `expiresAt` | Datetime | Yes | +| `ownerId` | UUID | Yes | +| `cc` | String | Yes | +| `number` | String | Yes | +| `isVerified` | Boolean | Yes | +| `isPrimary` | Boolean | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `entityId` | UUID | Yes | -| `inviteTokenTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript -// List all orgInvite records -const items = await db.orgInvite.findMany({ select: { id: true, email: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true, inviteTokenTrgmSimilarity: true, searchScore: true } }).execute(); +// List all phoneNumber records +const items = await db.phoneNumber.findMany({ select: { id: true, ownerId: true, cc: true, number: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.orgInvite.findOne({ id: '', select: { id: true, email: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true, inviteTokenTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.phoneNumber.findOne({ id: '', select: { id: true, ownerId: true, cc: true, number: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.orgInvite.create({ data: { email: '', senderId: '', receiverId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '', entityId: '', inviteTokenTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.phoneNumber.create({ data: { ownerId: '', cc: '', number: '', isVerified: '', isPrimary: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgInvite.update({ where: { id: '' }, data: { email: '' }, select: { id: true } }).execute(); +const updated = await db.phoneNumber.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgInvite.delete({ where: { id: '' } }).execute(); +const deleted = await db.phoneNumber.delete({ where: { id: '' } }).execute(); ``` -### `db.orgClaimedInvite` +### `db.cryptoAddress` -CRUD operations for OrgClaimedInvite records. +CRUD operations for CryptoAddress records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `data` | JSON | Yes | -| `senderId` | UUID | Yes | -| `receiverId` | UUID | Yes | +| `ownerId` | UUID | Yes | +| `address` | String | Yes | +| `isVerified` | Boolean | Yes | +| `isPrimary` | Boolean | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `entityId` | UUID | Yes | **Operations:** ```typescript -// List all orgClaimedInvite records -const items = await db.orgClaimedInvite.findMany({ select: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true, entityId: true } }).execute(); +// List all cryptoAddress records +const items = await db.cryptoAddress.findMany({ select: { id: true, ownerId: true, address: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.orgClaimedInvite.findOne({ id: '', select: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true, entityId: true } }).execute(); +const item = await db.cryptoAddress.findOne({ id: '', select: { id: true, ownerId: true, address: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.orgClaimedInvite.create({ data: { data: '', senderId: '', receiverId: '', entityId: '' }, select: { id: true } }).execute(); +const created = await db.cryptoAddress.create({ data: { ownerId: '', address: '', isVerified: '', isPrimary: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgClaimedInvite.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); +const updated = await db.cryptoAddress.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgClaimedInvite.delete({ where: { id: '' } }).execute(); +const deleted = await db.cryptoAddress.delete({ where: { id: '' } }).execute(); ``` -### `db.ref` +### `db.connectedAccount` -CRUD operations for Ref records. +CRUD operations for ConnectedAccount records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `name` | String | Yes | -| `databaseId` | UUID | Yes | -| `storeId` | UUID | Yes | -| `commitId` | UUID | Yes | -| `nameTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | +| `ownerId` | UUID | Yes | +| `service` | String | Yes | +| `identifier` | String | Yes | +| `details` | JSON | Yes | +| `isVerified` | Boolean | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | **Operations:** ```typescript -// List all ref records -const items = await db.ref.findMany({ select: { id: true, name: true, databaseId: true, storeId: true, commitId: true, nameTrgmSimilarity: true, searchScore: true } }).execute(); +// List all connectedAccount records +const items = await db.connectedAccount.findMany({ select: { id: true, ownerId: true, service: true, identifier: true, details: true, isVerified: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.ref.findOne({ id: '', select: { id: true, name: true, databaseId: true, storeId: true, commitId: true, nameTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.connectedAccount.findOne({ id: '', select: { id: true, ownerId: true, service: true, identifier: true, details: true, isVerified: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.ref.create({ data: { name: '', databaseId: '', storeId: '', commitId: '', nameTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.connectedAccount.create({ data: { ownerId: '', service: '', identifier: '', details: '', isVerified: '' }, select: { id: true } }).execute(); // Update -const updated = await db.ref.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.connectedAccount.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.ref.delete({ where: { id: '' } }).execute(); +const deleted = await db.connectedAccount.delete({ where: { id: '' } }).execute(); ``` -### `db.store` +### `db.invite` -CRUD operations for Store records. +CRUD operations for Invite records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `name` | String | Yes | -| `databaseId` | UUID | Yes | -| `hash` | UUID | Yes | +| `email` | ConstructiveInternalTypeEmail | Yes | +| `senderId` | UUID | Yes | +| `inviteToken` | String | Yes | +| `inviteValid` | Boolean | Yes | +| `inviteLimit` | Int | Yes | +| `inviteCount` | Int | Yes | +| `multiple` | Boolean | Yes | +| `data` | JSON | Yes | +| `expiresAt` | Datetime | Yes | | `createdAt` | Datetime | No | -| `nameTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | +| `updatedAt` | Datetime | No | **Operations:** ```typescript -// List all store records -const items = await db.store.findMany({ select: { id: true, name: true, databaseId: true, hash: true, createdAt: true, nameTrgmSimilarity: true, searchScore: true } }).execute(); +// List all invite records +const items = await db.invite.findMany({ select: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.store.findOne({ id: '', select: { id: true, name: true, databaseId: true, hash: true, createdAt: true, nameTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.invite.findOne({ id: '', select: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.store.create({ data: { name: '', databaseId: '', hash: '', nameTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.invite.create({ data: { email: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '' }, select: { id: true } }).execute(); // Update -const updated = await db.store.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.invite.update({ where: { id: '' }, data: { email: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.store.delete({ where: { id: '' } }).execute(); +const deleted = await db.invite.delete({ where: { id: '' } }).execute(); ``` -### `db.appPermissionDefault` +### `db.claimedInvite` -CRUD operations for AppPermissionDefault records. +CRUD operations for ClaimedInvite records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `permissions` | BitString | Yes | +| `data` | JSON | Yes | +| `senderId` | UUID | Yes | +| `receiverId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | **Operations:** ```typescript -// List all appPermissionDefault records -const items = await db.appPermissionDefault.findMany({ select: { id: true, permissions: true } }).execute(); +// List all claimedInvite records +const items = await db.claimedInvite.findMany({ select: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.appPermissionDefault.findOne({ id: '', select: { id: true, permissions: true } }).execute(); +const item = await db.claimedInvite.findOne({ id: '', select: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.appPermissionDefault.create({ data: { permissions: '' }, select: { id: true } }).execute(); +const created = await db.claimedInvite.create({ data: { data: '', senderId: '', receiverId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appPermissionDefault.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); +const updated = await db.claimedInvite.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appPermissionDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.claimedInvite.delete({ where: { id: '' } }).execute(); ``` -### `db.cryptoAddress` +### `db.orgInvite` -CRUD operations for CryptoAddress records. +CRUD operations for OrgInvite records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `ownerId` | UUID | Yes | -| `address` | String | Yes | -| `isVerified` | Boolean | Yes | -| `isPrimary` | Boolean | Yes | +| `email` | ConstructiveInternalTypeEmail | Yes | +| `senderId` | UUID | Yes | +| `receiverId` | UUID | Yes | +| `inviteToken` | String | Yes | +| `inviteValid` | Boolean | Yes | +| `inviteLimit` | Int | Yes | +| `inviteCount` | Int | Yes | +| `multiple` | Boolean | Yes | +| `data` | JSON | Yes | +| `expiresAt` | Datetime | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `addressTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | +| `entityId` | UUID | Yes | **Operations:** ```typescript -// List all cryptoAddress records -const items = await db.cryptoAddress.findMany({ select: { id: true, ownerId: true, address: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true, addressTrgmSimilarity: true, searchScore: true } }).execute(); +// List all orgInvite records +const items = await db.orgInvite.findMany({ select: { id: true, email: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true } }).execute(); // Get one by id -const item = await db.cryptoAddress.findOne({ id: '', select: { id: true, ownerId: true, address: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true, addressTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.orgInvite.findOne({ id: '', select: { id: true, email: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true } }).execute(); // Create -const created = await db.cryptoAddress.create({ data: { ownerId: '', address: '', isVerified: '', isPrimary: '', addressTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.orgInvite.create({ data: { email: '', senderId: '', receiverId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '', entityId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.cryptoAddress.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); +const updated = await db.orgInvite.update({ where: { id: '' }, data: { email: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.cryptoAddress.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgInvite.delete({ where: { id: '' } }).execute(); ``` -### `db.roleType` +### `db.orgClaimedInvite` -CRUD operations for RoleType records. +CRUD operations for OrgClaimedInvite records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `id` | Int | No | -| `name` | String | Yes | +| `id` | UUID | No | +| `data` | JSON | Yes | +| `senderId` | UUID | Yes | +| `receiverId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `entityId` | UUID | Yes | **Operations:** ```typescript -// List all roleType records -const items = await db.roleType.findMany({ select: { id: true, name: true } }).execute(); +// List all orgClaimedInvite records +const items = await db.orgClaimedInvite.findMany({ select: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true, entityId: true } }).execute(); // Get one by id -const item = await db.roleType.findOne({ id: '', select: { id: true, name: true } }).execute(); +const item = await db.orgClaimedInvite.findOne({ id: '', select: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true, entityId: true } }).execute(); // Create -const created = await db.roleType.create({ data: { name: '' }, select: { id: true } }).execute(); +const created = await db.orgClaimedInvite.create({ data: { data: '', senderId: '', receiverId: '', entityId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.roleType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.orgClaimedInvite.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.roleType.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgClaimedInvite.delete({ where: { id: '' } }).execute(); ``` -### `db.orgPermissionDefault` +### `db.auditLog` -CRUD operations for OrgPermissionDefault records. +CRUD operations for AuditLog records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `permissions` | BitString | Yes | -| `entityId` | UUID | Yes | +| `event` | String | Yes | +| `actorId` | UUID | Yes | +| `origin` | ConstructiveInternalTypeOrigin | Yes | +| `userAgent` | String | Yes | +| `ipAddress` | InternetAddress | Yes | +| `success` | Boolean | Yes | +| `createdAt` | Datetime | No | **Operations:** ```typescript -// List all orgPermissionDefault records -const items = await db.orgPermissionDefault.findMany({ select: { id: true, permissions: true, entityId: true } }).execute(); +// List all auditLog records +const items = await db.auditLog.findMany({ select: { id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true, createdAt: true } }).execute(); // Get one by id -const item = await db.orgPermissionDefault.findOne({ id: '', select: { id: true, permissions: true, entityId: true } }).execute(); +const item = await db.auditLog.findOne({ id: '', select: { id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true, createdAt: true } }).execute(); // Create -const created = await db.orgPermissionDefault.create({ data: { permissions: '', entityId: '' }, select: { id: true } }).execute(); +const created = await db.auditLog.create({ data: { event: '', actorId: '', origin: '', userAgent: '', ipAddress: '', success: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgPermissionDefault.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); +const updated = await db.auditLog.update({ where: { id: '' }, data: { event: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgPermissionDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.auditLog.delete({ where: { id: '' } }).execute(); ``` -### `db.phoneNumber` +### `db.ref` -CRUD operations for PhoneNumber records. +CRUD operations for Ref records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `ownerId` | UUID | Yes | -| `cc` | String | Yes | -| `number` | String | Yes | -| `isVerified` | Boolean | Yes | -| `isPrimary` | Boolean | Yes | +| `name` | String | Yes | +| `databaseId` | UUID | Yes | +| `storeId` | UUID | Yes | +| `commitId` | UUID | Yes | + +**Operations:** + +```typescript +// List all ref records +const items = await db.ref.findMany({ select: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }).execute(); + +// Get one by id +const item = await db.ref.findOne({ id: '', select: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }).execute(); + +// Create +const created = await db.ref.create({ data: { name: '', databaseId: '', storeId: '', commitId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.ref.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.ref.delete({ where: { id: '' } }).execute(); +``` + +### `db.store` + +CRUD operations for Store records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `databaseId` | UUID | Yes | +| `hash` | UUID | Yes | | `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `ccTrgmSimilarity` | Float | Yes | -| `numberTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript -// List all phoneNumber records -const items = await db.phoneNumber.findMany({ select: { id: true, ownerId: true, cc: true, number: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true, ccTrgmSimilarity: true, numberTrgmSimilarity: true, searchScore: true } }).execute(); +// List all store records +const items = await db.store.findMany({ select: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }).execute(); // Get one by id -const item = await db.phoneNumber.findOne({ id: '', select: { id: true, ownerId: true, cc: true, number: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true, ccTrgmSimilarity: true, numberTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.store.findOne({ id: '', select: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }).execute(); // Create -const created = await db.phoneNumber.create({ data: { ownerId: '', cc: '', number: '', isVerified: '', isPrimary: '', ccTrgmSimilarity: '', numberTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.store.create({ data: { name: '', databaseId: '', hash: '' }, select: { id: true } }).execute(); // Update -const updated = await db.phoneNumber.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); +const updated = await db.store.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.phoneNumber.delete({ where: { id: '' } }).execute(); +const deleted = await db.store.delete({ where: { id: '' } }).execute(); ``` -### `db.appLimitDefault` +### `db.appPermissionDefault` -CRUD operations for AppLimitDefault records. +CRUD operations for AppPermissionDefault records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | +| `permissions` | BitString | Yes | + +**Operations:** + +```typescript +// List all appPermissionDefault records +const items = await db.appPermissionDefault.findMany({ select: { id: true, permissions: true } }).execute(); + +// Get one by id +const item = await db.appPermissionDefault.findOne({ id: '', select: { id: true, permissions: true } }).execute(); + +// Create +const created = await db.appPermissionDefault.create({ data: { permissions: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appPermissionDefault.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appPermissionDefault.delete({ where: { id: '' } }).execute(); +``` + +### `db.roleType` + +CRUD operations for RoleType records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | Int | No | | `name` | String | Yes | -| `max` | Int | Yes | **Operations:** ```typescript -// List all appLimitDefault records -const items = await db.appLimitDefault.findMany({ select: { id: true, name: true, max: true } }).execute(); +// List all roleType records +const items = await db.roleType.findMany({ select: { id: true, name: true } }).execute(); // Get one by id -const item = await db.appLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true } }).execute(); +const item = await db.roleType.findOne({ id: '', select: { id: true, name: true } }).execute(); // Create -const created = await db.appLimitDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute(); +const created = await db.roleType.create({ data: { name: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.roleType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appLimitDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.roleType.delete({ where: { id: '' } }).execute(); ``` -### `db.orgLimitDefault` +### `db.appLimitDefault` -CRUD operations for OrgLimitDefault records. +CRUD operations for AppLimitDefault records. **Fields:** @@ -3669,59 +3713,51 @@ CRUD operations for OrgLimitDefault records. **Operations:** ```typescript -// List all orgLimitDefault records -const items = await db.orgLimitDefault.findMany({ select: { id: true, name: true, max: true } }).execute(); +// List all appLimitDefault records +const items = await db.appLimitDefault.findMany({ select: { id: true, name: true, max: true } }).execute(); // Get one by id -const item = await db.orgLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true } }).execute(); +const item = await db.appLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true } }).execute(); // Create -const created = await db.orgLimitDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute(); +const created = await db.appLimitDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.appLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgLimitDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.appLimitDefault.delete({ where: { id: '' } }).execute(); ``` -### `db.connectedAccount` +### `db.orgLimitDefault` -CRUD operations for ConnectedAccount records. +CRUD operations for OrgLimitDefault records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `ownerId` | UUID | Yes | -| `service` | String | Yes | -| `identifier` | String | Yes | -| `details` | JSON | Yes | -| `isVerified` | Boolean | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `serviceTrgmSimilarity` | Float | Yes | -| `identifierTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | +| `name` | String | Yes | +| `max` | Int | Yes | **Operations:** ```typescript -// List all connectedAccount records -const items = await db.connectedAccount.findMany({ select: { id: true, ownerId: true, service: true, identifier: true, details: true, isVerified: true, createdAt: true, updatedAt: true, serviceTrgmSimilarity: true, identifierTrgmSimilarity: true, searchScore: true } }).execute(); +// List all orgLimitDefault records +const items = await db.orgLimitDefault.findMany({ select: { id: true, name: true, max: true } }).execute(); // Get one by id -const item = await db.connectedAccount.findOne({ id: '', select: { id: true, ownerId: true, service: true, identifier: true, details: true, isVerified: true, createdAt: true, updatedAt: true, serviceTrgmSimilarity: true, identifierTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.orgLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true } }).execute(); // Create -const created = await db.connectedAccount.create({ data: { ownerId: '', service: '', identifier: '', details: '', isVerified: '', serviceTrgmSimilarity: '', identifierTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.orgLimitDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute(); // Update -const updated = await db.connectedAccount.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); +const updated = await db.orgLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.connectedAccount.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgLimitDefault.delete({ where: { id: '' } }).execute(); ``` ### `db.nodeTypeRegistry` @@ -3741,30 +3777,24 @@ CRUD operations for NodeTypeRegistry records. | `tags` | String | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `nameTrgmSimilarity` | Float | Yes | -| `slugTrgmSimilarity` | Float | Yes | -| `categoryTrgmSimilarity` | Float | Yes | -| `displayNameTrgmSimilarity` | Float | Yes | -| `descriptionTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all nodeTypeRegistry records -const items = await db.nodeTypeRegistry.findMany({ select: { name: true, slug: true, category: true, displayName: true, description: true, parameterSchema: true, tags: true, createdAt: true, updatedAt: true, nameTrgmSimilarity: true, slugTrgmSimilarity: true, categoryTrgmSimilarity: true, displayNameTrgmSimilarity: true, descriptionTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.nodeTypeRegistry.findMany({ select: { name: true, slug: true, category: true, displayName: true, description: true, parameterSchema: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Get one by name -const item = await db.nodeTypeRegistry.findOne({ name: '', select: { name: true, slug: true, category: true, displayName: true, description: true, parameterSchema: true, tags: true, createdAt: true, updatedAt: true, nameTrgmSimilarity: true, slugTrgmSimilarity: true, categoryTrgmSimilarity: true, displayNameTrgmSimilarity: true, descriptionTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.nodeTypeRegistry.findOne({ name: '', select: { name: true, slug: true, category: true, displayName: true, description: true, parameterSchema: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.nodeTypeRegistry.create({ data: { slug: '', category: '', displayName: '', description: '', parameterSchema: '', tags: '', nameTrgmSimilarity: '', slugTrgmSimilarity: '', categoryTrgmSimilarity: '', displayNameTrgmSimilarity: '', descriptionTrgmSimilarity: '', searchScore: '' }, select: { name: true } }).execute(); +const created = await db.nodeTypeRegistry.create({ data: { slug: '', category: '', displayName: '', description: '', parameterSchema: '', tags: '' }, select: { name: true } }).execute(); // Update -const updated = await db.nodeTypeRegistry.update({ where: { name: '' }, data: { slug: '' }, select: { name: true } }).execute(); +const updated = await db.nodeTypeRegistry.update({ where: { name: '' }, data: { slug: '' }, select: { name: true } }).execute(); // Delete -const deleted = await db.nodeTypeRegistry.delete({ where: { name: '' } }).execute(); +const deleted = await db.nodeTypeRegistry.delete({ where: { name: '' } }).execute(); ``` ### `db.membershipType` @@ -3779,27 +3809,24 @@ CRUD operations for MembershipType records. | `name` | String | Yes | | `description` | String | Yes | | `prefix` | String | Yes | -| `descriptionTrgmSimilarity` | Float | Yes | -| `prefixTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all membershipType records -const items = await db.membershipType.findMany({ select: { id: true, name: true, description: true, prefix: true, descriptionTrgmSimilarity: true, prefixTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.membershipType.findMany({ select: { id: true, name: true, description: true, prefix: true } }).execute(); // Get one by id -const item = await db.membershipType.findOne({ id: '', select: { id: true, name: true, description: true, prefix: true, descriptionTrgmSimilarity: true, prefixTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.membershipType.findOne({ id: '', select: { id: true, name: true, description: true, prefix: true } }).execute(); // Create -const created = await db.membershipType.create({ data: { name: '', description: '', prefix: '', descriptionTrgmSimilarity: '', prefixTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.membershipType.create({ data: { name: '', description: '', prefix: '' }, select: { id: true } }).execute(); // Update -const updated = await db.membershipType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.membershipType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.membershipType.delete({ where: { id: '' } }).execute(); +const deleted = await db.membershipType.delete({ where: { id: '' } }).execute(); ``` ### `db.commit` @@ -3819,26 +3846,24 @@ CRUD operations for Commit records. | `committerId` | UUID | Yes | | `treeId` | UUID | Yes | | `date` | Datetime | Yes | -| `messageTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all commit records -const items = await db.commit.findMany({ select: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true, messageTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.commit.findMany({ select: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }).execute(); // Get one by id -const item = await db.commit.findOne({ id: '', select: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true, messageTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.commit.findOne({ id: '', select: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }).execute(); // Create -const created = await db.commit.create({ data: { message: '', databaseId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '', messageTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.commit.create({ data: { message: '', databaseId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }, select: { id: true } }).execute(); // Update -const updated = await db.commit.update({ where: { id: '' }, data: { message: '' }, select: { id: true } }).execute(); +const updated = await db.commit.update({ where: { id: '' }, data: { message: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.commit.delete({ where: { id: '' } }).execute(); +const deleted = await db.commit.delete({ where: { id: '' } }).execute(); ``` ### `db.appMembershipDefault` @@ -3864,16 +3889,16 @@ CRUD operations for AppMembershipDefault records. const items = await db.appMembershipDefault.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }).execute(); // Get one by id -const item = await db.appMembershipDefault.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }).execute(); +const item = await db.appMembershipDefault.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }).execute(); // Create -const created = await db.appMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isVerified: '' }, select: { id: true } }).execute(); +const created = await db.appMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isVerified: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); +const updated = await db.appMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appMembershipDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.appMembershipDefault.delete({ where: { id: '' } }).execute(); ``` ### `db.rlsModule` @@ -3895,29 +3920,24 @@ CRUD operations for RlsModule records. | `authenticateStrict` | String | Yes | | `currentRole` | String | Yes | | `currentRoleId` | String | Yes | -| `authenticateTrgmSimilarity` | Float | Yes | -| `authenticateStrictTrgmSimilarity` | Float | Yes | -| `currentRoleTrgmSimilarity` | Float | Yes | -| `currentRoleIdTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all rlsModule records -const items = await db.rlsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, sessionCredentialsTableId: true, sessionsTableId: true, usersTableId: true, authenticate: true, authenticateStrict: true, currentRole: true, currentRoleId: true, authenticateTrgmSimilarity: true, authenticateStrictTrgmSimilarity: true, currentRoleTrgmSimilarity: true, currentRoleIdTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.rlsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, sessionCredentialsTableId: true, sessionsTableId: true, usersTableId: true, authenticate: true, authenticateStrict: true, currentRole: true, currentRoleId: true } }).execute(); // Get one by id -const item = await db.rlsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, sessionCredentialsTableId: true, sessionsTableId: true, usersTableId: true, authenticate: true, authenticateStrict: true, currentRole: true, currentRoleId: true, authenticateTrgmSimilarity: true, authenticateStrictTrgmSimilarity: true, currentRoleTrgmSimilarity: true, currentRoleIdTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.rlsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, sessionCredentialsTableId: true, sessionsTableId: true, usersTableId: true, authenticate: true, authenticateStrict: true, currentRole: true, currentRoleId: true } }).execute(); // Create -const created = await db.rlsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', sessionCredentialsTableId: '', sessionsTableId: '', usersTableId: '', authenticate: '', authenticateStrict: '', currentRole: '', currentRoleId: '', authenticateTrgmSimilarity: '', authenticateStrictTrgmSimilarity: '', currentRoleTrgmSimilarity: '', currentRoleIdTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.rlsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', sessionCredentialsTableId: '', sessionsTableId: '', usersTableId: '', authenticate: '', authenticateStrict: '', currentRole: '', currentRoleId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.rlsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.rlsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.rlsModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.rlsModule.delete({ where: { id: '' } }).execute(); ``` ### `db.orgMembershipDefault` @@ -3945,91 +3965,16 @@ CRUD operations for OrgMembershipDefault records. const items = await db.orgMembershipDefault.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true, deleteMemberCascadeGroups: true, createGroupsCascadeMembers: true } }).execute(); // Get one by id -const item = await db.orgMembershipDefault.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true, deleteMemberCascadeGroups: true, createGroupsCascadeMembers: true } }).execute(); - -// Create -const created = await db.orgMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', entityId: '', deleteMemberCascadeGroups: '', createGroupsCascadeMembers: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgMembershipDefault.delete({ where: { id: '' } }).execute(); -``` - -### `db.auditLog` - -CRUD operations for AuditLog records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `event` | String | Yes | -| `actorId` | UUID | Yes | -| `origin` | ConstructiveInternalTypeOrigin | Yes | -| `userAgent` | String | Yes | -| `ipAddress` | InternetAddress | Yes | -| `success` | Boolean | Yes | -| `createdAt` | Datetime | No | -| `userAgentTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | - -**Operations:** - -```typescript -// List all auditLog records -const items = await db.auditLog.findMany({ select: { id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true, createdAt: true, userAgentTrgmSimilarity: true, searchScore: true } }).execute(); - -// Get one by id -const item = await db.auditLog.findOne({ id: '', select: { id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true, createdAt: true, userAgentTrgmSimilarity: true, searchScore: true } }).execute(); - -// Create -const created = await db.auditLog.create({ data: { event: '', actorId: '', origin: '', userAgent: '', ipAddress: '', success: '', userAgentTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.auditLog.update({ where: { id: '' }, data: { event: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.auditLog.delete({ where: { id: '' } }).execute(); -``` - -### `db.appLevel` - -CRUD operations for AppLevel records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `name` | String | Yes | -| `description` | String | Yes | -| `image` | ConstructiveInternalTypeImage | Yes | -| `ownerId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `descriptionTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | - -**Operations:** - -```typescript -// List all appLevel records -const items = await db.appLevel.findMany({ select: { id: true, name: true, description: true, image: true, ownerId: true, createdAt: true, updatedAt: true, descriptionTrgmSimilarity: true, searchScore: true } }).execute(); - -// Get one by id -const item = await db.appLevel.findOne({ id: '', select: { id: true, name: true, description: true, image: true, ownerId: true, createdAt: true, updatedAt: true, descriptionTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.orgMembershipDefault.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true, deleteMemberCascadeGroups: true, createGroupsCascadeMembers: true } }).execute(); // Create -const created = await db.appLevel.create({ data: { name: '', description: '', image: '', ownerId: '', descriptionTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.orgMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', entityId: '', deleteMemberCascadeGroups: '', createGroupsCascadeMembers: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appLevel.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.orgMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appLevel.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgMembershipDefault.delete({ where: { id: '' } }).execute(); ``` ### `db.sqlMigration` @@ -4053,66 +3998,24 @@ CRUD operations for SqlMigration records. | `action` | String | Yes | | `actionId` | UUID | Yes | | `actorId` | UUID | Yes | -| `nameTrgmSimilarity` | Float | Yes | -| `deployTrgmSimilarity` | Float | Yes | -| `contentTrgmSimilarity` | Float | Yes | -| `revertTrgmSimilarity` | Float | Yes | -| `verifyTrgmSimilarity` | Float | Yes | -| `actionTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all sqlMigration records -const items = await db.sqlMigration.findMany({ select: { id: true, name: true, databaseId: true, deploy: true, deps: true, payload: true, content: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true, nameTrgmSimilarity: true, deployTrgmSimilarity: true, contentTrgmSimilarity: true, revertTrgmSimilarity: true, verifyTrgmSimilarity: true, actionTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.sqlMigration.findMany({ select: { id: true, name: true, databaseId: true, deploy: true, deps: true, payload: true, content: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } }).execute(); // Get one by id -const item = await db.sqlMigration.findOne({ id: '', select: { id: true, name: true, databaseId: true, deploy: true, deps: true, payload: true, content: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true, nameTrgmSimilarity: true, deployTrgmSimilarity: true, contentTrgmSimilarity: true, revertTrgmSimilarity: true, verifyTrgmSimilarity: true, actionTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.sqlMigration.findOne({ id: '', select: { id: true, name: true, databaseId: true, deploy: true, deps: true, payload: true, content: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } }).execute(); // Create -const created = await db.sqlMigration.create({ data: { name: '', databaseId: '', deploy: '', deps: '', payload: '', content: '', revert: '', verify: '', action: '', actionId: '', actorId: '', nameTrgmSimilarity: '', deployTrgmSimilarity: '', contentTrgmSimilarity: '', revertTrgmSimilarity: '', verifyTrgmSimilarity: '', actionTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.sqlMigration.create({ data: { name: '', databaseId: '', deploy: '', deps: '', payload: '', content: '', revert: '', verify: '', action: '', actionId: '', actorId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.sqlMigration.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.sqlMigration.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.sqlMigration.delete({ where: { id: '' } }).execute(); -``` - -### `db.email` - -CRUD operations for Email records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `ownerId` | UUID | Yes | -| `email` | ConstructiveInternalTypeEmail | Yes | -| `isVerified` | Boolean | Yes | -| `isPrimary` | Boolean | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all email records -const items = await db.email.findMany({ select: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.email.findOne({ id: '', select: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.email.create({ data: { ownerId: '', email: '', isVerified: '', isPrimary: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.email.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.email.delete({ where: { id: '' } }).execute(); +const deleted = await db.sqlMigration.delete({ where: { id: '' } }).execute(); ``` ### `db.user` @@ -4142,16 +4045,16 @@ CRUD operations for User records. const items = await db.user.findMany({ select: { id: true, username: true, displayName: true, profilePicture: true, searchTsv: true, type: true, createdAt: true, updatedAt: true, searchTsvRank: true, displayNameTrgmSimilarity: true, searchScore: true } }).execute(); // Get one by id -const item = await db.user.findOne({ id: '', select: { id: true, username: true, displayName: true, profilePicture: true, searchTsv: true, type: true, createdAt: true, updatedAt: true, searchTsvRank: true, displayNameTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.user.findOne({ id: '', select: { id: true, username: true, displayName: true, profilePicture: true, searchTsv: true, type: true, createdAt: true, updatedAt: true, searchTsvRank: true, displayNameTrgmSimilarity: true, searchScore: true } }).execute(); // Create -const created = await db.user.create({ data: { username: '', displayName: '', profilePicture: '', searchTsv: '', type: '', searchTsvRank: '', displayNameTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.user.create({ data: { username: '', displayName: '', profilePicture: '', searchTsv: '', type: '', searchTsvRank: '', displayNameTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); // Update -const updated = await db.user.update({ where: { id: '' }, data: { username: '' }, select: { id: true } }).execute(); +const updated = await db.user.update({ where: { id: '' }, data: { username: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.user.delete({ where: { id: '' } }).execute(); +const deleted = await db.user.delete({ where: { id: '' } }).execute(); ``` ### `db.astMigration` @@ -4175,26 +4078,24 @@ CRUD operations for AstMigration records. | `action` | String | Yes | | `actionId` | UUID | Yes | | `actorId` | UUID | Yes | -| `actionTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all astMigration records -const items = await db.astMigration.findMany({ select: { id: true, databaseId: true, name: true, requires: true, payload: true, deploys: true, deploy: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true, actionTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.astMigration.findMany({ select: { id: true, databaseId: true, name: true, requires: true, payload: true, deploys: true, deploy: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } }).execute(); // Get one by id -const item = await db.astMigration.findOne({ id: '', select: { id: true, databaseId: true, name: true, requires: true, payload: true, deploys: true, deploy: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true, actionTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.astMigration.findOne({ id: '', select: { id: true, databaseId: true, name: true, requires: true, payload: true, deploys: true, deploy: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } }).execute(); // Create -const created = await db.astMigration.create({ data: { databaseId: '', name: '', requires: '', payload: '', deploys: '', deploy: '', revert: '', verify: '', action: '', actionId: '', actorId: '', actionTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.astMigration.create({ data: { databaseId: '', name: '', requires: '', payload: '', deploys: '', deploy: '', revert: '', verify: '', action: '', actionId: '', actorId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.astMigration.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.astMigration.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.astMigration.delete({ where: { id: '' } }).execute(); +const deleted = await db.astMigration.delete({ where: { id: '' } }).execute(); ``` ### `db.appMembership` @@ -4229,16 +4130,16 @@ CRUD operations for AppMembership records. const items = await db.appMembership.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }).execute(); // Get one by id -const item = await db.appMembership.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }).execute(); +const item = await db.appMembership.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }).execute(); // Create -const created = await db.appMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', profileId: '' }, select: { id: true } }).execute(); +const created = await db.appMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', profileId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); +const updated = await db.appMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appMembership.delete({ where: { id: '' } }).execute(); +const deleted = await db.appMembership.delete({ where: { id: '' } }).execute(); ``` ### `db.hierarchyModule` @@ -4269,35 +4170,24 @@ CRUD operations for HierarchyModule records. | `getManagersFunction` | String | Yes | | `isManagerOfFunction` | String | Yes | | `createdAt` | Datetime | No | -| `chartEdgesTableNameTrgmSimilarity` | Float | Yes | -| `hierarchySprtTableNameTrgmSimilarity` | Float | Yes | -| `chartEdgeGrantsTableNameTrgmSimilarity` | Float | Yes | -| `prefixTrgmSimilarity` | Float | Yes | -| `privateSchemaNameTrgmSimilarity` | Float | Yes | -| `sprtTableNameTrgmSimilarity` | Float | Yes | -| `rebuildHierarchyFunctionTrgmSimilarity` | Float | Yes | -| `getSubordinatesFunctionTrgmSimilarity` | Float | Yes | -| `getManagersFunctionTrgmSimilarity` | Float | Yes | -| `isManagerOfFunctionTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all hierarchyModule records -const items = await db.hierarchyModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, chartEdgesTableId: true, chartEdgesTableName: true, hierarchySprtTableId: true, hierarchySprtTableName: true, chartEdgeGrantsTableId: true, chartEdgeGrantsTableName: true, entityTableId: true, usersTableId: true, prefix: true, privateSchemaName: true, sprtTableName: true, rebuildHierarchyFunction: true, getSubordinatesFunction: true, getManagersFunction: true, isManagerOfFunction: true, createdAt: true, chartEdgesTableNameTrgmSimilarity: true, hierarchySprtTableNameTrgmSimilarity: true, chartEdgeGrantsTableNameTrgmSimilarity: true, prefixTrgmSimilarity: true, privateSchemaNameTrgmSimilarity: true, sprtTableNameTrgmSimilarity: true, rebuildHierarchyFunctionTrgmSimilarity: true, getSubordinatesFunctionTrgmSimilarity: true, getManagersFunctionTrgmSimilarity: true, isManagerOfFunctionTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.hierarchyModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, chartEdgesTableId: true, chartEdgesTableName: true, hierarchySprtTableId: true, hierarchySprtTableName: true, chartEdgeGrantsTableId: true, chartEdgeGrantsTableName: true, entityTableId: true, usersTableId: true, prefix: true, privateSchemaName: true, sprtTableName: true, rebuildHierarchyFunction: true, getSubordinatesFunction: true, getManagersFunction: true, isManagerOfFunction: true, createdAt: true } }).execute(); // Get one by id -const item = await db.hierarchyModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, chartEdgesTableId: true, chartEdgesTableName: true, hierarchySprtTableId: true, hierarchySprtTableName: true, chartEdgeGrantsTableId: true, chartEdgeGrantsTableName: true, entityTableId: true, usersTableId: true, prefix: true, privateSchemaName: true, sprtTableName: true, rebuildHierarchyFunction: true, getSubordinatesFunction: true, getManagersFunction: true, isManagerOfFunction: true, createdAt: true, chartEdgesTableNameTrgmSimilarity: true, hierarchySprtTableNameTrgmSimilarity: true, chartEdgeGrantsTableNameTrgmSimilarity: true, prefixTrgmSimilarity: true, privateSchemaNameTrgmSimilarity: true, sprtTableNameTrgmSimilarity: true, rebuildHierarchyFunctionTrgmSimilarity: true, getSubordinatesFunctionTrgmSimilarity: true, getManagersFunctionTrgmSimilarity: true, isManagerOfFunctionTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.hierarchyModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, chartEdgesTableId: true, chartEdgesTableName: true, hierarchySprtTableId: true, hierarchySprtTableName: true, chartEdgeGrantsTableId: true, chartEdgeGrantsTableName: true, entityTableId: true, usersTableId: true, prefix: true, privateSchemaName: true, sprtTableName: true, rebuildHierarchyFunction: true, getSubordinatesFunction: true, getManagersFunction: true, isManagerOfFunction: true, createdAt: true } }).execute(); // Create -const created = await db.hierarchyModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', chartEdgesTableId: '', chartEdgesTableName: '', hierarchySprtTableId: '', hierarchySprtTableName: '', chartEdgeGrantsTableId: '', chartEdgeGrantsTableName: '', entityTableId: '', usersTableId: '', prefix: '', privateSchemaName: '', sprtTableName: '', rebuildHierarchyFunction: '', getSubordinatesFunction: '', getManagersFunction: '', isManagerOfFunction: '', chartEdgesTableNameTrgmSimilarity: '', hierarchySprtTableNameTrgmSimilarity: '', chartEdgeGrantsTableNameTrgmSimilarity: '', prefixTrgmSimilarity: '', privateSchemaNameTrgmSimilarity: '', sprtTableNameTrgmSimilarity: '', rebuildHierarchyFunctionTrgmSimilarity: '', getSubordinatesFunctionTrgmSimilarity: '', getManagersFunctionTrgmSimilarity: '', isManagerOfFunctionTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.hierarchyModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', chartEdgesTableId: '', chartEdgesTableName: '', hierarchySprtTableId: '', hierarchySprtTableName: '', chartEdgeGrantsTableId: '', chartEdgeGrantsTableName: '', entityTableId: '', usersTableId: '', prefix: '', privateSchemaName: '', sprtTableName: '', rebuildHierarchyFunction: '', getSubordinatesFunction: '', getManagersFunction: '', isManagerOfFunction: '' }, select: { id: true } }).execute(); // Update -const updated = await db.hierarchyModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.hierarchyModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.hierarchyModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.hierarchyModule.delete({ where: { id: '' } }).execute(); ``` ## Custom Operations @@ -4347,7 +4237,7 @@ appPermissionsGetPaddedMask | `mask` | BitString | ```typescript -const result = await db.query.appPermissionsGetPaddedMask({ mask: '' }).execute(); +const result = await db.query.appPermissionsGetPaddedMask({ mask: '' }).execute(); ``` ### `db.query.orgPermissionsGetPaddedMask` @@ -4362,7 +4252,7 @@ orgPermissionsGetPaddedMask | `mask` | BitString | ```typescript -const result = await db.query.orgPermissionsGetPaddedMask({ mask: '' }).execute(); +const result = await db.query.orgPermissionsGetPaddedMask({ mask: '' }).execute(); ``` ### `db.query.stepsAchieved` @@ -4378,7 +4268,7 @@ stepsAchieved | `vroleId` | UUID | ```typescript -const result = await db.query.stepsAchieved({ vlevel: '', vroleId: '' }).execute(); +const result = await db.query.stepsAchieved({ vlevel: '', vroleId: '' }).execute(); ``` ### `db.query.revParse` @@ -4395,7 +4285,7 @@ revParse | `refname` | String | ```typescript -const result = await db.query.revParse({ dbId: '', storeId: '', refname: '' }).execute(); +const result = await db.query.revParse({ dbId: '', storeId: '', refname: '' }).execute(); ``` ### `db.query.orgIsManagerOf` @@ -4413,7 +4303,7 @@ orgIsManagerOf | `pMaxDepth` | Int | ```typescript -const result = await db.query.orgIsManagerOf({ pEntityId: '', pManagerId: '', pUserId: '', pMaxDepth: '' }).execute(); +const result = await db.query.orgIsManagerOf({ pEntityId: '', pManagerId: '', pUserId: '', pMaxDepth: '' }).execute(); ``` ### `db.query.appPermissionsGetMask` @@ -4428,7 +4318,7 @@ appPermissionsGetMask | `ids` | [UUID] | ```typescript -const result = await db.query.appPermissionsGetMask({ ids: '' }).execute(); +const result = await db.query.appPermissionsGetMask({ ids: '' }).execute(); ``` ### `db.query.orgPermissionsGetMask` @@ -4443,7 +4333,7 @@ orgPermissionsGetMask | `ids` | [UUID] | ```typescript -const result = await db.query.orgPermissionsGetMask({ ids: '' }).execute(); +const result = await db.query.orgPermissionsGetMask({ ids: '' }).execute(); ``` ### `db.query.appPermissionsGetMaskByNames` @@ -4458,7 +4348,7 @@ appPermissionsGetMaskByNames | `names` | [String] | ```typescript -const result = await db.query.appPermissionsGetMaskByNames({ names: '' }).execute(); +const result = await db.query.appPermissionsGetMaskByNames({ names: '' }).execute(); ``` ### `db.query.orgPermissionsGetMaskByNames` @@ -4473,7 +4363,7 @@ orgPermissionsGetMaskByNames | `names` | [String] | ```typescript -const result = await db.query.orgPermissionsGetMaskByNames({ names: '' }).execute(); +const result = await db.query.orgPermissionsGetMaskByNames({ names: '' }).execute(); ``` ### `db.query.getAllObjectsFromRoot` @@ -4492,7 +4382,7 @@ Reads and enables pagination through a set of `Object`. | `after` | Cursor | ```typescript -const result = await db.query.getAllObjectsFromRoot({ databaseId: '', id: '', first: '', offset: '', after: '' }).execute(); +const result = await db.query.getAllObjectsFromRoot({ databaseId: '', id: '', first: '', offset: '', after: '' }).execute(); ``` ### `db.query.getPathObjectsFromRoot` @@ -4512,7 +4402,7 @@ Reads and enables pagination through a set of `Object`. | `after` | Cursor | ```typescript -const result = await db.query.getPathObjectsFromRoot({ databaseId: '', id: '', path: '', first: '', offset: '', after: '' }).execute(); +const result = await db.query.getPathObjectsFromRoot({ databaseId: '', id: '', path: '', first: '', offset: '', after: '' }).execute(); ``` ### `db.query.getObjectAtPath` @@ -4530,7 +4420,7 @@ getObjectAtPath | `refname` | String | ```typescript -const result = await db.query.getObjectAtPath({ dbId: '', storeId: '', path: '', refname: '' }).execute(); +const result = await db.query.getObjectAtPath({ dbId: '', storeId: '', path: '', refname: '' }).execute(); ``` ### `db.query.appPermissionsGetByMask` @@ -4548,7 +4438,7 @@ Reads and enables pagination through a set of `AppPermission`. | `after` | Cursor | ```typescript -const result = await db.query.appPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute(); +const result = await db.query.appPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute(); ``` ### `db.query.orgPermissionsGetByMask` @@ -4566,7 +4456,7 @@ Reads and enables pagination through a set of `OrgPermission`. | `after` | Cursor | ```typescript -const result = await db.query.orgPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute(); +const result = await db.query.orgPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute(); ``` ### `db.query.stepsRequired` @@ -4585,7 +4475,7 @@ Reads and enables pagination through a set of `AppLevelRequirement`. | `after` | Cursor | ```typescript -const result = await db.query.stepsRequired({ vlevel: '', vroleId: '', first: '', offset: '', after: '' }).execute(); +const result = await db.query.stepsRequired({ vlevel: '', vroleId: '', first: '', offset: '', after: '' }).execute(); ``` ### `db.query.currentUser` @@ -4599,6 +4489,21 @@ currentUser const result = await db.query.currentUser().execute(); ``` +### `db.mutation.sendAccountDeletionEmail` + +sendAccountDeletionEmail + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SendAccountDeletionEmailInput (required) | + +```typescript +const result = await db.mutation.sendAccountDeletionEmail({ input: '' }).execute(); +``` + ### `db.mutation.signOut` signOut @@ -4611,97 +4516,97 @@ signOut | `input` | SignOutInput (required) | ```typescript -const result = await db.mutation.signOut({ input: '' }).execute(); +const result = await db.mutation.signOut({ input: '' }).execute(); ``` -### `db.mutation.sendAccountDeletionEmail` +### `db.mutation.acceptDatabaseTransfer` -sendAccountDeletionEmail +acceptDatabaseTransfer - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | SendAccountDeletionEmailInput (required) | + | `input` | AcceptDatabaseTransferInput (required) | ```typescript -const result = await db.mutation.sendAccountDeletionEmail({ input: '' }).execute(); +const result = await db.mutation.acceptDatabaseTransfer({ input: { transferId: '' } }).execute(); ``` -### `db.mutation.checkPassword` +### `db.mutation.cancelDatabaseTransfer` -checkPassword +cancelDatabaseTransfer - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | CheckPasswordInput (required) | + | `input` | CancelDatabaseTransferInput (required) | ```typescript -const result = await db.mutation.checkPassword({ input: '' }).execute(); +const result = await db.mutation.cancelDatabaseTransfer({ input: { transferId: '' } }).execute(); ``` -### `db.mutation.submitInviteCode` +### `db.mutation.rejectDatabaseTransfer` -submitInviteCode +rejectDatabaseTransfer - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | SubmitInviteCodeInput (required) | + | `input` | RejectDatabaseTransferInput (required) | ```typescript -const result = await db.mutation.submitInviteCode({ input: '' }).execute(); +const result = await db.mutation.rejectDatabaseTransfer({ input: { transferId: '' } }).execute(); ``` -### `db.mutation.submitOrgInviteCode` +### `db.mutation.submitInviteCode` -submitOrgInviteCode +submitInviteCode - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | SubmitOrgInviteCodeInput (required) | + | `input` | SubmitInviteCodeInput (required) | ```typescript -const result = await db.mutation.submitOrgInviteCode({ input: '' }).execute(); +const result = await db.mutation.submitInviteCode({ input: { token: '' } }).execute(); ``` -### `db.mutation.freezeObjects` +### `db.mutation.submitOrgInviteCode` -freezeObjects +submitOrgInviteCode - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | FreezeObjectsInput (required) | + | `input` | SubmitOrgInviteCodeInput (required) | ```typescript -const result = await db.mutation.freezeObjects({ input: '' }).execute(); +const result = await db.mutation.submitOrgInviteCode({ input: { token: '' } }).execute(); ``` -### `db.mutation.initEmptyRepo` +### `db.mutation.checkPassword` -initEmptyRepo +checkPassword - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | InitEmptyRepoInput (required) | + | `input` | CheckPasswordInput (required) | ```typescript -const result = await db.mutation.initEmptyRepo({ input: '' }).execute(); +const result = await db.mutation.checkPassword({ input: { password: '' } }).execute(); ``` ### `db.mutation.confirmDeleteAccount` @@ -4716,7 +4621,7 @@ confirmDeleteAccount | `input` | ConfirmDeleteAccountInput (required) | ```typescript -const result = await db.mutation.confirmDeleteAccount({ input: '' }).execute(); +const result = await db.mutation.confirmDeleteAccount({ input: { userId: '', token: '' } }).execute(); ``` ### `db.mutation.setPassword` @@ -4731,7 +4636,7 @@ setPassword | `input` | SetPasswordInput (required) | ```typescript -const result = await db.mutation.setPassword({ input: '' }).execute(); +const result = await db.mutation.setPassword({ input: { currentPassword: '', newPassword: '' } }).execute(); ``` ### `db.mutation.verifyEmail` @@ -4746,67 +4651,82 @@ verifyEmail | `input` | VerifyEmailInput (required) | ```typescript -const result = await db.mutation.verifyEmail({ input: '' }).execute(); +const result = await db.mutation.verifyEmail({ input: { emailId: '', token: '' } }).execute(); ``` -### `db.mutation.removeNodeAtPath` +### `db.mutation.freezeObjects` -removeNodeAtPath +freezeObjects - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | RemoveNodeAtPathInput (required) | + | `input` | FreezeObjectsInput (required) | ```typescript -const result = await db.mutation.removeNodeAtPath({ input: '' }).execute(); +const result = await db.mutation.freezeObjects({ input: { databaseId: '', id: '' } }).execute(); ``` -### `db.mutation.resetPassword` +### `db.mutation.initEmptyRepo` -resetPassword +initEmptyRepo - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | ResetPasswordInput (required) | + | `input` | InitEmptyRepoInput (required) | ```typescript -const result = await db.mutation.resetPassword({ input: '' }).execute(); +const result = await db.mutation.initEmptyRepo({ input: { dbId: '', storeId: '' } }).execute(); ``` -### `db.mutation.bootstrapUser` +### `db.mutation.constructBlueprint` -bootstrapUser +Executes a draft blueprint definition. Four phases: (1) create tables with nodes[], fields, and policies[], (2) create relations between tables, (3) create indexes on table fields (supports BTREE, HNSW, GIN, GIST, BM25, etc.), (4) create full-text search configurations with weighted multi-field TSVector support. nodes[] entries can be strings or {$type, data} objects. Relations use $type for relation_type with junction config in data. Indexes reference table_ref + column name(s) and are resolved to field_ids. Full-text searches reference table_ref + tsvector field + source fields with weights/langs. Builds a ref_map of local ref names to created table UUIDs. Updates blueprint status to constructed (or failed with error_details). Returns the ref_map. - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | BootstrapUserInput (required) | + | `input` | ConstructBlueprintInput (required) | ```typescript -const result = await db.mutation.bootstrapUser({ input: '' }).execute(); +const result = await db.mutation.constructBlueprint({ input: { blueprintId: '', schemaId: '' } }).execute(); ``` -### `db.mutation.setFieldOrder` +### `db.mutation.resetPassword` -setFieldOrder +resetPassword - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | SetFieldOrderInput (required) | + | `input` | ResetPasswordInput (required) | + +```typescript +const result = await db.mutation.resetPassword({ input: { roleId: '', resetToken: '', newPassword: '' } }).execute(); +``` + +### `db.mutation.removeNodeAtPath` + +removeNodeAtPath + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | RemoveNodeAtPathInput (required) | ```typescript -const result = await db.mutation.setFieldOrder({ input: '' }).execute(); +const result = await db.mutation.removeNodeAtPath({ input: { dbId: '', root: '', path: '' } }).execute(); ``` ### `db.mutation.setDataAtPath` @@ -4821,7 +4741,7 @@ setDataAtPath | `input` | SetDataAtPathInput (required) | ```typescript -const result = await db.mutation.setDataAtPath({ input: '' }).execute(); +const result = await db.mutation.setDataAtPath({ input: { dbId: '', root: '', path: '', data: '' } }).execute(); ``` ### `db.mutation.setPropsAndCommit` @@ -4836,7 +4756,22 @@ setPropsAndCommit | `input` | SetPropsAndCommitInput (required) | ```typescript -const result = await db.mutation.setPropsAndCommit({ input: '' }).execute(); +const result = await db.mutation.setPropsAndCommit({ input: { dbId: '', storeId: '', refname: '', path: '', data: '' } }).execute(); +``` + +### `db.mutation.copyTemplateToBlueprint` + +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. + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | CopyTemplateToBlueprintInput (required) | + +```typescript +const result = await db.mutation.copyTemplateToBlueprint({ input: { templateId: '', databaseId: '', ownerId: '', nameOverride: '', displayNameOverride: '' } }).execute(); ``` ### `db.mutation.provisionDatabaseWithUser` @@ -4851,7 +4786,37 @@ provisionDatabaseWithUser | `input` | ProvisionDatabaseWithUserInput (required) | ```typescript -const result = await db.mutation.provisionDatabaseWithUser({ input: '' }).execute(); +const result = await db.mutation.provisionDatabaseWithUser({ input: { pDatabaseName: '', pDomain: '', pSubdomain: '', pModules: '', pOptions: '' } }).execute(); +``` + +### `db.mutation.bootstrapUser` + +bootstrapUser + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | BootstrapUserInput (required) | + +```typescript +const result = await db.mutation.bootstrapUser({ input: '' }).execute(); +``` + +### `db.mutation.setFieldOrder` + +setFieldOrder + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SetFieldOrderInput (required) | + +```typescript +const result = await db.mutation.setFieldOrder({ input: { fieldIds: '' } }).execute(); ``` ### `db.mutation.insertNodeAtPath` @@ -4866,7 +4831,7 @@ insertNodeAtPath | `input` | InsertNodeAtPathInput (required) | ```typescript -const result = await db.mutation.insertNodeAtPath({ input: '' }).execute(); +const result = await db.mutation.insertNodeAtPath({ input: '' }).execute(); ``` ### `db.mutation.updateNodeAtPath` @@ -4881,7 +4846,7 @@ updateNodeAtPath | `input` | UpdateNodeAtPathInput (required) | ```typescript -const result = await db.mutation.updateNodeAtPath({ input: '' }).execute(); +const result = await db.mutation.updateNodeAtPath({ input: '' }).execute(); ``` ### `db.mutation.setAndCommit` @@ -4896,7 +4861,7 @@ setAndCommit | `input` | SetAndCommitInput (required) | ```typescript -const result = await db.mutation.setAndCommit({ input: '' }).execute(); +const result = await db.mutation.setAndCommit({ input: '' }).execute(); ``` ### `db.mutation.applyRls` @@ -4911,7 +4876,7 @@ applyRls | `input` | ApplyRlsInput (required) | ```typescript -const result = await db.mutation.applyRls({ input: '' }).execute(); +const result = await db.mutation.applyRls({ input: '' }).execute(); ``` ### `db.mutation.signInOneTimeToken` @@ -4926,7 +4891,7 @@ signInOneTimeToken | `input` | SignInOneTimeTokenInput (required) | ```typescript -const result = await db.mutation.signInOneTimeToken({ input: '' }).execute(); +const result = await db.mutation.signInOneTimeToken({ input: { token: '', credentialKind: '' } }).execute(); ``` ### `db.mutation.createUserDatabase` @@ -4957,7 +4922,7 @@ Example usage: | `input` | CreateUserDatabaseInput (required) | ```typescript -const result = await db.mutation.createUserDatabase({ input: '' }).execute(); +const result = await db.mutation.createUserDatabase({ input: '' }).execute(); ``` ### `db.mutation.extendTokenExpires` @@ -4972,7 +4937,7 @@ extendTokenExpires | `input` | ExtendTokenExpiresInput (required) | ```typescript -const result = await db.mutation.extendTokenExpires({ input: '' }).execute(); +const result = await db.mutation.extendTokenExpires({ input: { amount: '' } }).execute(); ``` ### `db.mutation.signIn` @@ -4987,7 +4952,7 @@ signIn | `input` | SignInInput (required) | ```typescript -const result = await db.mutation.signIn({ input: '' }).execute(); +const result = await db.mutation.signIn({ input: { email: '', password: '', rememberMe: '', credentialKind: '', csrfToken: '' } }).execute(); ``` ### `db.mutation.signUp` @@ -5002,7 +4967,7 @@ signUp | `input` | SignUpInput (required) | ```typescript -const result = await db.mutation.signUp({ input: '' }).execute(); +const result = await db.mutation.signUp({ input: { email: '', password: '', rememberMe: '', credentialKind: '', csrfToken: '' } }).execute(); ``` ### `db.mutation.oneTimeToken` @@ -5017,37 +4982,37 @@ oneTimeToken | `input` | OneTimeTokenInput (required) | ```typescript -const result = await db.mutation.oneTimeToken({ input: '' }).execute(); +const result = await db.mutation.oneTimeToken({ input: { email: '', password: '', origin: '', rememberMe: '' } }).execute(); ``` -### `db.mutation.forgotPassword` +### `db.mutation.sendVerificationEmail` -forgotPassword +sendVerificationEmail - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | ForgotPasswordInput (required) | + | `input` | SendVerificationEmailInput (required) | ```typescript -const result = await db.mutation.forgotPassword({ input: '' }).execute(); +const result = await db.mutation.sendVerificationEmail({ input: { email: '' } }).execute(); ``` -### `db.mutation.sendVerificationEmail` +### `db.mutation.forgotPassword` -sendVerificationEmail +forgotPassword - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | SendVerificationEmailInput (required) | + | `input` | ForgotPasswordInput (required) | ```typescript -const result = await db.mutation.sendVerificationEmail({ input: '' }).execute(); +const result = await db.mutation.forgotPassword({ input: { email: '' } }).execute(); ``` ### `db.mutation.verifyPassword` @@ -5062,7 +5027,7 @@ verifyPassword | `input` | VerifyPasswordInput (required) | ```typescript -const result = await db.mutation.verifyPassword({ input: '' }).execute(); +const result = await db.mutation.verifyPassword({ input: { password: '' } }).execute(); ``` ### `db.mutation.verifyTotp` @@ -5077,7 +5042,7 @@ verifyTotp | `input` | VerifyTotpInput (required) | ```typescript -const result = await db.mutation.verifyTotp({ input: '' }).execute(); +const result = await db.mutation.verifyTotp({ input: { totpValue: '' } }).execute(); ``` --- diff --git a/sdk/constructive-react/src/public/orm/index.ts b/sdk/constructive-react/src/public/orm/index.ts index fa33edb4f..dcead80b8 100644 --- a/sdk/constructive-react/src/public/orm/index.ts +++ b/sdk/constructive-react/src/public/orm/index.ts @@ -5,9 +5,9 @@ */ import { OrmClient } from './client'; import type { OrmClientConfig } from './client'; +import { GetAllRecordModel } from './models/getAllRecord'; import { OrgGetManagersRecordModel } from './models/orgGetManagersRecord'; import { OrgGetSubordinatesRecordModel } from './models/orgGetSubordinatesRecord'; -import { GetAllRecordModel } from './models/getAllRecord'; import { ObjectModel } from './models/object'; import { AppPermissionModel } from './models/appPermission'; import { OrgPermissionModel } from './models/orgPermission'; @@ -29,11 +29,13 @@ import { ViewModel } from './models/view'; import { ViewTableModel } from './models/viewTable'; import { ViewGrantModel } from './models/viewGrant'; import { ViewRuleModel } from './models/viewRule'; +import { EmbeddingChunkModel } from './models/embeddingChunk'; import { TableTemplateModuleModel } from './models/tableTemplateModule'; import { SecureTableProvisionModel } from './models/secureTableProvision'; import { RelationProvisionModel } from './models/relationProvision'; import { SchemaGrantModel } from './models/schemaGrant'; import { DefaultPrivilegeModel } from './models/defaultPrivilege'; +import { EnumModel } from './models/enum'; import { ApiSchemaModel } from './models/apiSchema'; import { ApiModuleModel } from './models/apiModule'; import { DomainModel } from './models/domain'; @@ -41,6 +43,7 @@ import { SiteMetadatumModel } from './models/siteMetadatum'; import { SiteModuleModel } from './models/siteModule'; import { SiteThemeModel } from './models/siteTheme'; import { TriggerFunctionModel } from './models/triggerFunction'; +import { DatabaseTransferModel } from './models/databaseTransfer'; import { ApiModel } from './models/api'; import { SiteModel } from './models/site'; import { AppModel } from './models/app'; @@ -64,7 +67,8 @@ import { SecretsModuleModel } from './models/secretsModule'; import { SessionsModuleModel } from './models/sessionsModule'; import { UserAuthModuleModel } from './models/userAuthModule'; import { UsersModuleModel } from './models/usersModule'; -import { UuidModuleModel } from './models/uuidModule'; +import { BlueprintModel } from './models/blueprint'; +import { BlueprintTemplateModel } from './models/blueprintTemplate'; import { DatabaseProvisionModuleModel } from './models/databaseProvisionModule'; import { AppAdminGrantModel } from './models/appAdminGrant'; import { AppOwnerGrantModel } from './models/appOwnerGrant'; @@ -76,34 +80,34 @@ import { OrgOwnerGrantModel } from './models/orgOwnerGrant'; import { OrgGrantModel } from './models/orgGrant'; import { OrgChartEdgeModel } from './models/orgChartEdge'; import { OrgChartEdgeGrantModel } from './models/orgChartEdgeGrant'; +import { OrgPermissionDefaultModel } from './models/orgPermissionDefault'; import { AppLimitModel } from './models/appLimit'; import { OrgLimitModel } from './models/orgLimit'; import { AppStepModel } from './models/appStep'; import { AppAchievementModel } from './models/appAchievement'; +import { AppLevelModel } from './models/appLevel'; +import { EmailModel } from './models/email'; +import { PhoneNumberModel } from './models/phoneNumber'; +import { CryptoAddressModel } from './models/cryptoAddress'; +import { ConnectedAccountModel } from './models/connectedAccount'; import { InviteModel } from './models/invite'; import { ClaimedInviteModel } from './models/claimedInvite'; import { OrgInviteModel } from './models/orgInvite'; import { OrgClaimedInviteModel } from './models/orgClaimedInvite'; +import { AuditLogModel } from './models/auditLog'; import { RefModel } from './models/ref'; import { StoreModel } from './models/store'; import { AppPermissionDefaultModel } from './models/appPermissionDefault'; -import { CryptoAddressModel } from './models/cryptoAddress'; import { RoleTypeModel } from './models/roleType'; -import { OrgPermissionDefaultModel } from './models/orgPermissionDefault'; -import { PhoneNumberModel } from './models/phoneNumber'; import { AppLimitDefaultModel } from './models/appLimitDefault'; import { OrgLimitDefaultModel } from './models/orgLimitDefault'; -import { ConnectedAccountModel } from './models/connectedAccount'; import { NodeTypeRegistryModel } from './models/nodeTypeRegistry'; import { MembershipTypeModel } from './models/membershipType'; import { CommitModel } from './models/commit'; import { AppMembershipDefaultModel } from './models/appMembershipDefault'; import { RlsModuleModel } from './models/rlsModule'; import { OrgMembershipDefaultModel } from './models/orgMembershipDefault'; -import { AuditLogModel } from './models/auditLog'; -import { AppLevelModel } from './models/appLevel'; import { SqlMigrationModel } from './models/sqlMigration'; -import { EmailModel } from './models/email'; import { UserModel } from './models/user'; import { AstMigrationModel } from './models/astMigration'; import { AppMembershipModel } from './models/appMembership'; @@ -143,9 +147,9 @@ export { createMutationOperations } from './mutation'; export function createClient(config: OrmClientConfig) { const client = new OrmClient(config); return { + getAllRecord: new GetAllRecordModel(client), orgGetManagersRecord: new OrgGetManagersRecordModel(client), orgGetSubordinatesRecord: new OrgGetSubordinatesRecordModel(client), - getAllRecord: new GetAllRecordModel(client), object: new ObjectModel(client), appPermission: new AppPermissionModel(client), orgPermission: new OrgPermissionModel(client), @@ -167,11 +171,13 @@ export function createClient(config: OrmClientConfig) { viewTable: new ViewTableModel(client), viewGrant: new ViewGrantModel(client), viewRule: new ViewRuleModel(client), + embeddingChunk: new EmbeddingChunkModel(client), tableTemplateModule: new TableTemplateModuleModel(client), secureTableProvision: new SecureTableProvisionModel(client), relationProvision: new RelationProvisionModel(client), schemaGrant: new SchemaGrantModel(client), defaultPrivilege: new DefaultPrivilegeModel(client), + enum: new EnumModel(client), apiSchema: new ApiSchemaModel(client), apiModule: new ApiModuleModel(client), domain: new DomainModel(client), @@ -179,6 +185,7 @@ export function createClient(config: OrmClientConfig) { siteModule: new SiteModuleModel(client), siteTheme: new SiteThemeModel(client), triggerFunction: new TriggerFunctionModel(client), + databaseTransfer: new DatabaseTransferModel(client), api: new ApiModel(client), site: new SiteModel(client), app: new AppModel(client), @@ -202,7 +209,8 @@ export function createClient(config: OrmClientConfig) { sessionsModule: new SessionsModuleModel(client), userAuthModule: new UserAuthModuleModel(client), usersModule: new UsersModuleModel(client), - uuidModule: new UuidModuleModel(client), + blueprint: new BlueprintModel(client), + blueprintTemplate: new BlueprintTemplateModel(client), databaseProvisionModule: new DatabaseProvisionModuleModel(client), appAdminGrant: new AppAdminGrantModel(client), appOwnerGrant: new AppOwnerGrantModel(client), @@ -214,34 +222,34 @@ export function createClient(config: OrmClientConfig) { orgGrant: new OrgGrantModel(client), orgChartEdge: new OrgChartEdgeModel(client), orgChartEdgeGrant: new OrgChartEdgeGrantModel(client), + orgPermissionDefault: new OrgPermissionDefaultModel(client), appLimit: new AppLimitModel(client), orgLimit: new OrgLimitModel(client), appStep: new AppStepModel(client), appAchievement: new AppAchievementModel(client), + appLevel: new AppLevelModel(client), + email: new EmailModel(client), + phoneNumber: new PhoneNumberModel(client), + cryptoAddress: new CryptoAddressModel(client), + connectedAccount: new ConnectedAccountModel(client), invite: new InviteModel(client), claimedInvite: new ClaimedInviteModel(client), orgInvite: new OrgInviteModel(client), orgClaimedInvite: new OrgClaimedInviteModel(client), + auditLog: new AuditLogModel(client), ref: new RefModel(client), store: new StoreModel(client), appPermissionDefault: new AppPermissionDefaultModel(client), - cryptoAddress: new CryptoAddressModel(client), roleType: new RoleTypeModel(client), - orgPermissionDefault: new OrgPermissionDefaultModel(client), - phoneNumber: new PhoneNumberModel(client), appLimitDefault: new AppLimitDefaultModel(client), orgLimitDefault: new OrgLimitDefaultModel(client), - connectedAccount: new ConnectedAccountModel(client), nodeTypeRegistry: new NodeTypeRegistryModel(client), membershipType: new MembershipTypeModel(client), commit: new CommitModel(client), appMembershipDefault: new AppMembershipDefaultModel(client), rlsModule: new RlsModuleModel(client), orgMembershipDefault: new OrgMembershipDefaultModel(client), - auditLog: new AuditLogModel(client), - appLevel: new AppLevelModel(client), sqlMigration: new SqlMigrationModel(client), - email: new EmailModel(client), user: new UserModel(client), astMigration: new AstMigrationModel(client), appMembership: new AppMembershipModel(client), diff --git a/sdk/constructive-react/src/public/orm/input-types.ts b/sdk/constructive-react/src/public/orm/input-types.ts index f4141b254..e14d65708 100644 --- a/sdk/constructive-react/src/public/orm/input-types.ts +++ b/sdk/constructive-react/src/public/orm/input-types.ts @@ -240,6 +240,10 @@ export type ConstructiveInternalTypeImage = unknown; export type ConstructiveInternalTypeOrigin = unknown; export type ConstructiveInternalTypeUrl = unknown; // ============ Entity Types ============ +export interface GetAllRecord { + path?: string[] | null; + data?: Record | null; +} export interface OrgGetManagersRecord { userId?: string | null; depth?: number | null; @@ -248,16 +252,12 @@ export interface OrgGetSubordinatesRecord { userId?: string | null; depth?: number | null; } -export interface GetAllRecord { - path?: string | null; - data?: Record | null; -} export interface Object { hashUuid?: string | null; id: string; databaseId?: string | null; - kids?: string | null; - ktree?: string | null; + kids?: string[] | null; + ktree?: string[] | null; data?: Record | null; frzn?: boolean | null; createdAt?: string | null; @@ -273,10 +273,6 @@ export interface AppPermission { bitstr?: string | null; /** Human-readable description of what this permission allows */ description?: string | null; - /** TRGM similarity when searching `description`. Returns null when no trgm search filter is active. */ - descriptionTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } /** Defines available permissions as named bits within a bitmask, used by the RBAC system for access control */ export interface OrgPermission { @@ -289,10 +285,6 @@ export interface OrgPermission { bitstr?: string | null; /** Human-readable description of what this permission allows */ description?: string | null; - /** TRGM similarity when searching `description`. Returns null when no trgm search filter is active. */ - descriptionTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } /** Defines the specific requirements that must be met to achieve a level */ export interface AppLevelRequirement { @@ -309,10 +301,6 @@ export interface AppLevelRequirement { priority?: number | null; createdAt?: string | null; updatedAt?: string | null; - /** TRGM similarity when searching `description`. Returns null when no trgm search filter is active. */ - descriptionTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface Database { id: string; @@ -323,14 +311,6 @@ export interface Database { hash?: string | null; createdAt?: string | null; updatedAt?: string | null; - /** TRGM similarity when searching `schemaHash`. Returns null when no trgm search filter is active. */ - schemaHashTrgmSimilarity?: number | null; - /** TRGM similarity when searching `name`. Returns null when no trgm search filter is active. */ - nameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `label`. Returns null when no trgm search filter is active. */ - labelTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface Schema { id: string; @@ -343,22 +323,10 @@ export interface Schema { category?: ObjectCategory | null; module?: string | null; scope?: number | null; - tags?: string | null; + tags?: string[] | null; isPublic?: boolean | null; createdAt?: string | null; updatedAt?: string | null; - /** TRGM similarity when searching `name`. Returns null when no trgm search filter is active. */ - nameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `schemaName`. Returns null when no trgm search filter is active. */ - schemaNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `label`. Returns null when no trgm search filter is active. */ - labelTrgmSimilarity?: number | null; - /** TRGM similarity when searching `description`. Returns null when no trgm search filter is active. */ - descriptionTrgmSimilarity?: number | null; - /** TRGM similarity when searching `module`. Returns null when no trgm search filter is active. */ - moduleTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface Table { id: string; @@ -376,24 +344,10 @@ export interface Table { peoplestamps?: boolean | null; pluralName?: string | null; singularName?: string | null; - tags?: string | null; + tags?: string[] | null; inheritsId?: string | null; createdAt?: string | null; updatedAt?: string | null; - /** TRGM similarity when searching `name`. Returns null when no trgm search filter is active. */ - nameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `label`. Returns null when no trgm search filter is active. */ - labelTrgmSimilarity?: number | null; - /** TRGM similarity when searching `description`. Returns null when no trgm search filter is active. */ - descriptionTrgmSimilarity?: number | null; - /** TRGM similarity when searching `module`. Returns null when no trgm search filter is active. */ - moduleTrgmSimilarity?: number | null; - /** TRGM similarity when searching `pluralName`. Returns null when no trgm search filter is active. */ - pluralNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `singularName`. Returns null when no trgm search filter is active. */ - singularNameTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface CheckConstraint { id: string; @@ -401,23 +355,15 @@ export interface CheckConstraint { tableId?: string | null; name?: string | null; type?: string | null; - fieldIds?: string | null; + fieldIds?: string[] | null; expr?: Record | null; smartTags?: Record | null; category?: ObjectCategory | null; module?: string | null; scope?: number | null; - tags?: string | null; + tags?: string[] | null; createdAt?: string | null; updatedAt?: string | null; - /** TRGM similarity when searching `name`. Returns null when no trgm search filter is active. */ - nameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `type`. Returns null when no trgm search filter is active. */ - typeTrgmSimilarity?: number | null; - /** TRGM similarity when searching `module`. Returns null when no trgm search filter is active. */ - moduleTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface Field { id: string; @@ -428,6 +374,7 @@ export interface Field { description?: string | null; smartTags?: Record | null; isRequired?: boolean | null; + apiRequired?: boolean | null; defaultValue?: string | null; defaultValueAst?: Record | null; isHidden?: boolean | null; @@ -438,26 +385,12 @@ export interface Field { chkExpr?: Record | null; min?: number | null; max?: number | null; - tags?: string | null; + tags?: string[] | null; category?: ObjectCategory | null; module?: string | null; scope?: number | null; createdAt?: string | null; updatedAt?: string | null; - /** TRGM similarity when searching `name`. Returns null when no trgm search filter is active. */ - nameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `label`. Returns null when no trgm search filter is active. */ - labelTrgmSimilarity?: number | null; - /** TRGM similarity when searching `description`. Returns null when no trgm search filter is active. */ - descriptionTrgmSimilarity?: number | null; - /** TRGM similarity when searching `defaultValue`. Returns null when no trgm search filter is active. */ - defaultValueTrgmSimilarity?: number | null; - /** TRGM similarity when searching `regexp`. Returns null when no trgm search filter is active. */ - regexpTrgmSimilarity?: number | null; - /** TRGM similarity when searching `module`. Returns null when no trgm search filter is active. */ - moduleTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface ForeignKeyConstraint { id: string; @@ -467,40 +400,26 @@ export interface ForeignKeyConstraint { description?: string | null; smartTags?: Record | null; type?: string | null; - fieldIds?: string | null; + fieldIds?: string[] | null; refTableId?: string | null; - refFieldIds?: string | null; + refFieldIds?: string[] | null; deleteAction?: string | null; updateAction?: string | null; category?: ObjectCategory | null; module?: string | null; scope?: number | null; - tags?: string | null; + tags?: string[] | null; createdAt?: string | null; updatedAt?: string | null; - /** TRGM similarity when searching `name`. Returns null when no trgm search filter is active. */ - nameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `description`. Returns null when no trgm search filter is active. */ - descriptionTrgmSimilarity?: number | null; - /** TRGM similarity when searching `type`. Returns null when no trgm search filter is active. */ - typeTrgmSimilarity?: number | null; - /** TRGM similarity when searching `deleteAction`. Returns null when no trgm search filter is active. */ - deleteActionTrgmSimilarity?: number | null; - /** TRGM similarity when searching `updateAction`. Returns null when no trgm search filter is active. */ - updateActionTrgmSimilarity?: number | null; - /** TRGM similarity when searching `module`. Returns null when no trgm search filter is active. */ - moduleTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface FullTextSearch { id: string; databaseId?: string | null; tableId?: string | null; fieldId?: string | null; - fieldIds?: string | null; - weights?: string | null; - langs?: string | null; + fieldIds?: string[] | null; + weights?: string[] | null; + langs?: string[] | null; createdAt?: string | null; updatedAt?: string | null; } @@ -509,29 +428,21 @@ export interface Index { databaseId?: string | null; tableId?: string | null; name?: string | null; - fieldIds?: string | null; - includeFieldIds?: string | null; + fieldIds?: string[] | null; + includeFieldIds?: string[] | null; accessMethod?: string | null; indexParams?: Record | null; whereClause?: Record | null; isUnique?: boolean | null; options?: Record | null; - opClasses?: string | null; + opClasses?: string[] | null; smartTags?: Record | null; category?: ObjectCategory | null; module?: string | null; scope?: number | null; - tags?: string | null; + tags?: string[] | null; createdAt?: string | null; updatedAt?: string | null; - /** TRGM similarity when searching `name`. Returns null when no trgm search filter is active. */ - nameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `accessMethod`. Returns null when no trgm search filter is active. */ - accessMethodTrgmSimilarity?: number | null; - /** TRGM similarity when searching `module`. Returns null when no trgm search filter is active. */ - moduleTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface Policy { id: string; @@ -548,21 +459,9 @@ export interface Policy { category?: ObjectCategory | null; module?: string | null; scope?: number | null; - tags?: string | null; + tags?: string[] | null; createdAt?: string | null; updatedAt?: string | null; - /** TRGM similarity when searching `name`. Returns null when no trgm search filter is active. */ - nameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `granteeName`. Returns null when no trgm search filter is active. */ - granteeNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `privilege`. Returns null when no trgm search filter is active. */ - privilegeTrgmSimilarity?: number | null; - /** TRGM similarity when searching `policyType`. Returns null when no trgm search filter is active. */ - policyTypeTrgmSimilarity?: number | null; - /** TRGM similarity when searching `module`. Returns null when no trgm search filter is active. */ - moduleTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface PrimaryKeyConstraint { id: string; @@ -570,22 +469,14 @@ export interface PrimaryKeyConstraint { tableId?: string | null; name?: string | null; type?: string | null; - fieldIds?: string | null; + fieldIds?: string[] | null; smartTags?: Record | null; category?: ObjectCategory | null; module?: string | null; scope?: number | null; - tags?: string | null; + tags?: string[] | null; createdAt?: string | null; updatedAt?: string | null; - /** TRGM similarity when searching `name`. Returns null when no trgm search filter is active. */ - nameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `type`. Returns null when no trgm search filter is active. */ - typeTrgmSimilarity?: number | null; - /** TRGM similarity when searching `module`. Returns null when no trgm search filter is active. */ - moduleTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface TableGrant { id: string; @@ -593,16 +484,10 @@ export interface TableGrant { tableId?: string | null; privilege?: string | null; granteeName?: string | null; - fieldIds?: string | null; + fieldIds?: string[] | null; isGrant?: boolean | null; createdAt?: string | null; updatedAt?: string | null; - /** TRGM similarity when searching `privilege`. Returns null when no trgm search filter is active. */ - privilegeTrgmSimilarity?: number | null; - /** TRGM similarity when searching `granteeName`. Returns null when no trgm search filter is active. */ - granteeNameTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface Trigger { id: string; @@ -615,19 +500,9 @@ export interface Trigger { category?: ObjectCategory | null; module?: string | null; scope?: number | null; - tags?: string | null; + tags?: string[] | null; createdAt?: string | null; updatedAt?: string | null; - /** TRGM similarity when searching `name`. Returns null when no trgm search filter is active. */ - nameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `event`. Returns null when no trgm search filter is active. */ - eventTrgmSimilarity?: number | null; - /** TRGM similarity when searching `functionName`. Returns null when no trgm search filter is active. */ - functionNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `module`. Returns null when no trgm search filter is active. */ - moduleTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface UniqueConstraint { id: string; @@ -637,23 +512,13 @@ export interface UniqueConstraint { description?: string | null; smartTags?: Record | null; type?: string | null; - fieldIds?: string | null; + fieldIds?: string[] | null; category?: ObjectCategory | null; module?: string | null; scope?: number | null; - tags?: string | null; + tags?: string[] | null; createdAt?: string | null; updatedAt?: string | null; - /** TRGM similarity when searching `name`. Returns null when no trgm search filter is active. */ - nameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `description`. Returns null when no trgm search filter is active. */ - descriptionTrgmSimilarity?: number | null; - /** TRGM similarity when searching `type`. Returns null when no trgm search filter is active. */ - typeTrgmSimilarity?: number | null; - /** TRGM similarity when searching `module`. Returns null when no trgm search filter is active. */ - moduleTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface View { id: string; @@ -671,17 +536,7 @@ export interface View { category?: ObjectCategory | null; module?: string | null; scope?: number | null; - tags?: string | null; - /** TRGM similarity when searching `name`. Returns null when no trgm search filter is active. */ - nameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `viewType`. Returns null when no trgm search filter is active. */ - viewTypeTrgmSimilarity?: number | null; - /** TRGM similarity when searching `filterType`. Returns null when no trgm search filter is active. */ - filterTypeTrgmSimilarity?: number | null; - /** TRGM similarity when searching `module`. Returns null when no trgm search filter is active. */ - moduleTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; + tags?: string[] | null; } /** Junction table linking views to their joined tables for referential integrity */ export interface ViewTable { @@ -698,12 +553,6 @@ export interface ViewGrant { privilege?: string | null; withGrantOption?: boolean | null; isGrant?: boolean | null; - /** TRGM similarity when searching `granteeName`. Returns null when no trgm search filter is active. */ - granteeNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `privilege`. Returns null when no trgm search filter is active. */ - privilegeTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } /** DO INSTEAD rules for views (e.g., read-only enforcement) */ export interface ViewRule { @@ -715,14 +564,26 @@ export interface ViewRule { event?: string | null; /** NOTHING (for read-only) or custom action */ action?: string | null; - /** TRGM similarity when searching `name`. Returns null when no trgm search filter is active. */ - nameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `event`. Returns null when no trgm search filter is active. */ - eventTrgmSimilarity?: number | null; - /** TRGM similarity when searching `action`. Returns null when no trgm search filter is active. */ - actionTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; +} +export interface EmbeddingChunk { + id: string; + databaseId?: string | null; + tableId?: string | null; + embeddingFieldId?: string | null; + chunksTableId?: string | null; + chunksTableName?: string | null; + contentFieldName?: string | null; + dimensions?: number | null; + metric?: string | null; + chunkSize?: number | null; + chunkOverlap?: number | null; + chunkStrategy?: string | null; + metadataFields?: Record | null; + enqueueChunkingJob?: boolean | null; + chunkingTaskName?: string | null; + parentFkFieldId?: string | null; + createdAt?: string | null; + updatedAt?: string | null; } export interface TableTemplateModule { id: string; @@ -734,12 +595,6 @@ export interface TableTemplateModule { tableName?: string | null; nodeType?: string | null; data?: Record | null; - /** TRGM similarity when searching `tableName`. Returns null when no trgm search filter is active. */ - tableNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `nodeType`. Returns null when no trgm search filter is active. */ - nodeTypeTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } /** Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via node_type, (2) grant privileges via grant_privileges, (3) create RLS policies via policy_type. Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent. */ export interface SecureTableProvision { @@ -757,18 +612,18 @@ export interface SecureTableProvision { nodeType?: string | null; /** If true and Row Level Security is not yet enabled on the target table, enable it. Automatically set to true by the trigger when policy_type is provided. Defaults to true. */ useRls?: boolean | null; - /** Configuration passed to the generator function for field creation (only used when node_type is set). Known keys include: field_name (text, default 'id') for DataId, owner_field_name (text, default 'owner_id') for DataDirectOwner/DataOwnershipInEntity, entity_field_name (text, default 'entity_id') for DataEntityMembership/DataOwnershipInEntity, include_id (boolean, default true) for most node_types, include_user_fk (boolean, default true) to add FK to users table. Defaults to '{}'. */ + /** Configuration passed to the generator function for field creation (only used when node_type is set). Known keys include: field_name (text, default 'id') for DataId, owner_field_name (text, default 'owner_id') for DataDirectOwner/DataOwnershipInEntity, entity_field_name (text, default 'entity_id') for DataEntityMembership/DataOwnershipInEntity, include_id (boolean, default true) for most node_types, include_user_fk (boolean, default true) to add FK to users table, create_index (boolean, default true) to create btree indexes on FK fields for join and cascade performance. Defaults to '{}'. */ nodeData?: Record | null; - /** JSON array of field definition objects to create on the target table. Each object has keys: "name" (text, required), "type" (text, required), "default" (text, optional), "is_required" (boolean, optional, defaults to false), "min" (float, optional), "max" (float, optional), "regexp" (text, optional). min/max generate CHECK constraints: for text/citext they constrain character_length, for integer/float types they constrain the value. regexp generates a CHECK (col ~ pattern) constraint for text/citext. Fields are created via metaschema.create_field() after any node_type generator runs, and their IDs are appended to out_fields. Example: [{"name":"username","type":"citext","max":256,"regexp":"^[a-z0-9_]+$"},{"name":"score","type":"integer","min":0,"max":100}]. Defaults to '[]' (no additional fields). */ - fields?: Record | null; + /** PostgreSQL array of jsonb field definition objects to create on the target table. Each object has keys: "name" (text, required), "type" (text, required), "default" (text, optional), "is_required" (boolean, optional, defaults to false), "min" (float, optional), "max" (float, optional), "regexp" (text, optional), "index" (boolean, optional, defaults to false — creates a btree index on the field). min/max generate CHECK constraints: for text/citext they constrain character_length, for integer/float types they constrain the value. regexp generates a CHECK (col ~ pattern) constraint for text/citext. Fields are created via metaschema.create_field() after any node_type generator runs, and their IDs are appended to out_fields. Example: ARRAY['{"name":"username","type":"citext","max":256,"regexp":"^[a-z0-9_]+$"}'::jsonb, '{"name":"score","type":"integer","min":0,"max":100}'::jsonb]. Defaults to '{}' (no additional fields). */ + fields?: Record[] | null; /** Database roles to grant privileges to. Supports multiple roles, e.g. ARRAY['authenticated', 'admin']. Each role receives all privileges defined in grant_privileges. Defaults to ARRAY['authenticated']. */ - grantRoles?: string | null; - /** Array of [privilege, columns] tuples defining table grants. Examples: [["select","*"],["insert","*"]] for full access, or [["update",["name","bio"]]] for column-level grants. "*" means all columns; an array means column-level grant. Defaults to '[]' (no grants). The trigger validates this is a proper jsonb array. */ - grantPrivileges?: Record | null; + grantRoles?: string[] | null; + /** PostgreSQL array of jsonb [privilege, columns] tuples defining table grants. Examples: ARRAY['["select","*"]'::jsonb, '["insert","*"]'::jsonb] for full access, or ARRAY['["update",["name","bio"]]'::jsonb] for column-level grants. "*" means all columns; an array means column-level grant. Defaults to '{}' (no grants). Type safety is enforced by PostgreSQL at INSERT time. */ + grantPrivileges?: Record[] | null; /** Policy generator type, e.g. 'AuthzEntityMembership', 'AuthzMembership', 'AuthzAllowAll'. NULL means no policy is created. When set, the trigger automatically enables RLS on the target table. */ policyType?: string | null; /** Privileges the policy applies to, e.g. ARRAY['select','update']. NULL means privileges are derived from the grant_privileges verbs. */ - policyPrivileges?: string | null; + policyPrivileges?: string[] | null; /** Role the policy targets. NULL means it falls back to the first role in grant_roles. */ policyRole?: string | null; /** Whether the policy is PERMISSIVE (true) or RESTRICTIVE (false). Defaults to true. */ @@ -778,19 +633,7 @@ export interface SecureTableProvision { /** Opaque configuration passed through to metaschema.create_policy(). Structure varies by policy_type and is not interpreted by this trigger. Defaults to '{}'. */ policyData?: Record | null; /** Output column populated by the trigger after field creation. Contains the UUIDs of the metaschema fields created on the target table by this provision row's generator. NULL when node_type is NULL or before the trigger runs. Callers should not set this directly. */ - outFields?: string | null; - /** TRGM similarity when searching `tableName`. Returns null when no trgm search filter is active. */ - tableNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `nodeType`. Returns null when no trgm search filter is active. */ - nodeTypeTrgmSimilarity?: number | null; - /** TRGM similarity when searching `policyType`. Returns null when no trgm search filter is active. */ - policyTypeTrgmSimilarity?: number | null; - /** TRGM similarity when searching `policyRole`. Returns null when no trgm search filter is active. */ - policyRoleTrgmSimilarity?: number | null; - /** TRGM similarity when searching `policyName`. Returns null when no trgm search filter is active. */ - policyNameTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; + outFields?: string[] | null; } /** * Provisions relational structure between tables. Supports four relation types: @@ -850,6 +693,13 @@ export interface RelationProvision { * Ignored for RelationManyToMany (junction FK fields are always required). */ isRequired?: boolean | null; + /** + * Whether the FK field should be required at the API level even though it is nullable at the database level. Defaults to false. + * When true and is_required is false, the field is created as nullable (allowing SET NULL cascade) but a @requiredInput smart tag is added so PostGraphile treats it as non-null in create/update input types. + * When is_required is true, api_required is ignored (the field is already required at both levels). + * Ignored for RelationManyToMany (junction FK fields are always required). + */ + apiRequired?: boolean | null; /** * For RelationManyToMany: an existing junction table to use. Defaults to uuid_nil(). * - When uuid_nil(): the trigger creates a new junction table via secure_table_provision using junction_table_name. @@ -873,6 +723,26 @@ export interface RelationProvision { * Ignored for RelationBelongsTo/RelationHasOne. */ useCompositeKey?: boolean | null; + /** + * Whether to create a btree index on FK fields created by this relation. Defaults to true. + * PostgreSQL does not automatically index foreign key columns (only the referenced PK side is indexed). + * Without indexes on FK columns, JOINs, CASCADE deletes, and RLS policy lookups perform sequential scans. + * - RelationBelongsTo: creates an index on the FK field on the source table. + * - RelationHasMany: creates an index on the FK field on the target table. + * - RelationHasOne: skipped — the unique constraint already creates an implicit index. + * - RelationManyToMany: creates indexes on both FK fields on the junction table. + * Set to false only for very small tables or write-heavy tables where index maintenance cost outweighs read performance. + */ + createIndex?: boolean | null; + /** + * For RelationManyToMany: whether to expose the M:N shortcut fields in the GraphQL API. Defaults to true. + * When true, sets @behavior +manyToMany on the junction table smart_tags so PostGraphile generates + * clean M:N connection fields (e.g., event.contacts instead of event.contactEventsByEventId). + * When false (or toggled off via UPDATE), the behavior tag is removed and the M:N fields disappear from GraphQL. + * Toggling is supported: UPDATE expose_in_api to true/false and the smart tag is added/removed automatically. + * Ignored for RelationBelongsTo/RelationHasOne/RelationHasMany. + */ + exposeInApi?: boolean | null; /** * For RelationManyToMany: which generator to invoke for field creation on the junction table. Forwarded to secure_table_provision as-is. The trigger does not interpret or validate this value. * Examples: DataId (creates UUID primary key), DataDirectOwner (creates owner_id field), DataEntityMembership (creates entity_id field), DataOwnershipInEntity (creates both owner_id and entity_id), DataTimestamps, DataPeoplestamps, DataPublishable, DataSoftDelete. @@ -891,9 +761,9 @@ export interface RelationProvision { */ nodeData?: Record | null; /** For RelationManyToMany: database roles to grant privileges to on the junction table. Forwarded to secure_table_provision as-is. Supports multiple roles, e.g. ARRAY['authenticated', 'admin']. Each role receives all privileges defined in grant_privileges. Defaults to ARRAY['authenticated']. Ignored for RelationBelongsTo/RelationHasOne. */ - grantRoles?: string | null; - /** For RelationManyToMany: privilege grants for the junction table. Forwarded to secure_table_provision as-is. Format: array of [privilege, columns] tuples. Examples: [["select","*"],["insert","*"]] for full access, or [["update",["name","bio"]]] for column-level grants. "*" means all columns. Defaults to select/insert/delete for all columns. Ignored for RelationBelongsTo/RelationHasOne. */ - grantPrivileges?: Record | null; + grantRoles?: string[] | null; + /** For RelationManyToMany: privilege grants for the junction table. Forwarded to secure_table_provision as-is. Format: PostgreSQL array of jsonb [privilege, columns] tuples. Examples: ARRAY['["select","*"]'::jsonb, '["insert","*"]'::jsonb] for full access, or ARRAY['["update",["name","bio"]]'::jsonb] for column-level grants. "*" means all columns. Defaults to select/insert/delete for all columns. Ignored for RelationBelongsTo/RelationHasOne. */ + grantPrivileges?: Record[] | null; /** * For RelationManyToMany: RLS policy type for the junction table. Forwarded to secure_table_provision as-is. The trigger does not interpret or validate this value. * Examples: AuthzEntityMembership, AuthzMembership, AuthzAllowAll, AuthzDirectOwner, AuthzOrgHierarchy. @@ -902,7 +772,7 @@ export interface RelationProvision { */ policyType?: string | null; /** For RelationManyToMany: privileges the policy applies to, e.g. ARRAY['select','insert','delete']. Forwarded to secure_table_provision as-is. NULL means privileges are derived from the grant_privileges verbs by secure_table_provision. Ignored for RelationBelongsTo/RelationHasOne. */ - policyPrivileges?: string | null; + policyPrivileges?: string[] | null; /** For RelationManyToMany: database role the policy targets, e.g. 'authenticated'. Forwarded to secure_table_provision as-is. NULL means secure_table_provision falls back to the first role in grant_roles. Ignored for RelationBelongsTo/RelationHasOne. */ policyRole?: string | null; /** For RelationManyToMany: whether the policy is PERMISSIVE (true) or RESTRICTIVE (false). Forwarded to secure_table_provision as-is. Defaults to true. Ignored for RelationBelongsTo/RelationHasOne. */ @@ -926,28 +796,6 @@ export interface RelationProvision { outSourceFieldId?: string | null; /** Output column for RelationManyToMany: the UUID of the FK field on the junction table referencing the target table. Populated by the trigger. NULL for RelationBelongsTo/RelationHasOne. Callers should not set this directly. */ outTargetFieldId?: string | null; - /** TRGM similarity when searching `relationType`. Returns null when no trgm search filter is active. */ - relationTypeTrgmSimilarity?: number | null; - /** TRGM similarity when searching `fieldName`. Returns null when no trgm search filter is active. */ - fieldNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `deleteAction`. Returns null when no trgm search filter is active. */ - deleteActionTrgmSimilarity?: number | null; - /** TRGM similarity when searching `junctionTableName`. Returns null when no trgm search filter is active. */ - junctionTableNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `sourceFieldName`. Returns null when no trgm search filter is active. */ - sourceFieldNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `targetFieldName`. Returns null when no trgm search filter is active. */ - targetFieldNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `nodeType`. Returns null when no trgm search filter is active. */ - nodeTypeTrgmSimilarity?: number | null; - /** TRGM similarity when searching `policyType`. Returns null when no trgm search filter is active. */ - policyTypeTrgmSimilarity?: number | null; - /** TRGM similarity when searching `policyRole`. Returns null when no trgm search filter is active. */ - policyRoleTrgmSimilarity?: number | null; - /** TRGM similarity when searching `policyName`. Returns null when no trgm search filter is active. */ - policyNameTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface SchemaGrant { id: string; @@ -956,10 +804,6 @@ export interface SchemaGrant { granteeName?: string | null; createdAt?: string | null; updatedAt?: string | null; - /** TRGM similarity when searching `granteeName`. Returns null when no trgm search filter is active. */ - granteeNameTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface DefaultPrivilege { id: string; @@ -969,14 +813,20 @@ export interface DefaultPrivilege { privilege?: string | null; granteeName?: string | null; isGrant?: boolean | null; - /** TRGM similarity when searching `objectType`. Returns null when no trgm search filter is active. */ - objectTypeTrgmSimilarity?: number | null; - /** TRGM similarity when searching `privilege`. Returns null when no trgm search filter is active. */ - privilegeTrgmSimilarity?: number | null; - /** TRGM similarity when searching `granteeName`. Returns null when no trgm search filter is active. */ - granteeNameTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; +} +export interface Enum { + id: string; + databaseId?: string | null; + schemaId?: string | null; + name?: string | null; + label?: string | null; + description?: string | null; + values?: string[] | null; + smartTags?: Record | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + tags?: string[] | null; } /** Join table linking APIs to the database schemas they expose; controls which schemas are accessible through each API */ export interface ApiSchema { @@ -1001,10 +851,6 @@ export interface ApiModule { name?: string | null; /** JSON configuration data for this module */ data?: Record | null; - /** TRGM similarity when searching `name`. Returns null when no trgm search filter is active. */ - nameTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } /** DNS domain and subdomain routing: maps hostnames to either an API endpoint or a site */ export interface Domain { @@ -1035,12 +881,6 @@ export interface SiteMetadatum { description?: string | null; /** Open Graph image for social media previews */ ogImage?: ConstructiveInternalTypeImage | null; - /** TRGM similarity when searching `title`. Returns null when no trgm search filter is active. */ - titleTrgmSimilarity?: number | null; - /** TRGM similarity when searching `description`. Returns null when no trgm search filter is active. */ - descriptionTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } /** Site-level module configuration; stores module name and JSON settings used by the frontend or server for each site */ export interface SiteModule { @@ -1054,10 +894,6 @@ export interface SiteModule { name?: string | null; /** JSON configuration data for this module */ data?: Record | null; - /** TRGM similarity when searching `name`. Returns null when no trgm search filter is active. */ - nameTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } /** Theme configuration for a site; stores design tokens, colors, and typography as JSONB */ export interface SiteTheme { @@ -1077,12 +913,22 @@ export interface TriggerFunction { code?: string | null; createdAt?: string | null; updatedAt?: string | null; - /** TRGM similarity when searching `name`. Returns null when no trgm search filter is active. */ - nameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `code`. Returns null when no trgm search filter is active. */ - codeTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; +} +export interface DatabaseTransfer { + id: string; + databaseId?: string | null; + targetOwnerId?: string | null; + sourceApproved?: boolean | null; + targetApproved?: boolean | null; + sourceApprovedAt?: string | null; + targetApprovedAt?: string | null; + status?: string | null; + initiatedBy?: string | null; + notes?: string | null; + expiresAt?: string | null; + createdAt?: string | null; + updatedAt?: string | null; + completedAt?: string | null; } /** API endpoint configurations: each record defines a PostGraphile/PostgREST API with its database role and public access settings */ export interface Api { @@ -1100,16 +946,6 @@ export interface Api { anonRole?: string | null; /** Whether this API is publicly accessible without authentication */ isPublic?: boolean | null; - /** TRGM similarity when searching `name`. Returns null when no trgm search filter is active. */ - nameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `dbname`. Returns null when no trgm search filter is active. */ - dbnameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `roleName`. Returns null when no trgm search filter is active. */ - roleNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `anonRole`. Returns null when no trgm search filter is active. */ - anonRoleTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } /** Top-level site configuration: branding assets, title, and description for a deployed application */ export interface Site { @@ -1131,14 +967,6 @@ export interface Site { logo?: ConstructiveInternalTypeImage | null; /** PostgreSQL database name this site connects to */ dbname?: string | null; - /** TRGM similarity when searching `title`. Returns null when no trgm search filter is active. */ - titleTrgmSimilarity?: number | null; - /** TRGM similarity when searching `description`. Returns null when no trgm search filter is active. */ - descriptionTrgmSimilarity?: number | null; - /** TRGM similarity when searching `dbname`. Returns null when no trgm search filter is active. */ - dbnameTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } /** Mobile and native app configuration linked to a site, including store links and identifiers */ export interface App { @@ -1160,14 +988,6 @@ export interface App { appIdPrefix?: string | null; /** URL to the Google Play Store listing */ playStoreLink?: ConstructiveInternalTypeUrl | null; - /** TRGM similarity when searching `name`. Returns null when no trgm search filter is active. */ - nameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `appStoreId`. Returns null when no trgm search filter is active. */ - appStoreIdTrgmSimilarity?: number | null; - /** TRGM similarity when searching `appIdPrefix`. Returns null when no trgm search filter is active. */ - appIdPrefixTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface ConnectedAccountsModule { id: string; @@ -1177,10 +997,6 @@ export interface ConnectedAccountsModule { tableId?: string | null; ownerTableId?: string | null; tableName?: string | null; - /** TRGM similarity when searching `tableName`. Returns null when no trgm search filter is active. */ - tableNameTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface CryptoAddressesModule { id: string; @@ -1191,12 +1007,6 @@ export interface CryptoAddressesModule { ownerTableId?: string | null; tableName?: string | null; cryptoNetwork?: string | null; - /** TRGM similarity when searching `tableName`. Returns null when no trgm search filter is active. */ - tableNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `cryptoNetwork`. Returns null when no trgm search filter is active. */ - cryptoNetworkTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface CryptoAuthModule { id: string; @@ -1213,20 +1023,6 @@ export interface CryptoAuthModule { signInRecordFailure?: string | null; signUpWithKey?: string | null; signInWithChallenge?: string | null; - /** TRGM similarity when searching `userField`. Returns null when no trgm search filter is active. */ - userFieldTrgmSimilarity?: number | null; - /** TRGM similarity when searching `cryptoNetwork`. Returns null when no trgm search filter is active. */ - cryptoNetworkTrgmSimilarity?: number | null; - /** TRGM similarity when searching `signInRequestChallenge`. Returns null when no trgm search filter is active. */ - signInRequestChallengeTrgmSimilarity?: number | null; - /** TRGM similarity when searching `signInRecordFailure`. Returns null when no trgm search filter is active. */ - signInRecordFailureTrgmSimilarity?: number | null; - /** TRGM similarity when searching `signUpWithKey`. Returns null when no trgm search filter is active. */ - signUpWithKeyTrgmSimilarity?: number | null; - /** TRGM similarity when searching `signInWithChallenge`. Returns null when no trgm search filter is active. */ - signInWithChallengeTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface DefaultIdsModule { id: string; @@ -1237,18 +1033,14 @@ export interface DenormalizedTableField { databaseId?: string | null; tableId?: string | null; fieldId?: string | null; - setIds?: string | null; + setIds?: string[] | null; refTableId?: string | null; refFieldId?: string | null; - refIds?: string | null; + refIds?: string[] | null; useUpdates?: boolean | null; updateDefaults?: boolean | null; funcName?: string | null; funcOrder?: number | null; - /** TRGM similarity when searching `funcName`. Returns null when no trgm search filter is active. */ - funcNameTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface EmailsModule { id: string; @@ -1258,10 +1050,6 @@ export interface EmailsModule { tableId?: string | null; ownerTableId?: string | null; tableName?: string | null; - /** TRGM similarity when searching `tableName`. Returns null when no trgm search filter is active. */ - tableNameTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface EncryptedSecretsModule { id: string; @@ -1269,10 +1057,6 @@ export interface EncryptedSecretsModule { schemaId?: string | null; tableId?: string | null; tableName?: string | null; - /** TRGM similarity when searching `tableName`. Returns null when no trgm search filter is active. */ - tableNameTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface FieldModule { id: string; @@ -1282,12 +1066,8 @@ export interface FieldModule { fieldId?: string | null; nodeType?: string | null; data?: Record | null; - triggers?: string | null; - functions?: string | null; - /** TRGM similarity when searching `nodeType`. Returns null when no trgm search filter is active. */ - nodeTypeTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; + triggers?: string[] | null; + functions?: string[] | null; } export interface InvitesModule { id: string; @@ -1304,16 +1084,6 @@ export interface InvitesModule { prefix?: string | null; membershipType?: number | null; entityTableId?: string | null; - /** TRGM similarity when searching `invitesTableName`. Returns null when no trgm search filter is active. */ - invitesTableNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `claimedInvitesTableName`. Returns null when no trgm search filter is active. */ - claimedInvitesTableNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `submitInviteCodeFunction`. Returns null when no trgm search filter is active. */ - submitInviteCodeFunctionTrgmSimilarity?: number | null; - /** TRGM similarity when searching `prefix`. Returns null when no trgm search filter is active. */ - prefixTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface LevelsModule { id: string; @@ -1342,38 +1112,6 @@ export interface LevelsModule { membershipType?: number | null; entityTableId?: string | null; actorTableId?: string | null; - /** TRGM similarity when searching `stepsTableName`. Returns null when no trgm search filter is active. */ - stepsTableNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `achievementsTableName`. Returns null when no trgm search filter is active. */ - achievementsTableNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `levelsTableName`. Returns null when no trgm search filter is active. */ - levelsTableNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `levelRequirementsTableName`. Returns null when no trgm search filter is active. */ - levelRequirementsTableNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `completedStep`. Returns null when no trgm search filter is active. */ - completedStepTrgmSimilarity?: number | null; - /** TRGM similarity when searching `incompletedStep`. Returns null when no trgm search filter is active. */ - incompletedStepTrgmSimilarity?: number | null; - /** TRGM similarity when searching `tgAchievement`. Returns null when no trgm search filter is active. */ - tgAchievementTrgmSimilarity?: number | null; - /** TRGM similarity when searching `tgAchievementToggle`. Returns null when no trgm search filter is active. */ - tgAchievementToggleTrgmSimilarity?: number | null; - /** TRGM similarity when searching `tgAchievementToggleBoolean`. Returns null when no trgm search filter is active. */ - tgAchievementToggleBooleanTrgmSimilarity?: number | null; - /** TRGM similarity when searching `tgAchievementBoolean`. Returns null when no trgm search filter is active. */ - tgAchievementBooleanTrgmSimilarity?: number | null; - /** TRGM similarity when searching `upsertAchievement`. Returns null when no trgm search filter is active. */ - upsertAchievementTrgmSimilarity?: number | null; - /** TRGM similarity when searching `tgUpdateAchievements`. Returns null when no trgm search filter is active. */ - tgUpdateAchievementsTrgmSimilarity?: number | null; - /** TRGM similarity when searching `stepsRequired`. Returns null when no trgm search filter is active. */ - stepsRequiredTrgmSimilarity?: number | null; - /** TRGM similarity when searching `levelAchieved`. Returns null when no trgm search filter is active. */ - levelAchievedTrgmSimilarity?: number | null; - /** TRGM similarity when searching `prefix`. Returns null when no trgm search filter is active. */ - prefixTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface LimitsModule { id: string; @@ -1394,26 +1132,6 @@ export interface LimitsModule { membershipType?: number | null; entityTableId?: string | null; actorTableId?: string | null; - /** TRGM similarity when searching `tableName`. Returns null when no trgm search filter is active. */ - tableNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `defaultTableName`. Returns null when no trgm search filter is active. */ - defaultTableNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `limitIncrementFunction`. Returns null when no trgm search filter is active. */ - limitIncrementFunctionTrgmSimilarity?: number | null; - /** TRGM similarity when searching `limitDecrementFunction`. Returns null when no trgm search filter is active. */ - limitDecrementFunctionTrgmSimilarity?: number | null; - /** TRGM similarity when searching `limitIncrementTrigger`. Returns null when no trgm search filter is active. */ - limitIncrementTriggerTrgmSimilarity?: number | null; - /** TRGM similarity when searching `limitDecrementTrigger`. Returns null when no trgm search filter is active. */ - limitDecrementTriggerTrgmSimilarity?: number | null; - /** TRGM similarity when searching `limitUpdateTrigger`. Returns null when no trgm search filter is active. */ - limitUpdateTriggerTrgmSimilarity?: number | null; - /** TRGM similarity when searching `limitCheckFunction`. Returns null when no trgm search filter is active. */ - limitCheckFunctionTrgmSimilarity?: number | null; - /** TRGM similarity when searching `prefix`. Returns null when no trgm search filter is active. */ - prefixTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface MembershipTypesModule { id: string; @@ -1421,10 +1139,6 @@ export interface MembershipTypesModule { schemaId?: string | null; tableId?: string | null; tableName?: string | null; - /** TRGM similarity when searching `tableName`. Returns null when no trgm search filter is active. */ - tableNameTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface MembershipsModule { id: string; @@ -1458,32 +1172,6 @@ export interface MembershipsModule { entityIdsByMask?: string | null; entityIdsByPerm?: string | null; entityIdsFunction?: string | null; - /** TRGM similarity when searching `membershipsTableName`. Returns null when no trgm search filter is active. */ - membershipsTableNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `membersTableName`. Returns null when no trgm search filter is active. */ - membersTableNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `membershipDefaultsTableName`. Returns null when no trgm search filter is active. */ - membershipDefaultsTableNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `grantsTableName`. Returns null when no trgm search filter is active. */ - grantsTableNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `adminGrantsTableName`. Returns null when no trgm search filter is active. */ - adminGrantsTableNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `ownerGrantsTableName`. Returns null when no trgm search filter is active. */ - ownerGrantsTableNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `prefix`. Returns null when no trgm search filter is active. */ - prefixTrgmSimilarity?: number | null; - /** TRGM similarity when searching `actorMaskCheck`. Returns null when no trgm search filter is active. */ - actorMaskCheckTrgmSimilarity?: number | null; - /** TRGM similarity when searching `actorPermCheck`. Returns null when no trgm search filter is active. */ - actorPermCheckTrgmSimilarity?: number | null; - /** TRGM similarity when searching `entityIdsByMask`. Returns null when no trgm search filter is active. */ - entityIdsByMaskTrgmSimilarity?: number | null; - /** TRGM similarity when searching `entityIdsByPerm`. Returns null when no trgm search filter is active. */ - entityIdsByPermTrgmSimilarity?: number | null; - /** TRGM similarity when searching `entityIdsFunction`. Returns null when no trgm search filter is active. */ - entityIdsFunctionTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface PermissionsModule { id: string; @@ -1503,22 +1191,6 @@ export interface PermissionsModule { getMask?: string | null; getByMask?: string | null; getMaskByName?: string | null; - /** TRGM similarity when searching `tableName`. Returns null when no trgm search filter is active. */ - tableNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `defaultTableName`. Returns null when no trgm search filter is active. */ - defaultTableNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `prefix`. Returns null when no trgm search filter is active. */ - prefixTrgmSimilarity?: number | null; - /** TRGM similarity when searching `getPaddedMask`. Returns null when no trgm search filter is active. */ - getPaddedMaskTrgmSimilarity?: number | null; - /** TRGM similarity when searching `getMask`. Returns null when no trgm search filter is active. */ - getMaskTrgmSimilarity?: number | null; - /** TRGM similarity when searching `getByMask`. Returns null when no trgm search filter is active. */ - getByMaskTrgmSimilarity?: number | null; - /** TRGM similarity when searching `getMaskByName`. Returns null when no trgm search filter is active. */ - getMaskByNameTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface PhoneNumbersModule { id: string; @@ -1528,10 +1200,6 @@ export interface PhoneNumbersModule { tableId?: string | null; ownerTableId?: string | null; tableName?: string | null; - /** TRGM similarity when searching `tableName`. Returns null when no trgm search filter is active. */ - tableNameTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface ProfilesModule { id: string; @@ -1552,18 +1220,6 @@ export interface ProfilesModule { permissionsTableId?: string | null; membershipsTableId?: string | null; prefix?: string | null; - /** TRGM similarity when searching `tableName`. Returns null when no trgm search filter is active. */ - tableNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `profilePermissionsTableName`. Returns null when no trgm search filter is active. */ - profilePermissionsTableNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `profileGrantsTableName`. Returns null when no trgm search filter is active. */ - profileGrantsTableNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `profileDefinitionGrantsTableName`. Returns null when no trgm search filter is active. */ - profileDefinitionGrantsTableNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `prefix`. Returns null when no trgm search filter is active. */ - prefixTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface SecretsModule { id: string; @@ -1571,10 +1227,6 @@ export interface SecretsModule { schemaId?: string | null; tableId?: string | null; tableName?: string | null; - /** TRGM similarity when searching `tableName`. Returns null when no trgm search filter is active. */ - tableNameTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface SessionsModule { id: string; @@ -1588,14 +1240,6 @@ export interface SessionsModule { sessionsTable?: string | null; sessionCredentialsTable?: string | null; authSettingsTable?: string | null; - /** TRGM similarity when searching `sessionsTable`. Returns null when no trgm search filter is active. */ - sessionsTableTrgmSimilarity?: number | null; - /** TRGM similarity when searching `sessionCredentialsTable`. Returns null when no trgm search filter is active. */ - sessionCredentialsTableTrgmSimilarity?: number | null; - /** TRGM similarity when searching `authSettingsTable`. Returns null when no trgm search filter is active. */ - authSettingsTableTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface UserAuthModule { id: string; @@ -1624,40 +1268,6 @@ export interface UserAuthModule { signInOneTimeTokenFunction?: string | null; oneTimeTokenFunction?: string | null; extendTokenExpires?: string | null; - /** TRGM similarity when searching `auditsTableName`. Returns null when no trgm search filter is active. */ - auditsTableNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `signInFunction`. Returns null when no trgm search filter is active. */ - signInFunctionTrgmSimilarity?: number | null; - /** TRGM similarity when searching `signUpFunction`. Returns null when no trgm search filter is active. */ - signUpFunctionTrgmSimilarity?: number | null; - /** TRGM similarity when searching `signOutFunction`. Returns null when no trgm search filter is active. */ - signOutFunctionTrgmSimilarity?: number | null; - /** TRGM similarity when searching `setPasswordFunction`. Returns null when no trgm search filter is active. */ - setPasswordFunctionTrgmSimilarity?: number | null; - /** TRGM similarity when searching `resetPasswordFunction`. Returns null when no trgm search filter is active. */ - resetPasswordFunctionTrgmSimilarity?: number | null; - /** TRGM similarity when searching `forgotPasswordFunction`. Returns null when no trgm search filter is active. */ - forgotPasswordFunctionTrgmSimilarity?: number | null; - /** TRGM similarity when searching `sendVerificationEmailFunction`. Returns null when no trgm search filter is active. */ - sendVerificationEmailFunctionTrgmSimilarity?: number | null; - /** TRGM similarity when searching `verifyEmailFunction`. Returns null when no trgm search filter is active. */ - verifyEmailFunctionTrgmSimilarity?: number | null; - /** TRGM similarity when searching `verifyPasswordFunction`. Returns null when no trgm search filter is active. */ - verifyPasswordFunctionTrgmSimilarity?: number | null; - /** TRGM similarity when searching `checkPasswordFunction`. Returns null when no trgm search filter is active. */ - checkPasswordFunctionTrgmSimilarity?: number | null; - /** TRGM similarity when searching `sendAccountDeletionEmailFunction`. Returns null when no trgm search filter is active. */ - sendAccountDeletionEmailFunctionTrgmSimilarity?: number | null; - /** TRGM similarity when searching `deleteAccountFunction`. Returns null when no trgm search filter is active. */ - deleteAccountFunctionTrgmSimilarity?: number | null; - /** TRGM similarity when searching `signInOneTimeTokenFunction`. Returns null when no trgm search filter is active. */ - signInOneTimeTokenFunctionTrgmSimilarity?: number | null; - /** TRGM similarity when searching `oneTimeTokenFunction`. Returns null when no trgm search filter is active. */ - oneTimeTokenFunctionTrgmSimilarity?: number | null; - /** TRGM similarity when searching `extendTokenExpires`. Returns null when no trgm search filter is active. */ - extendTokenExpiresTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface UsersModule { id: string; @@ -1667,25 +1277,86 @@ export interface UsersModule { tableName?: string | null; typeTableId?: string | null; typeTableName?: string | null; - /** TRGM similarity when searching `tableName`. Returns null when no trgm search filter is active. */ - tableNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `typeTableName`. Returns null when no trgm search filter is active. */ - typeTableNameTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } -export interface UuidModule { +/** An owned, executable blueprint scoped to a specific database. Created by copying from a blueprint_template via copy_template_to_blueprint() or built from scratch. The owner can customize the definition before executing it with construct_blueprint(). Each blueprint tracks its execution status (draft/constructed/failed) and stores the ref_map of created table IDs after construction. */ +export interface Blueprint { + /** Unique identifier for this blueprint. */ id: string; + /** The user who owns this blueprint. */ + ownerId?: string | null; + /** The database this blueprint is scoped to. Tables created by construct_blueprint() are provisioned in this database. */ databaseId?: string | null; - schemaId?: string | null; - uuidFunction?: string | null; - uuidSeed?: string | null; - /** TRGM similarity when searching `uuidFunction`. Returns null when no trgm search filter is active. */ - uuidFunctionTrgmSimilarity?: number | null; - /** TRGM similarity when searching `uuidSeed`. Returns null when no trgm search filter is active. */ - uuidSeedTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; + /** Machine-readable name for the blueprint. Must be unique per database. */ + name?: string | null; + /** Human-readable display name for the blueprint. */ + displayName?: string | null; + /** Optional description of the blueprint. */ + description?: string | null; + /** The blueprint definition as a JSONB document. Same format as blueprint_template.definition: contains tables[] (with nodes[], fields[], grants[], policies[] using $type) and relations[] (using $type). This is a mutable copy that the owner can customize before executing. */ + definition?: Record | null; + /** If this blueprint was created by copying a template, the ID of the source template. NULL if built from scratch. */ + templateId?: string | null; + /** Execution state of the blueprint. draft: not yet executed (definition can still be modified). constructed: successfully executed via construct_blueprint(). failed: execution failed (see error_details). Defaults to draft. */ + status?: string | null; + /** Timestamp when construct_blueprint() successfully completed. NULL until constructed. */ + constructedAt?: string | null; + /** Error message from the most recent failed construct_blueprint() attempt. NULL unless status is failed. */ + errorDetails?: string | null; + /** Mapping of ref names to created table UUIDs, populated by construct_blueprint() after successful execution. Format: {"products": "uuid", "categories": "uuid", ...}. Defaults to empty object. */ + refMap?: Record | null; + /** Immutable snapshot of the definition at construct-time. Preserved so the exact definition that was executed is recorded even if the user later modifies the definition for re-execution. NULL until constructed. */ + constructedDefinition?: Record | null; + /** UUIDv5 Merkle root hash of the definition. Computed automatically via trigger from the ordered table_hashes. Used for content-addressable deduplication and provenance tracking. Backend-computed — clients should never set this directly. */ + definitionHash?: string | null; + /** JSONB map of table ref names to their individual UUIDv5 content hashes. Each table hash is computed from the canonical jsonb::text of the table entry. Enables structural comparison at the table level across blueprints and templates. Backend-computed via trigger. */ + tableHashes?: Record | null; + /** Timestamp when this blueprint was created. */ + createdAt?: string | null; + /** Timestamp when this blueprint was last modified. */ + updatedAt?: string | null; +} +/** A shareable, versioned schema recipe for the blueprint marketplace. Templates define arrays of secure_table_provision + relation_provision inputs that together describe a complete domain schema (e.g. e-commerce, telemedicine, habit tracker). Templates are never executed directly — they are copied into a blueprint first via copy_template_to_blueprint(). Can be private (owner-only) or public (marketplace-visible). */ +export interface BlueprintTemplate { + /** Unique identifier for this template. */ + id: string; + /** Machine-readable name for the template (e.g. e_commerce_basic). Must be unique per owner + version. */ + name?: string | null; + /** Semantic version string. Defaults to 1.0.0. */ + version?: string | null; + /** Human-readable display name for the template (e.g. E-Commerce Basic). */ + displayName?: string | null; + /** Optional description of what the template provisions. */ + description?: string | null; + /** The user who created or published this template. */ + ownerId?: string | null; + /** Access control for the template. private: only the owner can see and copy. public: anyone can browse and copy from the marketplace. Defaults to private. */ + visibility?: string | null; + /** Domain categories for marketplace browsing (e.g. e-commerce, healthcare, social). Defaults to empty array. */ + categories?: string[] | null; + /** Freeform tags for search and discovery (e.g. products, orders, payments). Defaults to empty array. */ + tags?: string[] | null; + /** The blueprint definition as a JSONB document. Contains tables[] (each with nodes[] for data behaviors via string shorthand or {"$type": "...", "data": {...}} objects, fields[], grants[], and policies[] using {"$type": "...", "data": {...}}), and relations[] (using $type for relation_type with junction config in data). This is the core payload that gets copied into a blueprint for execution. */ + definition?: Record | null; + /** Version of the definition format schema. Used for forward-compatible parsing. Defaults to 1. */ + definitionSchemaVersion?: string | null; + /** Provenance of the template. user: manually created by a human. system: official curated template from the Constructive team. agent: AI-generated. Defaults to user. */ + source?: string | null; + /** Complexity indicator for marketplace filtering. simple: 3-5 tables. moderate: 6-12 tables. complex: 13+ tables. NULL if not categorized. */ + complexity?: string | null; + /** Denormalized count of how many blueprints have been created from this template via copy_template_to_blueprint(). Incremented automatically. Defaults to 0. */ + copyCount?: number | null; + /** Denormalized count of how many derivative templates have been forked from this template. Defaults to 0. */ + forkCount?: number | null; + /** If this template was forked from another template, the ID of the parent. NULL for original templates. */ + forkedFromId?: string | null; + /** UUIDv5 Merkle root hash of the definition. Computed automatically via trigger from the ordered table_hashes. Used for content-addressable deduplication, provenance tracking, and cross-blueprint structural comparison. NULL columns are backend-computed — clients should never set this directly. */ + definitionHash?: string | null; + /** JSONB map of table ref names to their individual UUIDv5 content hashes (e.g. {"products": "uuid", "categories": "uuid"}). Each table hash is computed from the canonical jsonb::text of the table entry. Enables structural comparison at the table level across different blueprints. Backend-computed via trigger. */ + tableHashes?: Record | null; + /** Timestamp when this template was created. */ + createdAt?: string | null; + /** Timestamp when this template was last modified. */ + updatedAt?: string | null; } /** Tracks database provisioning requests and their status. The BEFORE INSERT trigger creates the database and sets database_id before RLS policies are evaluated. */ export interface DatabaseProvisionModule { @@ -1699,7 +1370,7 @@ export interface DatabaseProvisionModule { /** Base domain for the database (e.g., example.com) */ domain?: string | null; /** Array of module IDs to install, or ["all"] for all modules */ - modules?: string | null; + modules?: string[] | null; /** Additional configuration options for provisioning */ options?: Record | null; /** When true, copies the owner user and password hash from source database to the newly provisioned database */ @@ -1712,18 +1383,6 @@ export interface DatabaseProvisionModule { createdAt?: string | null; updatedAt?: string | null; completedAt?: string | null; - /** TRGM similarity when searching `databaseName`. Returns null when no trgm search filter is active. */ - databaseNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `subdomain`. Returns null when no trgm search filter is active. */ - subdomainTrgmSimilarity?: number | null; - /** TRGM similarity when searching `domain`. Returns null when no trgm search filter is active. */ - domainTrgmSimilarity?: number | null; - /** TRGM similarity when searching `status`. Returns null when no trgm search filter is active. */ - statusTrgmSimilarity?: number | null; - /** TRGM similarity when searching `errorMessage`. Returns null when no trgm search filter is active. */ - errorMessageTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } /** Records of admin role grants and revocations between members */ export interface AppAdminGrant { @@ -1855,10 +1514,6 @@ export interface OrgChartEdge { positionTitle?: string | null; /** Numeric seniority level for this position (higher = more senior) */ positionLevel?: number | null; - /** TRGM similarity when searching `positionTitle`. Returns null when no trgm search filter is active. */ - positionTitleTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } /** Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table */ export interface OrgChartEdgeGrant { @@ -1869,7 +1524,7 @@ export interface OrgChartEdgeGrant { childId?: string | null; /** User ID of the manager being assigned; NULL for top-level positions */ parentId?: string | null; - /** User ID of the admin who performed this grant or revocation */ + /** User ID of the admin who performed this grant or revocation; NULL if grantor was deleted */ grantorId?: string | null; /** TRUE to add/update the edge, FALSE to remove it */ isGrant?: boolean | null; @@ -1879,10 +1534,14 @@ export interface OrgChartEdgeGrant { positionLevel?: number | null; /** Timestamp when this grant or revocation was recorded */ createdAt?: string | null; - /** TRGM similarity when searching `positionTitle`. Returns null when no trgm search filter is active. */ - positionTitleTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; +} +/** Stores the default permission bitmask assigned to new members upon joining */ +export interface OrgPermissionDefault { + id: string; + /** Default permission bitmask applied to new members */ + permissions?: string | null; + /** References the entity these default permissions apply to */ + entityId?: string | null; } /** Tracks per-actor usage counts against configurable maximum limits */ export interface AppLimit { @@ -1931,6 +1590,76 @@ export interface AppAchievement { createdAt?: string | null; updatedAt?: string | null; } +/** Defines available levels that users can achieve by completing requirements */ +export interface AppLevel { + id: string; + /** Unique name of the level */ + name?: string | null; + /** Human-readable description of what this level represents */ + description?: string | null; + /** Badge or icon image associated with this level */ + image?: ConstructiveInternalTypeImage | null; + /** Optional owner (actor) who created or manages this level */ + ownerId?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} +/** User email addresses with verification and primary-email management */ +export interface Email { + id: string; + ownerId?: string | null; + /** The email address */ + email?: ConstructiveInternalTypeEmail | null; + /** Whether the email address has been verified via confirmation link */ + isVerified?: boolean | null; + /** Whether this is the user's primary email address */ + isPrimary?: boolean | null; + createdAt?: string | null; + updatedAt?: string | null; +} +/** User phone numbers with country code, verification, and primary-number management */ +export interface PhoneNumber { + id: string; + ownerId?: string | null; + /** Country calling code (e.g. +1, +44) */ + cc?: string | null; + /** The phone number without country code */ + number?: string | null; + /** Whether the phone number has been verified via SMS code */ + isVerified?: boolean | null; + /** Whether this is the user's primary phone number */ + isPrimary?: boolean | null; + createdAt?: string | null; + updatedAt?: string | null; +} +/** Cryptocurrency wallet addresses owned by users, with network-specific validation and verification */ +export interface CryptoAddress { + id: string; + ownerId?: string | null; + /** The cryptocurrency wallet address, validated against network-specific patterns */ + address?: string | null; + /** Whether ownership of this address has been cryptographically verified */ + isVerified?: boolean | null; + /** Whether this is the user's primary cryptocurrency address */ + isPrimary?: boolean | null; + createdAt?: string | null; + updatedAt?: string | null; +} +/** OAuth and social login connections linking external service accounts to users */ +export interface ConnectedAccount { + id: string; + ownerId?: string | null; + /** The service used, e.g. `twitter` or `github`. */ + service?: string | null; + /** A unique identifier for the user within the service */ + identifier?: string | null; + /** Additional profile details extracted from this login method */ + details?: Record | null; + /** Whether this connected account has been verified */ + isVerified?: boolean | null; + createdAt?: string | null; + updatedAt?: string | null; +} /** Invitation records sent to prospective members via email, with token-based redemption and expiration */ export interface Invite { id: string; @@ -1954,10 +1683,6 @@ export interface Invite { expiresAt?: string | null; createdAt?: string | null; updatedAt?: string | null; - /** TRGM similarity when searching `inviteToken`. Returns null when no trgm search filter is active. */ - inviteTokenTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } /** Records of successfully claimed invitations, linking senders to receivers */ export interface ClaimedInvite { @@ -1997,10 +1722,6 @@ export interface OrgInvite { createdAt?: string | null; updatedAt?: string | null; entityId?: string | null; - /** TRGM similarity when searching `inviteToken`. Returns null when no trgm search filter is active. */ - inviteTokenTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } /** Records of successfully claimed invitations, linking senders to receivers */ export interface OrgClaimedInvite { @@ -2015,6 +1736,24 @@ export interface OrgClaimedInvite { updatedAt?: string | null; entityId?: string | null; } +/** Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) */ +export interface AuditLog { + id: string; + /** Type of authentication event (e.g. sign_in, sign_up, password_change, verify_email) */ + event?: string | null; + /** User who performed the authentication action; NULL if user was deleted */ + actorId?: string | null; + /** Request origin (domain) where the auth event occurred */ + origin?: ConstructiveInternalTypeOrigin | null; + /** Browser or client user-agent string from the request */ + userAgent?: string | null; + /** IP address of the client that initiated the auth event */ + ipAddress?: string | null; + /** Whether the authentication attempt succeeded */ + success?: boolean | null; + /** Timestamp when the audit event was recorded */ + createdAt?: string | null; +} /** A ref is a data structure for pointing to a commit. */ export interface Ref { /** The primary unique identifier for the ref. */ @@ -2024,10 +1763,6 @@ export interface Ref { databaseId?: string | null; storeId?: string | null; commitId?: string | null; - /** TRGM similarity when searching `name`. Returns null when no trgm search filter is active. */ - nameTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } /** A store represents an isolated object repository within a database. */ export interface Store { @@ -2040,10 +1775,6 @@ export interface Store { /** The current head tree_id for this store. */ hash?: string | null; createdAt?: string | null; - /** TRGM similarity when searching `name`. Returns null when no trgm search filter is active. */ - nameTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } /** Stores the default permission bitmask assigned to new members upon joining */ export interface AppPermissionDefault { @@ -2051,56 +1782,10 @@ export interface AppPermissionDefault { /** Default permission bitmask applied to new members */ permissions?: string | null; } -/** Cryptocurrency wallet addresses owned by users, with network-specific validation and verification */ -export interface CryptoAddress { - id: string; - ownerId?: string | null; - /** The cryptocurrency wallet address, validated against network-specific patterns */ - address?: string | null; - /** Whether ownership of this address has been cryptographically verified */ - isVerified?: boolean | null; - /** Whether this is the user's primary cryptocurrency address */ - isPrimary?: boolean | null; - createdAt?: string | null; - updatedAt?: string | null; - /** TRGM similarity when searching `address`. Returns null when no trgm search filter is active. */ - addressTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; -} export interface RoleType { id: number; name?: string | null; } -/** Stores the default permission bitmask assigned to new members upon joining */ -export interface OrgPermissionDefault { - id: string; - /** Default permission bitmask applied to new members */ - permissions?: string | null; - /** References the entity these default permissions apply to */ - entityId?: string | null; -} -/** User phone numbers with country code, verification, and primary-number management */ -export interface PhoneNumber { - id: string; - ownerId?: string | null; - /** Country calling code (e.g. +1, +44) */ - cc?: string | null; - /** The phone number without country code */ - number?: string | null; - /** Whether the phone number has been verified via SMS code */ - isVerified?: boolean | null; - /** Whether this is the user's primary phone number */ - isPrimary?: boolean | null; - createdAt?: string | null; - updatedAt?: string | null; - /** TRGM similarity when searching `cc`. Returns null when no trgm search filter is active. */ - ccTrgmSimilarity?: number | null; - /** TRGM similarity when searching `number`. Returns null when no trgm search filter is active. */ - numberTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; -} /** Default maximum values for each named limit, applied when no per-actor override exists */ export interface AppLimitDefault { id: string; @@ -2117,27 +1802,6 @@ export interface OrgLimitDefault { /** Default maximum usage allowed for this limit */ max?: number | null; } -/** OAuth and social login connections linking external service accounts to users */ -export interface ConnectedAccount { - id: string; - ownerId?: string | null; - /** The service used, e.g. `twitter` or `github`. */ - service?: string | null; - /** A unique identifier for the user within the service */ - identifier?: string | null; - /** Additional profile details extracted from this login method */ - details?: Record | null; - /** Whether this connected account has been verified */ - isVerified?: boolean | null; - createdAt?: string | null; - updatedAt?: string | null; - /** TRGM similarity when searching `service`. Returns null when no trgm search filter is active. */ - serviceTrgmSimilarity?: number | null; - /** TRGM similarity when searching `identifier`. Returns null when no trgm search filter is active. */ - identifierTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; -} /** Registry of high-level semantic AST node types using domain-prefixed naming. These IR nodes compile to multiple targets (Postgres RLS, egress, ingress, etc.). */ export interface NodeTypeRegistry { /** PascalCase domain-prefixed node type name (e.g., AuthzDirectOwner, DataTimestamps, FieldImmutable) */ @@ -2153,21 +1817,9 @@ export interface NodeTypeRegistry { /** JSON Schema defining valid parameters for this node type */ parameterSchema?: Record | null; /** Tags for categorization and filtering (e.g., ownership, membership, temporal, rls) */ - tags?: string | null; + tags?: string[] | null; createdAt?: string | null; updatedAt?: string | null; - /** TRGM similarity when searching `name`. Returns null when no trgm search filter is active. */ - nameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `slug`. Returns null when no trgm search filter is active. */ - slugTrgmSimilarity?: number | null; - /** TRGM similarity when searching `category`. Returns null when no trgm search filter is active. */ - categoryTrgmSimilarity?: number | null; - /** TRGM similarity when searching `displayName`. Returns null when no trgm search filter is active. */ - displayNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `description`. Returns null when no trgm search filter is active. */ - descriptionTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } /** Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) */ export interface MembershipType { @@ -2179,12 +1831,6 @@ export interface MembershipType { description?: string | null; /** Short prefix used to namespace tables and functions for this membership scope */ prefix?: string | null; - /** TRGM similarity when searching `description`. Returns null when no trgm search filter is active. */ - descriptionTrgmSimilarity?: number | null; - /** TRGM similarity when searching `prefix`. Returns null when no trgm search filter is active. */ - prefixTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } /** A commit records changes to the repository. */ export interface Commit { @@ -2196,7 +1842,7 @@ export interface Commit { databaseId?: string | null; storeId?: string | null; /** Parent commits */ - parentIds?: string | null; + parentIds?: string[] | null; /** The author of the commit */ authorId?: string | null; /** The committer of the commit */ @@ -2204,10 +1850,6 @@ export interface Commit { /** The root of the tree */ treeId?: string | null; date?: string | null; - /** TRGM similarity when searching `message`. Returns null when no trgm search filter is active. */ - messageTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } /** Default membership settings per entity, controlling initial approval and verification state for new members */ export interface AppMembershipDefault { @@ -2233,16 +1875,6 @@ export interface RlsModule { authenticateStrict?: string | null; currentRole?: string | null; currentRoleId?: string | null; - /** TRGM similarity when searching `authenticate`. Returns null when no trgm search filter is active. */ - authenticateTrgmSimilarity?: number | null; - /** TRGM similarity when searching `authenticateStrict`. Returns null when no trgm search filter is active. */ - authenticateStrictTrgmSimilarity?: number | null; - /** TRGM similarity when searching `currentRole`. Returns null when no trgm search filter is active. */ - currentRoleTrgmSimilarity?: number | null; - /** TRGM similarity when searching `currentRoleId`. Returns null when no trgm search filter is active. */ - currentRoleIdTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } /** Default membership settings per entity, controlling initial approval and verification state for new members */ export interface OrgMembershipDefault { @@ -2260,52 +1892,12 @@ export interface OrgMembershipDefault { /** When a group is created, whether to auto-add existing org members as group members */ createGroupsCascadeMembers?: boolean | null; } -/** Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) */ -export interface AuditLog { - id: string; - /** Type of authentication event (e.g. sign_in, sign_up, password_change, verify_email) */ - event?: string | null; - /** User who performed the authentication action */ - actorId?: string | null; - /** Request origin (domain) where the auth event occurred */ - origin?: ConstructiveInternalTypeOrigin | null; - /** Browser or client user-agent string from the request */ - userAgent?: string | null; - /** IP address of the client that initiated the auth event */ - ipAddress?: string | null; - /** Whether the authentication attempt succeeded */ - success?: boolean | null; - /** Timestamp when the audit event was recorded */ - createdAt?: string | null; - /** TRGM similarity when searching `userAgent`. Returns null when no trgm search filter is active. */ - userAgentTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; -} -/** Defines available levels that users can achieve by completing requirements */ -export interface AppLevel { - id: string; - /** Unique name of the level */ - name?: string | null; - /** Human-readable description of what this level represents */ - description?: string | null; - /** Badge or icon image associated with this level */ - image?: ConstructiveInternalTypeImage | null; - /** Optional owner (actor) who created or manages this level */ - ownerId?: string | null; - createdAt?: string | null; - updatedAt?: string | null; - /** TRGM similarity when searching `description`. Returns null when no trgm search filter is active. */ - descriptionTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; -} export interface SqlMigration { id: number; name?: string | null; databaseId?: string | null; deploy?: string | null; - deps?: string | null; + deps?: string[] | null; payload?: Record | null; content?: string | null; revert?: string | null; @@ -2314,33 +1906,6 @@ export interface SqlMigration { action?: string | null; actionId?: string | null; actorId?: string | null; - /** TRGM similarity when searching `name`. Returns null when no trgm search filter is active. */ - nameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `deploy`. Returns null when no trgm search filter is active. */ - deployTrgmSimilarity?: number | null; - /** TRGM similarity when searching `content`. Returns null when no trgm search filter is active. */ - contentTrgmSimilarity?: number | null; - /** TRGM similarity when searching `revert`. Returns null when no trgm search filter is active. */ - revertTrgmSimilarity?: number | null; - /** TRGM similarity when searching `verify`. Returns null when no trgm search filter is active. */ - verifyTrgmSimilarity?: number | null; - /** TRGM similarity when searching `action`. Returns null when no trgm search filter is active. */ - actionTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; -} -/** User email addresses with verification and primary-email management */ -export interface Email { - id: string; - ownerId?: string | null; - /** The email address */ - email?: ConstructiveInternalTypeEmail | null; - /** Whether the email address has been verified via confirmation link */ - isVerified?: boolean | null; - /** Whether this is the user's primary email address */ - isPrimary?: boolean | null; - createdAt?: string | null; - updatedAt?: string | null; } export interface User { id: string; @@ -2355,14 +1920,14 @@ export interface User { searchTsvRank?: number | null; /** TRGM similarity when searching `displayName`. Returns null when no trgm search filter is active. */ displayNameTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ + /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. */ searchScore?: number | null; } export interface AstMigration { id: number; databaseId?: string | null; name?: string | null; - requires?: string | null; + requires?: string[] | null; payload?: Record | null; deploys?: string | null; deploy?: Record | null; @@ -2372,10 +1937,6 @@ export interface AstMigration { action?: string | null; actionId?: string | null; actorId?: string | null; - /** TRGM similarity when searching `action`. Returns null when no trgm search filter is active. */ - actionTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } /** Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status */ export interface AppMembership { @@ -2427,28 +1988,6 @@ export interface HierarchyModule { getManagersFunction?: string | null; isManagerOfFunction?: string | null; createdAt?: string | null; - /** TRGM similarity when searching `chartEdgesTableName`. Returns null when no trgm search filter is active. */ - chartEdgesTableNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `hierarchySprtTableName`. Returns null when no trgm search filter is active. */ - hierarchySprtTableNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `chartEdgeGrantsTableName`. Returns null when no trgm search filter is active. */ - chartEdgeGrantsTableNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `prefix`. Returns null when no trgm search filter is active. */ - prefixTrgmSimilarity?: number | null; - /** TRGM similarity when searching `privateSchemaName`. Returns null when no trgm search filter is active. */ - privateSchemaNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `sprtTableName`. Returns null when no trgm search filter is active. */ - sprtTableNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `rebuildHierarchyFunction`. Returns null when no trgm search filter is active. */ - rebuildHierarchyFunctionTrgmSimilarity?: number | null; - /** TRGM similarity when searching `getSubordinatesFunction`. Returns null when no trgm search filter is active. */ - getSubordinatesFunctionTrgmSimilarity?: number | null; - /** TRGM similarity when searching `getManagersFunction`. Returns null when no trgm search filter is active. */ - getManagersFunctionTrgmSimilarity?: number | null; - /** TRGM similarity when searching `isManagerOfFunction`. Returns null when no trgm search filter is active. */ - isManagerOfFunctionTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } // ============ Relation Helper Types ============ export interface ConnectionResult { @@ -2463,9 +2002,9 @@ export interface PageInfo { endCursor?: string | null; } // ============ Entity Relation Types ============ +export interface GetAllRecordRelations {} export interface OrgGetManagersRecordRelations {} export interface OrgGetSubordinatesRecordRelations {} -export interface GetAllRecordRelations {} export interface ObjectRelations {} export interface AppPermissionRelations {} export interface OrgPermissionRelations {} @@ -2492,6 +2031,9 @@ export interface DatabaseRelations { viewGrants?: ConnectionResult; viewRules?: ConnectionResult; defaultPrivileges?: ConnectionResult; + enums?: ConnectionResult; + embeddingChunks?: ConnectionResult; + databaseTransfers?: ConnectionResult; apis?: ConnectionResult; apiModules?: ConnectionResult; apiSchemas?: ConnectionResult; @@ -2521,10 +2063,10 @@ export interface DatabaseRelations { sessionsModules?: ConnectionResult; userAuthModules?: ConnectionResult; usersModules?: ConnectionResult; - uuidModules?: ConnectionResult; tableTemplateModules?: ConnectionResult; secureTableProvisions?: ConnectionResult; relationProvisions?: ConnectionResult; + blueprints?: ConnectionResult; databaseProvisionModules?: ConnectionResult; } export interface SchemaRelations { @@ -2533,6 +2075,7 @@ export interface SchemaRelations { schemaGrants?: ConnectionResult; views?: ConnectionResult; defaultPrivileges?: ConnectionResult; + enums?: ConnectionResult; apiSchemas?: ConnectionResult; tableTemplateModulesByPrivateSchemaId?: ConnectionResult; tableTemplateModules?: ConnectionResult; @@ -2553,6 +2096,8 @@ export interface TableRelations { uniqueConstraints?: ConnectionResult; views?: ConnectionResult; viewTables?: ConnectionResult; + embeddingChunksByChunksTableId?: ConnectionResult; + embeddingChunks?: ConnectionResult; tableTemplateModulesByOwnerTableId?: ConnectionResult; tableTemplateModules?: ConnectionResult; secureTableProvisions?: ConnectionResult; @@ -2620,6 +2165,13 @@ export interface ViewRuleRelations { database?: Database | null; view?: View | null; } +export interface EmbeddingChunkRelations { + chunksTable?: Table | null; + database?: Database | null; + embeddingField?: Field | null; + parentFkField?: Field | null; + table?: Table | null; +} export interface TableTemplateModuleRelations { database?: Database | null; ownerTable?: Table | null; @@ -2645,6 +2197,10 @@ export interface DefaultPrivilegeRelations { database?: Database | null; schema?: Schema | null; } +export interface EnumRelations { + database?: Database | null; + schema?: Schema | null; +} export interface ApiSchemaRelations { api?: Api | null; database?: Database | null; @@ -2674,6 +2230,9 @@ export interface SiteThemeRelations { export interface TriggerFunctionRelations { database?: Database | null; } +export interface DatabaseTransferRelations { + database?: Database | null; +} export interface ApiRelations { database?: Database | null; apiModules?: ConnectionResult; @@ -2852,9 +2411,14 @@ export interface UsersModuleRelations { table?: Table | null; typeTable?: Table | null; } -export interface UuidModuleRelations { +export interface BlueprintRelations { database?: Database | null; - schema?: Schema | null; + template?: BlueprintTemplate | null; +} +export interface BlueprintTemplateRelations { + forkedFrom?: BlueprintTemplate | null; + blueprintTemplatesByForkedFromId?: ConnectionResult; + blueprintsByTemplateId?: ConnectionResult; } export interface DatabaseProvisionModuleRelations { database?: Database | null; @@ -2905,6 +2469,9 @@ export interface OrgChartEdgeGrantRelations { grantor?: User | null; parent?: User | null; } +export interface OrgPermissionDefaultRelations { + entity?: User | null; +} export interface AppLimitRelations { actor?: User | null; } @@ -2918,6 +2485,21 @@ export interface AppStepRelations { export interface AppAchievementRelations { actor?: User | null; } +export interface AppLevelRelations { + owner?: User | null; +} +export interface EmailRelations { + owner?: User | null; +} +export interface PhoneNumberRelations { + owner?: User | null; +} +export interface CryptoAddressRelations { + owner?: User | null; +} +export interface ConnectedAccountRelations { + owner?: User | null; +} export interface InviteRelations { sender?: User | null; } @@ -2935,24 +2517,15 @@ export interface OrgClaimedInviteRelations { receiver?: User | null; sender?: User | null; } +export interface AuditLogRelations { + actor?: User | null; +} export interface RefRelations {} export interface StoreRelations {} export interface AppPermissionDefaultRelations {} -export interface CryptoAddressRelations { - owner?: User | null; -} export interface RoleTypeRelations {} -export interface OrgPermissionDefaultRelations { - entity?: User | null; -} -export interface PhoneNumberRelations { - owner?: User | null; -} export interface AppLimitDefaultRelations {} export interface OrgLimitDefaultRelations {} -export interface ConnectedAccountRelations { - owner?: User | null; -} export interface NodeTypeRegistryRelations {} export interface MembershipTypeRelations {} export interface CommitRelations {} @@ -2968,32 +2541,29 @@ export interface RlsModuleRelations { export interface OrgMembershipDefaultRelations { entity?: User | null; } -export interface AuditLogRelations { - actor?: User | null; -} -export interface AppLevelRelations { - owner?: User | null; -} export interface SqlMigrationRelations {} -export interface EmailRelations { - owner?: User | null; -} export interface UserRelations { roleType?: RoleType | null; appMembershipByActorId?: AppMembership | null; orgMembershipDefaultByEntityId?: OrgMembershipDefault | null; ownedDatabases?: ConnectionResult; + appAdminGrantsByActorId?: ConnectionResult; appAdminGrantsByGrantorId?: ConnectionResult; + appOwnerGrantsByActorId?: ConnectionResult; appOwnerGrantsByGrantorId?: ConnectionResult; + appGrantsByActorId?: ConnectionResult; appGrantsByGrantorId?: ConnectionResult; orgMembershipsByActorId?: ConnectionResult; orgMembershipsByEntityId?: ConnectionResult; orgMembersByActorId?: ConnectionResult; orgMembersByEntityId?: ConnectionResult; + orgAdminGrantsByActorId?: ConnectionResult; orgAdminGrantsByEntityId?: ConnectionResult; orgAdminGrantsByGrantorId?: ConnectionResult; + orgOwnerGrantsByActorId?: ConnectionResult; orgOwnerGrantsByEntityId?: ConnectionResult; orgOwnerGrantsByGrantorId?: ConnectionResult; + orgGrantsByActorId?: ConnectionResult; orgGrantsByEntityId?: ConnectionResult; orgGrantsByGrantorId?: ConnectionResult; parentOrgChartEdges?: ConnectionResult; @@ -3003,18 +2573,27 @@ export interface UserRelations { orgChartEdgeGrantsByEntityId?: ConnectionResult; orgChartEdgeGrantsByGrantorId?: ConnectionResult; childOrgChartEdgeGrants?: ConnectionResult; + orgPermissionDefaultsByEntityId?: ConnectionResult; appLimitsByActorId?: ConnectionResult; orgLimitsByActorId?: ConnectionResult; orgLimitsByEntityId?: ConnectionResult; appStepsByActorId?: ConnectionResult; appAchievementsByActorId?: ConnectionResult; + ownedAppLevels?: ConnectionResult; + ownedEmails?: ConnectionResult; + ownedPhoneNumbers?: ConnectionResult; + ownedCryptoAddresses?: ConnectionResult; + ownedConnectedAccounts?: ConnectionResult; invitesBySenderId?: ConnectionResult; claimedInvitesByReceiverId?: ConnectionResult; claimedInvitesBySenderId?: ConnectionResult; orgInvitesByEntityId?: ConnectionResult; + orgInvitesByReceiverId?: ConnectionResult; orgInvitesBySenderId?: ConnectionResult; + orgClaimedInvitesByEntityId?: ConnectionResult; orgClaimedInvitesByReceiverId?: ConnectionResult; orgClaimedInvitesBySenderId?: ConnectionResult; + auditLogsByActorId?: ConnectionResult; } export interface AstMigrationRelations {} export interface AppMembershipRelations { @@ -3031,11 +2610,11 @@ export interface HierarchyModuleRelations { usersTable?: Table | null; } // ============ Entity Types With Relations ============ +export type GetAllRecordWithRelations = GetAllRecord & GetAllRecordRelations; export type OrgGetManagersRecordWithRelations = OrgGetManagersRecord & OrgGetManagersRecordRelations; export type OrgGetSubordinatesRecordWithRelations = OrgGetSubordinatesRecord & OrgGetSubordinatesRecordRelations; -export type GetAllRecordWithRelations = GetAllRecord & GetAllRecordRelations; export type ObjectWithRelations = Object & ObjectRelations; export type AppPermissionWithRelations = AppPermission & AppPermissionRelations; export type OrgPermissionWithRelations = OrgPermission & OrgPermissionRelations; @@ -3059,12 +2638,14 @@ export type ViewWithRelations = View & ViewRelations; export type ViewTableWithRelations = ViewTable & ViewTableRelations; export type ViewGrantWithRelations = ViewGrant & ViewGrantRelations; export type ViewRuleWithRelations = ViewRule & ViewRuleRelations; +export type EmbeddingChunkWithRelations = EmbeddingChunk & EmbeddingChunkRelations; export type TableTemplateModuleWithRelations = TableTemplateModule & TableTemplateModuleRelations; export type SecureTableProvisionWithRelations = SecureTableProvision & SecureTableProvisionRelations; export type RelationProvisionWithRelations = RelationProvision & RelationProvisionRelations; export type SchemaGrantWithRelations = SchemaGrant & SchemaGrantRelations; export type DefaultPrivilegeWithRelations = DefaultPrivilege & DefaultPrivilegeRelations; +export type EnumWithRelations = Enum & EnumRelations; export type ApiSchemaWithRelations = ApiSchema & ApiSchemaRelations; export type ApiModuleWithRelations = ApiModule & ApiModuleRelations; export type DomainWithRelations = Domain & DomainRelations; @@ -3072,6 +2653,7 @@ export type SiteMetadatumWithRelations = SiteMetadatum & SiteMetadatumRelations; export type SiteModuleWithRelations = SiteModule & SiteModuleRelations; export type SiteThemeWithRelations = SiteTheme & SiteThemeRelations; export type TriggerFunctionWithRelations = TriggerFunction & TriggerFunctionRelations; +export type DatabaseTransferWithRelations = DatabaseTransfer & DatabaseTransferRelations; export type ApiWithRelations = Api & ApiRelations; export type SiteWithRelations = Site & SiteRelations; export type AppWithRelations = App & AppRelations; @@ -3100,7 +2682,8 @@ export type SecretsModuleWithRelations = SecretsModule & SecretsModuleRelations; export type SessionsModuleWithRelations = SessionsModule & SessionsModuleRelations; export type UserAuthModuleWithRelations = UserAuthModule & UserAuthModuleRelations; export type UsersModuleWithRelations = UsersModule & UsersModuleRelations; -export type UuidModuleWithRelations = UuidModule & UuidModuleRelations; +export type BlueprintWithRelations = Blueprint & BlueprintRelations; +export type BlueprintTemplateWithRelations = BlueprintTemplate & BlueprintTemplateRelations; export type DatabaseProvisionModuleWithRelations = DatabaseProvisionModule & DatabaseProvisionModuleRelations; export type AppAdminGrantWithRelations = AppAdminGrant & AppAdminGrantRelations; @@ -3113,26 +2696,29 @@ export type OrgOwnerGrantWithRelations = OrgOwnerGrant & OrgOwnerGrantRelations; export type OrgGrantWithRelations = OrgGrant & OrgGrantRelations; export type OrgChartEdgeWithRelations = OrgChartEdge & OrgChartEdgeRelations; export type OrgChartEdgeGrantWithRelations = OrgChartEdgeGrant & OrgChartEdgeGrantRelations; +export type OrgPermissionDefaultWithRelations = OrgPermissionDefault & + OrgPermissionDefaultRelations; export type AppLimitWithRelations = AppLimit & AppLimitRelations; export type OrgLimitWithRelations = OrgLimit & OrgLimitRelations; export type AppStepWithRelations = AppStep & AppStepRelations; export type AppAchievementWithRelations = AppAchievement & AppAchievementRelations; +export type AppLevelWithRelations = AppLevel & AppLevelRelations; +export type EmailWithRelations = Email & EmailRelations; +export type PhoneNumberWithRelations = PhoneNumber & PhoneNumberRelations; +export type CryptoAddressWithRelations = CryptoAddress & CryptoAddressRelations; +export type ConnectedAccountWithRelations = ConnectedAccount & ConnectedAccountRelations; export type InviteWithRelations = Invite & InviteRelations; export type ClaimedInviteWithRelations = ClaimedInvite & ClaimedInviteRelations; export type OrgInviteWithRelations = OrgInvite & OrgInviteRelations; export type OrgClaimedInviteWithRelations = OrgClaimedInvite & OrgClaimedInviteRelations; +export type AuditLogWithRelations = AuditLog & AuditLogRelations; export type RefWithRelations = Ref & RefRelations; export type StoreWithRelations = Store & StoreRelations; export type AppPermissionDefaultWithRelations = AppPermissionDefault & AppPermissionDefaultRelations; -export type CryptoAddressWithRelations = CryptoAddress & CryptoAddressRelations; export type RoleTypeWithRelations = RoleType & RoleTypeRelations; -export type OrgPermissionDefaultWithRelations = OrgPermissionDefault & - OrgPermissionDefaultRelations; -export type PhoneNumberWithRelations = PhoneNumber & PhoneNumberRelations; export type AppLimitDefaultWithRelations = AppLimitDefault & AppLimitDefaultRelations; export type OrgLimitDefaultWithRelations = OrgLimitDefault & OrgLimitDefaultRelations; -export type ConnectedAccountWithRelations = ConnectedAccount & ConnectedAccountRelations; export type NodeTypeRegistryWithRelations = NodeTypeRegistry & NodeTypeRegistryRelations; export type MembershipTypeWithRelations = MembershipType & MembershipTypeRelations; export type CommitWithRelations = Commit & CommitRelations; @@ -3141,15 +2727,16 @@ export type AppMembershipDefaultWithRelations = AppMembershipDefault & export type RlsModuleWithRelations = RlsModule & RlsModuleRelations; export type OrgMembershipDefaultWithRelations = OrgMembershipDefault & OrgMembershipDefaultRelations; -export type AuditLogWithRelations = AuditLog & AuditLogRelations; -export type AppLevelWithRelations = AppLevel & AppLevelRelations; export type SqlMigrationWithRelations = SqlMigration & SqlMigrationRelations; -export type EmailWithRelations = Email & EmailRelations; export type UserWithRelations = User & UserRelations; export type AstMigrationWithRelations = AstMigration & AstMigrationRelations; export type AppMembershipWithRelations = AppMembership & AppMembershipRelations; export type HierarchyModuleWithRelations = HierarchyModule & HierarchyModuleRelations; // ============ Entity Select Types ============ +export type GetAllRecordSelect = { + path?: boolean; + data?: boolean; +}; export type OrgGetManagersRecordSelect = { userId?: boolean; depth?: boolean; @@ -3158,10 +2745,6 @@ export type OrgGetSubordinatesRecordSelect = { userId?: boolean; depth?: boolean; }; -export type GetAllRecordSelect = { - path?: boolean; - data?: boolean; -}; export type ObjectSelect = { hashUuid?: boolean; id?: boolean; @@ -3178,8 +2761,6 @@ export type AppPermissionSelect = { bitnum?: boolean; bitstr?: boolean; description?: boolean; - descriptionTrgmSimilarity?: boolean; - searchScore?: boolean; }; export type OrgPermissionSelect = { id?: boolean; @@ -3187,8 +2768,6 @@ export type OrgPermissionSelect = { bitnum?: boolean; bitstr?: boolean; description?: boolean; - descriptionTrgmSimilarity?: boolean; - searchScore?: boolean; }; export type AppLevelRequirementSelect = { id?: boolean; @@ -3199,8 +2778,6 @@ export type AppLevelRequirementSelect = { priority?: boolean; createdAt?: boolean; updatedAt?: boolean; - descriptionTrgmSimilarity?: boolean; - searchScore?: boolean; }; export type DatabaseSelect = { id?: boolean; @@ -3211,10 +2788,6 @@ export type DatabaseSelect = { hash?: boolean; createdAt?: boolean; updatedAt?: boolean; - schemaHashTrgmSimilarity?: boolean; - nameTrgmSimilarity?: boolean; - labelTrgmSimilarity?: boolean; - searchScore?: boolean; owner?: { select: UserSelect; }; @@ -3332,6 +2905,24 @@ export type DatabaseSelect = { filter?: DefaultPrivilegeFilter; orderBy?: DefaultPrivilegeOrderBy[]; }; + enums?: { + select: EnumSelect; + first?: number; + filter?: EnumFilter; + orderBy?: EnumOrderBy[]; + }; + embeddingChunks?: { + select: EmbeddingChunkSelect; + first?: number; + filter?: EmbeddingChunkFilter; + orderBy?: EmbeddingChunkOrderBy[]; + }; + databaseTransfers?: { + select: DatabaseTransferSelect; + first?: number; + filter?: DatabaseTransferFilter; + orderBy?: DatabaseTransferOrderBy[]; + }; apis?: { select: ApiSelect; first?: number; @@ -3506,12 +3097,6 @@ export type DatabaseSelect = { filter?: UsersModuleFilter; orderBy?: UsersModuleOrderBy[]; }; - uuidModules?: { - select: UuidModuleSelect; - first?: number; - filter?: UuidModuleFilter; - orderBy?: UuidModuleOrderBy[]; - }; tableTemplateModules?: { select: TableTemplateModuleSelect; first?: number; @@ -3530,6 +3115,12 @@ export type DatabaseSelect = { filter?: RelationProvisionFilter; orderBy?: RelationProvisionOrderBy[]; }; + blueprints?: { + select: BlueprintSelect; + first?: number; + filter?: BlueprintFilter; + orderBy?: BlueprintOrderBy[]; + }; databaseProvisionModules?: { select: DatabaseProvisionModuleSelect; first?: number; @@ -3552,12 +3143,6 @@ export type SchemaSelect = { isPublic?: boolean; createdAt?: boolean; updatedAt?: boolean; - nameTrgmSimilarity?: boolean; - schemaNameTrgmSimilarity?: boolean; - labelTrgmSimilarity?: boolean; - descriptionTrgmSimilarity?: boolean; - moduleTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -3585,6 +3170,12 @@ export type SchemaSelect = { filter?: DefaultPrivilegeFilter; orderBy?: DefaultPrivilegeOrderBy[]; }; + enums?: { + select: EnumSelect; + first?: number; + filter?: EnumFilter; + orderBy?: EnumOrderBy[]; + }; apiSchemas?: { select: ApiSchemaSelect; first?: number; @@ -3624,13 +3215,6 @@ export type TableSelect = { inheritsId?: boolean; createdAt?: boolean; updatedAt?: boolean; - nameTrgmSimilarity?: boolean; - labelTrgmSimilarity?: boolean; - descriptionTrgmSimilarity?: boolean; - moduleTrgmSimilarity?: boolean; - pluralNameTrgmSimilarity?: boolean; - singularNameTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -3712,6 +3296,18 @@ export type TableSelect = { filter?: ViewTableFilter; orderBy?: ViewTableOrderBy[]; }; + embeddingChunksByChunksTableId?: { + select: EmbeddingChunkSelect; + first?: number; + filter?: EmbeddingChunkFilter; + orderBy?: EmbeddingChunkOrderBy[]; + }; + embeddingChunks?: { + select: EmbeddingChunkSelect; + first?: number; + filter?: EmbeddingChunkFilter; + orderBy?: EmbeddingChunkOrderBy[]; + }; tableTemplateModulesByOwnerTableId?: { select: TableTemplateModuleSelect; first?: number; @@ -3758,10 +3354,6 @@ export type CheckConstraintSelect = { tags?: boolean; createdAt?: boolean; updatedAt?: boolean; - nameTrgmSimilarity?: boolean; - typeTrgmSimilarity?: boolean; - moduleTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -3778,6 +3370,7 @@ export type FieldSelect = { description?: boolean; smartTags?: boolean; isRequired?: boolean; + apiRequired?: boolean; defaultValue?: boolean; defaultValueAst?: boolean; isHidden?: boolean; @@ -3794,13 +3387,6 @@ export type FieldSelect = { scope?: boolean; createdAt?: boolean; updatedAt?: boolean; - nameTrgmSimilarity?: boolean; - labelTrgmSimilarity?: boolean; - descriptionTrgmSimilarity?: boolean; - defaultValueTrgmSimilarity?: boolean; - regexpTrgmSimilarity?: boolean; - moduleTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -3827,13 +3413,6 @@ export type ForeignKeyConstraintSelect = { tags?: boolean; createdAt?: boolean; updatedAt?: boolean; - nameTrgmSimilarity?: boolean; - descriptionTrgmSimilarity?: boolean; - typeTrgmSimilarity?: boolean; - deleteActionTrgmSimilarity?: boolean; - updateActionTrgmSimilarity?: boolean; - moduleTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -3881,10 +3460,6 @@ export type IndexSelect = { tags?: boolean; createdAt?: boolean; updatedAt?: boolean; - nameTrgmSimilarity?: boolean; - accessMethodTrgmSimilarity?: boolean; - moduleTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -3910,12 +3485,6 @@ export type PolicySelect = { tags?: boolean; createdAt?: boolean; updatedAt?: boolean; - nameTrgmSimilarity?: boolean; - granteeNameTrgmSimilarity?: boolean; - privilegeTrgmSimilarity?: boolean; - policyTypeTrgmSimilarity?: boolean; - moduleTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -3937,10 +3506,6 @@ export type PrimaryKeyConstraintSelect = { tags?: boolean; createdAt?: boolean; updatedAt?: boolean; - nameTrgmSimilarity?: boolean; - typeTrgmSimilarity?: boolean; - moduleTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -3958,9 +3523,6 @@ export type TableGrantSelect = { isGrant?: boolean; createdAt?: boolean; updatedAt?: boolean; - privilegeTrgmSimilarity?: boolean; - granteeNameTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -3982,11 +3544,6 @@ export type TriggerSelect = { tags?: boolean; createdAt?: boolean; updatedAt?: boolean; - nameTrgmSimilarity?: boolean; - eventTrgmSimilarity?: boolean; - functionNameTrgmSimilarity?: boolean; - moduleTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -4009,11 +3566,6 @@ export type UniqueConstraintSelect = { tags?: boolean; createdAt?: boolean; updatedAt?: boolean; - nameTrgmSimilarity?: boolean; - descriptionTrgmSimilarity?: boolean; - typeTrgmSimilarity?: boolean; - moduleTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -4038,11 +3590,6 @@ export type ViewSelect = { module?: boolean; scope?: boolean; tags?: boolean; - nameTrgmSimilarity?: boolean; - viewTypeTrgmSimilarity?: boolean; - filterTypeTrgmSimilarity?: boolean; - moduleTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -4091,9 +3638,6 @@ export type ViewGrantSelect = { privilege?: boolean; withGrantOption?: boolean; isGrant?: boolean; - granteeNameTrgmSimilarity?: boolean; - privilegeTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -4108,10 +3652,6 @@ export type ViewRuleSelect = { name?: boolean; event?: boolean; action?: boolean; - nameTrgmSimilarity?: boolean; - eventTrgmSimilarity?: boolean; - actionTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -4119,6 +3659,41 @@ export type ViewRuleSelect = { select: ViewSelect; }; }; +export type EmbeddingChunkSelect = { + id?: boolean; + databaseId?: boolean; + tableId?: boolean; + embeddingFieldId?: boolean; + chunksTableId?: boolean; + chunksTableName?: boolean; + contentFieldName?: boolean; + dimensions?: boolean; + metric?: boolean; + chunkSize?: boolean; + chunkOverlap?: boolean; + chunkStrategy?: boolean; + metadataFields?: boolean; + enqueueChunkingJob?: boolean; + chunkingTaskName?: boolean; + parentFkFieldId?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + chunksTable?: { + select: TableSelect; + }; + database?: { + select: DatabaseSelect; + }; + embeddingField?: { + select: FieldSelect; + }; + parentFkField?: { + select: FieldSelect; + }; + table?: { + select: TableSelect; + }; +}; export type TableTemplateModuleSelect = { id?: boolean; databaseId?: boolean; @@ -4129,9 +3704,6 @@ export type TableTemplateModuleSelect = { tableName?: boolean; nodeType?: boolean; data?: boolean; - tableNameTrgmSimilarity?: boolean; - nodeTypeTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -4167,12 +3739,6 @@ export type SecureTableProvisionSelect = { policyName?: boolean; policyData?: boolean; outFields?: boolean; - tableNameTrgmSimilarity?: boolean; - nodeTypeTrgmSimilarity?: boolean; - policyTypeTrgmSimilarity?: boolean; - policyRoleTrgmSimilarity?: boolean; - policyNameTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -4192,12 +3758,15 @@ export type RelationProvisionSelect = { fieldName?: boolean; deleteAction?: boolean; isRequired?: boolean; + apiRequired?: boolean; junctionTableId?: boolean; junctionTableName?: boolean; junctionSchemaId?: boolean; sourceFieldName?: boolean; targetFieldName?: boolean; useCompositeKey?: boolean; + createIndex?: boolean; + exposeInApi?: boolean; nodeType?: boolean; nodeData?: boolean; grantRoles?: boolean; @@ -4212,17 +3781,6 @@ export type RelationProvisionSelect = { outJunctionTableId?: boolean; outSourceFieldId?: boolean; outTargetFieldId?: boolean; - relationTypeTrgmSimilarity?: boolean; - fieldNameTrgmSimilarity?: boolean; - deleteActionTrgmSimilarity?: boolean; - junctionTableNameTrgmSimilarity?: boolean; - sourceFieldNameTrgmSimilarity?: boolean; - targetFieldNameTrgmSimilarity?: boolean; - nodeTypeTrgmSimilarity?: boolean; - policyTypeTrgmSimilarity?: boolean; - policyRoleTrgmSimilarity?: boolean; - policyNameTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -4240,8 +3798,6 @@ export type SchemaGrantSelect = { granteeName?: boolean; createdAt?: boolean; updatedAt?: boolean; - granteeNameTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -4257,10 +3813,26 @@ export type DefaultPrivilegeSelect = { privilege?: boolean; granteeName?: boolean; isGrant?: boolean; - objectTypeTrgmSimilarity?: boolean; - privilegeTrgmSimilarity?: boolean; - granteeNameTrgmSimilarity?: boolean; - searchScore?: boolean; + database?: { + select: DatabaseSelect; + }; + schema?: { + select: SchemaSelect; + }; +}; +export type EnumSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + name?: boolean; + label?: boolean; + description?: boolean; + values?: boolean; + smartTags?: boolean; + category?: boolean; + module?: boolean; + scope?: boolean; + tags?: boolean; database?: { select: DatabaseSelect; }; @@ -4289,8 +3861,6 @@ export type ApiModuleSelect = { apiId?: boolean; name?: boolean; data?: boolean; - nameTrgmSimilarity?: boolean; - searchScore?: boolean; api?: { select: ApiSelect; }; @@ -4322,9 +3892,6 @@ export type SiteMetadatumSelect = { title?: boolean; description?: boolean; ogImage?: boolean; - titleTrgmSimilarity?: boolean; - descriptionTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -4338,8 +3905,6 @@ export type SiteModuleSelect = { siteId?: boolean; name?: boolean; data?: boolean; - nameTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -4366,9 +3931,25 @@ export type TriggerFunctionSelect = { code?: boolean; createdAt?: boolean; updatedAt?: boolean; - nameTrgmSimilarity?: boolean; - codeTrgmSimilarity?: boolean; - searchScore?: boolean; + database?: { + select: DatabaseSelect; + }; +}; +export type DatabaseTransferSelect = { + id?: boolean; + databaseId?: boolean; + targetOwnerId?: boolean; + sourceApproved?: boolean; + targetApproved?: boolean; + sourceApprovedAt?: boolean; + targetApprovedAt?: boolean; + status?: boolean; + initiatedBy?: boolean; + notes?: boolean; + expiresAt?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + completedAt?: boolean; database?: { select: DatabaseSelect; }; @@ -4381,11 +3962,6 @@ export type ApiSelect = { roleName?: boolean; anonRole?: boolean; isPublic?: boolean; - nameTrgmSimilarity?: boolean; - dbnameTrgmSimilarity?: boolean; - roleNameTrgmSimilarity?: boolean; - anonRoleTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -4418,10 +3994,6 @@ export type SiteSelect = { appleTouchIcon?: boolean; logo?: boolean; dbname?: boolean; - titleTrgmSimilarity?: boolean; - descriptionTrgmSimilarity?: boolean; - dbnameTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -4463,10 +4035,6 @@ export type AppSelect = { appStoreId?: boolean; appIdPrefix?: boolean; playStoreLink?: boolean; - nameTrgmSimilarity?: boolean; - appStoreIdTrgmSimilarity?: boolean; - appIdPrefixTrgmSimilarity?: boolean; - searchScore?: boolean; site?: { select: SiteSelect; }; @@ -4482,8 +4050,6 @@ export type ConnectedAccountsModuleSelect = { tableId?: boolean; ownerTableId?: boolean; tableName?: boolean; - tableNameTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -4509,9 +4075,6 @@ export type CryptoAddressesModuleSelect = { ownerTableId?: boolean; tableName?: boolean; cryptoNetwork?: boolean; - tableNameTrgmSimilarity?: boolean; - cryptoNetworkTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -4543,13 +4106,6 @@ export type CryptoAuthModuleSelect = { signInRecordFailure?: boolean; signUpWithKey?: boolean; signInWithChallenge?: boolean; - userFieldTrgmSimilarity?: boolean; - cryptoNetworkTrgmSimilarity?: boolean; - signInRequestChallengeTrgmSimilarity?: boolean; - signInRecordFailureTrgmSimilarity?: boolean; - signUpWithKeyTrgmSimilarity?: boolean; - signInWithChallengeTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -4589,8 +4145,6 @@ export type DenormalizedTableFieldSelect = { updateDefaults?: boolean; funcName?: boolean; funcOrder?: boolean; - funcNameTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -4615,8 +4169,6 @@ export type EmailsModuleSelect = { tableId?: boolean; ownerTableId?: boolean; tableName?: boolean; - tableNameTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -4639,8 +4191,6 @@ export type EncryptedSecretsModuleSelect = { schemaId?: boolean; tableId?: boolean; tableName?: boolean; - tableNameTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -4661,8 +4211,6 @@ export type FieldModuleSelect = { data?: boolean; triggers?: boolean; functions?: boolean; - nodeTypeTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -4691,11 +4239,6 @@ export type InvitesModuleSelect = { prefix?: boolean; membershipType?: boolean; entityTableId?: boolean; - invitesTableNameTrgmSimilarity?: boolean; - claimedInvitesTableNameTrgmSimilarity?: boolean; - submitInviteCodeFunctionTrgmSimilarity?: boolean; - prefixTrgmSimilarity?: boolean; - searchScore?: boolean; claimedInvitesTable?: { select: TableSelect; }; @@ -4748,22 +4291,6 @@ export type LevelsModuleSelect = { membershipType?: boolean; entityTableId?: boolean; actorTableId?: boolean; - stepsTableNameTrgmSimilarity?: boolean; - achievementsTableNameTrgmSimilarity?: boolean; - levelsTableNameTrgmSimilarity?: boolean; - levelRequirementsTableNameTrgmSimilarity?: boolean; - completedStepTrgmSimilarity?: boolean; - incompletedStepTrgmSimilarity?: boolean; - tgAchievementTrgmSimilarity?: boolean; - tgAchievementToggleTrgmSimilarity?: boolean; - tgAchievementToggleBooleanTrgmSimilarity?: boolean; - tgAchievementBooleanTrgmSimilarity?: boolean; - upsertAchievementTrgmSimilarity?: boolean; - tgUpdateAchievementsTrgmSimilarity?: boolean; - stepsRequiredTrgmSimilarity?: boolean; - levelAchievedTrgmSimilarity?: boolean; - prefixTrgmSimilarity?: boolean; - searchScore?: boolean; achievementsTable?: { select: TableSelect; }; @@ -4811,16 +4338,6 @@ export type LimitsModuleSelect = { membershipType?: boolean; entityTableId?: boolean; actorTableId?: boolean; - tableNameTrgmSimilarity?: boolean; - defaultTableNameTrgmSimilarity?: boolean; - limitIncrementFunctionTrgmSimilarity?: boolean; - limitDecrementFunctionTrgmSimilarity?: boolean; - limitIncrementTriggerTrgmSimilarity?: boolean; - limitDecrementTriggerTrgmSimilarity?: boolean; - limitUpdateTriggerTrgmSimilarity?: boolean; - limitCheckFunctionTrgmSimilarity?: boolean; - prefixTrgmSimilarity?: boolean; - searchScore?: boolean; actorTable?: { select: TableSelect; }; @@ -4849,8 +4366,6 @@ export type MembershipTypesModuleSelect = { schemaId?: boolean; tableId?: boolean; tableName?: boolean; - tableNameTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -4893,19 +4408,6 @@ export type MembershipsModuleSelect = { entityIdsByMask?: boolean; entityIdsByPerm?: boolean; entityIdsFunction?: boolean; - membershipsTableNameTrgmSimilarity?: boolean; - membersTableNameTrgmSimilarity?: boolean; - membershipDefaultsTableNameTrgmSimilarity?: boolean; - grantsTableNameTrgmSimilarity?: boolean; - adminGrantsTableNameTrgmSimilarity?: boolean; - ownerGrantsTableNameTrgmSimilarity?: boolean; - prefixTrgmSimilarity?: boolean; - actorMaskCheckTrgmSimilarity?: boolean; - actorPermCheckTrgmSimilarity?: boolean; - entityIdsByMaskTrgmSimilarity?: boolean; - entityIdsByPermTrgmSimilarity?: boolean; - entityIdsFunctionTrgmSimilarity?: boolean; - searchScore?: boolean; actorTable?: { select: TableSelect; }; @@ -4970,14 +4472,6 @@ export type PermissionsModuleSelect = { getMask?: boolean; getByMask?: boolean; getMaskByName?: boolean; - tableNameTrgmSimilarity?: boolean; - defaultTableNameTrgmSimilarity?: boolean; - prefixTrgmSimilarity?: boolean; - getPaddedMaskTrgmSimilarity?: boolean; - getMaskTrgmSimilarity?: boolean; - getByMaskTrgmSimilarity?: boolean; - getMaskByNameTrgmSimilarity?: boolean; - searchScore?: boolean; actorTable?: { select: TableSelect; }; @@ -5008,8 +4502,6 @@ export type PhoneNumbersModuleSelect = { tableId?: boolean; ownerTableId?: boolean; tableName?: boolean; - tableNameTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -5045,12 +4537,6 @@ export type ProfilesModuleSelect = { permissionsTableId?: boolean; membershipsTableId?: boolean; prefix?: boolean; - tableNameTrgmSimilarity?: boolean; - profilePermissionsTableNameTrgmSimilarity?: boolean; - profileGrantsTableNameTrgmSimilarity?: boolean; - profileDefinitionGrantsTableNameTrgmSimilarity?: boolean; - prefixTrgmSimilarity?: boolean; - searchScore?: boolean; actorTable?: { select: TableSelect; }; @@ -5091,8 +4577,6 @@ export type SecretsModuleSelect = { schemaId?: boolean; tableId?: boolean; tableName?: boolean; - tableNameTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -5115,10 +4599,6 @@ export type SessionsModuleSelect = { sessionsTable?: boolean; sessionCredentialsTable?: boolean; authSettingsTable?: boolean; - sessionsTableTrgmSimilarity?: boolean; - sessionCredentialsTableTrgmSimilarity?: boolean; - authSettingsTableTrgmSimilarity?: boolean; - searchScore?: boolean; authSettingsTableByAuthSettingsTableId?: { select: TableSelect; }; @@ -5165,23 +4645,6 @@ export type UserAuthModuleSelect = { signInOneTimeTokenFunction?: boolean; oneTimeTokenFunction?: boolean; extendTokenExpires?: boolean; - auditsTableNameTrgmSimilarity?: boolean; - signInFunctionTrgmSimilarity?: boolean; - signUpFunctionTrgmSimilarity?: boolean; - signOutFunctionTrgmSimilarity?: boolean; - setPasswordFunctionTrgmSimilarity?: boolean; - resetPasswordFunctionTrgmSimilarity?: boolean; - forgotPasswordFunctionTrgmSimilarity?: boolean; - sendVerificationEmailFunctionTrgmSimilarity?: boolean; - verifyEmailFunctionTrgmSimilarity?: boolean; - verifyPasswordFunctionTrgmSimilarity?: boolean; - checkPasswordFunctionTrgmSimilarity?: boolean; - sendAccountDeletionEmailFunctionTrgmSimilarity?: boolean; - deleteAccountFunctionTrgmSimilarity?: boolean; - signInOneTimeTokenFunctionTrgmSimilarity?: boolean; - oneTimeTokenFunctionTrgmSimilarity?: boolean; - extendTokenExpiresTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -5215,9 +4678,6 @@ export type UsersModuleSelect = { tableName?: boolean; typeTableId?: boolean; typeTableName?: boolean; - tableNameTrgmSimilarity?: boolean; - typeTableNameTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -5231,20 +4691,66 @@ export type UsersModuleSelect = { select: TableSelect; }; }; -export type UuidModuleSelect = { +export type BlueprintSelect = { id?: boolean; + ownerId?: boolean; databaseId?: boolean; - schemaId?: boolean; - uuidFunction?: boolean; - uuidSeed?: boolean; - uuidFunctionTrgmSimilarity?: boolean; - uuidSeedTrgmSimilarity?: boolean; - searchScore?: boolean; - database?: { - select: DatabaseSelect; + name?: boolean; + displayName?: boolean; + description?: boolean; + definition?: boolean; + templateId?: boolean; + status?: boolean; + constructedAt?: boolean; + errorDetails?: boolean; + refMap?: boolean; + constructedDefinition?: boolean; + definitionHash?: boolean; + tableHashes?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + database?: { + select: DatabaseSelect; }; - schema?: { - select: SchemaSelect; + template?: { + select: BlueprintTemplateSelect; + }; +}; +export type BlueprintTemplateSelect = { + id?: boolean; + name?: boolean; + version?: boolean; + displayName?: boolean; + description?: boolean; + ownerId?: boolean; + visibility?: boolean; + categories?: boolean; + tags?: boolean; + definition?: boolean; + definitionSchemaVersion?: boolean; + source?: boolean; + complexity?: boolean; + copyCount?: boolean; + forkCount?: boolean; + forkedFromId?: boolean; + definitionHash?: boolean; + tableHashes?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + forkedFrom?: { + select: BlueprintTemplateSelect; + }; + blueprintTemplatesByForkedFromId?: { + select: BlueprintTemplateSelect; + first?: number; + filter?: BlueprintTemplateFilter; + orderBy?: BlueprintTemplateOrderBy[]; + }; + blueprintsByTemplateId?: { + select: BlueprintSelect; + first?: number; + filter?: BlueprintFilter; + orderBy?: BlueprintOrderBy[]; }; }; export type DatabaseProvisionModuleSelect = { @@ -5262,12 +4768,6 @@ export type DatabaseProvisionModuleSelect = { createdAt?: boolean; updatedAt?: boolean; completedAt?: boolean; - databaseNameTrgmSimilarity?: boolean; - subdomainTrgmSimilarity?: boolean; - domainTrgmSimilarity?: boolean; - statusTrgmSimilarity?: boolean; - errorMessageTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -5415,8 +4915,6 @@ export type OrgChartEdgeSelect = { parentId?: boolean; positionTitle?: boolean; positionLevel?: boolean; - positionTitleTrgmSimilarity?: boolean; - searchScore?: boolean; child?: { select: UserSelect; }; @@ -5437,8 +4935,6 @@ export type OrgChartEdgeGrantSelect = { positionTitle?: boolean; positionLevel?: boolean; createdAt?: boolean; - positionTitleTrgmSimilarity?: boolean; - searchScore?: boolean; child?: { select: UserSelect; }; @@ -5452,6 +4948,14 @@ export type OrgChartEdgeGrantSelect = { select: UserSelect; }; }; +export type OrgPermissionDefaultSelect = { + id?: boolean; + permissions?: boolean; + entityId?: boolean; + entity?: { + select: UserSelect; + }; +}; export type AppLimitSelect = { id?: boolean; name?: boolean; @@ -5498,6 +5002,68 @@ export type AppAchievementSelect = { select: UserSelect; }; }; +export type AppLevelSelect = { + id?: boolean; + name?: boolean; + description?: boolean; + image?: boolean; + ownerId?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + owner?: { + select: UserSelect; + }; +}; +export type EmailSelect = { + id?: boolean; + ownerId?: boolean; + email?: boolean; + isVerified?: boolean; + isPrimary?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + owner?: { + select: UserSelect; + }; +}; +export type PhoneNumberSelect = { + id?: boolean; + ownerId?: boolean; + cc?: boolean; + number?: boolean; + isVerified?: boolean; + isPrimary?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + owner?: { + select: UserSelect; + }; +}; +export type CryptoAddressSelect = { + id?: boolean; + ownerId?: boolean; + address?: boolean; + isVerified?: boolean; + isPrimary?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + owner?: { + select: UserSelect; + }; +}; +export type ConnectedAccountSelect = { + id?: boolean; + ownerId?: boolean; + service?: boolean; + identifier?: boolean; + details?: boolean; + isVerified?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + owner?: { + select: UserSelect; + }; +}; export type InviteSelect = { id?: boolean; email?: boolean; @@ -5511,8 +5077,6 @@ export type InviteSelect = { expiresAt?: boolean; createdAt?: boolean; updatedAt?: boolean; - inviteTokenTrgmSimilarity?: boolean; - searchScore?: boolean; sender?: { select: UserSelect; }; @@ -5546,8 +5110,6 @@ export type OrgInviteSelect = { createdAt?: boolean; updatedAt?: boolean; entityId?: boolean; - inviteTokenTrgmSimilarity?: boolean; - searchScore?: boolean; entity?: { select: UserSelect; }; @@ -5576,14 +5138,25 @@ export type OrgClaimedInviteSelect = { select: UserSelect; }; }; +export type AuditLogSelect = { + id?: boolean; + event?: boolean; + actorId?: boolean; + origin?: boolean; + userAgent?: boolean; + ipAddress?: boolean; + success?: boolean; + createdAt?: boolean; + actor?: { + select: UserSelect; + }; +}; export type RefSelect = { id?: boolean; name?: boolean; databaseId?: boolean; storeId?: boolean; commitId?: boolean; - nameTrgmSimilarity?: boolean; - searchScore?: boolean; }; export type StoreSelect = { id?: boolean; @@ -5591,55 +5164,15 @@ export type StoreSelect = { databaseId?: boolean; hash?: boolean; createdAt?: boolean; - nameTrgmSimilarity?: boolean; - searchScore?: boolean; }; export type AppPermissionDefaultSelect = { id?: boolean; permissions?: boolean; }; -export type CryptoAddressSelect = { - id?: boolean; - ownerId?: boolean; - address?: boolean; - isVerified?: boolean; - isPrimary?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - addressTrgmSimilarity?: boolean; - searchScore?: boolean; - owner?: { - select: UserSelect; - }; -}; export type RoleTypeSelect = { id?: boolean; name?: boolean; }; -export type OrgPermissionDefaultSelect = { - id?: boolean; - permissions?: boolean; - entityId?: boolean; - entity?: { - select: UserSelect; - }; -}; -export type PhoneNumberSelect = { - id?: boolean; - ownerId?: boolean; - cc?: boolean; - number?: boolean; - isVerified?: boolean; - isPrimary?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - ccTrgmSimilarity?: boolean; - numberTrgmSimilarity?: boolean; - searchScore?: boolean; - owner?: { - select: UserSelect; - }; -}; export type AppLimitDefaultSelect = { id?: boolean; name?: boolean; @@ -5650,22 +5183,6 @@ export type OrgLimitDefaultSelect = { name?: boolean; max?: boolean; }; -export type ConnectedAccountSelect = { - id?: boolean; - ownerId?: boolean; - service?: boolean; - identifier?: boolean; - details?: boolean; - isVerified?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - serviceTrgmSimilarity?: boolean; - identifierTrgmSimilarity?: boolean; - searchScore?: boolean; - owner?: { - select: UserSelect; - }; -}; export type NodeTypeRegistrySelect = { name?: boolean; slug?: boolean; @@ -5676,21 +5193,12 @@ export type NodeTypeRegistrySelect = { tags?: boolean; createdAt?: boolean; updatedAt?: boolean; - nameTrgmSimilarity?: boolean; - slugTrgmSimilarity?: boolean; - categoryTrgmSimilarity?: boolean; - displayNameTrgmSimilarity?: boolean; - descriptionTrgmSimilarity?: boolean; - searchScore?: boolean; }; export type MembershipTypeSelect = { id?: boolean; name?: boolean; description?: boolean; prefix?: boolean; - descriptionTrgmSimilarity?: boolean; - prefixTrgmSimilarity?: boolean; - searchScore?: boolean; }; export type CommitSelect = { id?: boolean; @@ -5702,8 +5210,6 @@ export type CommitSelect = { committerId?: boolean; treeId?: boolean; date?: boolean; - messageTrgmSimilarity?: boolean; - searchScore?: boolean; }; export type AppMembershipDefaultSelect = { id?: boolean; @@ -5726,11 +5232,6 @@ export type RlsModuleSelect = { authenticateStrict?: boolean; currentRole?: boolean; currentRoleId?: boolean; - authenticateTrgmSimilarity?: boolean; - authenticateStrictTrgmSimilarity?: boolean; - currentRoleTrgmSimilarity?: boolean; - currentRoleIdTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -5764,35 +5265,6 @@ export type OrgMembershipDefaultSelect = { select: UserSelect; }; }; -export type AuditLogSelect = { - id?: boolean; - event?: boolean; - actorId?: boolean; - origin?: boolean; - userAgent?: boolean; - ipAddress?: boolean; - success?: boolean; - createdAt?: boolean; - userAgentTrgmSimilarity?: boolean; - searchScore?: boolean; - actor?: { - select: UserSelect; - }; -}; -export type AppLevelSelect = { - id?: boolean; - name?: boolean; - description?: boolean; - image?: boolean; - ownerId?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - descriptionTrgmSimilarity?: boolean; - searchScore?: boolean; - owner?: { - select: UserSelect; - }; -}; export type SqlMigrationSelect = { id?: boolean; name?: boolean; @@ -5807,25 +5279,6 @@ export type SqlMigrationSelect = { action?: boolean; actionId?: boolean; actorId?: boolean; - nameTrgmSimilarity?: boolean; - deployTrgmSimilarity?: boolean; - contentTrgmSimilarity?: boolean; - revertTrgmSimilarity?: boolean; - verifyTrgmSimilarity?: boolean; - actionTrgmSimilarity?: boolean; - searchScore?: boolean; -}; -export type EmailSelect = { - id?: boolean; - ownerId?: boolean; - email?: boolean; - isVerified?: boolean; - isPrimary?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - owner?: { - select: UserSelect; - }; }; export type UserSelect = { id?: boolean; @@ -5854,18 +5307,36 @@ export type UserSelect = { filter?: DatabaseFilter; orderBy?: DatabaseOrderBy[]; }; + appAdminGrantsByActorId?: { + select: AppAdminGrantSelect; + first?: number; + filter?: AppAdminGrantFilter; + orderBy?: AppAdminGrantOrderBy[]; + }; appAdminGrantsByGrantorId?: { select: AppAdminGrantSelect; first?: number; filter?: AppAdminGrantFilter; orderBy?: AppAdminGrantOrderBy[]; }; + appOwnerGrantsByActorId?: { + select: AppOwnerGrantSelect; + first?: number; + filter?: AppOwnerGrantFilter; + orderBy?: AppOwnerGrantOrderBy[]; + }; appOwnerGrantsByGrantorId?: { select: AppOwnerGrantSelect; first?: number; filter?: AppOwnerGrantFilter; orderBy?: AppOwnerGrantOrderBy[]; }; + appGrantsByActorId?: { + select: AppGrantSelect; + first?: number; + filter?: AppGrantFilter; + orderBy?: AppGrantOrderBy[]; + }; appGrantsByGrantorId?: { select: AppGrantSelect; first?: number; @@ -5896,6 +5367,12 @@ export type UserSelect = { filter?: OrgMemberFilter; orderBy?: OrgMemberOrderBy[]; }; + orgAdminGrantsByActorId?: { + select: OrgAdminGrantSelect; + first?: number; + filter?: OrgAdminGrantFilter; + orderBy?: OrgAdminGrantOrderBy[]; + }; orgAdminGrantsByEntityId?: { select: OrgAdminGrantSelect; first?: number; @@ -5908,6 +5385,12 @@ export type UserSelect = { filter?: OrgAdminGrantFilter; orderBy?: OrgAdminGrantOrderBy[]; }; + orgOwnerGrantsByActorId?: { + select: OrgOwnerGrantSelect; + first?: number; + filter?: OrgOwnerGrantFilter; + orderBy?: OrgOwnerGrantOrderBy[]; + }; orgOwnerGrantsByEntityId?: { select: OrgOwnerGrantSelect; first?: number; @@ -5920,6 +5403,12 @@ export type UserSelect = { filter?: OrgOwnerGrantFilter; orderBy?: OrgOwnerGrantOrderBy[]; }; + orgGrantsByActorId?: { + select: OrgGrantSelect; + first?: number; + filter?: OrgGrantFilter; + orderBy?: OrgGrantOrderBy[]; + }; orgGrantsByEntityId?: { select: OrgGrantSelect; first?: number; @@ -5974,6 +5463,12 @@ export type UserSelect = { filter?: OrgChartEdgeGrantFilter; orderBy?: OrgChartEdgeGrantOrderBy[]; }; + orgPermissionDefaultsByEntityId?: { + select: OrgPermissionDefaultSelect; + first?: number; + filter?: OrgPermissionDefaultFilter; + orderBy?: OrgPermissionDefaultOrderBy[]; + }; appLimitsByActorId?: { select: AppLimitSelect; first?: number; @@ -6004,6 +5499,36 @@ export type UserSelect = { filter?: AppAchievementFilter; orderBy?: AppAchievementOrderBy[]; }; + ownedAppLevels?: { + select: AppLevelSelect; + first?: number; + filter?: AppLevelFilter; + orderBy?: AppLevelOrderBy[]; + }; + ownedEmails?: { + select: EmailSelect; + first?: number; + filter?: EmailFilter; + orderBy?: EmailOrderBy[]; + }; + ownedPhoneNumbers?: { + select: PhoneNumberSelect; + first?: number; + filter?: PhoneNumberFilter; + orderBy?: PhoneNumberOrderBy[]; + }; + ownedCryptoAddresses?: { + select: CryptoAddressSelect; + first?: number; + filter?: CryptoAddressFilter; + orderBy?: CryptoAddressOrderBy[]; + }; + ownedConnectedAccounts?: { + select: ConnectedAccountSelect; + first?: number; + filter?: ConnectedAccountFilter; + orderBy?: ConnectedAccountOrderBy[]; + }; invitesBySenderId?: { select: InviteSelect; first?: number; @@ -6028,12 +5553,24 @@ export type UserSelect = { filter?: OrgInviteFilter; orderBy?: OrgInviteOrderBy[]; }; + orgInvitesByReceiverId?: { + select: OrgInviteSelect; + first?: number; + filter?: OrgInviteFilter; + orderBy?: OrgInviteOrderBy[]; + }; orgInvitesBySenderId?: { select: OrgInviteSelect; first?: number; filter?: OrgInviteFilter; orderBy?: OrgInviteOrderBy[]; }; + orgClaimedInvitesByEntityId?: { + select: OrgClaimedInviteSelect; + first?: number; + filter?: OrgClaimedInviteFilter; + orderBy?: OrgClaimedInviteOrderBy[]; + }; orgClaimedInvitesByReceiverId?: { select: OrgClaimedInviteSelect; first?: number; @@ -6046,6 +5583,12 @@ export type UserSelect = { filter?: OrgClaimedInviteFilter; orderBy?: OrgClaimedInviteOrderBy[]; }; + auditLogsByActorId?: { + select: AuditLogSelect; + first?: number; + filter?: AuditLogFilter; + orderBy?: AuditLogOrderBy[]; + }; }; export type AstMigrationSelect = { id?: boolean; @@ -6061,8 +5604,6 @@ export type AstMigrationSelect = { action?: boolean; actionId?: boolean; actorId?: boolean; - actionTrgmSimilarity?: boolean; - searchScore?: boolean; }; export type AppMembershipSelect = { id?: boolean; @@ -6106,17 +5647,6 @@ export type HierarchyModuleSelect = { getManagersFunction?: boolean; isManagerOfFunction?: boolean; createdAt?: boolean; - chartEdgesTableNameTrgmSimilarity?: boolean; - hierarchySprtTableNameTrgmSimilarity?: boolean; - chartEdgeGrantsTableNameTrgmSimilarity?: boolean; - prefixTrgmSimilarity?: boolean; - privateSchemaNameTrgmSimilarity?: boolean; - sprtTableNameTrgmSimilarity?: boolean; - rebuildHierarchyFunctionTrgmSimilarity?: boolean; - getSubordinatesFunctionTrgmSimilarity?: boolean; - getManagersFunctionTrgmSimilarity?: boolean; - isManagerOfFunctionTrgmSimilarity?: boolean; - searchScore?: boolean; chartEdgeGrantsTable?: { select: TableSelect; }; @@ -6143,6 +5673,13 @@ export type HierarchyModuleSelect = { }; }; // ============ Table Filter Types ============ +export interface GetAllRecordFilter { + path?: StringListFilter; + data?: JSONFilter; + and?: GetAllRecordFilter[]; + or?: GetAllRecordFilter[]; + not?: GetAllRecordFilter; +} export interface OrgGetManagersRecordFilter { userId?: UUIDFilter; depth?: IntFilter; @@ -6157,19 +5694,12 @@ export interface OrgGetSubordinatesRecordFilter { or?: OrgGetSubordinatesRecordFilter[]; not?: OrgGetSubordinatesRecordFilter; } -export interface GetAllRecordFilter { - path?: StringFilter; - data?: JSONFilter; - and?: GetAllRecordFilter[]; - or?: GetAllRecordFilter[]; - not?: GetAllRecordFilter; -} export interface ObjectFilter { hashUuid?: UUIDFilter; id?: UUIDFilter; databaseId?: UUIDFilter; - kids?: UUIDFilter; - ktree?: StringFilter; + kids?: UUIDListFilter; + ktree?: StringListFilter; data?: JSONFilter; frzn?: BooleanFilter; createdAt?: DatetimeFilter; @@ -6183,8 +5713,6 @@ export interface AppPermissionFilter { bitnum?: IntFilter; bitstr?: BitStringFilter; description?: StringFilter; - descriptionTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: AppPermissionFilter[]; or?: AppPermissionFilter[]; not?: AppPermissionFilter; @@ -6195,8 +5723,6 @@ export interface OrgPermissionFilter { bitnum?: IntFilter; bitstr?: BitStringFilter; description?: StringFilter; - descriptionTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: OrgPermissionFilter[]; or?: OrgPermissionFilter[]; not?: OrgPermissionFilter; @@ -6210,8 +5736,6 @@ export interface AppLevelRequirementFilter { priority?: IntFilter; createdAt?: DatetimeFilter; updatedAt?: DatetimeFilter; - descriptionTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: AppLevelRequirementFilter[]; or?: AppLevelRequirementFilter[]; not?: AppLevelRequirementFilter; @@ -6225,10 +5749,6 @@ export interface DatabaseFilter { hash?: UUIDFilter; createdAt?: DatetimeFilter; updatedAt?: DatetimeFilter; - schemaHashTrgmSimilarity?: FloatFilter; - nameTrgmSimilarity?: FloatFilter; - labelTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: DatabaseFilter[]; or?: DatabaseFilter[]; not?: DatabaseFilter; @@ -6244,16 +5764,10 @@ export interface SchemaFilter { category?: StringFilter; module?: StringFilter; scope?: IntFilter; - tags?: StringFilter; + tags?: StringListFilter; isPublic?: BooleanFilter; createdAt?: DatetimeFilter; updatedAt?: DatetimeFilter; - nameTrgmSimilarity?: FloatFilter; - schemaNameTrgmSimilarity?: FloatFilter; - labelTrgmSimilarity?: FloatFilter; - descriptionTrgmSimilarity?: FloatFilter; - moduleTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: SchemaFilter[]; or?: SchemaFilter[]; not?: SchemaFilter; @@ -6274,17 +5788,10 @@ export interface TableFilter { peoplestamps?: BooleanFilter; pluralName?: StringFilter; singularName?: StringFilter; - tags?: StringFilter; + tags?: StringListFilter; inheritsId?: UUIDFilter; createdAt?: DatetimeFilter; updatedAt?: DatetimeFilter; - nameTrgmSimilarity?: FloatFilter; - labelTrgmSimilarity?: FloatFilter; - descriptionTrgmSimilarity?: FloatFilter; - moduleTrgmSimilarity?: FloatFilter; - pluralNameTrgmSimilarity?: FloatFilter; - singularNameTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: TableFilter[]; or?: TableFilter[]; not?: TableFilter; @@ -6295,19 +5802,15 @@ export interface CheckConstraintFilter { tableId?: UUIDFilter; name?: StringFilter; type?: StringFilter; - fieldIds?: UUIDFilter; + fieldIds?: UUIDListFilter; expr?: JSONFilter; smartTags?: JSONFilter; category?: StringFilter; module?: StringFilter; scope?: IntFilter; - tags?: StringFilter; + tags?: StringListFilter; createdAt?: DatetimeFilter; updatedAt?: DatetimeFilter; - nameTrgmSimilarity?: FloatFilter; - typeTrgmSimilarity?: FloatFilter; - moduleTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: CheckConstraintFilter[]; or?: CheckConstraintFilter[]; not?: CheckConstraintFilter; @@ -6321,6 +5824,7 @@ export interface FieldFilter { description?: StringFilter; smartTags?: JSONFilter; isRequired?: BooleanFilter; + apiRequired?: BooleanFilter; defaultValue?: StringFilter; defaultValueAst?: JSONFilter; isHidden?: BooleanFilter; @@ -6331,19 +5835,12 @@ export interface FieldFilter { chkExpr?: JSONFilter; min?: FloatFilter; max?: FloatFilter; - tags?: StringFilter; + tags?: StringListFilter; category?: StringFilter; module?: StringFilter; scope?: IntFilter; createdAt?: DatetimeFilter; updatedAt?: DatetimeFilter; - nameTrgmSimilarity?: FloatFilter; - labelTrgmSimilarity?: FloatFilter; - descriptionTrgmSimilarity?: FloatFilter; - defaultValueTrgmSimilarity?: FloatFilter; - regexpTrgmSimilarity?: FloatFilter; - moduleTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: FieldFilter[]; or?: FieldFilter[]; not?: FieldFilter; @@ -6356,24 +5853,17 @@ export interface ForeignKeyConstraintFilter { description?: StringFilter; smartTags?: JSONFilter; type?: StringFilter; - fieldIds?: UUIDFilter; + fieldIds?: UUIDListFilter; refTableId?: UUIDFilter; - refFieldIds?: UUIDFilter; + refFieldIds?: UUIDListFilter; deleteAction?: StringFilter; updateAction?: StringFilter; category?: StringFilter; module?: StringFilter; scope?: IntFilter; - tags?: StringFilter; + tags?: StringListFilter; createdAt?: DatetimeFilter; updatedAt?: DatetimeFilter; - nameTrgmSimilarity?: FloatFilter; - descriptionTrgmSimilarity?: FloatFilter; - typeTrgmSimilarity?: FloatFilter; - deleteActionTrgmSimilarity?: FloatFilter; - updateActionTrgmSimilarity?: FloatFilter; - moduleTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: ForeignKeyConstraintFilter[]; or?: ForeignKeyConstraintFilter[]; not?: ForeignKeyConstraintFilter; @@ -6383,9 +5873,9 @@ export interface FullTextSearchFilter { databaseId?: UUIDFilter; tableId?: UUIDFilter; fieldId?: UUIDFilter; - fieldIds?: UUIDFilter; - weights?: StringFilter; - langs?: StringFilter; + fieldIds?: UUIDListFilter; + weights?: StringListFilter; + langs?: StringListFilter; createdAt?: DatetimeFilter; updatedAt?: DatetimeFilter; and?: FullTextSearchFilter[]; @@ -6397,25 +5887,21 @@ export interface IndexFilter { databaseId?: UUIDFilter; tableId?: UUIDFilter; name?: StringFilter; - fieldIds?: UUIDFilter; - includeFieldIds?: UUIDFilter; + fieldIds?: UUIDListFilter; + includeFieldIds?: UUIDListFilter; accessMethod?: StringFilter; indexParams?: JSONFilter; whereClause?: JSONFilter; isUnique?: BooleanFilter; options?: JSONFilter; - opClasses?: StringFilter; + opClasses?: StringListFilter; smartTags?: JSONFilter; category?: StringFilter; module?: StringFilter; scope?: IntFilter; - tags?: StringFilter; + tags?: StringListFilter; createdAt?: DatetimeFilter; updatedAt?: DatetimeFilter; - nameTrgmSimilarity?: FloatFilter; - accessMethodTrgmSimilarity?: FloatFilter; - moduleTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: IndexFilter[]; or?: IndexFilter[]; not?: IndexFilter; @@ -6435,15 +5921,9 @@ export interface PolicyFilter { category?: StringFilter; module?: StringFilter; scope?: IntFilter; - tags?: StringFilter; + tags?: StringListFilter; createdAt?: DatetimeFilter; updatedAt?: DatetimeFilter; - nameTrgmSimilarity?: FloatFilter; - granteeNameTrgmSimilarity?: FloatFilter; - privilegeTrgmSimilarity?: FloatFilter; - policyTypeTrgmSimilarity?: FloatFilter; - moduleTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: PolicyFilter[]; or?: PolicyFilter[]; not?: PolicyFilter; @@ -6454,18 +5934,14 @@ export interface PrimaryKeyConstraintFilter { tableId?: UUIDFilter; name?: StringFilter; type?: StringFilter; - fieldIds?: UUIDFilter; + fieldIds?: UUIDListFilter; smartTags?: JSONFilter; category?: StringFilter; module?: StringFilter; scope?: IntFilter; - tags?: StringFilter; + tags?: StringListFilter; createdAt?: DatetimeFilter; updatedAt?: DatetimeFilter; - nameTrgmSimilarity?: FloatFilter; - typeTrgmSimilarity?: FloatFilter; - moduleTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: PrimaryKeyConstraintFilter[]; or?: PrimaryKeyConstraintFilter[]; not?: PrimaryKeyConstraintFilter; @@ -6476,13 +5952,10 @@ export interface TableGrantFilter { tableId?: UUIDFilter; privilege?: StringFilter; granteeName?: StringFilter; - fieldIds?: UUIDFilter; + fieldIds?: UUIDListFilter; isGrant?: BooleanFilter; createdAt?: DatetimeFilter; updatedAt?: DatetimeFilter; - privilegeTrgmSimilarity?: FloatFilter; - granteeNameTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: TableGrantFilter[]; or?: TableGrantFilter[]; not?: TableGrantFilter; @@ -6498,14 +5971,9 @@ export interface TriggerFilter { category?: StringFilter; module?: StringFilter; scope?: IntFilter; - tags?: StringFilter; + tags?: StringListFilter; createdAt?: DatetimeFilter; updatedAt?: DatetimeFilter; - nameTrgmSimilarity?: FloatFilter; - eventTrgmSimilarity?: FloatFilter; - functionNameTrgmSimilarity?: FloatFilter; - moduleTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: TriggerFilter[]; or?: TriggerFilter[]; not?: TriggerFilter; @@ -6518,18 +5986,13 @@ export interface UniqueConstraintFilter { description?: StringFilter; smartTags?: JSONFilter; type?: StringFilter; - fieldIds?: UUIDFilter; + fieldIds?: UUIDListFilter; category?: StringFilter; module?: StringFilter; scope?: IntFilter; - tags?: StringFilter; + tags?: StringListFilter; createdAt?: DatetimeFilter; updatedAt?: DatetimeFilter; - nameTrgmSimilarity?: FloatFilter; - descriptionTrgmSimilarity?: FloatFilter; - typeTrgmSimilarity?: FloatFilter; - moduleTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: UniqueConstraintFilter[]; or?: UniqueConstraintFilter[]; not?: UniqueConstraintFilter; @@ -6550,12 +6013,7 @@ export interface ViewFilter { category?: StringFilter; module?: StringFilter; scope?: IntFilter; - tags?: StringFilter; - nameTrgmSimilarity?: FloatFilter; - viewTypeTrgmSimilarity?: FloatFilter; - filterTypeTrgmSimilarity?: FloatFilter; - moduleTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; + tags?: StringListFilter; and?: ViewFilter[]; or?: ViewFilter[]; not?: ViewFilter; @@ -6577,9 +6035,6 @@ export interface ViewGrantFilter { privilege?: StringFilter; withGrantOption?: BooleanFilter; isGrant?: BooleanFilter; - granteeNameTrgmSimilarity?: FloatFilter; - privilegeTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: ViewGrantFilter[]; or?: ViewGrantFilter[]; not?: ViewGrantFilter; @@ -6591,14 +6046,33 @@ export interface ViewRuleFilter { name?: StringFilter; event?: StringFilter; action?: StringFilter; - nameTrgmSimilarity?: FloatFilter; - eventTrgmSimilarity?: FloatFilter; - actionTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: ViewRuleFilter[]; or?: ViewRuleFilter[]; not?: ViewRuleFilter; } +export interface EmbeddingChunkFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + tableId?: UUIDFilter; + embeddingFieldId?: UUIDFilter; + chunksTableId?: UUIDFilter; + chunksTableName?: StringFilter; + contentFieldName?: StringFilter; + dimensions?: IntFilter; + metric?: StringFilter; + chunkSize?: IntFilter; + chunkOverlap?: IntFilter; + chunkStrategy?: StringFilter; + metadataFields?: JSONFilter; + enqueueChunkingJob?: BooleanFilter; + chunkingTaskName?: StringFilter; + parentFkFieldId?: UUIDFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: EmbeddingChunkFilter[]; + or?: EmbeddingChunkFilter[]; + not?: EmbeddingChunkFilter; +} export interface TableTemplateModuleFilter { id?: UUIDFilter; databaseId?: UUIDFilter; @@ -6609,9 +6083,6 @@ export interface TableTemplateModuleFilter { tableName?: StringFilter; nodeType?: StringFilter; data?: JSONFilter; - tableNameTrgmSimilarity?: FloatFilter; - nodeTypeTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: TableTemplateModuleFilter[]; or?: TableTemplateModuleFilter[]; not?: TableTemplateModuleFilter; @@ -6625,22 +6096,16 @@ export interface SecureTableProvisionFilter { nodeType?: StringFilter; useRls?: BooleanFilter; nodeData?: JSONFilter; - fields?: JSONFilter; - grantRoles?: StringFilter; - grantPrivileges?: JSONFilter; + fields?: StringFilter; + grantRoles?: StringListFilter; + grantPrivileges?: StringFilter; policyType?: StringFilter; - policyPrivileges?: StringFilter; + policyPrivileges?: StringListFilter; policyRole?: StringFilter; policyPermissive?: BooleanFilter; policyName?: StringFilter; policyData?: JSONFilter; - outFields?: UUIDFilter; - tableNameTrgmSimilarity?: FloatFilter; - nodeTypeTrgmSimilarity?: FloatFilter; - policyTypeTrgmSimilarity?: FloatFilter; - policyRoleTrgmSimilarity?: FloatFilter; - policyNameTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; + outFields?: UUIDListFilter; and?: SecureTableProvisionFilter[]; or?: SecureTableProvisionFilter[]; not?: SecureTableProvisionFilter; @@ -6654,18 +6119,21 @@ export interface RelationProvisionFilter { fieldName?: StringFilter; deleteAction?: StringFilter; isRequired?: BooleanFilter; + apiRequired?: BooleanFilter; junctionTableId?: UUIDFilter; junctionTableName?: StringFilter; junctionSchemaId?: UUIDFilter; sourceFieldName?: StringFilter; targetFieldName?: StringFilter; useCompositeKey?: BooleanFilter; + createIndex?: BooleanFilter; + exposeInApi?: BooleanFilter; nodeType?: StringFilter; nodeData?: JSONFilter; - grantRoles?: StringFilter; - grantPrivileges?: JSONFilter; + grantRoles?: StringListFilter; + grantPrivileges?: StringFilter; policyType?: StringFilter; - policyPrivileges?: StringFilter; + policyPrivileges?: StringListFilter; policyRole?: StringFilter; policyPermissive?: BooleanFilter; policyName?: StringFilter; @@ -6674,17 +6142,6 @@ export interface RelationProvisionFilter { outJunctionTableId?: UUIDFilter; outSourceFieldId?: UUIDFilter; outTargetFieldId?: UUIDFilter; - relationTypeTrgmSimilarity?: FloatFilter; - fieldNameTrgmSimilarity?: FloatFilter; - deleteActionTrgmSimilarity?: FloatFilter; - junctionTableNameTrgmSimilarity?: FloatFilter; - sourceFieldNameTrgmSimilarity?: FloatFilter; - targetFieldNameTrgmSimilarity?: FloatFilter; - nodeTypeTrgmSimilarity?: FloatFilter; - policyTypeTrgmSimilarity?: FloatFilter; - policyRoleTrgmSimilarity?: FloatFilter; - policyNameTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: RelationProvisionFilter[]; or?: RelationProvisionFilter[]; not?: RelationProvisionFilter; @@ -6696,8 +6153,6 @@ export interface SchemaGrantFilter { granteeName?: StringFilter; createdAt?: DatetimeFilter; updatedAt?: DatetimeFilter; - granteeNameTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: SchemaGrantFilter[]; or?: SchemaGrantFilter[]; not?: SchemaGrantFilter; @@ -6710,14 +6165,27 @@ export interface DefaultPrivilegeFilter { privilege?: StringFilter; granteeName?: StringFilter; isGrant?: BooleanFilter; - objectTypeTrgmSimilarity?: FloatFilter; - privilegeTrgmSimilarity?: FloatFilter; - granteeNameTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: DefaultPrivilegeFilter[]; or?: DefaultPrivilegeFilter[]; not?: DefaultPrivilegeFilter; } +export interface EnumFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + schemaId?: UUIDFilter; + name?: StringFilter; + label?: StringFilter; + description?: StringFilter; + values?: StringListFilter; + smartTags?: JSONFilter; + category?: StringFilter; + module?: StringFilter; + scope?: IntFilter; + tags?: StringListFilter; + and?: EnumFilter[]; + or?: EnumFilter[]; + not?: EnumFilter; +} export interface ApiSchemaFilter { id?: UUIDFilter; databaseId?: UUIDFilter; @@ -6733,8 +6201,6 @@ export interface ApiModuleFilter { apiId?: UUIDFilter; name?: StringFilter; data?: JSONFilter; - nameTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: ApiModuleFilter[]; or?: ApiModuleFilter[]; not?: ApiModuleFilter; @@ -6757,9 +6223,6 @@ export interface SiteMetadatumFilter { title?: StringFilter; description?: StringFilter; ogImage?: StringFilter; - titleTrgmSimilarity?: FloatFilter; - descriptionTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: SiteMetadatumFilter[]; or?: SiteMetadatumFilter[]; not?: SiteMetadatumFilter; @@ -6770,8 +6233,6 @@ export interface SiteModuleFilter { siteId?: UUIDFilter; name?: StringFilter; data?: JSONFilter; - nameTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: SiteModuleFilter[]; or?: SiteModuleFilter[]; not?: SiteModuleFilter; @@ -6792,13 +6253,29 @@ export interface TriggerFunctionFilter { code?: StringFilter; createdAt?: DatetimeFilter; updatedAt?: DatetimeFilter; - nameTrgmSimilarity?: FloatFilter; - codeTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: TriggerFunctionFilter[]; or?: TriggerFunctionFilter[]; not?: TriggerFunctionFilter; } +export interface DatabaseTransferFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + targetOwnerId?: UUIDFilter; + sourceApproved?: BooleanFilter; + targetApproved?: BooleanFilter; + sourceApprovedAt?: DatetimeFilter; + targetApprovedAt?: DatetimeFilter; + status?: StringFilter; + initiatedBy?: UUIDFilter; + notes?: StringFilter; + expiresAt?: DatetimeFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + completedAt?: DatetimeFilter; + and?: DatabaseTransferFilter[]; + or?: DatabaseTransferFilter[]; + not?: DatabaseTransferFilter; +} export interface ApiFilter { id?: UUIDFilter; databaseId?: UUIDFilter; @@ -6807,11 +6284,6 @@ export interface ApiFilter { roleName?: StringFilter; anonRole?: StringFilter; isPublic?: BooleanFilter; - nameTrgmSimilarity?: FloatFilter; - dbnameTrgmSimilarity?: FloatFilter; - roleNameTrgmSimilarity?: FloatFilter; - anonRoleTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: ApiFilter[]; or?: ApiFilter[]; not?: ApiFilter; @@ -6826,10 +6298,6 @@ export interface SiteFilter { appleTouchIcon?: StringFilter; logo?: StringFilter; dbname?: StringFilter; - titleTrgmSimilarity?: FloatFilter; - descriptionTrgmSimilarity?: FloatFilter; - dbnameTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: SiteFilter[]; or?: SiteFilter[]; not?: SiteFilter; @@ -6844,10 +6312,6 @@ export interface AppFilter { appStoreId?: StringFilter; appIdPrefix?: StringFilter; playStoreLink?: StringFilter; - nameTrgmSimilarity?: FloatFilter; - appStoreIdTrgmSimilarity?: FloatFilter; - appIdPrefixTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: AppFilter[]; or?: AppFilter[]; not?: AppFilter; @@ -6860,8 +6324,6 @@ export interface ConnectedAccountsModuleFilter { tableId?: UUIDFilter; ownerTableId?: UUIDFilter; tableName?: StringFilter; - tableNameTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: ConnectedAccountsModuleFilter[]; or?: ConnectedAccountsModuleFilter[]; not?: ConnectedAccountsModuleFilter; @@ -6875,9 +6337,6 @@ export interface CryptoAddressesModuleFilter { ownerTableId?: UUIDFilter; tableName?: StringFilter; cryptoNetwork?: StringFilter; - tableNameTrgmSimilarity?: FloatFilter; - cryptoNetworkTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: CryptoAddressesModuleFilter[]; or?: CryptoAddressesModuleFilter[]; not?: CryptoAddressesModuleFilter; @@ -6897,13 +6356,6 @@ export interface CryptoAuthModuleFilter { signInRecordFailure?: StringFilter; signUpWithKey?: StringFilter; signInWithChallenge?: StringFilter; - userFieldTrgmSimilarity?: FloatFilter; - cryptoNetworkTrgmSimilarity?: FloatFilter; - signInRequestChallengeTrgmSimilarity?: FloatFilter; - signInRecordFailureTrgmSimilarity?: FloatFilter; - signUpWithKeyTrgmSimilarity?: FloatFilter; - signInWithChallengeTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: CryptoAuthModuleFilter[]; or?: CryptoAuthModuleFilter[]; not?: CryptoAuthModuleFilter; @@ -6920,16 +6372,14 @@ export interface DenormalizedTableFieldFilter { databaseId?: UUIDFilter; tableId?: UUIDFilter; fieldId?: UUIDFilter; - setIds?: UUIDFilter; + setIds?: UUIDListFilter; refTableId?: UUIDFilter; refFieldId?: UUIDFilter; - refIds?: UUIDFilter; + refIds?: UUIDListFilter; useUpdates?: BooleanFilter; updateDefaults?: BooleanFilter; funcName?: StringFilter; funcOrder?: IntFilter; - funcNameTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: DenormalizedTableFieldFilter[]; or?: DenormalizedTableFieldFilter[]; not?: DenormalizedTableFieldFilter; @@ -6942,8 +6392,6 @@ export interface EmailsModuleFilter { tableId?: UUIDFilter; ownerTableId?: UUIDFilter; tableName?: StringFilter; - tableNameTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: EmailsModuleFilter[]; or?: EmailsModuleFilter[]; not?: EmailsModuleFilter; @@ -6954,8 +6402,6 @@ export interface EncryptedSecretsModuleFilter { schemaId?: UUIDFilter; tableId?: UUIDFilter; tableName?: StringFilter; - tableNameTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: EncryptedSecretsModuleFilter[]; or?: EncryptedSecretsModuleFilter[]; not?: EncryptedSecretsModuleFilter; @@ -6968,10 +6414,8 @@ export interface FieldModuleFilter { fieldId?: UUIDFilter; nodeType?: StringFilter; data?: JSONFilter; - triggers?: StringFilter; - functions?: StringFilter; - nodeTypeTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; + triggers?: StringListFilter; + functions?: StringListFilter; and?: FieldModuleFilter[]; or?: FieldModuleFilter[]; not?: FieldModuleFilter; @@ -6991,11 +6435,6 @@ export interface InvitesModuleFilter { prefix?: StringFilter; membershipType?: IntFilter; entityTableId?: UUIDFilter; - invitesTableNameTrgmSimilarity?: FloatFilter; - claimedInvitesTableNameTrgmSimilarity?: FloatFilter; - submitInviteCodeFunctionTrgmSimilarity?: FloatFilter; - prefixTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: InvitesModuleFilter[]; or?: InvitesModuleFilter[]; not?: InvitesModuleFilter; @@ -7027,22 +6466,6 @@ export interface LevelsModuleFilter { membershipType?: IntFilter; entityTableId?: UUIDFilter; actorTableId?: UUIDFilter; - stepsTableNameTrgmSimilarity?: FloatFilter; - achievementsTableNameTrgmSimilarity?: FloatFilter; - levelsTableNameTrgmSimilarity?: FloatFilter; - levelRequirementsTableNameTrgmSimilarity?: FloatFilter; - completedStepTrgmSimilarity?: FloatFilter; - incompletedStepTrgmSimilarity?: FloatFilter; - tgAchievementTrgmSimilarity?: FloatFilter; - tgAchievementToggleTrgmSimilarity?: FloatFilter; - tgAchievementToggleBooleanTrgmSimilarity?: FloatFilter; - tgAchievementBooleanTrgmSimilarity?: FloatFilter; - upsertAchievementTrgmSimilarity?: FloatFilter; - tgUpdateAchievementsTrgmSimilarity?: FloatFilter; - stepsRequiredTrgmSimilarity?: FloatFilter; - levelAchievedTrgmSimilarity?: FloatFilter; - prefixTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: LevelsModuleFilter[]; or?: LevelsModuleFilter[]; not?: LevelsModuleFilter; @@ -7066,16 +6489,6 @@ export interface LimitsModuleFilter { membershipType?: IntFilter; entityTableId?: UUIDFilter; actorTableId?: UUIDFilter; - tableNameTrgmSimilarity?: FloatFilter; - defaultTableNameTrgmSimilarity?: FloatFilter; - limitIncrementFunctionTrgmSimilarity?: FloatFilter; - limitDecrementFunctionTrgmSimilarity?: FloatFilter; - limitIncrementTriggerTrgmSimilarity?: FloatFilter; - limitDecrementTriggerTrgmSimilarity?: FloatFilter; - limitUpdateTriggerTrgmSimilarity?: FloatFilter; - limitCheckFunctionTrgmSimilarity?: FloatFilter; - prefixTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: LimitsModuleFilter[]; or?: LimitsModuleFilter[]; not?: LimitsModuleFilter; @@ -7086,8 +6499,6 @@ export interface MembershipTypesModuleFilter { schemaId?: UUIDFilter; tableId?: UUIDFilter; tableName?: StringFilter; - tableNameTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: MembershipTypesModuleFilter[]; or?: MembershipTypesModuleFilter[]; not?: MembershipTypesModuleFilter; @@ -7124,19 +6535,6 @@ export interface MembershipsModuleFilter { entityIdsByMask?: StringFilter; entityIdsByPerm?: StringFilter; entityIdsFunction?: StringFilter; - membershipsTableNameTrgmSimilarity?: FloatFilter; - membersTableNameTrgmSimilarity?: FloatFilter; - membershipDefaultsTableNameTrgmSimilarity?: FloatFilter; - grantsTableNameTrgmSimilarity?: FloatFilter; - adminGrantsTableNameTrgmSimilarity?: FloatFilter; - ownerGrantsTableNameTrgmSimilarity?: FloatFilter; - prefixTrgmSimilarity?: FloatFilter; - actorMaskCheckTrgmSimilarity?: FloatFilter; - actorPermCheckTrgmSimilarity?: FloatFilter; - entityIdsByMaskTrgmSimilarity?: FloatFilter; - entityIdsByPermTrgmSimilarity?: FloatFilter; - entityIdsFunctionTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: MembershipsModuleFilter[]; or?: MembershipsModuleFilter[]; not?: MembershipsModuleFilter; @@ -7159,14 +6557,6 @@ export interface PermissionsModuleFilter { getMask?: StringFilter; getByMask?: StringFilter; getMaskByName?: StringFilter; - tableNameTrgmSimilarity?: FloatFilter; - defaultTableNameTrgmSimilarity?: FloatFilter; - prefixTrgmSimilarity?: FloatFilter; - getPaddedMaskTrgmSimilarity?: FloatFilter; - getMaskTrgmSimilarity?: FloatFilter; - getByMaskTrgmSimilarity?: FloatFilter; - getMaskByNameTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: PermissionsModuleFilter[]; or?: PermissionsModuleFilter[]; not?: PermissionsModuleFilter; @@ -7179,8 +6569,6 @@ export interface PhoneNumbersModuleFilter { tableId?: UUIDFilter; ownerTableId?: UUIDFilter; tableName?: StringFilter; - tableNameTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: PhoneNumbersModuleFilter[]; or?: PhoneNumbersModuleFilter[]; not?: PhoneNumbersModuleFilter; @@ -7204,12 +6592,6 @@ export interface ProfilesModuleFilter { permissionsTableId?: UUIDFilter; membershipsTableId?: UUIDFilter; prefix?: StringFilter; - tableNameTrgmSimilarity?: FloatFilter; - profilePermissionsTableNameTrgmSimilarity?: FloatFilter; - profileGrantsTableNameTrgmSimilarity?: FloatFilter; - profileDefinitionGrantsTableNameTrgmSimilarity?: FloatFilter; - prefixTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: ProfilesModuleFilter[]; or?: ProfilesModuleFilter[]; not?: ProfilesModuleFilter; @@ -7220,8 +6602,6 @@ export interface SecretsModuleFilter { schemaId?: UUIDFilter; tableId?: UUIDFilter; tableName?: StringFilter; - tableNameTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: SecretsModuleFilter[]; or?: SecretsModuleFilter[]; not?: SecretsModuleFilter; @@ -7238,10 +6618,6 @@ export interface SessionsModuleFilter { sessionsTable?: StringFilter; sessionCredentialsTable?: StringFilter; authSettingsTable?: StringFilter; - sessionsTableTrgmSimilarity?: FloatFilter; - sessionCredentialsTableTrgmSimilarity?: FloatFilter; - authSettingsTableTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: SessionsModuleFilter[]; or?: SessionsModuleFilter[]; not?: SessionsModuleFilter; @@ -7273,23 +6649,6 @@ export interface UserAuthModuleFilter { signInOneTimeTokenFunction?: StringFilter; oneTimeTokenFunction?: StringFilter; extendTokenExpires?: StringFilter; - auditsTableNameTrgmSimilarity?: FloatFilter; - signInFunctionTrgmSimilarity?: FloatFilter; - signUpFunctionTrgmSimilarity?: FloatFilter; - signOutFunctionTrgmSimilarity?: FloatFilter; - setPasswordFunctionTrgmSimilarity?: FloatFilter; - resetPasswordFunctionTrgmSimilarity?: FloatFilter; - forgotPasswordFunctionTrgmSimilarity?: FloatFilter; - sendVerificationEmailFunctionTrgmSimilarity?: FloatFilter; - verifyEmailFunctionTrgmSimilarity?: FloatFilter; - verifyPasswordFunctionTrgmSimilarity?: FloatFilter; - checkPasswordFunctionTrgmSimilarity?: FloatFilter; - sendAccountDeletionEmailFunctionTrgmSimilarity?: FloatFilter; - deleteAccountFunctionTrgmSimilarity?: FloatFilter; - signInOneTimeTokenFunctionTrgmSimilarity?: FloatFilter; - oneTimeTokenFunctionTrgmSimilarity?: FloatFilter; - extendTokenExpiresTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: UserAuthModuleFilter[]; or?: UserAuthModuleFilter[]; not?: UserAuthModuleFilter; @@ -7302,25 +6661,56 @@ export interface UsersModuleFilter { tableName?: StringFilter; typeTableId?: UUIDFilter; typeTableName?: StringFilter; - tableNameTrgmSimilarity?: FloatFilter; - typeTableNameTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: UsersModuleFilter[]; or?: UsersModuleFilter[]; not?: UsersModuleFilter; } -export interface UuidModuleFilter { +export interface BlueprintFilter { id?: UUIDFilter; + ownerId?: UUIDFilter; databaseId?: UUIDFilter; - schemaId?: UUIDFilter; - uuidFunction?: StringFilter; - uuidSeed?: StringFilter; - uuidFunctionTrgmSimilarity?: FloatFilter; - uuidSeedTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; - and?: UuidModuleFilter[]; - or?: UuidModuleFilter[]; - not?: UuidModuleFilter; + name?: StringFilter; + displayName?: StringFilter; + description?: StringFilter; + definition?: JSONFilter; + templateId?: UUIDFilter; + status?: StringFilter; + constructedAt?: DatetimeFilter; + errorDetails?: StringFilter; + refMap?: JSONFilter; + constructedDefinition?: JSONFilter; + definitionHash?: UUIDFilter; + tableHashes?: JSONFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: BlueprintFilter[]; + or?: BlueprintFilter[]; + not?: BlueprintFilter; +} +export interface BlueprintTemplateFilter { + id?: UUIDFilter; + name?: StringFilter; + version?: StringFilter; + displayName?: StringFilter; + description?: StringFilter; + ownerId?: UUIDFilter; + visibility?: StringFilter; + categories?: StringListFilter; + tags?: StringListFilter; + definition?: JSONFilter; + definitionSchemaVersion?: StringFilter; + source?: StringFilter; + complexity?: StringFilter; + copyCount?: IntFilter; + forkCount?: IntFilter; + forkedFromId?: UUIDFilter; + definitionHash?: UUIDFilter; + tableHashes?: JSONFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: BlueprintTemplateFilter[]; + or?: BlueprintTemplateFilter[]; + not?: BlueprintTemplateFilter; } export interface DatabaseProvisionModuleFilter { id?: UUIDFilter; @@ -7328,7 +6718,7 @@ export interface DatabaseProvisionModuleFilter { ownerId?: UUIDFilter; subdomain?: StringFilter; domain?: StringFilter; - modules?: StringFilter; + modules?: StringListFilter; options?: JSONFilter; bootstrapUser?: BooleanFilter; status?: StringFilter; @@ -7337,12 +6727,6 @@ export interface DatabaseProvisionModuleFilter { createdAt?: DatetimeFilter; updatedAt?: DatetimeFilter; completedAt?: DatetimeFilter; - databaseNameTrgmSimilarity?: FloatFilter; - subdomainTrgmSimilarity?: FloatFilter; - domainTrgmSimilarity?: FloatFilter; - statusTrgmSimilarity?: FloatFilter; - errorMessageTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: DatabaseProvisionModuleFilter[]; or?: DatabaseProvisionModuleFilter[]; not?: DatabaseProvisionModuleFilter; @@ -7457,8 +6841,6 @@ export interface OrgChartEdgeFilter { parentId?: UUIDFilter; positionTitle?: StringFilter; positionLevel?: IntFilter; - positionTitleTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: OrgChartEdgeFilter[]; or?: OrgChartEdgeFilter[]; not?: OrgChartEdgeFilter; @@ -7473,12 +6855,18 @@ export interface OrgChartEdgeGrantFilter { positionTitle?: StringFilter; positionLevel?: IntFilter; createdAt?: DatetimeFilter; - positionTitleTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: OrgChartEdgeGrantFilter[]; or?: OrgChartEdgeGrantFilter[]; not?: OrgChartEdgeGrantFilter; } +export interface OrgPermissionDefaultFilter { + id?: UUIDFilter; + permissions?: BitStringFilter; + entityId?: UUIDFilter; + and?: OrgPermissionDefaultFilter[]; + or?: OrgPermissionDefaultFilter[]; + not?: OrgPermissionDefaultFilter; +} export interface AppLimitFilter { id?: UUIDFilter; name?: StringFilter; @@ -7522,6 +6910,68 @@ export interface AppAchievementFilter { or?: AppAchievementFilter[]; not?: AppAchievementFilter; } +export interface AppLevelFilter { + id?: UUIDFilter; + name?: StringFilter; + description?: StringFilter; + image?: StringFilter; + ownerId?: UUIDFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: AppLevelFilter[]; + or?: AppLevelFilter[]; + not?: AppLevelFilter; +} +export interface EmailFilter { + id?: UUIDFilter; + ownerId?: UUIDFilter; + email?: StringFilter; + isVerified?: BooleanFilter; + isPrimary?: BooleanFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: EmailFilter[]; + or?: EmailFilter[]; + not?: EmailFilter; +} +export interface PhoneNumberFilter { + id?: UUIDFilter; + ownerId?: UUIDFilter; + cc?: StringFilter; + number?: StringFilter; + isVerified?: BooleanFilter; + isPrimary?: BooleanFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: PhoneNumberFilter[]; + or?: PhoneNumberFilter[]; + not?: PhoneNumberFilter; +} +export interface CryptoAddressFilter { + id?: UUIDFilter; + ownerId?: UUIDFilter; + address?: StringFilter; + isVerified?: BooleanFilter; + isPrimary?: BooleanFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: CryptoAddressFilter[]; + or?: CryptoAddressFilter[]; + not?: CryptoAddressFilter; +} +export interface ConnectedAccountFilter { + id?: UUIDFilter; + ownerId?: UUIDFilter; + service?: StringFilter; + identifier?: StringFilter; + details?: JSONFilter; + isVerified?: BooleanFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: ConnectedAccountFilter[]; + or?: ConnectedAccountFilter[]; + not?: ConnectedAccountFilter; +} export interface InviteFilter { id?: UUIDFilter; email?: StringFilter; @@ -7535,8 +6985,6 @@ export interface InviteFilter { expiresAt?: DatetimeFilter; createdAt?: DatetimeFilter; updatedAt?: DatetimeFilter; - inviteTokenTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: InviteFilter[]; or?: InviteFilter[]; not?: InviteFilter; @@ -7567,8 +7015,6 @@ export interface OrgInviteFilter { createdAt?: DatetimeFilter; updatedAt?: DatetimeFilter; entityId?: UUIDFilter; - inviteTokenTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: OrgInviteFilter[]; or?: OrgInviteFilter[]; not?: OrgInviteFilter; @@ -7585,14 +7031,25 @@ export interface OrgClaimedInviteFilter { or?: OrgClaimedInviteFilter[]; not?: OrgClaimedInviteFilter; } +export interface AuditLogFilter { + id?: UUIDFilter; + event?: StringFilter; + actorId?: UUIDFilter; + origin?: StringFilter; + userAgent?: StringFilter; + ipAddress?: InternetAddressFilter; + success?: BooleanFilter; + createdAt?: DatetimeFilter; + and?: AuditLogFilter[]; + or?: AuditLogFilter[]; + not?: AuditLogFilter; +} export interface RefFilter { id?: UUIDFilter; name?: StringFilter; databaseId?: UUIDFilter; storeId?: UUIDFilter; commitId?: UUIDFilter; - nameTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: RefFilter[]; or?: RefFilter[]; not?: RefFilter; @@ -7603,8 +7060,6 @@ export interface StoreFilter { databaseId?: UUIDFilter; hash?: UUIDFilter; createdAt?: DatetimeFilter; - nameTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: StoreFilter[]; or?: StoreFilter[]; not?: StoreFilter; @@ -7616,20 +7071,6 @@ export interface AppPermissionDefaultFilter { or?: AppPermissionDefaultFilter[]; not?: AppPermissionDefaultFilter; } -export interface CryptoAddressFilter { - id?: UUIDFilter; - ownerId?: UUIDFilter; - address?: StringFilter; - isVerified?: BooleanFilter; - isPrimary?: BooleanFilter; - createdAt?: DatetimeFilter; - updatedAt?: DatetimeFilter; - addressTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; - and?: CryptoAddressFilter[]; - or?: CryptoAddressFilter[]; - not?: CryptoAddressFilter; -} export interface RoleTypeFilter { id?: IntFilter; name?: StringFilter; @@ -7637,30 +7078,6 @@ export interface RoleTypeFilter { or?: RoleTypeFilter[]; not?: RoleTypeFilter; } -export interface OrgPermissionDefaultFilter { - id?: UUIDFilter; - permissions?: BitStringFilter; - entityId?: UUIDFilter; - and?: OrgPermissionDefaultFilter[]; - or?: OrgPermissionDefaultFilter[]; - not?: OrgPermissionDefaultFilter; -} -export interface PhoneNumberFilter { - id?: UUIDFilter; - ownerId?: UUIDFilter; - cc?: StringFilter; - number?: StringFilter; - isVerified?: BooleanFilter; - isPrimary?: BooleanFilter; - createdAt?: DatetimeFilter; - updatedAt?: DatetimeFilter; - ccTrgmSimilarity?: FloatFilter; - numberTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; - and?: PhoneNumberFilter[]; - or?: PhoneNumberFilter[]; - not?: PhoneNumberFilter; -} export interface AppLimitDefaultFilter { id?: UUIDFilter; name?: StringFilter; @@ -7677,22 +7094,6 @@ export interface OrgLimitDefaultFilter { or?: OrgLimitDefaultFilter[]; not?: OrgLimitDefaultFilter; } -export interface ConnectedAccountFilter { - id?: UUIDFilter; - ownerId?: UUIDFilter; - service?: StringFilter; - identifier?: StringFilter; - details?: JSONFilter; - isVerified?: BooleanFilter; - createdAt?: DatetimeFilter; - updatedAt?: DatetimeFilter; - serviceTrgmSimilarity?: FloatFilter; - identifierTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; - and?: ConnectedAccountFilter[]; - or?: ConnectedAccountFilter[]; - not?: ConnectedAccountFilter; -} export interface NodeTypeRegistryFilter { name?: StringFilter; slug?: StringFilter; @@ -7700,15 +7101,9 @@ export interface NodeTypeRegistryFilter { displayName?: StringFilter; description?: StringFilter; parameterSchema?: JSONFilter; - tags?: StringFilter; + tags?: StringListFilter; createdAt?: DatetimeFilter; updatedAt?: DatetimeFilter; - nameTrgmSimilarity?: FloatFilter; - slugTrgmSimilarity?: FloatFilter; - categoryTrgmSimilarity?: FloatFilter; - displayNameTrgmSimilarity?: FloatFilter; - descriptionTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: NodeTypeRegistryFilter[]; or?: NodeTypeRegistryFilter[]; not?: NodeTypeRegistryFilter; @@ -7718,9 +7113,6 @@ export interface MembershipTypeFilter { name?: StringFilter; description?: StringFilter; prefix?: StringFilter; - descriptionTrgmSimilarity?: FloatFilter; - prefixTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: MembershipTypeFilter[]; or?: MembershipTypeFilter[]; not?: MembershipTypeFilter; @@ -7730,13 +7122,11 @@ export interface CommitFilter { message?: StringFilter; databaseId?: UUIDFilter; storeId?: UUIDFilter; - parentIds?: UUIDFilter; + parentIds?: UUIDListFilter; authorId?: UUIDFilter; committerId?: UUIDFilter; treeId?: UUIDFilter; date?: DatetimeFilter; - messageTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: CommitFilter[]; or?: CommitFilter[]; not?: CommitFilter; @@ -7765,11 +7155,6 @@ export interface RlsModuleFilter { authenticateStrict?: StringFilter; currentRole?: StringFilter; currentRoleId?: StringFilter; - authenticateTrgmSimilarity?: FloatFilter; - authenticateStrictTrgmSimilarity?: FloatFilter; - currentRoleTrgmSimilarity?: FloatFilter; - currentRoleIdTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: RlsModuleFilter[]; or?: RlsModuleFilter[]; not?: RlsModuleFilter; @@ -7788,41 +7173,12 @@ export interface OrgMembershipDefaultFilter { or?: OrgMembershipDefaultFilter[]; not?: OrgMembershipDefaultFilter; } -export interface AuditLogFilter { - id?: UUIDFilter; - event?: StringFilter; - actorId?: UUIDFilter; - origin?: StringFilter; - userAgent?: StringFilter; - ipAddress?: InternetAddressFilter; - success?: BooleanFilter; - createdAt?: DatetimeFilter; - userAgentTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; - and?: AuditLogFilter[]; - or?: AuditLogFilter[]; - not?: AuditLogFilter; -} -export interface AppLevelFilter { - id?: UUIDFilter; - name?: StringFilter; - description?: StringFilter; - image?: StringFilter; - ownerId?: UUIDFilter; - createdAt?: DatetimeFilter; - updatedAt?: DatetimeFilter; - descriptionTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; - and?: AppLevelFilter[]; - or?: AppLevelFilter[]; - not?: AppLevelFilter; -} export interface SqlMigrationFilter { id?: IntFilter; name?: StringFilter; databaseId?: UUIDFilter; deploy?: StringFilter; - deps?: StringFilter; + deps?: StringListFilter; payload?: JSONFilter; content?: StringFilter; revert?: StringFilter; @@ -7831,29 +7187,10 @@ export interface SqlMigrationFilter { action?: StringFilter; actionId?: UUIDFilter; actorId?: UUIDFilter; - nameTrgmSimilarity?: FloatFilter; - deployTrgmSimilarity?: FloatFilter; - contentTrgmSimilarity?: FloatFilter; - revertTrgmSimilarity?: FloatFilter; - verifyTrgmSimilarity?: FloatFilter; - actionTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: SqlMigrationFilter[]; or?: SqlMigrationFilter[]; not?: SqlMigrationFilter; } -export interface EmailFilter { - id?: UUIDFilter; - ownerId?: UUIDFilter; - email?: StringFilter; - isVerified?: BooleanFilter; - isPrimary?: BooleanFilter; - createdAt?: DatetimeFilter; - updatedAt?: DatetimeFilter; - and?: EmailFilter[]; - or?: EmailFilter[]; - not?: EmailFilter; -} export interface UserFilter { id?: UUIDFilter; username?: StringFilter; @@ -7874,7 +7211,7 @@ export interface AstMigrationFilter { id?: IntFilter; databaseId?: UUIDFilter; name?: StringFilter; - requires?: StringFilter; + requires?: StringListFilter; payload?: JSONFilter; deploys?: StringFilter; deploy?: JSONFilter; @@ -7884,8 +7221,6 @@ export interface AstMigrationFilter { action?: StringFilter; actionId?: UUIDFilter; actorId?: UUIDFilter; - actionTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: AstMigrationFilter[]; or?: AstMigrationFilter[]; not?: AstMigrationFilter; @@ -7932,22 +7267,19 @@ export interface HierarchyModuleFilter { getManagersFunction?: StringFilter; isManagerOfFunction?: StringFilter; createdAt?: DatetimeFilter; - chartEdgesTableNameTrgmSimilarity?: FloatFilter; - hierarchySprtTableNameTrgmSimilarity?: FloatFilter; - chartEdgeGrantsTableNameTrgmSimilarity?: FloatFilter; - prefixTrgmSimilarity?: FloatFilter; - privateSchemaNameTrgmSimilarity?: FloatFilter; - sprtTableNameTrgmSimilarity?: FloatFilter; - rebuildHierarchyFunctionTrgmSimilarity?: FloatFilter; - getSubordinatesFunctionTrgmSimilarity?: FloatFilter; - getManagersFunctionTrgmSimilarity?: FloatFilter; - isManagerOfFunctionTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: HierarchyModuleFilter[]; or?: HierarchyModuleFilter[]; not?: HierarchyModuleFilter; } // ============ OrderBy Types ============ +export type GetAllRecordsOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'PATH_ASC' + | 'PATH_DESC' + | 'DATA_ASC' + | 'DATA_DESC'; export type OrgGetManagersRecordsOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -7964,126 +7296,70 @@ export type OrgGetSubordinatesRecordsOrderBy = | 'USER_ID_DESC' | 'DEPTH_ASC' | 'DEPTH_DESC'; -export type GetAllRecordsOrderBy = - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'NATURAL' - | 'PATH_ASC' - | 'PATH_DESC' - | 'DATA_ASC' - | 'DATA_DESC'; export type ObjectOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' - | 'HASH_UUID_ASC' - | 'HASH_UUID_DESC' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'KIDS_ASC' - | 'KIDS_DESC' - | 'KTREE_ASC' - | 'KTREE_DESC' - | 'DATA_ASC' - | 'DATA_DESC' | 'FRZN_ASC' - | 'FRZN_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC'; + | 'FRZN_DESC'; export type AppPermissionOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'BITNUM_ASC' - | 'BITNUM_DESC' - | 'BITSTR_ASC' - | 'BITSTR_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'DESCRIPTION_TRGM_SIMILARITY_ASC' - | 'DESCRIPTION_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'BITNUM_DESC'; export type OrgPermissionOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'BITNUM_ASC' - | 'BITNUM_DESC' - | 'BITSTR_ASC' - | 'BITSTR_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'DESCRIPTION_TRGM_SIMILARITY_ASC' - | 'DESCRIPTION_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'BITNUM_DESC'; export type AppLevelRequirementOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'LEVEL_ASC' | 'LEVEL_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'REQUIRED_COUNT_ASC' - | 'REQUIRED_COUNT_DESC' | 'PRIORITY_ASC' | 'PRIORITY_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'DESCRIPTION_TRGM_SIMILARITY_ASC' - | 'DESCRIPTION_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'UPDATED_AT_DESC'; export type DatabaseOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'OWNER_ID_ASC' | 'OWNER_ID_DESC' | 'SCHEMA_HASH_ASC' | 'SCHEMA_HASH_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'LABEL_ASC' - | 'LABEL_DESC' - | 'HASH_ASC' - | 'HASH_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'SCHEMA_HASH_TRGM_SIMILARITY_ASC' - | 'SCHEMA_HASH_TRGM_SIMILARITY_DESC' - | 'NAME_TRGM_SIMILARITY_ASC' - | 'NAME_TRGM_SIMILARITY_DESC' - | 'LABEL_TRGM_SIMILARITY_ASC' - | 'LABEL_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'UPDATED_AT_DESC'; export type SchemaOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' @@ -8092,42 +7368,14 @@ export type SchemaOrderBy = | 'NAME_DESC' | 'SCHEMA_NAME_ASC' | 'SCHEMA_NAME_DESC' - | 'LABEL_ASC' - | 'LABEL_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'SMART_TAGS_ASC' - | 'SMART_TAGS_DESC' - | 'CATEGORY_ASC' - | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'TAGS_ASC' - | 'TAGS_DESC' - | 'IS_PUBLIC_ASC' - | 'IS_PUBLIC_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'NAME_TRGM_SIMILARITY_ASC' - | 'NAME_TRGM_SIMILARITY_DESC' - | 'SCHEMA_NAME_TRGM_SIMILARITY_ASC' - | 'SCHEMA_NAME_TRGM_SIMILARITY_DESC' - | 'LABEL_TRGM_SIMILARITY_ASC' - | 'LABEL_TRGM_SIMILARITY_DESC' - | 'DESCRIPTION_TRGM_SIMILARITY_ASC' - | 'DESCRIPTION_TRGM_SIMILARITY_DESC' - | 'MODULE_TRGM_SIMILARITY_ASC' - | 'MODULE_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'UPDATED_AT_DESC'; export type TableOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' @@ -8136,54 +7384,14 @@ export type TableOrderBy = | 'SCHEMA_ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'LABEL_ASC' - | 'LABEL_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'SMART_TAGS_ASC' - | 'SMART_TAGS_DESC' - | 'CATEGORY_ASC' - | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'USE_RLS_ASC' - | 'USE_RLS_DESC' - | 'TIMESTAMPS_ASC' - | 'TIMESTAMPS_DESC' - | 'PEOPLESTAMPS_ASC' - | 'PEOPLESTAMPS_DESC' - | 'PLURAL_NAME_ASC' - | 'PLURAL_NAME_DESC' - | 'SINGULAR_NAME_ASC' - | 'SINGULAR_NAME_DESC' - | 'TAGS_ASC' - | 'TAGS_DESC' - | 'INHERITS_ID_ASC' - | 'INHERITS_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'NAME_TRGM_SIMILARITY_ASC' - | 'NAME_TRGM_SIMILARITY_DESC' - | 'LABEL_TRGM_SIMILARITY_ASC' - | 'LABEL_TRGM_SIMILARITY_DESC' - | 'DESCRIPTION_TRGM_SIMILARITY_ASC' - | 'DESCRIPTION_TRGM_SIMILARITY_DESC' - | 'MODULE_TRGM_SIMILARITY_ASC' - | 'MODULE_TRGM_SIMILARITY_DESC' - | 'PLURAL_NAME_TRGM_SIMILARITY_ASC' - | 'PLURAL_NAME_TRGM_SIMILARITY_DESC' - | 'SINGULAR_NAME_TRGM_SIMILARITY_ASC' - | 'SINGULAR_NAME_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'UPDATED_AT_DESC'; export type CheckConstraintOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' @@ -8192,38 +7400,14 @@ export type CheckConstraintOrderBy = | 'TABLE_ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'TYPE_ASC' - | 'TYPE_DESC' - | 'FIELD_IDS_ASC' - | 'FIELD_IDS_DESC' - | 'EXPR_ASC' - | 'EXPR_DESC' - | 'SMART_TAGS_ASC' - | 'SMART_TAGS_DESC' - | 'CATEGORY_ASC' - | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'TAGS_ASC' - | 'TAGS_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'NAME_TRGM_SIMILARITY_ASC' - | 'NAME_TRGM_SIMILARITY_DESC' - | 'TYPE_TRGM_SIMILARITY_ASC' - | 'TYPE_TRGM_SIMILARITY_DESC' - | 'MODULE_TRGM_SIMILARITY_ASC' - | 'MODULE_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'UPDATED_AT_DESC'; export type FieldOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' @@ -8232,64 +7416,14 @@ export type FieldOrderBy = | 'TABLE_ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'LABEL_ASC' - | 'LABEL_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'SMART_TAGS_ASC' - | 'SMART_TAGS_DESC' - | 'IS_REQUIRED_ASC' - | 'IS_REQUIRED_DESC' - | 'DEFAULT_VALUE_ASC' - | 'DEFAULT_VALUE_DESC' - | 'DEFAULT_VALUE_AST_ASC' - | 'DEFAULT_VALUE_AST_DESC' - | 'IS_HIDDEN_ASC' - | 'IS_HIDDEN_DESC' - | 'TYPE_ASC' - | 'TYPE_DESC' - | 'FIELD_ORDER_ASC' - | 'FIELD_ORDER_DESC' - | 'REGEXP_ASC' - | 'REGEXP_DESC' - | 'CHK_ASC' - | 'CHK_DESC' - | 'CHK_EXPR_ASC' - | 'CHK_EXPR_DESC' - | 'MIN_ASC' - | 'MIN_DESC' - | 'MAX_ASC' - | 'MAX_DESC' - | 'TAGS_ASC' - | 'TAGS_DESC' - | 'CATEGORY_ASC' - | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'NAME_TRGM_SIMILARITY_ASC' - | 'NAME_TRGM_SIMILARITY_DESC' - | 'LABEL_TRGM_SIMILARITY_ASC' - | 'LABEL_TRGM_SIMILARITY_DESC' - | 'DESCRIPTION_TRGM_SIMILARITY_ASC' - | 'DESCRIPTION_TRGM_SIMILARITY_DESC' - | 'DEFAULT_VALUE_TRGM_SIMILARITY_ASC' - | 'DEFAULT_VALUE_TRGM_SIMILARITY_DESC' - | 'REGEXP_TRGM_SIMILARITY_ASC' - | 'REGEXP_TRGM_SIMILARITY_DESC' - | 'MODULE_TRGM_SIMILARITY_ASC' - | 'MODULE_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'UPDATED_AT_DESC'; export type ForeignKeyConstraintOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' @@ -8298,74 +7432,28 @@ export type ForeignKeyConstraintOrderBy = | 'TABLE_ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'SMART_TAGS_ASC' - | 'SMART_TAGS_DESC' - | 'TYPE_ASC' - | 'TYPE_DESC' - | 'FIELD_IDS_ASC' - | 'FIELD_IDS_DESC' - | 'REF_TABLE_ID_ASC' - | 'REF_TABLE_ID_DESC' - | 'REF_FIELD_IDS_ASC' - | 'REF_FIELD_IDS_DESC' - | 'DELETE_ACTION_ASC' - | 'DELETE_ACTION_DESC' - | 'UPDATE_ACTION_ASC' - | 'UPDATE_ACTION_DESC' - | 'CATEGORY_ASC' - | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'TAGS_ASC' - | 'TAGS_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'NAME_TRGM_SIMILARITY_ASC' - | 'NAME_TRGM_SIMILARITY_DESC' - | 'DESCRIPTION_TRGM_SIMILARITY_ASC' - | 'DESCRIPTION_TRGM_SIMILARITY_DESC' - | 'TYPE_TRGM_SIMILARITY_ASC' - | 'TYPE_TRGM_SIMILARITY_DESC' - | 'DELETE_ACTION_TRGM_SIMILARITY_ASC' - | 'DELETE_ACTION_TRGM_SIMILARITY_DESC' - | 'UPDATE_ACTION_TRGM_SIMILARITY_ASC' - | 'UPDATE_ACTION_TRGM_SIMILARITY_DESC' - | 'MODULE_TRGM_SIMILARITY_ASC' - | 'MODULE_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'UPDATED_AT_DESC'; export type FullTextSearchOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'TABLE_ID_ASC' | 'TABLE_ID_DESC' - | 'FIELD_ID_ASC' - | 'FIELD_ID_DESC' - | 'FIELD_IDS_ASC' - | 'FIELD_IDS_DESC' - | 'WEIGHTS_ASC' - | 'WEIGHTS_DESC' - | 'LANGS_ASC' - | 'LANGS_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; export type IndexOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' @@ -8374,48 +7462,14 @@ export type IndexOrderBy = | 'TABLE_ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'FIELD_IDS_ASC' - | 'FIELD_IDS_DESC' - | 'INCLUDE_FIELD_IDS_ASC' - | 'INCLUDE_FIELD_IDS_DESC' - | 'ACCESS_METHOD_ASC' - | 'ACCESS_METHOD_DESC' - | 'INDEX_PARAMS_ASC' - | 'INDEX_PARAMS_DESC' - | 'WHERE_CLAUSE_ASC' - | 'WHERE_CLAUSE_DESC' - | 'IS_UNIQUE_ASC' - | 'IS_UNIQUE_DESC' - | 'OPTIONS_ASC' - | 'OPTIONS_DESC' - | 'OP_CLASSES_ASC' - | 'OP_CLASSES_DESC' - | 'SMART_TAGS_ASC' - | 'SMART_TAGS_DESC' - | 'CATEGORY_ASC' - | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'TAGS_ASC' - | 'TAGS_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'NAME_TRGM_SIMILARITY_ASC' - | 'NAME_TRGM_SIMILARITY_DESC' - | 'ACCESS_METHOD_TRGM_SIMILARITY_ASC' - | 'ACCESS_METHOD_TRGM_SIMILARITY_DESC' - | 'MODULE_TRGM_SIMILARITY_ASC' - | 'MODULE_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'UPDATED_AT_DESC'; export type PolicyOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' @@ -8424,48 +7478,14 @@ export type PolicyOrderBy = | 'TABLE_ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'GRANTEE_NAME_ASC' - | 'GRANTEE_NAME_DESC' - | 'PRIVILEGE_ASC' - | 'PRIVILEGE_DESC' - | 'PERMISSIVE_ASC' - | 'PERMISSIVE_DESC' - | 'DISABLED_ASC' - | 'DISABLED_DESC' - | 'POLICY_TYPE_ASC' - | 'POLICY_TYPE_DESC' - | 'DATA_ASC' - | 'DATA_DESC' - | 'SMART_TAGS_ASC' - | 'SMART_TAGS_DESC' - | 'CATEGORY_ASC' - | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'TAGS_ASC' - | 'TAGS_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'NAME_TRGM_SIMILARITY_ASC' - | 'NAME_TRGM_SIMILARITY_DESC' - | 'GRANTEE_NAME_TRGM_SIMILARITY_ASC' - | 'GRANTEE_NAME_TRGM_SIMILARITY_DESC' - | 'PRIVILEGE_TRGM_SIMILARITY_ASC' - | 'PRIVILEGE_TRGM_SIMILARITY_DESC' - | 'POLICY_TYPE_TRGM_SIMILARITY_ASC' - | 'POLICY_TYPE_TRGM_SIMILARITY_DESC' - | 'MODULE_TRGM_SIMILARITY_ASC' - | 'MODULE_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'UPDATED_AT_DESC'; export type PrimaryKeyConstraintOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' @@ -8474,64 +7494,28 @@ export type PrimaryKeyConstraintOrderBy = | 'TABLE_ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'TYPE_ASC' - | 'TYPE_DESC' - | 'FIELD_IDS_ASC' - | 'FIELD_IDS_DESC' - | 'SMART_TAGS_ASC' - | 'SMART_TAGS_DESC' - | 'CATEGORY_ASC' - | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'TAGS_ASC' - | 'TAGS_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'NAME_TRGM_SIMILARITY_ASC' - | 'NAME_TRGM_SIMILARITY_DESC' - | 'TYPE_TRGM_SIMILARITY_ASC' - | 'TYPE_TRGM_SIMILARITY_DESC' - | 'MODULE_TRGM_SIMILARITY_ASC' - | 'MODULE_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'UPDATED_AT_DESC'; export type TableGrantOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'TABLE_ID_ASC' | 'TABLE_ID_DESC' - | 'PRIVILEGE_ASC' - | 'PRIVILEGE_DESC' - | 'GRANTEE_NAME_ASC' - | 'GRANTEE_NAME_DESC' - | 'FIELD_IDS_ASC' - | 'FIELD_IDS_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'PRIVILEGE_TRGM_SIMILARITY_ASC' - | 'PRIVILEGE_TRGM_SIMILARITY_DESC' - | 'GRANTEE_NAME_TRGM_SIMILARITY_ASC' - | 'GRANTEE_NAME_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'UPDATED_AT_DESC'; export type TriggerOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' @@ -8540,38 +7524,14 @@ export type TriggerOrderBy = | 'TABLE_ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'EVENT_ASC' - | 'EVENT_DESC' - | 'FUNCTION_NAME_ASC' - | 'FUNCTION_NAME_DESC' - | 'SMART_TAGS_ASC' - | 'SMART_TAGS_DESC' - | 'CATEGORY_ASC' - | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'TAGS_ASC' - | 'TAGS_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'NAME_TRGM_SIMILARITY_ASC' - | 'NAME_TRGM_SIMILARITY_DESC' - | 'EVENT_TRGM_SIMILARITY_ASC' - | 'EVENT_TRGM_SIMILARITY_DESC' - | 'FUNCTION_NAME_TRGM_SIMILARITY_ASC' - | 'FUNCTION_NAME_TRGM_SIMILARITY_DESC' - | 'MODULE_TRGM_SIMILARITY_ASC' - | 'MODULE_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'UPDATED_AT_DESC'; export type UniqueConstraintOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' @@ -8580,40 +7540,14 @@ export type UniqueConstraintOrderBy = | 'TABLE_ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'SMART_TAGS_ASC' - | 'SMART_TAGS_DESC' - | 'TYPE_ASC' - | 'TYPE_DESC' - | 'FIELD_IDS_ASC' - | 'FIELD_IDS_DESC' - | 'CATEGORY_ASC' - | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'TAGS_ASC' - | 'TAGS_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'NAME_TRGM_SIMILARITY_ASC' - | 'NAME_TRGM_SIMILARITY_DESC' - | 'DESCRIPTION_TRGM_SIMILARITY_ASC' - | 'DESCRIPTION_TRGM_SIMILARITY_DESC' - | 'TYPE_TRGM_SIMILARITY_ASC' - | 'TYPE_TRGM_SIMILARITY_DESC' - | 'MODULE_TRGM_SIMILARITY_ASC' - | 'MODULE_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'UPDATED_AT_DESC'; export type ViewOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' @@ -8623,55 +7557,21 @@ export type ViewOrderBy = | 'NAME_ASC' | 'NAME_DESC' | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'VIEW_TYPE_ASC' - | 'VIEW_TYPE_DESC' - | 'DATA_ASC' - | 'DATA_DESC' - | 'FILTER_TYPE_ASC' - | 'FILTER_TYPE_DESC' - | 'FILTER_DATA_ASC' - | 'FILTER_DATA_DESC' - | 'SECURITY_INVOKER_ASC' - | 'SECURITY_INVOKER_DESC' - | 'IS_READ_ONLY_ASC' - | 'IS_READ_ONLY_DESC' - | 'SMART_TAGS_ASC' - | 'SMART_TAGS_DESC' - | 'CATEGORY_ASC' - | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'TAGS_ASC' - | 'TAGS_DESC' - | 'NAME_TRGM_SIMILARITY_ASC' - | 'NAME_TRGM_SIMILARITY_DESC' - | 'VIEW_TYPE_TRGM_SIMILARITY_ASC' - | 'VIEW_TYPE_TRGM_SIMILARITY_DESC' - | 'FILTER_TYPE_TRGM_SIMILARITY_ASC' - | 'FILTER_TYPE_TRGM_SIMILARITY_DESC' - | 'MODULE_TRGM_SIMILARITY_ASC' - | 'MODULE_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'TABLE_ID_DESC'; export type ViewTableOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'VIEW_ID_ASC' | 'VIEW_ID_DESC' | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'JOIN_ORDER_ASC' - | 'JOIN_ORDER_DESC'; + | 'TABLE_ID_DESC'; export type ViewGrantOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' @@ -8682,20 +7582,12 @@ export type ViewGrantOrderBy = | 'GRANTEE_NAME_DESC' | 'PRIVILEGE_ASC' | 'PRIVILEGE_DESC' - | 'WITH_GRANT_OPTION_ASC' - | 'WITH_GRANT_OPTION_DESC' | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' - | 'GRANTEE_NAME_TRGM_SIMILARITY_ASC' - | 'GRANTEE_NAME_TRGM_SIMILARITY_DESC' - | 'PRIVILEGE_TRGM_SIMILARITY_ASC' - | 'PRIVILEGE_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'IS_GRANT_DESC'; export type ViewRuleOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' @@ -8703,23 +7595,27 @@ export type ViewRuleOrderBy = | 'VIEW_ID_ASC' | 'VIEW_ID_DESC' | 'NAME_ASC' - | 'NAME_DESC' - | 'EVENT_ASC' - | 'EVENT_DESC' - | 'ACTION_ASC' - | 'ACTION_DESC' - | 'NAME_TRGM_SIMILARITY_ASC' - | 'NAME_TRGM_SIMILARITY_DESC' - | 'EVENT_TRGM_SIMILARITY_ASC' - | 'EVENT_TRGM_SIMILARITY_DESC' - | 'ACTION_TRGM_SIMILARITY_ASC' - | 'ACTION_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; -export type TableTemplateModuleOrderBy = + | 'NAME_DESC'; +export type EmbeddingChunkOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'CHUNKS_TABLE_ID_ASC' + | 'CHUNKS_TABLE_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type TableTemplateModuleOrderBy = | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' @@ -8732,74 +7628,24 @@ export type TableTemplateModuleOrderBy = | 'TABLE_ID_DESC' | 'OWNER_TABLE_ID_ASC' | 'OWNER_TABLE_ID_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC' | 'NODE_TYPE_ASC' - | 'NODE_TYPE_DESC' - | 'DATA_ASC' - | 'DATA_DESC' - | 'TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'NODE_TYPE_TRGM_SIMILARITY_ASC' - | 'NODE_TYPE_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'NODE_TYPE_DESC'; export type SecureTableProvisionOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' | 'TABLE_ID_ASC' | 'TABLE_ID_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC' | 'NODE_TYPE_ASC' - | 'NODE_TYPE_DESC' - | 'USE_RLS_ASC' - | 'USE_RLS_DESC' - | 'NODE_DATA_ASC' - | 'NODE_DATA_DESC' - | 'FIELDS_ASC' - | 'FIELDS_DESC' - | 'GRANT_ROLES_ASC' - | 'GRANT_ROLES_DESC' - | 'GRANT_PRIVILEGES_ASC' - | 'GRANT_PRIVILEGES_DESC' - | 'POLICY_TYPE_ASC' - | 'POLICY_TYPE_DESC' - | 'POLICY_PRIVILEGES_ASC' - | 'POLICY_PRIVILEGES_DESC' - | 'POLICY_ROLE_ASC' - | 'POLICY_ROLE_DESC' - | 'POLICY_PERMISSIVE_ASC' - | 'POLICY_PERMISSIVE_DESC' - | 'POLICY_NAME_ASC' - | 'POLICY_NAME_DESC' - | 'POLICY_DATA_ASC' - | 'POLICY_DATA_DESC' - | 'OUT_FIELDS_ASC' - | 'OUT_FIELDS_DESC' - | 'TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'NODE_TYPE_TRGM_SIMILARITY_ASC' - | 'NODE_TYPE_TRGM_SIMILARITY_DESC' - | 'POLICY_TYPE_TRGM_SIMILARITY_ASC' - | 'POLICY_TYPE_TRGM_SIMILARITY_DESC' - | 'POLICY_ROLE_TRGM_SIMILARITY_ASC' - | 'POLICY_ROLE_TRGM_SIMILARITY_DESC' - | 'POLICY_NAME_TRGM_SIMILARITY_ASC' - | 'POLICY_NAME_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'NODE_TYPE_DESC'; export type RelationProvisionOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' @@ -8809,99 +7655,25 @@ export type RelationProvisionOrderBy = | 'SOURCE_TABLE_ID_ASC' | 'SOURCE_TABLE_ID_DESC' | 'TARGET_TABLE_ID_ASC' - | 'TARGET_TABLE_ID_DESC' - | 'FIELD_NAME_ASC' - | 'FIELD_NAME_DESC' - | 'DELETE_ACTION_ASC' - | 'DELETE_ACTION_DESC' - | 'IS_REQUIRED_ASC' - | 'IS_REQUIRED_DESC' - | 'JUNCTION_TABLE_ID_ASC' - | 'JUNCTION_TABLE_ID_DESC' - | 'JUNCTION_TABLE_NAME_ASC' - | 'JUNCTION_TABLE_NAME_DESC' - | 'JUNCTION_SCHEMA_ID_ASC' - | 'JUNCTION_SCHEMA_ID_DESC' - | 'SOURCE_FIELD_NAME_ASC' - | 'SOURCE_FIELD_NAME_DESC' - | 'TARGET_FIELD_NAME_ASC' - | 'TARGET_FIELD_NAME_DESC' - | 'USE_COMPOSITE_KEY_ASC' - | 'USE_COMPOSITE_KEY_DESC' - | 'NODE_TYPE_ASC' - | 'NODE_TYPE_DESC' - | 'NODE_DATA_ASC' - | 'NODE_DATA_DESC' - | 'GRANT_ROLES_ASC' - | 'GRANT_ROLES_DESC' - | 'GRANT_PRIVILEGES_ASC' - | 'GRANT_PRIVILEGES_DESC' - | 'POLICY_TYPE_ASC' - | 'POLICY_TYPE_DESC' - | 'POLICY_PRIVILEGES_ASC' - | 'POLICY_PRIVILEGES_DESC' - | 'POLICY_ROLE_ASC' - | 'POLICY_ROLE_DESC' - | 'POLICY_PERMISSIVE_ASC' - | 'POLICY_PERMISSIVE_DESC' - | 'POLICY_NAME_ASC' - | 'POLICY_NAME_DESC' - | 'POLICY_DATA_ASC' - | 'POLICY_DATA_DESC' - | 'OUT_FIELD_ID_ASC' - | 'OUT_FIELD_ID_DESC' - | 'OUT_JUNCTION_TABLE_ID_ASC' - | 'OUT_JUNCTION_TABLE_ID_DESC' - | 'OUT_SOURCE_FIELD_ID_ASC' - | 'OUT_SOURCE_FIELD_ID_DESC' - | 'OUT_TARGET_FIELD_ID_ASC' - | 'OUT_TARGET_FIELD_ID_DESC' - | 'RELATION_TYPE_TRGM_SIMILARITY_ASC' - | 'RELATION_TYPE_TRGM_SIMILARITY_DESC' - | 'FIELD_NAME_TRGM_SIMILARITY_ASC' - | 'FIELD_NAME_TRGM_SIMILARITY_DESC' - | 'DELETE_ACTION_TRGM_SIMILARITY_ASC' - | 'DELETE_ACTION_TRGM_SIMILARITY_DESC' - | 'JUNCTION_TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'JUNCTION_TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'SOURCE_FIELD_NAME_TRGM_SIMILARITY_ASC' - | 'SOURCE_FIELD_NAME_TRGM_SIMILARITY_DESC' - | 'TARGET_FIELD_NAME_TRGM_SIMILARITY_ASC' - | 'TARGET_FIELD_NAME_TRGM_SIMILARITY_DESC' - | 'NODE_TYPE_TRGM_SIMILARITY_ASC' - | 'NODE_TYPE_TRGM_SIMILARITY_DESC' - | 'POLICY_TYPE_TRGM_SIMILARITY_ASC' - | 'POLICY_TYPE_TRGM_SIMILARITY_DESC' - | 'POLICY_ROLE_TRGM_SIMILARITY_ASC' - | 'POLICY_ROLE_TRGM_SIMILARITY_DESC' - | 'POLICY_NAME_TRGM_SIMILARITY_ASC' - | 'POLICY_NAME_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'TARGET_TABLE_ID_DESC'; export type SchemaGrantOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' - | 'GRANTEE_NAME_ASC' - | 'GRANTEE_NAME_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'GRANTEE_NAME_TRGM_SIMILARITY_ASC' - | 'GRANTEE_NAME_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'UPDATED_AT_DESC'; export type DefaultPrivilegeOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' @@ -8915,31 +7687,35 @@ export type DefaultPrivilegeOrderBy = | 'GRANTEE_NAME_ASC' | 'GRANTEE_NAME_DESC' | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' - | 'OBJECT_TYPE_TRGM_SIMILARITY_ASC' - | 'OBJECT_TYPE_TRGM_SIMILARITY_DESC' - | 'PRIVILEGE_TRGM_SIMILARITY_ASC' - | 'PRIVILEGE_TRGM_SIMILARITY_DESC' - | 'GRANTEE_NAME_TRGM_SIMILARITY_ASC' - | 'GRANTEE_NAME_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; -export type ApiSchemaOrderBy = + | 'IS_GRANT_DESC'; +export type EnumOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' - | 'API_ID_ASC' - | 'API_ID_DESC'; -export type ApiModuleOrderBy = + | 'NAME_ASC' + | 'NAME_DESC'; +export type ApiSchemaOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'API_ID_ASC' + | 'API_ID_DESC'; +export type ApiModuleOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' @@ -8947,17 +7723,11 @@ export type ApiModuleOrderBy = | 'API_ID_ASC' | 'API_ID_DESC' | 'NAME_ASC' - | 'NAME_DESC' - | 'DATA_ASC' - | 'DATA_DESC' - | 'NAME_TRGM_SIMILARITY_ASC' - | 'NAME_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'NAME_DESC'; export type DomainOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' @@ -8971,1033 +7741,307 @@ export type DomainOrderBy = | 'DOMAIN_ASC' | 'DOMAIN_DESC'; export type SiteMetadatumOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'SITE_ID_ASC' - | 'SITE_ID_DESC' - | 'TITLE_ASC' - | 'TITLE_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'OG_IMAGE_ASC' - | 'OG_IMAGE_DESC' - | 'TITLE_TRGM_SIMILARITY_ASC' - | 'TITLE_TRGM_SIMILARITY_DESC' - | 'DESCRIPTION_TRGM_SIMILARITY_ASC' - | 'DESCRIPTION_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'SITE_ID_DESC'; export type SiteModuleOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'SITE_ID_ASC' - | 'SITE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'DATA_ASC' - | 'DATA_DESC' - | 'NAME_TRGM_SIMILARITY_ASC' - | 'NAME_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'SITE_ID_DESC'; export type SiteThemeOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'SITE_ID_ASC' - | 'SITE_ID_DESC' - | 'THEME_ASC' - | 'THEME_DESC'; + | 'SITE_ID_DESC'; export type TriggerFunctionOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'CODE_ASC' - | 'CODE_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'NAME_TRGM_SIMILARITY_ASC' - | 'NAME_TRGM_SIMILARITY_DESC' - | 'CODE_TRGM_SIMILARITY_ASC' - | 'CODE_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; -export type ApiOrderBy = + | 'UPDATED_AT_DESC'; +export type DatabaseTransferOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'TARGET_OWNER_ID_ASC' + | 'TARGET_OWNER_ID_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC'; +export type ApiOrderBy = | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'NAME_ASC' - | 'NAME_DESC' - | 'DBNAME_ASC' - | 'DBNAME_DESC' - | 'ROLE_NAME_ASC' - | 'ROLE_NAME_DESC' - | 'ANON_ROLE_ASC' - | 'ANON_ROLE_DESC' - | 'IS_PUBLIC_ASC' - | 'IS_PUBLIC_DESC' - | 'NAME_TRGM_SIMILARITY_ASC' - | 'NAME_TRGM_SIMILARITY_DESC' - | 'DBNAME_TRGM_SIMILARITY_ASC' - | 'DBNAME_TRGM_SIMILARITY_DESC' - | 'ROLE_NAME_TRGM_SIMILARITY_ASC' - | 'ROLE_NAME_TRGM_SIMILARITY_DESC' - | 'ANON_ROLE_TRGM_SIMILARITY_ASC' - | 'ANON_ROLE_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'NAME_DESC'; export type SiteOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'TITLE_ASC' - | 'TITLE_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'OG_IMAGE_ASC' - | 'OG_IMAGE_DESC' - | 'FAVICON_ASC' - | 'FAVICON_DESC' - | 'APPLE_TOUCH_ICON_ASC' - | 'APPLE_TOUCH_ICON_DESC' - | 'LOGO_ASC' - | 'LOGO_DESC' - | 'DBNAME_ASC' - | 'DBNAME_DESC' - | 'TITLE_TRGM_SIMILARITY_ASC' - | 'TITLE_TRGM_SIMILARITY_DESC' - | 'DESCRIPTION_TRGM_SIMILARITY_ASC' - | 'DESCRIPTION_TRGM_SIMILARITY_DESC' - | 'DBNAME_TRGM_SIMILARITY_ASC' - | 'DBNAME_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'DATABASE_ID_DESC'; export type AppOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'SITE_ID_ASC' - | 'SITE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'APP_IMAGE_ASC' - | 'APP_IMAGE_DESC' - | 'APP_STORE_LINK_ASC' - | 'APP_STORE_LINK_DESC' - | 'APP_STORE_ID_ASC' - | 'APP_STORE_ID_DESC' - | 'APP_ID_PREFIX_ASC' - | 'APP_ID_PREFIX_DESC' - | 'PLAY_STORE_LINK_ASC' - | 'PLAY_STORE_LINK_DESC' - | 'NAME_TRGM_SIMILARITY_ASC' - | 'NAME_TRGM_SIMILARITY_DESC' - | 'APP_STORE_ID_TRGM_SIMILARITY_ASC' - | 'APP_STORE_ID_TRGM_SIMILARITY_DESC' - | 'APP_ID_PREFIX_TRGM_SIMILARITY_ASC' - | 'APP_ID_PREFIX_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'SITE_ID_DESC'; export type ConnectedAccountsModuleOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'OWNER_TABLE_ID_ASC' - | 'OWNER_TABLE_ID_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC' - | 'TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'DATABASE_ID_DESC'; export type CryptoAddressesModuleOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'OWNER_TABLE_ID_ASC' - | 'OWNER_TABLE_ID_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC' - | 'CRYPTO_NETWORK_ASC' - | 'CRYPTO_NETWORK_DESC' - | 'TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'CRYPTO_NETWORK_TRGM_SIMILARITY_ASC' - | 'CRYPTO_NETWORK_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'DATABASE_ID_DESC'; export type CryptoAuthModuleOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'USERS_TABLE_ID_ASC' - | 'USERS_TABLE_ID_DESC' - | 'SECRETS_TABLE_ID_ASC' - | 'SECRETS_TABLE_ID_DESC' - | 'SESSIONS_TABLE_ID_ASC' - | 'SESSIONS_TABLE_ID_DESC' - | 'SESSION_CREDENTIALS_TABLE_ID_ASC' - | 'SESSION_CREDENTIALS_TABLE_ID_DESC' - | 'ADDRESSES_TABLE_ID_ASC' - | 'ADDRESSES_TABLE_ID_DESC' - | 'USER_FIELD_ASC' - | 'USER_FIELD_DESC' - | 'CRYPTO_NETWORK_ASC' - | 'CRYPTO_NETWORK_DESC' - | 'SIGN_IN_REQUEST_CHALLENGE_ASC' - | 'SIGN_IN_REQUEST_CHALLENGE_DESC' - | 'SIGN_IN_RECORD_FAILURE_ASC' - | 'SIGN_IN_RECORD_FAILURE_DESC' - | 'SIGN_UP_WITH_KEY_ASC' - | 'SIGN_UP_WITH_KEY_DESC' - | 'SIGN_IN_WITH_CHALLENGE_ASC' - | 'SIGN_IN_WITH_CHALLENGE_DESC' - | 'USER_FIELD_TRGM_SIMILARITY_ASC' - | 'USER_FIELD_TRGM_SIMILARITY_DESC' - | 'CRYPTO_NETWORK_TRGM_SIMILARITY_ASC' - | 'CRYPTO_NETWORK_TRGM_SIMILARITY_DESC' - | 'SIGN_IN_REQUEST_CHALLENGE_TRGM_SIMILARITY_ASC' - | 'SIGN_IN_REQUEST_CHALLENGE_TRGM_SIMILARITY_DESC' - | 'SIGN_IN_RECORD_FAILURE_TRGM_SIMILARITY_ASC' - | 'SIGN_IN_RECORD_FAILURE_TRGM_SIMILARITY_DESC' - | 'SIGN_UP_WITH_KEY_TRGM_SIMILARITY_ASC' - | 'SIGN_UP_WITH_KEY_TRGM_SIMILARITY_DESC' - | 'SIGN_IN_WITH_CHALLENGE_TRGM_SIMILARITY_ASC' - | 'SIGN_IN_WITH_CHALLENGE_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'DATABASE_ID_DESC'; export type DefaultIdsModuleOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC'; export type DenormalizedTableFieldOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'FIELD_ID_ASC' - | 'FIELD_ID_DESC' - | 'SET_IDS_ASC' - | 'SET_IDS_DESC' - | 'REF_TABLE_ID_ASC' - | 'REF_TABLE_ID_DESC' - | 'REF_FIELD_ID_ASC' - | 'REF_FIELD_ID_DESC' - | 'REF_IDS_ASC' - | 'REF_IDS_DESC' - | 'USE_UPDATES_ASC' - | 'USE_UPDATES_DESC' - | 'UPDATE_DEFAULTS_ASC' - | 'UPDATE_DEFAULTS_DESC' - | 'FUNC_NAME_ASC' - | 'FUNC_NAME_DESC' - | 'FUNC_ORDER_ASC' - | 'FUNC_ORDER_DESC' - | 'FUNC_NAME_TRGM_SIMILARITY_ASC' - | 'FUNC_NAME_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'DATABASE_ID_DESC'; export type EmailsModuleOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'OWNER_TABLE_ID_ASC' - | 'OWNER_TABLE_ID_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC' - | 'TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'DATABASE_ID_DESC'; export type EncryptedSecretsModuleOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC' - | 'TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'DATABASE_ID_DESC'; export type FieldModuleOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'FIELD_ID_ASC' - | 'FIELD_ID_DESC' | 'NODE_TYPE_ASC' - | 'NODE_TYPE_DESC' - | 'DATA_ASC' - | 'DATA_DESC' - | 'TRIGGERS_ASC' - | 'TRIGGERS_DESC' - | 'FUNCTIONS_ASC' - | 'FUNCTIONS_DESC' - | 'NODE_TYPE_TRGM_SIMILARITY_ASC' - | 'NODE_TYPE_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'NODE_TYPE_DESC'; export type InvitesModuleOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'EMAILS_TABLE_ID_ASC' - | 'EMAILS_TABLE_ID_DESC' - | 'USERS_TABLE_ID_ASC' - | 'USERS_TABLE_ID_DESC' - | 'INVITES_TABLE_ID_ASC' - | 'INVITES_TABLE_ID_DESC' - | 'CLAIMED_INVITES_TABLE_ID_ASC' - | 'CLAIMED_INVITES_TABLE_ID_DESC' - | 'INVITES_TABLE_NAME_ASC' - | 'INVITES_TABLE_NAME_DESC' - | 'CLAIMED_INVITES_TABLE_NAME_ASC' - | 'CLAIMED_INVITES_TABLE_NAME_DESC' - | 'SUBMIT_INVITE_CODE_FUNCTION_ASC' - | 'SUBMIT_INVITE_CODE_FUNCTION_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'MEMBERSHIP_TYPE_ASC' - | 'MEMBERSHIP_TYPE_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' - | 'INVITES_TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'INVITES_TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'CLAIMED_INVITES_TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'CLAIMED_INVITES_TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'SUBMIT_INVITE_CODE_FUNCTION_TRGM_SIMILARITY_ASC' - | 'SUBMIT_INVITE_CODE_FUNCTION_TRGM_SIMILARITY_DESC' - | 'PREFIX_TRGM_SIMILARITY_ASC' - | 'PREFIX_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'DATABASE_ID_DESC'; export type LevelsModuleOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'STEPS_TABLE_ID_ASC' - | 'STEPS_TABLE_ID_DESC' - | 'STEPS_TABLE_NAME_ASC' - | 'STEPS_TABLE_NAME_DESC' - | 'ACHIEVEMENTS_TABLE_ID_ASC' - | 'ACHIEVEMENTS_TABLE_ID_DESC' - | 'ACHIEVEMENTS_TABLE_NAME_ASC' - | 'ACHIEVEMENTS_TABLE_NAME_DESC' - | 'LEVELS_TABLE_ID_ASC' - | 'LEVELS_TABLE_ID_DESC' - | 'LEVELS_TABLE_NAME_ASC' - | 'LEVELS_TABLE_NAME_DESC' - | 'LEVEL_REQUIREMENTS_TABLE_ID_ASC' - | 'LEVEL_REQUIREMENTS_TABLE_ID_DESC' - | 'LEVEL_REQUIREMENTS_TABLE_NAME_ASC' - | 'LEVEL_REQUIREMENTS_TABLE_NAME_DESC' - | 'COMPLETED_STEP_ASC' - | 'COMPLETED_STEP_DESC' - | 'INCOMPLETED_STEP_ASC' - | 'INCOMPLETED_STEP_DESC' - | 'TG_ACHIEVEMENT_ASC' - | 'TG_ACHIEVEMENT_DESC' - | 'TG_ACHIEVEMENT_TOGGLE_ASC' - | 'TG_ACHIEVEMENT_TOGGLE_DESC' - | 'TG_ACHIEVEMENT_TOGGLE_BOOLEAN_ASC' - | 'TG_ACHIEVEMENT_TOGGLE_BOOLEAN_DESC' - | 'TG_ACHIEVEMENT_BOOLEAN_ASC' - | 'TG_ACHIEVEMENT_BOOLEAN_DESC' - | 'UPSERT_ACHIEVEMENT_ASC' - | 'UPSERT_ACHIEVEMENT_DESC' - | 'TG_UPDATE_ACHIEVEMENTS_ASC' - | 'TG_UPDATE_ACHIEVEMENTS_DESC' - | 'STEPS_REQUIRED_ASC' - | 'STEPS_REQUIRED_DESC' - | 'LEVEL_ACHIEVED_ASC' - | 'LEVEL_ACHIEVED_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'MEMBERSHIP_TYPE_ASC' - | 'MEMBERSHIP_TYPE_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' - | 'ACTOR_TABLE_ID_ASC' - | 'ACTOR_TABLE_ID_DESC' - | 'STEPS_TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'STEPS_TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'ACHIEVEMENTS_TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'ACHIEVEMENTS_TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'LEVELS_TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'LEVELS_TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'LEVEL_REQUIREMENTS_TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'LEVEL_REQUIREMENTS_TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'COMPLETED_STEP_TRGM_SIMILARITY_ASC' - | 'COMPLETED_STEP_TRGM_SIMILARITY_DESC' - | 'INCOMPLETED_STEP_TRGM_SIMILARITY_ASC' - | 'INCOMPLETED_STEP_TRGM_SIMILARITY_DESC' - | 'TG_ACHIEVEMENT_TRGM_SIMILARITY_ASC' - | 'TG_ACHIEVEMENT_TRGM_SIMILARITY_DESC' - | 'TG_ACHIEVEMENT_TOGGLE_TRGM_SIMILARITY_ASC' - | 'TG_ACHIEVEMENT_TOGGLE_TRGM_SIMILARITY_DESC' - | 'TG_ACHIEVEMENT_TOGGLE_BOOLEAN_TRGM_SIMILARITY_ASC' - | 'TG_ACHIEVEMENT_TOGGLE_BOOLEAN_TRGM_SIMILARITY_DESC' - | 'TG_ACHIEVEMENT_BOOLEAN_TRGM_SIMILARITY_ASC' - | 'TG_ACHIEVEMENT_BOOLEAN_TRGM_SIMILARITY_DESC' - | 'UPSERT_ACHIEVEMENT_TRGM_SIMILARITY_ASC' - | 'UPSERT_ACHIEVEMENT_TRGM_SIMILARITY_DESC' - | 'TG_UPDATE_ACHIEVEMENTS_TRGM_SIMILARITY_ASC' - | 'TG_UPDATE_ACHIEVEMENTS_TRGM_SIMILARITY_DESC' - | 'STEPS_REQUIRED_TRGM_SIMILARITY_ASC' - | 'STEPS_REQUIRED_TRGM_SIMILARITY_DESC' - | 'LEVEL_ACHIEVED_TRGM_SIMILARITY_ASC' - | 'LEVEL_ACHIEVED_TRGM_SIMILARITY_DESC' - | 'PREFIX_TRGM_SIMILARITY_ASC' - | 'PREFIX_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'DATABASE_ID_DESC'; export type LimitsModuleOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC' - | 'DEFAULT_TABLE_ID_ASC' - | 'DEFAULT_TABLE_ID_DESC' - | 'DEFAULT_TABLE_NAME_ASC' - | 'DEFAULT_TABLE_NAME_DESC' - | 'LIMIT_INCREMENT_FUNCTION_ASC' - | 'LIMIT_INCREMENT_FUNCTION_DESC' - | 'LIMIT_DECREMENT_FUNCTION_ASC' - | 'LIMIT_DECREMENT_FUNCTION_DESC' - | 'LIMIT_INCREMENT_TRIGGER_ASC' - | 'LIMIT_INCREMENT_TRIGGER_DESC' - | 'LIMIT_DECREMENT_TRIGGER_ASC' - | 'LIMIT_DECREMENT_TRIGGER_DESC' - | 'LIMIT_UPDATE_TRIGGER_ASC' - | 'LIMIT_UPDATE_TRIGGER_DESC' - | 'LIMIT_CHECK_FUNCTION_ASC' - | 'LIMIT_CHECK_FUNCTION_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'MEMBERSHIP_TYPE_ASC' - | 'MEMBERSHIP_TYPE_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' - | 'ACTOR_TABLE_ID_ASC' - | 'ACTOR_TABLE_ID_DESC' - | 'TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'DEFAULT_TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'DEFAULT_TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'LIMIT_INCREMENT_FUNCTION_TRGM_SIMILARITY_ASC' - | 'LIMIT_INCREMENT_FUNCTION_TRGM_SIMILARITY_DESC' - | 'LIMIT_DECREMENT_FUNCTION_TRGM_SIMILARITY_ASC' - | 'LIMIT_DECREMENT_FUNCTION_TRGM_SIMILARITY_DESC' - | 'LIMIT_INCREMENT_TRIGGER_TRGM_SIMILARITY_ASC' - | 'LIMIT_INCREMENT_TRIGGER_TRGM_SIMILARITY_DESC' - | 'LIMIT_DECREMENT_TRIGGER_TRGM_SIMILARITY_ASC' - | 'LIMIT_DECREMENT_TRIGGER_TRGM_SIMILARITY_DESC' - | 'LIMIT_UPDATE_TRIGGER_TRGM_SIMILARITY_ASC' - | 'LIMIT_UPDATE_TRIGGER_TRGM_SIMILARITY_DESC' - | 'LIMIT_CHECK_FUNCTION_TRGM_SIMILARITY_ASC' - | 'LIMIT_CHECK_FUNCTION_TRGM_SIMILARITY_DESC' - | 'PREFIX_TRGM_SIMILARITY_ASC' - | 'PREFIX_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'DATABASE_ID_DESC'; export type MembershipTypesModuleOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC' - | 'TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'DATABASE_ID_DESC'; export type MembershipsModuleOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'MEMBERSHIPS_TABLE_ID_ASC' - | 'MEMBERSHIPS_TABLE_ID_DESC' - | 'MEMBERSHIPS_TABLE_NAME_ASC' - | 'MEMBERSHIPS_TABLE_NAME_DESC' - | 'MEMBERS_TABLE_ID_ASC' - | 'MEMBERS_TABLE_ID_DESC' - | 'MEMBERS_TABLE_NAME_ASC' - | 'MEMBERS_TABLE_NAME_DESC' - | 'MEMBERSHIP_DEFAULTS_TABLE_ID_ASC' - | 'MEMBERSHIP_DEFAULTS_TABLE_ID_DESC' - | 'MEMBERSHIP_DEFAULTS_TABLE_NAME_ASC' - | 'MEMBERSHIP_DEFAULTS_TABLE_NAME_DESC' - | 'GRANTS_TABLE_ID_ASC' - | 'GRANTS_TABLE_ID_DESC' - | 'GRANTS_TABLE_NAME_ASC' - | 'GRANTS_TABLE_NAME_DESC' - | 'ACTOR_TABLE_ID_ASC' - | 'ACTOR_TABLE_ID_DESC' - | 'LIMITS_TABLE_ID_ASC' - | 'LIMITS_TABLE_ID_DESC' - | 'DEFAULT_LIMITS_TABLE_ID_ASC' - | 'DEFAULT_LIMITS_TABLE_ID_DESC' - | 'PERMISSIONS_TABLE_ID_ASC' - | 'PERMISSIONS_TABLE_ID_DESC' - | 'DEFAULT_PERMISSIONS_TABLE_ID_ASC' - | 'DEFAULT_PERMISSIONS_TABLE_ID_DESC' - | 'SPRT_TABLE_ID_ASC' - | 'SPRT_TABLE_ID_DESC' - | 'ADMIN_GRANTS_TABLE_ID_ASC' - | 'ADMIN_GRANTS_TABLE_ID_DESC' - | 'ADMIN_GRANTS_TABLE_NAME_ASC' - | 'ADMIN_GRANTS_TABLE_NAME_DESC' - | 'OWNER_GRANTS_TABLE_ID_ASC' - | 'OWNER_GRANTS_TABLE_ID_DESC' - | 'OWNER_GRANTS_TABLE_NAME_ASC' - | 'OWNER_GRANTS_TABLE_NAME_DESC' - | 'MEMBERSHIP_TYPE_ASC' - | 'MEMBERSHIP_TYPE_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' - | 'ENTITY_TABLE_OWNER_ID_ASC' - | 'ENTITY_TABLE_OWNER_ID_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'ACTOR_MASK_CHECK_ASC' - | 'ACTOR_MASK_CHECK_DESC' - | 'ACTOR_PERM_CHECK_ASC' - | 'ACTOR_PERM_CHECK_DESC' - | 'ENTITY_IDS_BY_MASK_ASC' - | 'ENTITY_IDS_BY_MASK_DESC' - | 'ENTITY_IDS_BY_PERM_ASC' - | 'ENTITY_IDS_BY_PERM_DESC' - | 'ENTITY_IDS_FUNCTION_ASC' - | 'ENTITY_IDS_FUNCTION_DESC' - | 'MEMBERSHIPS_TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'MEMBERSHIPS_TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'MEMBERS_TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'MEMBERS_TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'MEMBERSHIP_DEFAULTS_TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'MEMBERSHIP_DEFAULTS_TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'GRANTS_TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'GRANTS_TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'ADMIN_GRANTS_TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'ADMIN_GRANTS_TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'OWNER_GRANTS_TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'OWNER_GRANTS_TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'PREFIX_TRGM_SIMILARITY_ASC' - | 'PREFIX_TRGM_SIMILARITY_DESC' - | 'ACTOR_MASK_CHECK_TRGM_SIMILARITY_ASC' - | 'ACTOR_MASK_CHECK_TRGM_SIMILARITY_DESC' - | 'ACTOR_PERM_CHECK_TRGM_SIMILARITY_ASC' - | 'ACTOR_PERM_CHECK_TRGM_SIMILARITY_DESC' - | 'ENTITY_IDS_BY_MASK_TRGM_SIMILARITY_ASC' - | 'ENTITY_IDS_BY_MASK_TRGM_SIMILARITY_DESC' - | 'ENTITY_IDS_BY_PERM_TRGM_SIMILARITY_ASC' - | 'ENTITY_IDS_BY_PERM_TRGM_SIMILARITY_DESC' - | 'ENTITY_IDS_FUNCTION_TRGM_SIMILARITY_ASC' - | 'ENTITY_IDS_FUNCTION_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'DATABASE_ID_DESC'; export type PermissionsModuleOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC' - | 'DEFAULT_TABLE_ID_ASC' - | 'DEFAULT_TABLE_ID_DESC' - | 'DEFAULT_TABLE_NAME_ASC' - | 'DEFAULT_TABLE_NAME_DESC' - | 'BITLEN_ASC' - | 'BITLEN_DESC' - | 'MEMBERSHIP_TYPE_ASC' - | 'MEMBERSHIP_TYPE_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' - | 'ACTOR_TABLE_ID_ASC' - | 'ACTOR_TABLE_ID_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'GET_PADDED_MASK_ASC' - | 'GET_PADDED_MASK_DESC' - | 'GET_MASK_ASC' - | 'GET_MASK_DESC' - | 'GET_BY_MASK_ASC' - | 'GET_BY_MASK_DESC' - | 'GET_MASK_BY_NAME_ASC' - | 'GET_MASK_BY_NAME_DESC' - | 'TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'DEFAULT_TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'DEFAULT_TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'PREFIX_TRGM_SIMILARITY_ASC' - | 'PREFIX_TRGM_SIMILARITY_DESC' - | 'GET_PADDED_MASK_TRGM_SIMILARITY_ASC' - | 'GET_PADDED_MASK_TRGM_SIMILARITY_DESC' - | 'GET_MASK_TRGM_SIMILARITY_ASC' - | 'GET_MASK_TRGM_SIMILARITY_DESC' - | 'GET_BY_MASK_TRGM_SIMILARITY_ASC' - | 'GET_BY_MASK_TRGM_SIMILARITY_DESC' - | 'GET_MASK_BY_NAME_TRGM_SIMILARITY_ASC' - | 'GET_MASK_BY_NAME_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'DATABASE_ID_DESC'; export type PhoneNumbersModuleOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'OWNER_TABLE_ID_ASC' - | 'OWNER_TABLE_ID_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC' - | 'TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'DATABASE_ID_DESC'; export type ProfilesModuleOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC' - | 'PROFILE_PERMISSIONS_TABLE_ID_ASC' - | 'PROFILE_PERMISSIONS_TABLE_ID_DESC' - | 'PROFILE_PERMISSIONS_TABLE_NAME_ASC' - | 'PROFILE_PERMISSIONS_TABLE_NAME_DESC' - | 'PROFILE_GRANTS_TABLE_ID_ASC' - | 'PROFILE_GRANTS_TABLE_ID_DESC' - | 'PROFILE_GRANTS_TABLE_NAME_ASC' - | 'PROFILE_GRANTS_TABLE_NAME_DESC' - | 'PROFILE_DEFINITION_GRANTS_TABLE_ID_ASC' - | 'PROFILE_DEFINITION_GRANTS_TABLE_ID_DESC' - | 'PROFILE_DEFINITION_GRANTS_TABLE_NAME_ASC' - | 'PROFILE_DEFINITION_GRANTS_TABLE_NAME_DESC' | 'MEMBERSHIP_TYPE_ASC' - | 'MEMBERSHIP_TYPE_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' - | 'ACTOR_TABLE_ID_ASC' - | 'ACTOR_TABLE_ID_DESC' - | 'PERMISSIONS_TABLE_ID_ASC' - | 'PERMISSIONS_TABLE_ID_DESC' - | 'MEMBERSHIPS_TABLE_ID_ASC' - | 'MEMBERSHIPS_TABLE_ID_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'PROFILE_PERMISSIONS_TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'PROFILE_PERMISSIONS_TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'PROFILE_GRANTS_TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'PROFILE_GRANTS_TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'PROFILE_DEFINITION_GRANTS_TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'PROFILE_DEFINITION_GRANTS_TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'PREFIX_TRGM_SIMILARITY_ASC' - | 'PREFIX_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'MEMBERSHIP_TYPE_DESC'; export type SecretsModuleOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC' - | 'TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'DATABASE_ID_DESC'; export type SessionsModuleOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'SESSIONS_TABLE_ID_ASC' - | 'SESSIONS_TABLE_ID_DESC' - | 'SESSION_CREDENTIALS_TABLE_ID_ASC' - | 'SESSION_CREDENTIALS_TABLE_ID_DESC' - | 'AUTH_SETTINGS_TABLE_ID_ASC' - | 'AUTH_SETTINGS_TABLE_ID_DESC' - | 'USERS_TABLE_ID_ASC' - | 'USERS_TABLE_ID_DESC' - | 'SESSIONS_DEFAULT_EXPIRATION_ASC' - | 'SESSIONS_DEFAULT_EXPIRATION_DESC' - | 'SESSIONS_TABLE_ASC' - | 'SESSIONS_TABLE_DESC' - | 'SESSION_CREDENTIALS_TABLE_ASC' - | 'SESSION_CREDENTIALS_TABLE_DESC' - | 'AUTH_SETTINGS_TABLE_ASC' - | 'AUTH_SETTINGS_TABLE_DESC' - | 'SESSIONS_TABLE_TRGM_SIMILARITY_ASC' - | 'SESSIONS_TABLE_TRGM_SIMILARITY_DESC' - | 'SESSION_CREDENTIALS_TABLE_TRGM_SIMILARITY_ASC' - | 'SESSION_CREDENTIALS_TABLE_TRGM_SIMILARITY_DESC' - | 'AUTH_SETTINGS_TABLE_TRGM_SIMILARITY_ASC' - | 'AUTH_SETTINGS_TABLE_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'DATABASE_ID_DESC'; export type UserAuthModuleOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'EMAILS_TABLE_ID_ASC' - | 'EMAILS_TABLE_ID_DESC' - | 'USERS_TABLE_ID_ASC' - | 'USERS_TABLE_ID_DESC' - | 'SECRETS_TABLE_ID_ASC' - | 'SECRETS_TABLE_ID_DESC' - | 'ENCRYPTED_TABLE_ID_ASC' - | 'ENCRYPTED_TABLE_ID_DESC' - | 'SESSIONS_TABLE_ID_ASC' - | 'SESSIONS_TABLE_ID_DESC' - | 'SESSION_CREDENTIALS_TABLE_ID_ASC' - | 'SESSION_CREDENTIALS_TABLE_ID_DESC' - | 'AUDITS_TABLE_ID_ASC' - | 'AUDITS_TABLE_ID_DESC' - | 'AUDITS_TABLE_NAME_ASC' - | 'AUDITS_TABLE_NAME_DESC' - | 'SIGN_IN_FUNCTION_ASC' - | 'SIGN_IN_FUNCTION_DESC' - | 'SIGN_UP_FUNCTION_ASC' - | 'SIGN_UP_FUNCTION_DESC' - | 'SIGN_OUT_FUNCTION_ASC' - | 'SIGN_OUT_FUNCTION_DESC' - | 'SET_PASSWORD_FUNCTION_ASC' - | 'SET_PASSWORD_FUNCTION_DESC' - | 'RESET_PASSWORD_FUNCTION_ASC' - | 'RESET_PASSWORD_FUNCTION_DESC' - | 'FORGOT_PASSWORD_FUNCTION_ASC' - | 'FORGOT_PASSWORD_FUNCTION_DESC' - | 'SEND_VERIFICATION_EMAIL_FUNCTION_ASC' - | 'SEND_VERIFICATION_EMAIL_FUNCTION_DESC' - | 'VERIFY_EMAIL_FUNCTION_ASC' - | 'VERIFY_EMAIL_FUNCTION_DESC' - | 'VERIFY_PASSWORD_FUNCTION_ASC' - | 'VERIFY_PASSWORD_FUNCTION_DESC' - | 'CHECK_PASSWORD_FUNCTION_ASC' - | 'CHECK_PASSWORD_FUNCTION_DESC' - | 'SEND_ACCOUNT_DELETION_EMAIL_FUNCTION_ASC' - | 'SEND_ACCOUNT_DELETION_EMAIL_FUNCTION_DESC' - | 'DELETE_ACCOUNT_FUNCTION_ASC' - | 'DELETE_ACCOUNT_FUNCTION_DESC' - | 'SIGN_IN_ONE_TIME_TOKEN_FUNCTION_ASC' - | 'SIGN_IN_ONE_TIME_TOKEN_FUNCTION_DESC' - | 'ONE_TIME_TOKEN_FUNCTION_ASC' - | 'ONE_TIME_TOKEN_FUNCTION_DESC' - | 'EXTEND_TOKEN_EXPIRES_ASC' - | 'EXTEND_TOKEN_EXPIRES_DESC' - | 'AUDITS_TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'AUDITS_TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'SIGN_IN_FUNCTION_TRGM_SIMILARITY_ASC' - | 'SIGN_IN_FUNCTION_TRGM_SIMILARITY_DESC' - | 'SIGN_UP_FUNCTION_TRGM_SIMILARITY_ASC' - | 'SIGN_UP_FUNCTION_TRGM_SIMILARITY_DESC' - | 'SIGN_OUT_FUNCTION_TRGM_SIMILARITY_ASC' - | 'SIGN_OUT_FUNCTION_TRGM_SIMILARITY_DESC' - | 'SET_PASSWORD_FUNCTION_TRGM_SIMILARITY_ASC' - | 'SET_PASSWORD_FUNCTION_TRGM_SIMILARITY_DESC' - | 'RESET_PASSWORD_FUNCTION_TRGM_SIMILARITY_ASC' - | 'RESET_PASSWORD_FUNCTION_TRGM_SIMILARITY_DESC' - | 'FORGOT_PASSWORD_FUNCTION_TRGM_SIMILARITY_ASC' - | 'FORGOT_PASSWORD_FUNCTION_TRGM_SIMILARITY_DESC' - | 'SEND_VERIFICATION_EMAIL_FUNCTION_TRGM_SIMILARITY_ASC' - | 'SEND_VERIFICATION_EMAIL_FUNCTION_TRGM_SIMILARITY_DESC' - | 'VERIFY_EMAIL_FUNCTION_TRGM_SIMILARITY_ASC' - | 'VERIFY_EMAIL_FUNCTION_TRGM_SIMILARITY_DESC' - | 'VERIFY_PASSWORD_FUNCTION_TRGM_SIMILARITY_ASC' - | 'VERIFY_PASSWORD_FUNCTION_TRGM_SIMILARITY_DESC' - | 'CHECK_PASSWORD_FUNCTION_TRGM_SIMILARITY_ASC' - | 'CHECK_PASSWORD_FUNCTION_TRGM_SIMILARITY_DESC' - | 'SEND_ACCOUNT_DELETION_EMAIL_FUNCTION_TRGM_SIMILARITY_ASC' - | 'SEND_ACCOUNT_DELETION_EMAIL_FUNCTION_TRGM_SIMILARITY_DESC' - | 'DELETE_ACCOUNT_FUNCTION_TRGM_SIMILARITY_ASC' - | 'DELETE_ACCOUNT_FUNCTION_TRGM_SIMILARITY_DESC' - | 'SIGN_IN_ONE_TIME_TOKEN_FUNCTION_TRGM_SIMILARITY_ASC' - | 'SIGN_IN_ONE_TIME_TOKEN_FUNCTION_TRGM_SIMILARITY_DESC' - | 'ONE_TIME_TOKEN_FUNCTION_TRGM_SIMILARITY_ASC' - | 'ONE_TIME_TOKEN_FUNCTION_TRGM_SIMILARITY_DESC' - | 'EXTEND_TOKEN_EXPIRES_TRGM_SIMILARITY_ASC' - | 'EXTEND_TOKEN_EXPIRES_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'DATABASE_ID_DESC'; export type UsersModuleOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC' - | 'TYPE_TABLE_ID_ASC' - | 'TYPE_TABLE_ID_DESC' - | 'TYPE_TABLE_NAME_ASC' - | 'TYPE_TABLE_NAME_DESC' - | 'TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'TYPE_TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'TYPE_TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; -export type UuidModuleOrderBy = + | 'DATABASE_ID_DESC'; +export type BlueprintOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'UUID_FUNCTION_ASC' - | 'UUID_FUNCTION_DESC' - | 'UUID_SEED_ASC' - | 'UUID_SEED_DESC' - | 'UUID_FUNCTION_TRGM_SIMILARITY_ASC' - | 'UUID_FUNCTION_TRGM_SIMILARITY_DESC' - | 'UUID_SEED_TRGM_SIMILARITY_ASC' - | 'UUID_SEED_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; -export type DatabaseProvisionModuleOrderBy = + | 'NAME_ASC' + | 'NAME_DESC' + | 'TEMPLATE_ID_ASC' + | 'TEMPLATE_ID_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'DEFINITION_HASH_ASC' + | 'DEFINITION_HASH_DESC'; +export type BlueprintTemplateOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'VERSION_ASC' + | 'VERSION_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'VISIBILITY_ASC' + | 'VISIBILITY_DESC' + | 'FORKED_FROM_ID_ASC' + | 'FORKED_FROM_ID_DESC' + | 'DEFINITION_HASH_ASC' + | 'DEFINITION_HASH_DESC'; +export type DatabaseProvisionModuleOrderBy = | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'DATABASE_NAME_ASC' - | 'DATABASE_NAME_DESC' | 'OWNER_ID_ASC' | 'OWNER_ID_DESC' - | 'SUBDOMAIN_ASC' - | 'SUBDOMAIN_DESC' - | 'DOMAIN_ASC' - | 'DOMAIN_DESC' - | 'MODULES_ASC' - | 'MODULES_DESC' - | 'OPTIONS_ASC' - | 'OPTIONS_DESC' - | 'BOOTSTRAP_USER_ASC' - | 'BOOTSTRAP_USER_DESC' | 'STATUS_ASC' | 'STATUS_DESC' - | 'ERROR_MESSAGE_ASC' - | 'ERROR_MESSAGE_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'COMPLETED_AT_ASC' - | 'COMPLETED_AT_DESC' - | 'DATABASE_NAME_TRGM_SIMILARITY_ASC' - | 'DATABASE_NAME_TRGM_SIMILARITY_DESC' - | 'SUBDOMAIN_TRGM_SIMILARITY_ASC' - | 'SUBDOMAIN_TRGM_SIMILARITY_DESC' - | 'DOMAIN_TRGM_SIMILARITY_ASC' - | 'DOMAIN_TRGM_SIMILARITY_DESC' - | 'STATUS_TRGM_SIMILARITY_ASC' - | 'STATUS_TRGM_SIMILARITY_DESC' - | 'ERROR_MESSAGE_TRGM_SIMILARITY_ASC' - | 'ERROR_MESSAGE_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'DATABASE_ID_DESC'; export type AppAdminGrantOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'GRANTOR_ID_ASC' @@ -10007,13 +8051,11 @@ export type AppAdminGrantOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; export type AppOwnerGrantOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'GRANTOR_ID_ASC' @@ -10023,15 +8065,11 @@ export type AppOwnerGrantOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; export type AppGrantOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'GRANTOR_ID_ASC' @@ -10041,9 +8079,9 @@ export type AppGrantOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; export type OrgMembershipOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'CREATED_AT_ASC' @@ -10054,22 +8092,10 @@ export type OrgMembershipOrderBy = | 'CREATED_BY_DESC' | 'UPDATED_BY_ASC' | 'UPDATED_BY_DESC' - | 'IS_APPROVED_ASC' - | 'IS_APPROVED_DESC' - | 'IS_BANNED_ASC' - | 'IS_BANNED_DESC' - | 'IS_DISABLED_ASC' - | 'IS_DISABLED_DESC' - | 'IS_ACTIVE_ASC' - | 'IS_ACTIVE_DESC' | 'IS_OWNER_ASC' | 'IS_OWNER_DESC' | 'IS_ADMIN_ASC' | 'IS_ADMIN_DESC' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC' - | 'GRANTED_ASC' - | 'GRANTED_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'ENTITY_ID_ASC' @@ -10077,9 +8103,9 @@ export type OrgMembershipOrderBy = | 'PROFILE_ID_ASC' | 'PROFILE_ID_DESC'; export type OrgMemberOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'IS_ADMIN_ASC' @@ -10089,13 +8115,11 @@ export type OrgMemberOrderBy = | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC'; export type OrgAdminGrantOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'ENTITY_ID_ASC' @@ -10107,13 +8131,11 @@ export type OrgAdminGrantOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; export type OrgOwnerGrantOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'ENTITY_ID_ASC' @@ -10125,15 +8147,11 @@ export type OrgOwnerGrantOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; export type OrgGrantOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'ENTITY_ID_ASC' @@ -10145,9 +8163,9 @@ export type OrgGrantOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; export type OrgChartEdgeOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'CREATED_AT_ASC' @@ -10159,19 +8177,11 @@ export type OrgChartEdgeOrderBy = | 'CHILD_ID_ASC' | 'CHILD_ID_DESC' | 'PARENT_ID_ASC' - | 'PARENT_ID_DESC' - | 'POSITION_TITLE_ASC' - | 'POSITION_TITLE_DESC' - | 'POSITION_LEVEL_ASC' - | 'POSITION_LEVEL_DESC' - | 'POSITION_TITLE_TRGM_SIMILARITY_ASC' - | 'POSITION_TITLE_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'PARENT_ID_DESC'; export type OrgChartEdgeGrantOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'ENTITY_ID_ASC' @@ -10181,85 +8191,141 @@ export type OrgChartEdgeGrantOrderBy = | 'PARENT_ID_ASC' | 'PARENT_ID_DESC' | 'GRANTOR_ID_ASC' - | 'GRANTOR_ID_DESC' - | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' - | 'POSITION_TITLE_ASC' - | 'POSITION_TITLE_DESC' - | 'POSITION_LEVEL_ASC' - | 'POSITION_LEVEL_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'POSITION_TITLE_TRGM_SIMILARITY_ASC' - | 'POSITION_TITLE_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; -export type AppLimitOrderBy = + | 'GRANTOR_ID_DESC'; +export type OrgPermissionDefaultOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC'; +export type AppLimitOrderBy = | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'NUM_ASC' - | 'NUM_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; + | 'ACTOR_ID_DESC'; export type OrgLimitOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' - | 'NUM_ASC' - | 'NUM_DESC' - | 'MAX_ASC' - | 'MAX_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC'; export type AppStepOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'COUNT_ASC' - | 'COUNT_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; export type AppAchievementOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'COUNT_ASC' - | 'COUNT_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type InviteOrderBy = +export type AppLevelOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type EmailOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'EMAIL_ASC' + | 'EMAIL_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type PhoneNumberOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'NUMBER_ASC' + | 'NUMBER_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type CryptoAddressOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'ADDRESS_ASC' + | 'ADDRESS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type ConnectedAccountOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'SERVICE_ASC' + | 'SERVICE_DESC' + | 'IDENTIFIER_ASC' + | 'IDENTIFIER_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type InviteOrderBy = | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'EMAIL_ASC' @@ -10270,32 +8336,18 @@ export type InviteOrderBy = | 'INVITE_TOKEN_DESC' | 'INVITE_VALID_ASC' | 'INVITE_VALID_DESC' - | 'INVITE_LIMIT_ASC' - | 'INVITE_LIMIT_DESC' - | 'INVITE_COUNT_ASC' - | 'INVITE_COUNT_DESC' - | 'MULTIPLE_ASC' - | 'MULTIPLE_DESC' - | 'DATA_ASC' - | 'DATA_DESC' | 'EXPIRES_AT_ASC' | 'EXPIRES_AT_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'INVITE_TOKEN_TRGM_SIMILARITY_ASC' - | 'INVITE_TOKEN_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'UPDATED_AT_DESC'; export type ClaimedInviteOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' - | 'DATA_ASC' - | 'DATA_DESC' | 'SENDER_ID_ASC' | 'SENDER_ID_DESC' | 'RECEIVER_ID_ASC' @@ -10305,9 +8357,9 @@ export type ClaimedInviteOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; export type OrgInviteOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'EMAIL_ASC' @@ -10320,14 +8372,6 @@ export type OrgInviteOrderBy = | 'INVITE_TOKEN_DESC' | 'INVITE_VALID_ASC' | 'INVITE_VALID_DESC' - | 'INVITE_LIMIT_ASC' - | 'INVITE_LIMIT_DESC' - | 'INVITE_COUNT_ASC' - | 'INVITE_COUNT_DESC' - | 'MULTIPLE_ASC' - | 'MULTIPLE_DESC' - | 'DATA_ASC' - | 'DATA_DESC' | 'EXPIRES_AT_ASC' | 'EXPIRES_AT_DESC' | 'CREATED_AT_ASC' @@ -10335,19 +8379,13 @@ export type OrgInviteOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'INVITE_TOKEN_TRGM_SIMILARITY_ASC' - | 'INVITE_TOKEN_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'ENTITY_ID_DESC'; export type OrgClaimedInviteOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' - | 'DATA_ASC' - | 'DATA_DESC' | 'SENDER_ID_ASC' | 'SENDER_ID_DESC' | 'RECEIVER_ID_ASC' @@ -10358,244 +8396,94 @@ export type OrgClaimedInviteOrderBy = | 'UPDATED_AT_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC'; -export type RefOrderBy = +export type AuditLogOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'EVENT_ASC' + | 'EVENT_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC'; +export type RefOrderBy = | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'STORE_ID_ASC' - | 'STORE_ID_DESC' - | 'COMMIT_ID_ASC' - | 'COMMIT_ID_DESC' - | 'NAME_TRGM_SIMILARITY_ASC' - | 'NAME_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'STORE_ID_DESC'; export type StoreOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'HASH_ASC' - | 'HASH_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'NAME_TRGM_SIMILARITY_ASC' - | 'NAME_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'DATABASE_ID_DESC'; export type AppPermissionDefaultOrderBy = - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' | 'NATURAL' - | 'ID_ASC' - | 'ID_DESC' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC'; -export type CryptoAddressOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' - | 'ID_DESC' - | 'OWNER_ID_ASC' - | 'OWNER_ID_DESC' - | 'ADDRESS_ASC' - | 'ADDRESS_DESC' - | 'IS_VERIFIED_ASC' - | 'IS_VERIFIED_DESC' - | 'IS_PRIMARY_ASC' - | 'IS_PRIMARY_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'ADDRESS_TRGM_SIMILARITY_ASC' - | 'ADDRESS_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'ID_DESC'; export type RoleTypeOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC'; -export type OrgPermissionDefaultOrderBy = +export type AppLimitDefaultOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC'; -export type PhoneNumberOrderBy = + | 'NAME_ASC' + | 'NAME_DESC'; +export type OrgLimitDefaultOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' - | 'ID_ASC' - | 'ID_DESC' - | 'OWNER_ID_ASC' - | 'OWNER_ID_DESC' - | 'CC_ASC' - | 'CC_DESC' - | 'NUMBER_ASC' - | 'NUMBER_DESC' - | 'IS_VERIFIED_ASC' - | 'IS_VERIFIED_DESC' - | 'IS_PRIMARY_ASC' - | 'IS_PRIMARY_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CC_TRGM_SIMILARITY_ASC' - | 'CC_TRGM_SIMILARITY_DESC' - | 'NUMBER_TRGM_SIMILARITY_ASC' - | 'NUMBER_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; -export type AppLimitDefaultOrderBy = - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'NATURAL' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; -export type OrgLimitDefaultOrderBy = - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' - | 'NAME_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; -export type ConnectedAccountOrderBy = - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'NATURAL' - | 'ID_ASC' - | 'ID_DESC' - | 'OWNER_ID_ASC' - | 'OWNER_ID_DESC' - | 'SERVICE_ASC' - | 'SERVICE_DESC' - | 'IDENTIFIER_ASC' - | 'IDENTIFIER_DESC' - | 'DETAILS_ASC' - | 'DETAILS_DESC' - | 'IS_VERIFIED_ASC' - | 'IS_VERIFIED_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'SERVICE_TRGM_SIMILARITY_ASC' - | 'SERVICE_TRGM_SIMILARITY_DESC' - | 'IDENTIFIER_TRGM_SIMILARITY_ASC' - | 'IDENTIFIER_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'NAME_DESC'; export type NodeTypeRegistryOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'NAME_ASC' | 'NAME_DESC' | 'SLUG_ASC' | 'SLUG_DESC' | 'CATEGORY_ASC' - | 'CATEGORY_DESC' - | 'DISPLAY_NAME_ASC' - | 'DISPLAY_NAME_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'PARAMETER_SCHEMA_ASC' - | 'PARAMETER_SCHEMA_DESC' - | 'TAGS_ASC' - | 'TAGS_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'NAME_TRGM_SIMILARITY_ASC' - | 'NAME_TRGM_SIMILARITY_DESC' - | 'SLUG_TRGM_SIMILARITY_ASC' - | 'SLUG_TRGM_SIMILARITY_DESC' - | 'CATEGORY_TRGM_SIMILARITY_ASC' - | 'CATEGORY_TRGM_SIMILARITY_DESC' - | 'DISPLAY_NAME_TRGM_SIMILARITY_ASC' - | 'DISPLAY_NAME_TRGM_SIMILARITY_DESC' - | 'DESCRIPTION_TRGM_SIMILARITY_ASC' - | 'DESCRIPTION_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'CATEGORY_DESC'; export type MembershipTypeOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' - | 'NAME_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'DESCRIPTION_TRGM_SIMILARITY_ASC' - | 'DESCRIPTION_TRGM_SIMILARITY_DESC' - | 'PREFIX_TRGM_SIMILARITY_ASC' - | 'PREFIX_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'NAME_DESC'; export type CommitOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' - | 'MESSAGE_ASC' - | 'MESSAGE_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'STORE_ID_ASC' - | 'STORE_ID_DESC' - | 'PARENT_IDS_ASC' - | 'PARENT_IDS_DESC' - | 'AUTHOR_ID_ASC' - | 'AUTHOR_ID_DESC' - | 'COMMITTER_ID_ASC' - | 'COMMITTER_ID_DESC' - | 'TREE_ID_ASC' - | 'TREE_ID_DESC' - | 'DATE_ASC' - | 'DATE_DESC' - | 'MESSAGE_TRGM_SIMILARITY_ASC' - | 'MESSAGE_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'DATABASE_ID_DESC'; export type AppMembershipDefaultOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'CREATED_AT_ASC' @@ -10605,51 +8493,19 @@ export type AppMembershipDefaultOrderBy = | 'CREATED_BY_ASC' | 'CREATED_BY_DESC' | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'IS_APPROVED_ASC' - | 'IS_APPROVED_DESC' - | 'IS_VERIFIED_ASC' - | 'IS_VERIFIED_DESC'; + | 'UPDATED_BY_DESC'; export type RlsModuleOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'SESSION_CREDENTIALS_TABLE_ID_ASC' - | 'SESSION_CREDENTIALS_TABLE_ID_DESC' - | 'SESSIONS_TABLE_ID_ASC' - | 'SESSIONS_TABLE_ID_DESC' - | 'USERS_TABLE_ID_ASC' - | 'USERS_TABLE_ID_DESC' - | 'AUTHENTICATE_ASC' - | 'AUTHENTICATE_DESC' - | 'AUTHENTICATE_STRICT_ASC' - | 'AUTHENTICATE_STRICT_DESC' - | 'CURRENT_ROLE_ASC' - | 'CURRENT_ROLE_DESC' - | 'CURRENT_ROLE_ID_ASC' - | 'CURRENT_ROLE_ID_DESC' - | 'AUTHENTICATE_TRGM_SIMILARITY_ASC' - | 'AUTHENTICATE_TRGM_SIMILARITY_DESC' - | 'AUTHENTICATE_STRICT_TRGM_SIMILARITY_ASC' - | 'AUTHENTICATE_STRICT_TRGM_SIMILARITY_DESC' - | 'CURRENT_ROLE_TRGM_SIMILARITY_ASC' - | 'CURRENT_ROLE_TRGM_SIMILARITY_DESC' - | 'CURRENT_ROLE_ID_TRGM_SIMILARITY_ASC' - | 'CURRENT_ROLE_ID_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'DATABASE_ID_DESC'; export type OrgMembershipDefaultOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'CREATED_AT_ASC' @@ -10660,63 +8516,9 @@ export type OrgMembershipDefaultOrderBy = | 'CREATED_BY_DESC' | 'UPDATED_BY_ASC' | 'UPDATED_BY_DESC' - | 'IS_APPROVED_ASC' - | 'IS_APPROVED_DESC' | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'DELETE_MEMBER_CASCADE_GROUPS_ASC' - | 'DELETE_MEMBER_CASCADE_GROUPS_DESC' - | 'CREATE_GROUPS_CASCADE_MEMBERS_ASC' - | 'CREATE_GROUPS_CASCADE_MEMBERS_DESC'; -export type AuditLogOrderBy = - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'NATURAL' - | 'ID_ASC' - | 'ID_DESC' - | 'EVENT_ASC' - | 'EVENT_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'ORIGIN_ASC' - | 'ORIGIN_DESC' - | 'USER_AGENT_ASC' - | 'USER_AGENT_DESC' - | 'IP_ADDRESS_ASC' - | 'IP_ADDRESS_DESC' - | 'SUCCESS_ASC' - | 'SUCCESS_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'USER_AGENT_TRGM_SIMILARITY_ASC' - | 'USER_AGENT_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; -export type AppLevelOrderBy = - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'NATURAL' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'IMAGE_ASC' - | 'IMAGE_DESC' - | 'OWNER_ID_ASC' - | 'OWNER_ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'DESCRIPTION_TRGM_SIMILARITY_ASC' - | 'DESCRIPTION_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'ENTITY_ID_DESC'; export type SqlMigrationOrderBy = - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' | 'NATURAL' | 'ID_ASC' | 'ID_DESC' @@ -10726,10 +8528,6 @@ export type SqlMigrationOrderBy = | 'DATABASE_ID_DESC' | 'DEPLOY_ASC' | 'DEPLOY_DESC' - | 'DEPS_ASC' - | 'DEPS_DESC' - | 'PAYLOAD_ASC' - | 'PAYLOAD_DESC' | 'CONTENT_ASC' | 'CONTENT_DESC' | 'REVERT_ASC' @@ -10743,55 +8541,15 @@ export type SqlMigrationOrderBy = | 'ACTION_ID_ASC' | 'ACTION_ID_DESC' | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'NAME_TRGM_SIMILARITY_ASC' - | 'NAME_TRGM_SIMILARITY_DESC' - | 'DEPLOY_TRGM_SIMILARITY_ASC' - | 'DEPLOY_TRGM_SIMILARITY_DESC' - | 'CONTENT_TRGM_SIMILARITY_ASC' - | 'CONTENT_TRGM_SIMILARITY_DESC' - | 'REVERT_TRGM_SIMILARITY_ASC' - | 'REVERT_TRGM_SIMILARITY_DESC' - | 'VERIFY_TRGM_SIMILARITY_ASC' - | 'VERIFY_TRGM_SIMILARITY_DESC' - | 'ACTION_TRGM_SIMILARITY_ASC' - | 'ACTION_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; -export type EmailOrderBy = - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'NATURAL' - | 'ID_ASC' - | 'ID_DESC' - | 'OWNER_ID_ASC' - | 'OWNER_ID_DESC' - | 'EMAIL_ASC' - | 'EMAIL_DESC' - | 'IS_VERIFIED_ASC' - | 'IS_VERIFIED_DESC' - | 'IS_PRIMARY_ASC' - | 'IS_PRIMARY_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; + | 'ACTOR_ID_DESC'; export type UserOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'USERNAME_ASC' | 'USERNAME_DESC' - | 'DISPLAY_NAME_ASC' - | 'DISPLAY_NAME_DESC' - | 'PROFILE_PICTURE_ASC' - | 'PROFILE_PICTURE_DESC' - | 'SEARCH_TSV_ASC' - | 'SEARCH_TSV_DESC' - | 'TYPE_ASC' - | 'TYPE_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' @@ -10803,8 +8561,6 @@ export type UserOrderBy = | 'SEARCH_SCORE_ASC' | 'SEARCH_SCORE_DESC'; export type AstMigrationOrderBy = - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' | 'NATURAL' | 'ID_ASC' | 'ID_DESC' @@ -10812,18 +8568,8 @@ export type AstMigrationOrderBy = | 'DATABASE_ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'REQUIRES_ASC' - | 'REQUIRES_DESC' - | 'PAYLOAD_ASC' - | 'PAYLOAD_DESC' | 'DEPLOYS_ASC' | 'DEPLOYS_DESC' - | 'DEPLOY_ASC' - | 'DEPLOY_DESC' - | 'REVERT_ASC' - | 'REVERT_DESC' - | 'VERIFY_ASC' - | 'VERIFY_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'ACTION_ASC' @@ -10831,15 +8577,11 @@ export type AstMigrationOrderBy = | 'ACTION_ID_ASC' | 'ACTION_ID_DESC' | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'ACTION_TRGM_SIMILARITY_ASC' - | 'ACTION_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'ACTOR_ID_DESC'; export type AppMembershipOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'CREATED_AT_ASC' @@ -10850,95 +8592,43 @@ export type AppMembershipOrderBy = | 'CREATED_BY_DESC' | 'UPDATED_BY_ASC' | 'UPDATED_BY_DESC' - | 'IS_APPROVED_ASC' - | 'IS_APPROVED_DESC' - | 'IS_BANNED_ASC' - | 'IS_BANNED_DESC' - | 'IS_DISABLED_ASC' - | 'IS_DISABLED_DESC' - | 'IS_VERIFIED_ASC' - | 'IS_VERIFIED_DESC' - | 'IS_ACTIVE_ASC' - | 'IS_ACTIVE_DESC' | 'IS_OWNER_ASC' | 'IS_OWNER_DESC' | 'IS_ADMIN_ASC' | 'IS_ADMIN_DESC' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC' - | 'GRANTED_ASC' - | 'GRANTED_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'PROFILE_ID_ASC' | 'PROFILE_ID_DESC'; export type HierarchyModuleOrderBy = + | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' - | 'NATURAL' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'CHART_EDGES_TABLE_ID_ASC' - | 'CHART_EDGES_TABLE_ID_DESC' - | 'CHART_EDGES_TABLE_NAME_ASC' - | 'CHART_EDGES_TABLE_NAME_DESC' - | 'HIERARCHY_SPRT_TABLE_ID_ASC' - | 'HIERARCHY_SPRT_TABLE_ID_DESC' - | 'HIERARCHY_SPRT_TABLE_NAME_ASC' - | 'HIERARCHY_SPRT_TABLE_NAME_DESC' - | 'CHART_EDGE_GRANTS_TABLE_ID_ASC' - | 'CHART_EDGE_GRANTS_TABLE_ID_DESC' - | 'CHART_EDGE_GRANTS_TABLE_NAME_ASC' - | 'CHART_EDGE_GRANTS_TABLE_NAME_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' - | 'USERS_TABLE_ID_ASC' - | 'USERS_TABLE_ID_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'PRIVATE_SCHEMA_NAME_ASC' - | 'PRIVATE_SCHEMA_NAME_DESC' - | 'SPRT_TABLE_NAME_ASC' - | 'SPRT_TABLE_NAME_DESC' - | 'REBUILD_HIERARCHY_FUNCTION_ASC' - | 'REBUILD_HIERARCHY_FUNCTION_DESC' - | 'GET_SUBORDINATES_FUNCTION_ASC' - | 'GET_SUBORDINATES_FUNCTION_DESC' - | 'GET_MANAGERS_FUNCTION_ASC' - | 'GET_MANAGERS_FUNCTION_DESC' - | 'IS_MANAGER_OF_FUNCTION_ASC' - | 'IS_MANAGER_OF_FUNCTION_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'CHART_EDGES_TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'CHART_EDGES_TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'HIERARCHY_SPRT_TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'HIERARCHY_SPRT_TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'CHART_EDGE_GRANTS_TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'CHART_EDGE_GRANTS_TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'PREFIX_TRGM_SIMILARITY_ASC' - | 'PREFIX_TRGM_SIMILARITY_DESC' - | 'PRIVATE_SCHEMA_NAME_TRGM_SIMILARITY_ASC' - | 'PRIVATE_SCHEMA_NAME_TRGM_SIMILARITY_DESC' - | 'SPRT_TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'SPRT_TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'REBUILD_HIERARCHY_FUNCTION_TRGM_SIMILARITY_ASC' - | 'REBUILD_HIERARCHY_FUNCTION_TRGM_SIMILARITY_DESC' - | 'GET_SUBORDINATES_FUNCTION_TRGM_SIMILARITY_ASC' - | 'GET_SUBORDINATES_FUNCTION_TRGM_SIMILARITY_DESC' - | 'GET_MANAGERS_FUNCTION_TRGM_SIMILARITY_ASC' - | 'GET_MANAGERS_FUNCTION_TRGM_SIMILARITY_DESC' - | 'IS_MANAGER_OF_FUNCTION_TRGM_SIMILARITY_ASC' - | 'IS_MANAGER_OF_FUNCTION_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'DATABASE_ID_DESC'; // ============ CRUD Input Types ============ +export interface CreateGetAllRecordInput { + clientMutationId?: string; + getAllRecord: { + path?: string[]; + data?: Record; + }; +} +export interface GetAllRecordPatch { + path?: string[] | null; + data?: Record | null; +} +export interface UpdateGetAllRecordInput { + clientMutationId?: string; + id: string; + getAllRecordPatch: GetAllRecordPatch; +} +export interface DeleteGetAllRecordInput { + clientMutationId?: string; + id: string; +} export interface CreateOrgGetManagersRecordInput { clientMutationId?: string; orgGetManagersRecord: { @@ -10979,26 +8669,6 @@ export interface DeleteOrgGetSubordinatesRecordInput { clientMutationId?: string; id: string; } -export interface CreateGetAllRecordInput { - clientMutationId?: string; - getAllRecord: { - path?: string; - data?: Record; - }; -} -export interface GetAllRecordPatch { - path?: string | null; - data?: Record | null; -} -export interface UpdateGetAllRecordInput { - clientMutationId?: string; - id: string; - getAllRecordPatch: GetAllRecordPatch; -} -export interface DeleteGetAllRecordInput { - clientMutationId?: string; - id: string; -} export interface CreateObjectInput { clientMutationId?: string; object: { @@ -11010,10 +8680,9 @@ export interface CreateObjectInput { }; } export interface ObjectPatch { - hashUuid?: string | null; databaseId?: string | null; - kids?: string | null; - ktree?: string | null; + kids?: string[] | null; + ktree?: string[] | null; data?: Record | null; frzn?: boolean | null; } @@ -11040,8 +8709,6 @@ export interface AppPermissionPatch { bitnum?: number | null; bitstr?: string | null; description?: string | null; - descriptionTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateAppPermissionInput { clientMutationId?: string; @@ -11066,8 +8733,6 @@ export interface OrgPermissionPatch { bitnum?: number | null; bitstr?: string | null; description?: string | null; - descriptionTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateOrgPermissionInput { clientMutationId?: string; @@ -11094,8 +8759,6 @@ export interface AppLevelRequirementPatch { description?: string | null; requiredCount?: number | null; priority?: number | null; - descriptionTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateAppLevelRequirementInput { clientMutationId?: string; @@ -11122,10 +8785,6 @@ export interface DatabasePatch { name?: string | null; label?: string | null; hash?: string | null; - schemaHashTrgmSimilarity?: number | null; - nameTrgmSimilarity?: number | null; - labelTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateDatabaseInput { clientMutationId?: string; @@ -11162,14 +8821,8 @@ export interface SchemaPatch { category?: ObjectCategory | null; module?: string | null; scope?: number | null; - tags?: string | null; + tags?: string[] | null; isPublic?: boolean | null; - nameTrgmSimilarity?: number | null; - schemaNameTrgmSimilarity?: number | null; - labelTrgmSimilarity?: number | null; - descriptionTrgmSimilarity?: number | null; - moduleTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateSchemaInput { clientMutationId?: string; @@ -11216,15 +8869,8 @@ export interface TablePatch { peoplestamps?: boolean | null; pluralName?: string | null; singularName?: string | null; - tags?: string | null; + tags?: string[] | null; inheritsId?: string | null; - nameTrgmSimilarity?: number | null; - labelTrgmSimilarity?: number | null; - descriptionTrgmSimilarity?: number | null; - moduleTrgmSimilarity?: number | null; - pluralNameTrgmSimilarity?: number | null; - singularNameTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateTableInput { clientMutationId?: string; @@ -11256,17 +8902,13 @@ export interface CheckConstraintPatch { tableId?: string | null; name?: string | null; type?: string | null; - fieldIds?: string | null; + fieldIds?: string[] | null; expr?: Record | null; smartTags?: Record | null; category?: ObjectCategory | null; module?: string | null; scope?: number | null; - tags?: string | null; - nameTrgmSimilarity?: number | null; - typeTrgmSimilarity?: number | null; - moduleTrgmSimilarity?: number | null; - searchScore?: number | null; + tags?: string[] | null; } export interface UpdateCheckConstraintInput { clientMutationId?: string; @@ -11287,6 +8929,7 @@ export interface CreateFieldInput { description?: string; smartTags?: Record; isRequired?: boolean; + apiRequired?: boolean; defaultValue?: string; defaultValueAst?: Record; isHidden?: boolean; @@ -11311,6 +8954,7 @@ export interface FieldPatch { description?: string | null; smartTags?: Record | null; isRequired?: boolean | null; + apiRequired?: boolean | null; defaultValue?: string | null; defaultValueAst?: Record | null; isHidden?: boolean | null; @@ -11321,17 +8965,10 @@ export interface FieldPatch { chkExpr?: Record | null; min?: number | null; max?: number | null; - tags?: string | null; + tags?: string[] | null; category?: ObjectCategory | null; module?: string | null; scope?: number | null; - nameTrgmSimilarity?: number | null; - labelTrgmSimilarity?: number | null; - descriptionTrgmSimilarity?: number | null; - defaultValueTrgmSimilarity?: number | null; - regexpTrgmSimilarity?: number | null; - moduleTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateFieldInput { clientMutationId?: string; @@ -11369,22 +9006,15 @@ export interface ForeignKeyConstraintPatch { description?: string | null; smartTags?: Record | null; type?: string | null; - fieldIds?: string | null; + fieldIds?: string[] | null; refTableId?: string | null; - refFieldIds?: string | null; + refFieldIds?: string[] | null; deleteAction?: string | null; updateAction?: string | null; category?: ObjectCategory | null; module?: string | null; scope?: number | null; - tags?: string | null; - nameTrgmSimilarity?: number | null; - descriptionTrgmSimilarity?: number | null; - typeTrgmSimilarity?: number | null; - deleteActionTrgmSimilarity?: number | null; - updateActionTrgmSimilarity?: number | null; - moduleTrgmSimilarity?: number | null; - searchScore?: number | null; + tags?: string[] | null; } export interface UpdateForeignKeyConstraintInput { clientMutationId?: string; @@ -11410,9 +9040,9 @@ export interface FullTextSearchPatch { databaseId?: string | null; tableId?: string | null; fieldId?: string | null; - fieldIds?: string | null; - weights?: string | null; - langs?: string | null; + fieldIds?: string[] | null; + weights?: string[] | null; + langs?: string[] | null; } export interface UpdateFullTextSearchInput { clientMutationId?: string; @@ -11448,23 +9078,19 @@ export interface IndexPatch { databaseId?: string | null; tableId?: string | null; name?: string | null; - fieldIds?: string | null; - includeFieldIds?: string | null; + fieldIds?: string[] | null; + includeFieldIds?: string[] | null; accessMethod?: string | null; indexParams?: Record | null; whereClause?: Record | null; isUnique?: boolean | null; options?: Record | null; - opClasses?: string | null; + opClasses?: string[] | null; smartTags?: Record | null; category?: ObjectCategory | null; module?: string | null; scope?: number | null; - tags?: string | null; - nameTrgmSimilarity?: number | null; - accessMethodTrgmSimilarity?: number | null; - moduleTrgmSimilarity?: number | null; - searchScore?: number | null; + tags?: string[] | null; } export interface UpdateIndexInput { clientMutationId?: string; @@ -11508,13 +9134,7 @@ export interface PolicyPatch { category?: ObjectCategory | null; module?: string | null; scope?: number | null; - tags?: string | null; - nameTrgmSimilarity?: number | null; - granteeNameTrgmSimilarity?: number | null; - privilegeTrgmSimilarity?: number | null; - policyTypeTrgmSimilarity?: number | null; - moduleTrgmSimilarity?: number | null; - searchScore?: number | null; + tags?: string[] | null; } export interface UpdatePolicyInput { clientMutationId?: string; @@ -11545,16 +9165,12 @@ export interface PrimaryKeyConstraintPatch { tableId?: string | null; name?: string | null; type?: string | null; - fieldIds?: string | null; + fieldIds?: string[] | null; smartTags?: Record | null; category?: ObjectCategory | null; module?: string | null; scope?: number | null; - tags?: string | null; - nameTrgmSimilarity?: number | null; - typeTrgmSimilarity?: number | null; - moduleTrgmSimilarity?: number | null; - searchScore?: number | null; + tags?: string[] | null; } export interface UpdatePrimaryKeyConstraintInput { clientMutationId?: string; @@ -11581,11 +9197,8 @@ export interface TableGrantPatch { tableId?: string | null; privilege?: string | null; granteeName?: string | null; - fieldIds?: string | null; + fieldIds?: string[] | null; isGrant?: boolean | null; - privilegeTrgmSimilarity?: number | null; - granteeNameTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateTableGrantInput { clientMutationId?: string; @@ -11621,12 +9234,7 @@ export interface TriggerPatch { category?: ObjectCategory | null; module?: string | null; scope?: number | null; - tags?: string | null; - nameTrgmSimilarity?: number | null; - eventTrgmSimilarity?: number | null; - functionNameTrgmSimilarity?: number | null; - moduleTrgmSimilarity?: number | null; - searchScore?: number | null; + tags?: string[] | null; } export interface UpdateTriggerInput { clientMutationId?: string; @@ -11660,16 +9268,11 @@ export interface UniqueConstraintPatch { description?: string | null; smartTags?: Record | null; type?: string | null; - fieldIds?: string | null; + fieldIds?: string[] | null; category?: ObjectCategory | null; module?: string | null; scope?: number | null; - tags?: string | null; - nameTrgmSimilarity?: number | null; - descriptionTrgmSimilarity?: number | null; - typeTrgmSimilarity?: number | null; - moduleTrgmSimilarity?: number | null; - searchScore?: number | null; + tags?: string[] | null; } export interface UpdateUniqueConstraintInput { clientMutationId?: string; @@ -11715,12 +9318,7 @@ export interface ViewPatch { category?: ObjectCategory | null; module?: string | null; scope?: number | null; - tags?: string | null; - nameTrgmSimilarity?: number | null; - viewTypeTrgmSimilarity?: number | null; - filterTypeTrgmSimilarity?: number | null; - moduleTrgmSimilarity?: number | null; - searchScore?: number | null; + tags?: string[] | null; } export interface UpdateViewInput { clientMutationId?: string; @@ -11771,9 +9369,6 @@ export interface ViewGrantPatch { privilege?: string | null; withGrantOption?: boolean | null; isGrant?: boolean | null; - granteeNameTrgmSimilarity?: number | null; - privilegeTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateViewGrantInput { clientMutationId?: string; @@ -11800,10 +9395,6 @@ export interface ViewRulePatch { name?: string | null; event?: string | null; action?: string | null; - nameTrgmSimilarity?: number | null; - eventTrgmSimilarity?: number | null; - actionTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateViewRuleInput { clientMutationId?: string; @@ -11814,6 +9405,52 @@ export interface DeleteViewRuleInput { clientMutationId?: string; id: string; } +export interface CreateEmbeddingChunkInput { + clientMutationId?: string; + embeddingChunk: { + databaseId?: string; + tableId: string; + embeddingFieldId?: string; + chunksTableId?: string; + chunksTableName?: string; + contentFieldName?: string; + dimensions?: number; + metric?: string; + chunkSize?: number; + chunkOverlap?: number; + chunkStrategy?: string; + metadataFields?: Record; + enqueueChunkingJob?: boolean; + chunkingTaskName?: string; + parentFkFieldId?: string; + }; +} +export interface EmbeddingChunkPatch { + databaseId?: string | null; + tableId?: string | null; + embeddingFieldId?: string | null; + chunksTableId?: string | null; + chunksTableName?: string | null; + contentFieldName?: string | null; + dimensions?: number | null; + metric?: string | null; + chunkSize?: number | null; + chunkOverlap?: number | null; + chunkStrategy?: string | null; + metadataFields?: Record | null; + enqueueChunkingJob?: boolean | null; + chunkingTaskName?: string | null; + parentFkFieldId?: string | null; +} +export interface UpdateEmbeddingChunkInput { + clientMutationId?: string; + id: string; + embeddingChunkPatch: EmbeddingChunkPatch; +} +export interface DeleteEmbeddingChunkInput { + clientMutationId?: string; + id: string; +} export interface CreateTableTemplateModuleInput { clientMutationId?: string; tableTemplateModule: { @@ -11836,9 +9473,6 @@ export interface TableTemplateModulePatch { tableName?: string | null; nodeType?: string | null; data?: Record | null; - tableNameTrgmSimilarity?: number | null; - nodeTypeTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateTableTemplateModuleInput { clientMutationId?: string; @@ -11859,9 +9493,9 @@ export interface CreateSecureTableProvisionInput { nodeType?: string; useRls?: boolean; nodeData?: Record; - fields?: Record; + fields?: Record[]; grantRoles?: string[]; - grantPrivileges?: Record; + grantPrivileges?: Record[]; policyType?: string; policyPrivileges?: string[]; policyRole?: string; @@ -11879,22 +9513,16 @@ export interface SecureTableProvisionPatch { nodeType?: string | null; useRls?: boolean | null; nodeData?: Record | null; - fields?: Record | null; - grantRoles?: string | null; - grantPrivileges?: Record | null; + fields?: Record[] | null; + grantRoles?: string[] | null; + grantPrivileges?: Record[] | null; policyType?: string | null; - policyPrivileges?: string | null; + policyPrivileges?: string[] | null; policyRole?: string | null; policyPermissive?: boolean | null; policyName?: string | null; policyData?: Record | null; - outFields?: string | null; - tableNameTrgmSimilarity?: number | null; - nodeTypeTrgmSimilarity?: number | null; - policyTypeTrgmSimilarity?: number | null; - policyRoleTrgmSimilarity?: number | null; - policyNameTrgmSimilarity?: number | null; - searchScore?: number | null; + outFields?: string[] | null; } export interface UpdateSecureTableProvisionInput { clientMutationId?: string; @@ -11915,16 +9543,19 @@ export interface CreateRelationProvisionInput { fieldName?: string; deleteAction?: string; isRequired?: boolean; + apiRequired?: boolean; junctionTableId?: string; junctionTableName?: string; junctionSchemaId?: string; sourceFieldName?: string; targetFieldName?: string; useCompositeKey?: boolean; + createIndex?: boolean; + exposeInApi?: boolean; nodeType?: string; nodeData?: Record; grantRoles?: string[]; - grantPrivileges?: Record; + grantPrivileges?: Record[]; policyType?: string; policyPrivileges?: string[]; policyRole?: string; @@ -11945,18 +9576,21 @@ export interface RelationProvisionPatch { fieldName?: string | null; deleteAction?: string | null; isRequired?: boolean | null; + apiRequired?: boolean | null; junctionTableId?: string | null; junctionTableName?: string | null; junctionSchemaId?: string | null; sourceFieldName?: string | null; targetFieldName?: string | null; useCompositeKey?: boolean | null; + createIndex?: boolean | null; + exposeInApi?: boolean | null; nodeType?: string | null; nodeData?: Record | null; - grantRoles?: string | null; - grantPrivileges?: Record | null; + grantRoles?: string[] | null; + grantPrivileges?: Record[] | null; policyType?: string | null; - policyPrivileges?: string | null; + policyPrivileges?: string[] | null; policyRole?: string | null; policyPermissive?: boolean | null; policyName?: string | null; @@ -11965,17 +9599,6 @@ export interface RelationProvisionPatch { outJunctionTableId?: string | null; outSourceFieldId?: string | null; outTargetFieldId?: string | null; - relationTypeTrgmSimilarity?: number | null; - fieldNameTrgmSimilarity?: number | null; - deleteActionTrgmSimilarity?: number | null; - junctionTableNameTrgmSimilarity?: number | null; - sourceFieldNameTrgmSimilarity?: number | null; - targetFieldNameTrgmSimilarity?: number | null; - nodeTypeTrgmSimilarity?: number | null; - policyTypeTrgmSimilarity?: number | null; - policyRoleTrgmSimilarity?: number | null; - policyNameTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateRelationProvisionInput { clientMutationId?: string; @@ -11998,8 +9621,6 @@ export interface SchemaGrantPatch { databaseId?: string | null; schemaId?: string | null; granteeName?: string | null; - granteeNameTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateSchemaGrantInput { clientMutationId?: string; @@ -12028,10 +9649,6 @@ export interface DefaultPrivilegePatch { privilege?: string | null; granteeName?: string | null; isGrant?: boolean | null; - objectTypeTrgmSimilarity?: number | null; - privilegeTrgmSimilarity?: number | null; - granteeNameTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateDefaultPrivilegeInput { clientMutationId?: string; @@ -12042,31 +9659,69 @@ export interface DeleteDefaultPrivilegeInput { clientMutationId?: string; id: string; } -export interface CreateApiSchemaInput { +export interface CreateEnumInput { clientMutationId?: string; - apiSchema: { + enum: { databaseId: string; schemaId: string; - apiId: string; + name: string; + label?: string; + description?: string; + values?: string[]; + smartTags?: Record; + category?: ObjectCategory; + module?: string; + scope?: number; + tags?: string[]; }; } -export interface ApiSchemaPatch { +export interface EnumPatch { databaseId?: string | null; schemaId?: string | null; - apiId?: string | null; + name?: string | null; + label?: string | null; + description?: string | null; + values?: string[] | null; + smartTags?: Record | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + tags?: string[] | null; } -export interface UpdateApiSchemaInput { +export interface UpdateEnumInput { clientMutationId?: string; id: string; - apiSchemaPatch: ApiSchemaPatch; + enumPatch: EnumPatch; } -export interface DeleteApiSchemaInput { +export interface DeleteEnumInput { clientMutationId?: string; id: string; } -export interface CreateApiModuleInput { +export interface CreateApiSchemaInput { clientMutationId?: string; - apiModule: { + apiSchema: { + databaseId: string; + schemaId: string; + apiId: string; + }; +} +export interface ApiSchemaPatch { + databaseId?: string | null; + schemaId?: string | null; + apiId?: string | null; +} +export interface UpdateApiSchemaInput { + clientMutationId?: string; + id: string; + apiSchemaPatch: ApiSchemaPatch; +} +export interface DeleteApiSchemaInput { + clientMutationId?: string; + id: string; +} +export interface CreateApiModuleInput { + clientMutationId?: string; + apiModule: { databaseId: string; apiId: string; name: string; @@ -12078,8 +9733,6 @@ export interface ApiModulePatch { apiId?: string | null; name?: string | null; data?: Record | null; - nameTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateApiModuleInput { clientMutationId?: string; @@ -12132,9 +9785,7 @@ export interface SiteMetadatumPatch { title?: string | null; description?: string | null; ogImage?: ConstructiveInternalTypeImage | null; - titleTrgmSimilarity?: number | null; - descriptionTrgmSimilarity?: number | null; - searchScore?: number | null; + ogImageUpload?: File | null; } export interface UpdateSiteMetadatumInput { clientMutationId?: string; @@ -12159,8 +9810,6 @@ export interface SiteModulePatch { siteId?: string | null; name?: string | null; data?: Record | null; - nameTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateSiteModuleInput { clientMutationId?: string; @@ -12205,9 +9854,6 @@ export interface TriggerFunctionPatch { databaseId?: string | null; name?: string | null; code?: string | null; - nameTrgmSimilarity?: number | null; - codeTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateTriggerFunctionInput { clientMutationId?: string; @@ -12218,6 +9864,44 @@ export interface DeleteTriggerFunctionInput { clientMutationId?: string; id: string; } +export interface CreateDatabaseTransferInput { + clientMutationId?: string; + databaseTransfer: { + databaseId: string; + targetOwnerId: string; + sourceApproved?: boolean; + targetApproved?: boolean; + sourceApprovedAt?: string; + targetApprovedAt?: string; + status?: string; + initiatedBy: string; + notes?: string; + expiresAt?: string; + completedAt?: string; + }; +} +export interface DatabaseTransferPatch { + databaseId?: string | null; + targetOwnerId?: string | null; + sourceApproved?: boolean | null; + targetApproved?: boolean | null; + sourceApprovedAt?: string | null; + targetApprovedAt?: string | null; + status?: string | null; + initiatedBy?: string | null; + notes?: string | null; + expiresAt?: string | null; + completedAt?: string | null; +} +export interface UpdateDatabaseTransferInput { + clientMutationId?: string; + id: string; + databaseTransferPatch: DatabaseTransferPatch; +} +export interface DeleteDatabaseTransferInput { + clientMutationId?: string; + id: string; +} export interface CreateApiInput { clientMutationId?: string; api: { @@ -12236,11 +9920,6 @@ export interface ApiPatch { roleName?: string | null; anonRole?: string | null; isPublic?: boolean | null; - nameTrgmSimilarity?: number | null; - dbnameTrgmSimilarity?: number | null; - roleNameTrgmSimilarity?: number | null; - anonRoleTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateApiInput { clientMutationId?: string; @@ -12273,10 +9952,10 @@ export interface SitePatch { appleTouchIcon?: ConstructiveInternalTypeImage | null; logo?: ConstructiveInternalTypeImage | null; dbname?: string | null; - titleTrgmSimilarity?: number | null; - descriptionTrgmSimilarity?: number | null; - dbnameTrgmSimilarity?: number | null; - searchScore?: number | null; + ogImageUpload?: File | null; + faviconUpload?: File | null; + appleTouchIconUpload?: File | null; + logoUpload?: File | null; } export interface UpdateSiteInput { clientMutationId?: string; @@ -12309,10 +9988,7 @@ export interface AppPatch { appStoreId?: string | null; appIdPrefix?: string | null; playStoreLink?: ConstructiveInternalTypeUrl | null; - nameTrgmSimilarity?: number | null; - appStoreIdTrgmSimilarity?: number | null; - appIdPrefixTrgmSimilarity?: number | null; - searchScore?: number | null; + appImageUpload?: File | null; } export interface UpdateAppInput { clientMutationId?: string; @@ -12341,8 +10017,6 @@ export interface ConnectedAccountsModulePatch { tableId?: string | null; ownerTableId?: string | null; tableName?: string | null; - tableNameTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateConnectedAccountsModuleInput { clientMutationId?: string; @@ -12373,9 +10047,6 @@ export interface CryptoAddressesModulePatch { ownerTableId?: string | null; tableName?: string | null; cryptoNetwork?: string | null; - tableNameTrgmSimilarity?: number | null; - cryptoNetworkTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateCryptoAddressesModuleInput { clientMutationId?: string; @@ -12418,13 +10089,6 @@ export interface CryptoAuthModulePatch { signInRecordFailure?: string | null; signUpWithKey?: string | null; signInWithChallenge?: string | null; - userFieldTrgmSimilarity?: number | null; - cryptoNetworkTrgmSimilarity?: number | null; - signInRequestChallengeTrgmSimilarity?: number | null; - signInRecordFailureTrgmSimilarity?: number | null; - signUpWithKeyTrgmSimilarity?: number | null; - signInWithChallengeTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateCryptoAuthModuleInput { clientMutationId?: string; @@ -12473,16 +10137,14 @@ export interface DenormalizedTableFieldPatch { databaseId?: string | null; tableId?: string | null; fieldId?: string | null; - setIds?: string | null; + setIds?: string[] | null; refTableId?: string | null; refFieldId?: string | null; - refIds?: string | null; + refIds?: string[] | null; useUpdates?: boolean | null; updateDefaults?: boolean | null; funcName?: string | null; funcOrder?: number | null; - funcNameTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateDenormalizedTableFieldInput { clientMutationId?: string; @@ -12511,8 +10173,6 @@ export interface EmailsModulePatch { tableId?: string | null; ownerTableId?: string | null; tableName?: string | null; - tableNameTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateEmailsModuleInput { clientMutationId?: string; @@ -12537,8 +10197,6 @@ export interface EncryptedSecretsModulePatch { schemaId?: string | null; tableId?: string | null; tableName?: string | null; - tableNameTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateEncryptedSecretsModuleInput { clientMutationId?: string; @@ -12569,10 +10227,8 @@ export interface FieldModulePatch { fieldId?: string | null; nodeType?: string | null; data?: Record | null; - triggers?: string | null; - functions?: string | null; - nodeTypeTrgmSimilarity?: number | null; - searchScore?: number | null; + triggers?: string[] | null; + functions?: string[] | null; } export interface UpdateFieldModuleInput { clientMutationId?: string; @@ -12615,11 +10271,6 @@ export interface InvitesModulePatch { prefix?: string | null; membershipType?: number | null; entityTableId?: string | null; - invitesTableNameTrgmSimilarity?: number | null; - claimedInvitesTableNameTrgmSimilarity?: number | null; - submitInviteCodeFunctionTrgmSimilarity?: number | null; - prefixTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateInvitesModuleInput { clientMutationId?: string; @@ -12686,22 +10337,6 @@ export interface LevelsModulePatch { membershipType?: number | null; entityTableId?: string | null; actorTableId?: string | null; - stepsTableNameTrgmSimilarity?: number | null; - achievementsTableNameTrgmSimilarity?: number | null; - levelsTableNameTrgmSimilarity?: number | null; - levelRequirementsTableNameTrgmSimilarity?: number | null; - completedStepTrgmSimilarity?: number | null; - incompletedStepTrgmSimilarity?: number | null; - tgAchievementTrgmSimilarity?: number | null; - tgAchievementToggleTrgmSimilarity?: number | null; - tgAchievementToggleBooleanTrgmSimilarity?: number | null; - tgAchievementBooleanTrgmSimilarity?: number | null; - upsertAchievementTrgmSimilarity?: number | null; - tgUpdateAchievementsTrgmSimilarity?: number | null; - stepsRequiredTrgmSimilarity?: number | null; - levelAchievedTrgmSimilarity?: number | null; - prefixTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateLevelsModuleInput { clientMutationId?: string; @@ -12752,16 +10387,6 @@ export interface LimitsModulePatch { membershipType?: number | null; entityTableId?: string | null; actorTableId?: string | null; - tableNameTrgmSimilarity?: number | null; - defaultTableNameTrgmSimilarity?: number | null; - limitIncrementFunctionTrgmSimilarity?: number | null; - limitDecrementFunctionTrgmSimilarity?: number | null; - limitIncrementTriggerTrgmSimilarity?: number | null; - limitDecrementTriggerTrgmSimilarity?: number | null; - limitUpdateTriggerTrgmSimilarity?: number | null; - limitCheckFunctionTrgmSimilarity?: number | null; - prefixTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateLimitsModuleInput { clientMutationId?: string; @@ -12786,8 +10411,6 @@ export interface MembershipTypesModulePatch { schemaId?: string | null; tableId?: string | null; tableName?: string | null; - tableNameTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateMembershipTypesModuleInput { clientMutationId?: string; @@ -12864,19 +10487,6 @@ export interface MembershipsModulePatch { entityIdsByMask?: string | null; entityIdsByPerm?: string | null; entityIdsFunction?: string | null; - membershipsTableNameTrgmSimilarity?: number | null; - membersTableNameTrgmSimilarity?: number | null; - membershipDefaultsTableNameTrgmSimilarity?: number | null; - grantsTableNameTrgmSimilarity?: number | null; - adminGrantsTableNameTrgmSimilarity?: number | null; - ownerGrantsTableNameTrgmSimilarity?: number | null; - prefixTrgmSimilarity?: number | null; - actorMaskCheckTrgmSimilarity?: number | null; - actorPermCheckTrgmSimilarity?: number | null; - entityIdsByMaskTrgmSimilarity?: number | null; - entityIdsByPermTrgmSimilarity?: number | null; - entityIdsFunctionTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateMembershipsModuleInput { clientMutationId?: string; @@ -12925,14 +10535,6 @@ export interface PermissionsModulePatch { getMask?: string | null; getByMask?: string | null; getMaskByName?: string | null; - tableNameTrgmSimilarity?: number | null; - defaultTableNameTrgmSimilarity?: number | null; - prefixTrgmSimilarity?: number | null; - getPaddedMaskTrgmSimilarity?: number | null; - getMaskTrgmSimilarity?: number | null; - getByMaskTrgmSimilarity?: number | null; - getMaskByNameTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdatePermissionsModuleInput { clientMutationId?: string; @@ -12961,8 +10563,6 @@ export interface PhoneNumbersModulePatch { tableId?: string | null; ownerTableId?: string | null; tableName?: string | null; - tableNameTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdatePhoneNumbersModuleInput { clientMutationId?: string; @@ -13013,12 +10613,6 @@ export interface ProfilesModulePatch { permissionsTableId?: string | null; membershipsTableId?: string | null; prefix?: string | null; - tableNameTrgmSimilarity?: number | null; - profilePermissionsTableNameTrgmSimilarity?: number | null; - profileGrantsTableNameTrgmSimilarity?: number | null; - profileDefinitionGrantsTableNameTrgmSimilarity?: number | null; - prefixTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateProfilesModuleInput { clientMutationId?: string; @@ -13043,8 +10637,6 @@ export interface SecretsModulePatch { schemaId?: string | null; tableId?: string | null; tableName?: string | null; - tableNameTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateSecretsModuleInput { clientMutationId?: string; @@ -13077,14 +10669,10 @@ export interface SessionsModulePatch { sessionCredentialsTableId?: string | null; authSettingsTableId?: string | null; usersTableId?: string | null; - sessionsDefaultExpiration?: string | null; + sessionsDefaultExpiration?: IntervalInput | null; sessionsTable?: string | null; sessionCredentialsTable?: string | null; authSettingsTable?: string | null; - sessionsTableTrgmSimilarity?: number | null; - sessionCredentialsTableTrgmSimilarity?: number | null; - authSettingsTableTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateSessionsModuleInput { clientMutationId?: string; @@ -13151,23 +10739,6 @@ export interface UserAuthModulePatch { signInOneTimeTokenFunction?: string | null; oneTimeTokenFunction?: string | null; extendTokenExpires?: string | null; - auditsTableNameTrgmSimilarity?: number | null; - signInFunctionTrgmSimilarity?: number | null; - signUpFunctionTrgmSimilarity?: number | null; - signOutFunctionTrgmSimilarity?: number | null; - setPasswordFunctionTrgmSimilarity?: number | null; - resetPasswordFunctionTrgmSimilarity?: number | null; - forgotPasswordFunctionTrgmSimilarity?: number | null; - sendVerificationEmailFunctionTrgmSimilarity?: number | null; - verifyEmailFunctionTrgmSimilarity?: number | null; - verifyPasswordFunctionTrgmSimilarity?: number | null; - checkPasswordFunctionTrgmSimilarity?: number | null; - sendAccountDeletionEmailFunctionTrgmSimilarity?: number | null; - deleteAccountFunctionTrgmSimilarity?: number | null; - signInOneTimeTokenFunctionTrgmSimilarity?: number | null; - oneTimeTokenFunctionTrgmSimilarity?: number | null; - extendTokenExpiresTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateUserAuthModuleInput { clientMutationId?: string; @@ -13196,9 +10767,6 @@ export interface UsersModulePatch { tableName?: string | null; typeTableId?: string | null; typeTableName?: string | null; - tableNameTrgmSimilarity?: number | null; - typeTableNameTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateUsersModuleInput { clientMutationId?: string; @@ -13209,30 +10777,97 @@ export interface DeleteUsersModuleInput { clientMutationId?: string; id: string; } -export interface CreateUuidModuleInput { +export interface CreateBlueprintInput { clientMutationId?: string; - uuidModule: { + blueprint: { + ownerId: string; databaseId: string; - schemaId?: string; - uuidFunction?: string; - uuidSeed: string; + name: string; + displayName: string; + description?: string; + definition: Record; + templateId?: string; + status?: string; + constructedAt?: string; + errorDetails?: string; + refMap?: Record; + constructedDefinition?: Record; + definitionHash?: string; + tableHashes?: Record; }; } -export interface UuidModulePatch { +export interface BlueprintPatch { + ownerId?: string | null; databaseId?: string | null; - schemaId?: string | null; - uuidFunction?: string | null; - uuidSeed?: string | null; - uuidFunctionTrgmSimilarity?: number | null; - uuidSeedTrgmSimilarity?: number | null; - searchScore?: number | null; + name?: string | null; + displayName?: string | null; + description?: string | null; + definition?: Record | null; + templateId?: string | null; + status?: string | null; + constructedAt?: string | null; + errorDetails?: string | null; + refMap?: Record | null; + constructedDefinition?: Record | null; + definitionHash?: string | null; + tableHashes?: Record | null; +} +export interface UpdateBlueprintInput { + clientMutationId?: string; + id: string; + blueprintPatch: BlueprintPatch; +} +export interface DeleteBlueprintInput { + clientMutationId?: string; + id: string; +} +export interface CreateBlueprintTemplateInput { + clientMutationId?: string; + blueprintTemplate: { + name: string; + version?: string; + displayName: string; + description?: string; + ownerId: string; + visibility?: string; + categories?: string[]; + tags?: string[]; + definition: Record; + definitionSchemaVersion?: string; + source?: string; + complexity?: string; + copyCount?: number; + forkCount?: number; + forkedFromId?: string; + definitionHash?: string; + tableHashes?: Record; + }; +} +export interface BlueprintTemplatePatch { + name?: string | null; + version?: string | null; + displayName?: string | null; + description?: string | null; + ownerId?: string | null; + visibility?: string | null; + categories?: string[] | null; + tags?: string[] | null; + definition?: Record | null; + definitionSchemaVersion?: string | null; + source?: string | null; + complexity?: string | null; + copyCount?: number | null; + forkCount?: number | null; + forkedFromId?: string | null; + definitionHash?: string | null; + tableHashes?: Record | null; } -export interface UpdateUuidModuleInput { +export interface UpdateBlueprintTemplateInput { clientMutationId?: string; id: string; - uuidModulePatch: UuidModulePatch; + blueprintTemplatePatch: BlueprintTemplatePatch; } -export interface DeleteUuidModuleInput { +export interface DeleteBlueprintTemplateInput { clientMutationId?: string; id: string; } @@ -13257,19 +10892,13 @@ export interface DatabaseProvisionModulePatch { ownerId?: string | null; subdomain?: string | null; domain?: string | null; - modules?: string | null; + modules?: string[] | null; options?: Record | null; bootstrapUser?: boolean | null; status?: string | null; errorMessage?: string | null; databaseId?: string | null; completedAt?: string | null; - databaseNameTrgmSimilarity?: number | null; - subdomainTrgmSimilarity?: number | null; - domainTrgmSimilarity?: number | null; - statusTrgmSimilarity?: number | null; - errorMessageTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateDatabaseProvisionModuleInput { clientMutationId?: string; @@ -13502,8 +11131,6 @@ export interface OrgChartEdgePatch { parentId?: string | null; positionTitle?: string | null; positionLevel?: number | null; - positionTitleTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateOrgChartEdgeInput { clientMutationId?: string; @@ -13520,7 +11147,7 @@ export interface CreateOrgChartEdgeGrantInput { entityId: string; childId: string; parentId?: string; - grantorId: string; + grantorId?: string; isGrant?: boolean; positionTitle?: string; positionLevel?: number; @@ -13534,8 +11161,6 @@ export interface OrgChartEdgeGrantPatch { isGrant?: boolean | null; positionTitle?: string | null; positionLevel?: number | null; - positionTitleTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateOrgChartEdgeGrantInput { clientMutationId?: string; @@ -13546,6 +11171,26 @@ export interface DeleteOrgChartEdgeGrantInput { clientMutationId?: string; id: string; } +export interface CreateOrgPermissionDefaultInput { + clientMutationId?: string; + orgPermissionDefault: { + permissions?: string; + entityId: string; + }; +} +export interface OrgPermissionDefaultPatch { + permissions?: string | null; + entityId?: string | null; +} +export interface UpdateOrgPermissionDefaultInput { + clientMutationId?: string; + id: string; + orgPermissionDefaultPatch: OrgPermissionDefaultPatch; +} +export interface DeleteOrgPermissionDefaultInput { + clientMutationId?: string; + id: string; +} export interface CreateAppLimitInput { clientMutationId?: string; appLimit: { @@ -13640,6 +11285,131 @@ export interface DeleteAppAchievementInput { clientMutationId?: string; id: string; } +export interface CreateAppLevelInput { + clientMutationId?: string; + appLevel: { + name: string; + description?: string; + image?: ConstructiveInternalTypeImage; + ownerId?: string; + }; +} +export interface AppLevelPatch { + name?: string | null; + description?: string | null; + image?: ConstructiveInternalTypeImage | null; + ownerId?: string | null; + imageUpload?: File | null; +} +export interface UpdateAppLevelInput { + clientMutationId?: string; + id: string; + appLevelPatch: AppLevelPatch; +} +export interface DeleteAppLevelInput { + clientMutationId?: string; + id: string; +} +export interface CreateEmailInput { + clientMutationId?: string; + email: { + ownerId?: string; + email: ConstructiveInternalTypeEmail; + isVerified?: boolean; + isPrimary?: boolean; + }; +} +export interface EmailPatch { + ownerId?: string | null; + email?: ConstructiveInternalTypeEmail | null; + isVerified?: boolean | null; + isPrimary?: boolean | null; +} +export interface UpdateEmailInput { + clientMutationId?: string; + id: string; + emailPatch: EmailPatch; +} +export interface DeleteEmailInput { + clientMutationId?: string; + id: string; +} +export interface CreatePhoneNumberInput { + clientMutationId?: string; + phoneNumber: { + ownerId?: string; + cc: string; + number: string; + isVerified?: boolean; + isPrimary?: boolean; + }; +} +export interface PhoneNumberPatch { + ownerId?: string | null; + cc?: string | null; + number?: string | null; + isVerified?: boolean | null; + isPrimary?: boolean | null; +} +export interface UpdatePhoneNumberInput { + clientMutationId?: string; + id: string; + phoneNumberPatch: PhoneNumberPatch; +} +export interface DeletePhoneNumberInput { + clientMutationId?: string; + id: string; +} +export interface CreateCryptoAddressInput { + clientMutationId?: string; + cryptoAddress: { + ownerId?: string; + address: string; + isVerified?: boolean; + isPrimary?: boolean; + }; +} +export interface CryptoAddressPatch { + ownerId?: string | null; + address?: string | null; + isVerified?: boolean | null; + isPrimary?: boolean | null; +} +export interface UpdateCryptoAddressInput { + clientMutationId?: string; + id: string; + cryptoAddressPatch: CryptoAddressPatch; +} +export interface DeleteCryptoAddressInput { + clientMutationId?: string; + id: string; +} +export interface CreateConnectedAccountInput { + clientMutationId?: string; + connectedAccount: { + ownerId?: string; + service: string; + identifier: string; + details: Record; + isVerified?: boolean; + }; +} +export interface ConnectedAccountPatch { + ownerId?: string | null; + service?: string | null; + identifier?: string | null; + details?: Record | null; + isVerified?: boolean | null; +} +export interface UpdateConnectedAccountInput { + clientMutationId?: string; + id: string; + connectedAccountPatch: ConnectedAccountPatch; +} +export interface DeleteConnectedAccountInput { + clientMutationId?: string; + id: string; +} export interface CreateInviteInput { clientMutationId?: string; invite: { @@ -13664,8 +11434,6 @@ export interface InvitePatch { multiple?: boolean | null; data?: Record | null; expiresAt?: string | null; - inviteTokenTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateInviteInput { clientMutationId?: string; @@ -13726,8 +11494,6 @@ export interface OrgInvitePatch { data?: Record | null; expiresAt?: string | null; entityId?: string | null; - inviteTokenTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateOrgInviteInput { clientMutationId?: string; @@ -13762,22 +11528,48 @@ export interface DeleteOrgClaimedInviteInput { clientMutationId?: string; id: string; } -export interface CreateRefInput { +export interface CreateAuditLogInput { clientMutationId?: string; - ref: { - name: string; - databaseId: string; - storeId: string; - commitId?: string; - }; -} -export interface RefPatch { + auditLog: { + event: string; + actorId?: string; + origin?: ConstructiveInternalTypeOrigin; + userAgent?: string; + ipAddress?: string; + success: boolean; + }; +} +export interface AuditLogPatch { + event?: string | null; + actorId?: string | null; + origin?: ConstructiveInternalTypeOrigin | null; + userAgent?: string | null; + ipAddress?: string | null; + success?: boolean | null; +} +export interface UpdateAuditLogInput { + clientMutationId?: string; + id: string; + auditLogPatch: AuditLogPatch; +} +export interface DeleteAuditLogInput { + clientMutationId?: string; + id: string; +} +export interface CreateRefInput { + clientMutationId?: string; + ref: { + name: string; + databaseId: string; + storeId: string; + commitId?: string; + }; +} +export interface RefPatch { name?: string | null; databaseId?: string | null; storeId?: string | null; commitId?: string | null; - nameTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateRefInput { clientMutationId?: string; @@ -13800,8 +11592,6 @@ export interface StorePatch { name?: string | null; databaseId?: string | null; hash?: string | null; - nameTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateStoreInput { clientMutationId?: string; @@ -13830,32 +11620,6 @@ export interface DeleteAppPermissionDefaultInput { clientMutationId?: string; id: string; } -export interface CreateCryptoAddressInput { - clientMutationId?: string; - cryptoAddress: { - ownerId?: string; - address: string; - isVerified?: boolean; - isPrimary?: boolean; - }; -} -export interface CryptoAddressPatch { - ownerId?: string | null; - address?: string | null; - isVerified?: boolean | null; - isPrimary?: boolean | null; - addressTrgmSimilarity?: number | null; - searchScore?: number | null; -} -export interface UpdateCryptoAddressInput { - clientMutationId?: string; - id: string; - cryptoAddressPatch: CryptoAddressPatch; -} -export interface DeleteCryptoAddressInput { - clientMutationId?: string; - id: string; -} export interface CreateRoleTypeInput { clientMutationId?: string; roleType: { @@ -13874,55 +11638,6 @@ export interface DeleteRoleTypeInput { clientMutationId?: string; id: number; } -export interface CreateOrgPermissionDefaultInput { - clientMutationId?: string; - orgPermissionDefault: { - permissions?: string; - entityId: string; - }; -} -export interface OrgPermissionDefaultPatch { - permissions?: string | null; - entityId?: string | null; -} -export interface UpdateOrgPermissionDefaultInput { - clientMutationId?: string; - id: string; - orgPermissionDefaultPatch: OrgPermissionDefaultPatch; -} -export interface DeleteOrgPermissionDefaultInput { - clientMutationId?: string; - id: string; -} -export interface CreatePhoneNumberInput { - clientMutationId?: string; - phoneNumber: { - ownerId?: string; - cc: string; - number: string; - isVerified?: boolean; - isPrimary?: boolean; - }; -} -export interface PhoneNumberPatch { - ownerId?: string | null; - cc?: string | null; - number?: string | null; - isVerified?: boolean | null; - isPrimary?: boolean | null; - ccTrgmSimilarity?: number | null; - numberTrgmSimilarity?: number | null; - searchScore?: number | null; -} -export interface UpdatePhoneNumberInput { - clientMutationId?: string; - id: string; - phoneNumberPatch: PhoneNumberPatch; -} -export interface DeletePhoneNumberInput { - clientMutationId?: string; - id: string; -} export interface CreateAppLimitDefaultInput { clientMutationId?: string; appLimitDefault: { @@ -13963,35 +11678,6 @@ export interface DeleteOrgLimitDefaultInput { clientMutationId?: string; id: string; } -export interface CreateConnectedAccountInput { - clientMutationId?: string; - connectedAccount: { - ownerId?: string; - service: string; - identifier: string; - details: Record; - isVerified?: boolean; - }; -} -export interface ConnectedAccountPatch { - ownerId?: string | null; - service?: string | null; - identifier?: string | null; - details?: Record | null; - isVerified?: boolean | null; - serviceTrgmSimilarity?: number | null; - identifierTrgmSimilarity?: number | null; - searchScore?: number | null; -} -export interface UpdateConnectedAccountInput { - clientMutationId?: string; - id: string; - connectedAccountPatch: ConnectedAccountPatch; -} -export interface DeleteConnectedAccountInput { - clientMutationId?: string; - id: string; -} export interface CreateNodeTypeRegistryInput { clientMutationId?: string; nodeTypeRegistry: { @@ -14011,13 +11697,7 @@ export interface NodeTypeRegistryPatch { displayName?: string | null; description?: string | null; parameterSchema?: Record | null; - tags?: string | null; - nameTrgmSimilarity?: number | null; - slugTrgmSimilarity?: number | null; - categoryTrgmSimilarity?: number | null; - displayNameTrgmSimilarity?: number | null; - descriptionTrgmSimilarity?: number | null; - searchScore?: number | null; + tags?: string[] | null; } export interface UpdateNodeTypeRegistryInput { clientMutationId?: string; @@ -14040,9 +11720,6 @@ export interface MembershipTypePatch { name?: string | null; description?: string | null; prefix?: string | null; - descriptionTrgmSimilarity?: number | null; - prefixTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateMembershipTypeInput { clientMutationId?: string; @@ -14070,13 +11747,11 @@ export interface CommitPatch { message?: string | null; databaseId?: string | null; storeId?: string | null; - parentIds?: string | null; + parentIds?: string[] | null; authorId?: string | null; committerId?: string | null; treeId?: string | null; date?: string | null; - messageTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateCommitInput { clientMutationId?: string; @@ -14137,11 +11812,6 @@ export interface RlsModulePatch { authenticateStrict?: string | null; currentRole?: string | null; currentRoleId?: string | null; - authenticateTrgmSimilarity?: number | null; - authenticateStrictTrgmSimilarity?: number | null; - currentRoleTrgmSimilarity?: number | null; - currentRoleIdTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateRlsModuleInput { clientMutationId?: string; @@ -14180,62 +11850,6 @@ export interface DeleteOrgMembershipDefaultInput { clientMutationId?: string; id: string; } -export interface CreateAuditLogInput { - clientMutationId?: string; - auditLog: { - event: string; - actorId?: string; - origin?: ConstructiveInternalTypeOrigin; - userAgent?: string; - ipAddress?: string; - success: boolean; - }; -} -export interface AuditLogPatch { - event?: string | null; - actorId?: string | null; - origin?: ConstructiveInternalTypeOrigin | null; - userAgent?: string | null; - ipAddress?: string | null; - success?: boolean | null; - userAgentTrgmSimilarity?: number | null; - searchScore?: number | null; -} -export interface UpdateAuditLogInput { - clientMutationId?: string; - id: string; - auditLogPatch: AuditLogPatch; -} -export interface DeleteAuditLogInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppLevelInput { - clientMutationId?: string; - appLevel: { - name: string; - description?: string; - image?: ConstructiveInternalTypeImage; - ownerId?: string; - }; -} -export interface AppLevelPatch { - name?: string | null; - description?: string | null; - image?: ConstructiveInternalTypeImage | null; - ownerId?: string | null; - descriptionTrgmSimilarity?: number | null; - searchScore?: number | null; -} -export interface UpdateAppLevelInput { - clientMutationId?: string; - id: string; - appLevelPatch: AppLevelPatch; -} -export interface DeleteAppLevelInput { - clientMutationId?: string; - id: string; -} export interface CreateSqlMigrationInput { clientMutationId?: string; sqlMigration: { @@ -14256,7 +11870,7 @@ export interface SqlMigrationPatch { name?: string | null; databaseId?: string | null; deploy?: string | null; - deps?: string | null; + deps?: string[] | null; payload?: Record | null; content?: string | null; revert?: string | null; @@ -14264,13 +11878,6 @@ export interface SqlMigrationPatch { action?: string | null; actionId?: string | null; actorId?: string | null; - nameTrgmSimilarity?: number | null; - deployTrgmSimilarity?: number | null; - contentTrgmSimilarity?: number | null; - revertTrgmSimilarity?: number | null; - verifyTrgmSimilarity?: number | null; - actionTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateSqlMigrationInput { clientMutationId?: string; @@ -14281,30 +11888,6 @@ export interface DeleteSqlMigrationInput { clientMutationId?: string; id: number; } -export interface CreateEmailInput { - clientMutationId?: string; - email: { - ownerId?: string; - email: ConstructiveInternalTypeEmail; - isVerified?: boolean; - isPrimary?: boolean; - }; -} -export interface EmailPatch { - ownerId?: string | null; - email?: ConstructiveInternalTypeEmail | null; - isVerified?: boolean | null; - isPrimary?: boolean | null; -} -export interface UpdateEmailInput { - clientMutationId?: string; - id: string; - emailPatch: EmailPatch; -} -export interface DeleteEmailInput { - clientMutationId?: string; - id: string; -} export interface CreateUserInput { clientMutationId?: string; user: { @@ -14318,11 +11901,8 @@ export interface UserPatch { username?: string | null; displayName?: string | null; profilePicture?: ConstructiveInternalTypeImage | null; - searchTsv?: string | null; type?: number | null; - searchTsvRank?: number | null; - displayNameTrgmSimilarity?: number | null; - searchScore?: number | null; + profilePictureUpload?: File | null; } export interface UpdateUserInput { clientMutationId?: string; @@ -14352,7 +11932,7 @@ export interface CreateAstMigrationInput { export interface AstMigrationPatch { databaseId?: string | null; name?: string | null; - requires?: string | null; + requires?: string[] | null; payload?: Record | null; deploys?: string | null; deploy?: Record | null; @@ -14361,8 +11941,6 @@ export interface AstMigrationPatch { action?: string | null; actionId?: string | null; actorId?: string | null; - actionTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateAstMigrationInput { clientMutationId?: string; @@ -14457,17 +12035,6 @@ export interface HierarchyModulePatch { getSubordinatesFunction?: string | null; getManagersFunction?: string | null; isManagerOfFunction?: string | null; - chartEdgesTableNameTrgmSimilarity?: number | null; - hierarchySprtTableNameTrgmSimilarity?: number | null; - chartEdgeGrantsTableNameTrgmSimilarity?: number | null; - prefixTrgmSimilarity?: number | null; - privateSchemaNameTrgmSimilarity?: number | null; - sprtTableNameTrgmSimilarity?: number | null; - rebuildHierarchyFunctionTrgmSimilarity?: number | null; - getSubordinatesFunctionTrgmSimilarity?: number | null; - getManagersFunctionTrgmSimilarity?: number | null; - isManagerOfFunctionTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateHierarchyModuleInput { clientMutationId?: string; @@ -14499,6 +12066,9 @@ export const connectionFieldsMap = { viewGrants: 'ViewGrant', viewRules: 'ViewRule', defaultPrivileges: 'DefaultPrivilege', + enums: 'Enum', + embeddingChunks: 'EmbeddingChunk', + databaseTransfers: 'DatabaseTransfer', apis: 'Api', apiModules: 'ApiModule', apiSchemas: 'ApiSchema', @@ -14528,10 +12098,10 @@ export const connectionFieldsMap = { sessionsModules: 'SessionsModule', userAuthModules: 'UserAuthModule', usersModules: 'UsersModule', - uuidModules: 'UuidModule', tableTemplateModules: 'TableTemplateModule', secureTableProvisions: 'SecureTableProvision', relationProvisions: 'RelationProvision', + blueprints: 'Blueprint', databaseProvisionModules: 'DatabaseProvisionModule', }, Schema: { @@ -14539,6 +12109,7 @@ export const connectionFieldsMap = { schemaGrants: 'SchemaGrant', views: 'View', defaultPrivileges: 'DefaultPrivilege', + enums: 'Enum', apiSchemas: 'ApiSchema', tableTemplateModulesByPrivateSchemaId: 'TableTemplateModule', tableTemplateModules: 'TableTemplateModule', @@ -14556,6 +12127,8 @@ export const connectionFieldsMap = { uniqueConstraints: 'UniqueConstraint', views: 'View', viewTables: 'ViewTable', + embeddingChunksByChunksTableId: 'EmbeddingChunk', + embeddingChunks: 'EmbeddingChunk', tableTemplateModulesByOwnerTableId: 'TableTemplateModule', tableTemplateModules: 'TableTemplateModule', secureTableProvisions: 'SecureTableProvision', @@ -14578,19 +12151,29 @@ export const connectionFieldsMap = { siteModules: 'SiteModule', siteThemes: 'SiteTheme', }, + BlueprintTemplate: { + blueprintTemplatesByForkedFromId: 'BlueprintTemplate', + blueprintsByTemplateId: 'Blueprint', + }, User: { ownedDatabases: 'Database', + appAdminGrantsByActorId: 'AppAdminGrant', appAdminGrantsByGrantorId: 'AppAdminGrant', + appOwnerGrantsByActorId: 'AppOwnerGrant', appOwnerGrantsByGrantorId: 'AppOwnerGrant', + appGrantsByActorId: 'AppGrant', appGrantsByGrantorId: 'AppGrant', orgMembershipsByActorId: 'OrgMembership', orgMembershipsByEntityId: 'OrgMembership', orgMembersByActorId: 'OrgMember', orgMembersByEntityId: 'OrgMember', + orgAdminGrantsByActorId: 'OrgAdminGrant', orgAdminGrantsByEntityId: 'OrgAdminGrant', orgAdminGrantsByGrantorId: 'OrgAdminGrant', + orgOwnerGrantsByActorId: 'OrgOwnerGrant', orgOwnerGrantsByEntityId: 'OrgOwnerGrant', orgOwnerGrantsByGrantorId: 'OrgOwnerGrant', + orgGrantsByActorId: 'OrgGrant', orgGrantsByEntityId: 'OrgGrant', orgGrantsByGrantorId: 'OrgGrant', parentOrgChartEdges: 'OrgChartEdge', @@ -14600,30 +12183,47 @@ export const connectionFieldsMap = { orgChartEdgeGrantsByEntityId: 'OrgChartEdgeGrant', orgChartEdgeGrantsByGrantorId: 'OrgChartEdgeGrant', childOrgChartEdgeGrants: 'OrgChartEdgeGrant', + orgPermissionDefaultsByEntityId: 'OrgPermissionDefault', appLimitsByActorId: 'AppLimit', orgLimitsByActorId: 'OrgLimit', orgLimitsByEntityId: 'OrgLimit', appStepsByActorId: 'AppStep', appAchievementsByActorId: 'AppAchievement', + ownedAppLevels: 'AppLevel', + ownedEmails: 'Email', + ownedPhoneNumbers: 'PhoneNumber', + ownedCryptoAddresses: 'CryptoAddress', + ownedConnectedAccounts: 'ConnectedAccount', invitesBySenderId: 'Invite', claimedInvitesByReceiverId: 'ClaimedInvite', claimedInvitesBySenderId: 'ClaimedInvite', orgInvitesByEntityId: 'OrgInvite', + orgInvitesByReceiverId: 'OrgInvite', orgInvitesBySenderId: 'OrgInvite', + orgClaimedInvitesByEntityId: 'OrgClaimedInvite', orgClaimedInvitesByReceiverId: 'OrgClaimedInvite', orgClaimedInvitesBySenderId: 'OrgClaimedInvite', + auditLogsByActorId: 'AuditLog', }, } as Record>; // ============ Custom Input Types (from schema) ============ +export interface SendAccountDeletionEmailInput { + clientMutationId?: string; +} export interface SignOutInput { clientMutationId?: string; } -export interface SendAccountDeletionEmailInput { +export interface AcceptDatabaseTransferInput { clientMutationId?: string; + transferId?: string; } -export interface CheckPasswordInput { +export interface CancelDatabaseTransferInput { clientMutationId?: string; - password?: string; + transferId?: string; +} +export interface RejectDatabaseTransferInput { + clientMutationId?: string; + transferId?: string; } export interface SubmitInviteCodeInput { clientMutationId?: string; @@ -14633,15 +12233,9 @@ export interface SubmitOrgInviteCodeInput { clientMutationId?: string; token?: string; } -export interface FreezeObjectsInput { - clientMutationId?: string; - databaseId?: string; - id?: string; -} -export interface InitEmptyRepoInput { +export interface CheckPasswordInput { clientMutationId?: string; - dbId?: string; - storeId?: string; + password?: string; } export interface ConfirmDeleteAccountInput { clientMutationId?: string; @@ -14658,31 +12252,32 @@ export interface VerifyEmailInput { emailId?: string; token?: string; } -export interface RemoveNodeAtPathInput { +export interface FreezeObjectsInput { clientMutationId?: string; - dbId?: string; - root?: string; - path?: string[]; + databaseId?: string; + id?: string; } -export interface ResetPasswordInput { +export interface InitEmptyRepoInput { clientMutationId?: string; - roleId?: string; - resetToken?: string; - newPassword?: string; + dbId?: string; + storeId?: string; } -export interface BootstrapUserInput { +export interface ConstructBlueprintInput { clientMutationId?: string; - targetDatabaseId?: string; - password?: string; - isAdmin?: boolean; - isOwner?: boolean; - username?: string; - displayName?: string; - returnApiKey?: boolean; + blueprintId?: string; + schemaId?: string; } -export interface SetFieldOrderInput { +export interface ResetPasswordInput { clientMutationId?: string; - fieldIds?: string[]; + roleId?: string; + resetToken?: string; + newPassword?: string; +} +export interface RemoveNodeAtPathInput { + clientMutationId?: string; + dbId?: string; + root?: string; + path?: string[]; } export interface SetDataAtPathInput { clientMutationId?: string; @@ -14699,6 +12294,14 @@ export interface SetPropsAndCommitInput { path?: string[]; data?: Record; } +export interface CopyTemplateToBlueprintInput { + clientMutationId?: string; + templateId?: string; + databaseId?: string; + ownerId?: string; + nameOverride?: string; + displayNameOverride?: string; +} export interface ProvisionDatabaseWithUserInput { clientMutationId?: string; pDatabaseName?: string; @@ -14707,6 +12310,20 @@ export interface ProvisionDatabaseWithUserInput { pModules?: string[]; pOptions?: Record; } +export interface BootstrapUserInput { + clientMutationId?: string; + targetDatabaseId?: string; + password?: string; + isAdmin?: boolean; + isOwner?: boolean; + username?: string; + displayName?: string; + returnApiKey?: boolean; +} +export interface SetFieldOrderInput { + clientMutationId?: string; + fieldIds?: string[]; +} export interface InsertNodeAtPathInput { clientMutationId?: string; dbId?: string; @@ -14787,11 +12404,11 @@ export interface OneTimeTokenInput { origin?: ConstructiveInternalTypeOrigin; rememberMe?: boolean; } -export interface ForgotPasswordInput { +export interface SendVerificationEmailInput { clientMutationId?: string; email?: ConstructiveInternalTypeEmail; } -export interface SendVerificationEmailInput { +export interface ForgotPasswordInput { clientMutationId?: string; email?: ConstructiveInternalTypeEmail; } @@ -14899,52 +12516,64 @@ export type AppLevelRequirementConnectionSelect = { }; totalCount?: boolean; }; +export interface SendAccountDeletionEmailPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type SendAccountDeletionEmailPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; export interface SignOutPayload { clientMutationId?: string | null; } export type SignOutPayloadSelect = { clientMutationId?: boolean; }; -export interface SendAccountDeletionEmailPayload { +export interface AcceptDatabaseTransferPayload { clientMutationId?: string | null; result?: boolean | null; } -export type SendAccountDeletionEmailPayloadSelect = { +export type AcceptDatabaseTransferPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; -export interface CheckPasswordPayload { +export interface CancelDatabaseTransferPayload { clientMutationId?: string | null; + result?: boolean | null; } -export type CheckPasswordPayloadSelect = { +export type CancelDatabaseTransferPayloadSelect = { clientMutationId?: boolean; + result?: boolean; }; -export interface SubmitInviteCodePayload { +export interface RejectDatabaseTransferPayload { clientMutationId?: string | null; result?: boolean | null; } -export type SubmitInviteCodePayloadSelect = { +export type RejectDatabaseTransferPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; -export interface SubmitOrgInviteCodePayload { +export interface SubmitInviteCodePayload { clientMutationId?: string | null; result?: boolean | null; } -export type SubmitOrgInviteCodePayloadSelect = { +export type SubmitInviteCodePayloadSelect = { clientMutationId?: boolean; result?: boolean; }; -export interface FreezeObjectsPayload { +export interface SubmitOrgInviteCodePayload { clientMutationId?: string | null; + result?: boolean | null; } -export type FreezeObjectsPayloadSelect = { +export type SubmitOrgInviteCodePayloadSelect = { clientMutationId?: boolean; + result?: boolean; }; -export interface InitEmptyRepoPayload { +export interface CheckPasswordPayload { clientMutationId?: string | null; } -export type InitEmptyRepoPayloadSelect = { +export type CheckPasswordPayloadSelect = { clientMutationId?: boolean; }; export interface ConfirmDeleteAccountPayload { @@ -14971,37 +12600,41 @@ export type VerifyEmailPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; -export interface RemoveNodeAtPathPayload { +export interface FreezeObjectsPayload { clientMutationId?: string | null; - result?: string | null; } -export type RemoveNodeAtPathPayloadSelect = { +export type FreezeObjectsPayloadSelect = { clientMutationId?: boolean; - result?: boolean; }; -export interface ResetPasswordPayload { +export interface InitEmptyRepoPayload { clientMutationId?: string | null; - result?: boolean | null; } -export type ResetPasswordPayloadSelect = { +export type InitEmptyRepoPayloadSelect = { + clientMutationId?: boolean; +}; +export interface ConstructBlueprintPayload { + clientMutationId?: string | null; + result?: Record | null; +} +export type ConstructBlueprintPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; -export interface BootstrapUserPayload { +export interface ResetPasswordPayload { clientMutationId?: string | null; - result?: BootstrapUserRecord[] | null; + result?: boolean | null; } -export type BootstrapUserPayloadSelect = { +export type ResetPasswordPayloadSelect = { clientMutationId?: boolean; - result?: { - select: BootstrapUserRecordSelect; - }; + result?: boolean; }; -export interface SetFieldOrderPayload { +export interface RemoveNodeAtPathPayload { clientMutationId?: string | null; + result?: string | null; } -export type SetFieldOrderPayloadSelect = { +export type RemoveNodeAtPathPayloadSelect = { clientMutationId?: boolean; + result?: boolean; }; export interface SetDataAtPathPayload { clientMutationId?: string | null; @@ -15019,6 +12652,14 @@ export type SetPropsAndCommitPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface CopyTemplateToBlueprintPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type CopyTemplateToBlueprintPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; export interface ProvisionDatabaseWithUserPayload { clientMutationId?: string | null; result?: ProvisionDatabaseWithUserRecord[] | null; @@ -15029,6 +12670,22 @@ export type ProvisionDatabaseWithUserPayloadSelect = { select: ProvisionDatabaseWithUserRecordSelect; }; }; +export interface BootstrapUserPayload { + clientMutationId?: string | null; + result?: BootstrapUserRecord[] | null; +} +export type BootstrapUserPayloadSelect = { + clientMutationId?: boolean; + result?: { + select: BootstrapUserRecordSelect; + }; +}; +export interface SetFieldOrderPayload { + clientMutationId?: string | null; +} +export type SetFieldOrderPayloadSelect = { + clientMutationId?: boolean; +}; export interface InsertNodeAtPathPayload { clientMutationId?: string | null; result?: string | null; @@ -15115,12 +12772,6 @@ export type OneTimeTokenPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; -export interface ForgotPasswordPayload { - clientMutationId?: string | null; -} -export type ForgotPasswordPayloadSelect = { - clientMutationId?: boolean; -}; export interface SendVerificationEmailPayload { clientMutationId?: string | null; result?: boolean | null; @@ -15129,6 +12780,12 @@ export type SendVerificationEmailPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface ForgotPasswordPayload { + clientMutationId?: string | null; +} +export type ForgotPasswordPayloadSelect = { + clientMutationId?: boolean; +}; export interface VerifyPasswordPayload { clientMutationId?: string | null; result?: Session | null; @@ -16094,6 +13751,51 @@ export type DeleteViewRulePayloadSelect = { select: ViewRuleEdgeSelect; }; }; +export interface CreateEmbeddingChunkPayload { + clientMutationId?: string | null; + /** The `EmbeddingChunk` that was created by this mutation. */ + embeddingChunk?: EmbeddingChunk | null; + embeddingChunkEdge?: EmbeddingChunkEdge | null; +} +export type CreateEmbeddingChunkPayloadSelect = { + clientMutationId?: boolean; + embeddingChunk?: { + select: EmbeddingChunkSelect; + }; + embeddingChunkEdge?: { + select: EmbeddingChunkEdgeSelect; + }; +}; +export interface UpdateEmbeddingChunkPayload { + clientMutationId?: string | null; + /** The `EmbeddingChunk` that was updated by this mutation. */ + embeddingChunk?: EmbeddingChunk | null; + embeddingChunkEdge?: EmbeddingChunkEdge | null; +} +export type UpdateEmbeddingChunkPayloadSelect = { + clientMutationId?: boolean; + embeddingChunk?: { + select: EmbeddingChunkSelect; + }; + embeddingChunkEdge?: { + select: EmbeddingChunkEdgeSelect; + }; +}; +export interface DeleteEmbeddingChunkPayload { + clientMutationId?: string | null; + /** The `EmbeddingChunk` that was deleted by this mutation. */ + embeddingChunk?: EmbeddingChunk | null; + embeddingChunkEdge?: EmbeddingChunkEdge | null; +} +export type DeleteEmbeddingChunkPayloadSelect = { + clientMutationId?: boolean; + embeddingChunk?: { + select: EmbeddingChunkSelect; + }; + embeddingChunkEdge?: { + select: EmbeddingChunkEdgeSelect; + }; +}; export interface CreateTableTemplateModulePayload { clientMutationId?: string | null; /** The `TableTemplateModule` that was created by this mutation. */ @@ -16319,6 +14021,51 @@ export type DeleteDefaultPrivilegePayloadSelect = { select: DefaultPrivilegeEdgeSelect; }; }; +export interface CreateEnumPayload { + clientMutationId?: string | null; + /** The `Enum` that was created by this mutation. */ + enum?: Enum | null; + enumEdge?: EnumEdge | null; +} +export type CreateEnumPayloadSelect = { + clientMutationId?: boolean; + enum?: { + select: EnumSelect; + }; + enumEdge?: { + select: EnumEdgeSelect; + }; +}; +export interface UpdateEnumPayload { + clientMutationId?: string | null; + /** The `Enum` that was updated by this mutation. */ + enum?: Enum | null; + enumEdge?: EnumEdge | null; +} +export type UpdateEnumPayloadSelect = { + clientMutationId?: boolean; + enum?: { + select: EnumSelect; + }; + enumEdge?: { + select: EnumEdgeSelect; + }; +}; +export interface DeleteEnumPayload { + clientMutationId?: string | null; + /** The `Enum` that was deleted by this mutation. */ + enum?: Enum | null; + enumEdge?: EnumEdge | null; +} +export type DeleteEnumPayloadSelect = { + clientMutationId?: boolean; + enum?: { + select: EnumSelect; + }; + enumEdge?: { + select: EnumEdgeSelect; + }; +}; export interface CreateApiSchemaPayload { clientMutationId?: string | null; /** The `ApiSchema` that was created by this mutation. */ @@ -16634,6 +14381,51 @@ export type DeleteTriggerFunctionPayloadSelect = { select: TriggerFunctionEdgeSelect; }; }; +export interface CreateDatabaseTransferPayload { + clientMutationId?: string | null; + /** The `DatabaseTransfer` that was created by this mutation. */ + databaseTransfer?: DatabaseTransfer | null; + databaseTransferEdge?: DatabaseTransferEdge | null; +} +export type CreateDatabaseTransferPayloadSelect = { + clientMutationId?: boolean; + databaseTransfer?: { + select: DatabaseTransferSelect; + }; + databaseTransferEdge?: { + select: DatabaseTransferEdgeSelect; + }; +}; +export interface UpdateDatabaseTransferPayload { + clientMutationId?: string | null; + /** The `DatabaseTransfer` that was updated by this mutation. */ + databaseTransfer?: DatabaseTransfer | null; + databaseTransferEdge?: DatabaseTransferEdge | null; +} +export type UpdateDatabaseTransferPayloadSelect = { + clientMutationId?: boolean; + databaseTransfer?: { + select: DatabaseTransferSelect; + }; + databaseTransferEdge?: { + select: DatabaseTransferEdgeSelect; + }; +}; +export interface DeleteDatabaseTransferPayload { + clientMutationId?: string | null; + /** The `DatabaseTransfer` that was deleted by this mutation. */ + databaseTransfer?: DatabaseTransfer | null; + databaseTransferEdge?: DatabaseTransferEdge | null; +} +export type DeleteDatabaseTransferPayloadSelect = { + clientMutationId?: boolean; + databaseTransfer?: { + select: DatabaseTransferSelect; + }; + databaseTransferEdge?: { + select: DatabaseTransferEdgeSelect; + }; +}; export interface CreateApiPayload { clientMutationId?: string | null; /** The `Api` that was created by this mutation. */ @@ -17669,49 +15461,94 @@ export type DeleteUsersModulePayloadSelect = { select: UsersModuleEdgeSelect; }; }; -export interface CreateUuidModulePayload { +export interface CreateBlueprintPayload { + clientMutationId?: string | null; + /** The `Blueprint` that was created by this mutation. */ + blueprint?: Blueprint | null; + blueprintEdge?: BlueprintEdge | null; +} +export type CreateBlueprintPayloadSelect = { + clientMutationId?: boolean; + blueprint?: { + select: BlueprintSelect; + }; + blueprintEdge?: { + select: BlueprintEdgeSelect; + }; +}; +export interface UpdateBlueprintPayload { + clientMutationId?: string | null; + /** The `Blueprint` that was updated by this mutation. */ + blueprint?: Blueprint | null; + blueprintEdge?: BlueprintEdge | null; +} +export type UpdateBlueprintPayloadSelect = { + clientMutationId?: boolean; + blueprint?: { + select: BlueprintSelect; + }; + blueprintEdge?: { + select: BlueprintEdgeSelect; + }; +}; +export interface DeleteBlueprintPayload { + clientMutationId?: string | null; + /** The `Blueprint` that was deleted by this mutation. */ + blueprint?: Blueprint | null; + blueprintEdge?: BlueprintEdge | null; +} +export type DeleteBlueprintPayloadSelect = { + clientMutationId?: boolean; + blueprint?: { + select: BlueprintSelect; + }; + blueprintEdge?: { + select: BlueprintEdgeSelect; + }; +}; +export interface CreateBlueprintTemplatePayload { clientMutationId?: string | null; - /** The `UuidModule` that was created by this mutation. */ - uuidModule?: UuidModule | null; - uuidModuleEdge?: UuidModuleEdge | null; + /** The `BlueprintTemplate` that was created by this mutation. */ + blueprintTemplate?: BlueprintTemplate | null; + blueprintTemplateEdge?: BlueprintTemplateEdge | null; } -export type CreateUuidModulePayloadSelect = { +export type CreateBlueprintTemplatePayloadSelect = { clientMutationId?: boolean; - uuidModule?: { - select: UuidModuleSelect; + blueprintTemplate?: { + select: BlueprintTemplateSelect; }; - uuidModuleEdge?: { - select: UuidModuleEdgeSelect; + blueprintTemplateEdge?: { + select: BlueprintTemplateEdgeSelect; }; }; -export interface UpdateUuidModulePayload { +export interface UpdateBlueprintTemplatePayload { clientMutationId?: string | null; - /** The `UuidModule` that was updated by this mutation. */ - uuidModule?: UuidModule | null; - uuidModuleEdge?: UuidModuleEdge | null; + /** The `BlueprintTemplate` that was updated by this mutation. */ + blueprintTemplate?: BlueprintTemplate | null; + blueprintTemplateEdge?: BlueprintTemplateEdge | null; } -export type UpdateUuidModulePayloadSelect = { +export type UpdateBlueprintTemplatePayloadSelect = { clientMutationId?: boolean; - uuidModule?: { - select: UuidModuleSelect; + blueprintTemplate?: { + select: BlueprintTemplateSelect; }; - uuidModuleEdge?: { - select: UuidModuleEdgeSelect; + blueprintTemplateEdge?: { + select: BlueprintTemplateEdgeSelect; }; }; -export interface DeleteUuidModulePayload { +export interface DeleteBlueprintTemplatePayload { clientMutationId?: string | null; - /** The `UuidModule` that was deleted by this mutation. */ - uuidModule?: UuidModule | null; - uuidModuleEdge?: UuidModuleEdge | null; + /** The `BlueprintTemplate` that was deleted by this mutation. */ + blueprintTemplate?: BlueprintTemplate | null; + blueprintTemplateEdge?: BlueprintTemplateEdge | null; } -export type DeleteUuidModulePayloadSelect = { +export type DeleteBlueprintTemplatePayloadSelect = { clientMutationId?: boolean; - uuidModule?: { - select: UuidModuleSelect; + blueprintTemplate?: { + select: BlueprintTemplateSelect; }; - uuidModuleEdge?: { - select: UuidModuleEdgeSelect; + blueprintTemplateEdge?: { + select: BlueprintTemplateEdgeSelect; }; }; export interface CreateDatabaseProvisionModulePayload { @@ -18209,6 +16046,51 @@ export type DeleteOrgChartEdgeGrantPayloadSelect = { select: OrgChartEdgeGrantEdgeSelect; }; }; +export interface CreateOrgPermissionDefaultPayload { + clientMutationId?: string | null; + /** The `OrgPermissionDefault` that was created by this mutation. */ + orgPermissionDefault?: OrgPermissionDefault | null; + orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; +} +export type CreateOrgPermissionDefaultPayloadSelect = { + clientMutationId?: boolean; + orgPermissionDefault?: { + select: OrgPermissionDefaultSelect; + }; + orgPermissionDefaultEdge?: { + select: OrgPermissionDefaultEdgeSelect; + }; +}; +export interface UpdateOrgPermissionDefaultPayload { + clientMutationId?: string | null; + /** The `OrgPermissionDefault` that was updated by this mutation. */ + orgPermissionDefault?: OrgPermissionDefault | null; + orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; +} +export type UpdateOrgPermissionDefaultPayloadSelect = { + clientMutationId?: boolean; + orgPermissionDefault?: { + select: OrgPermissionDefaultSelect; + }; + orgPermissionDefaultEdge?: { + select: OrgPermissionDefaultEdgeSelect; + }; +}; +export interface DeleteOrgPermissionDefaultPayload { + clientMutationId?: string | null; + /** The `OrgPermissionDefault` that was deleted by this mutation. */ + orgPermissionDefault?: OrgPermissionDefault | null; + orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; +} +export type DeleteOrgPermissionDefaultPayloadSelect = { + clientMutationId?: boolean; + orgPermissionDefault?: { + select: OrgPermissionDefaultSelect; + }; + orgPermissionDefaultEdge?: { + select: OrgPermissionDefaultEdgeSelect; + }; +}; export interface CreateAppLimitPayload { clientMutationId?: string | null; /** The `AppLimit` that was created by this mutation. */ @@ -18329,64 +16211,289 @@ export type UpdateAppStepPayloadSelect = { select: AppStepEdgeSelect; }; }; -export interface DeleteAppStepPayload { +export interface DeleteAppStepPayload { + clientMutationId?: string | null; + /** The `AppStep` that was deleted by this mutation. */ + appStep?: AppStep | null; + appStepEdge?: AppStepEdge | null; +} +export type DeleteAppStepPayloadSelect = { + clientMutationId?: boolean; + appStep?: { + select: AppStepSelect; + }; + appStepEdge?: { + select: AppStepEdgeSelect; + }; +}; +export interface CreateAppAchievementPayload { + clientMutationId?: string | null; + /** The `AppAchievement` that was created by this mutation. */ + appAchievement?: AppAchievement | null; + appAchievementEdge?: AppAchievementEdge | null; +} +export type CreateAppAchievementPayloadSelect = { + clientMutationId?: boolean; + appAchievement?: { + select: AppAchievementSelect; + }; + appAchievementEdge?: { + select: AppAchievementEdgeSelect; + }; +}; +export interface UpdateAppAchievementPayload { + clientMutationId?: string | null; + /** The `AppAchievement` that was updated by this mutation. */ + appAchievement?: AppAchievement | null; + appAchievementEdge?: AppAchievementEdge | null; +} +export type UpdateAppAchievementPayloadSelect = { + clientMutationId?: boolean; + appAchievement?: { + select: AppAchievementSelect; + }; + appAchievementEdge?: { + select: AppAchievementEdgeSelect; + }; +}; +export interface DeleteAppAchievementPayload { + clientMutationId?: string | null; + /** The `AppAchievement` that was deleted by this mutation. */ + appAchievement?: AppAchievement | null; + appAchievementEdge?: AppAchievementEdge | null; +} +export type DeleteAppAchievementPayloadSelect = { + clientMutationId?: boolean; + appAchievement?: { + select: AppAchievementSelect; + }; + appAchievementEdge?: { + select: AppAchievementEdgeSelect; + }; +}; +export interface CreateAppLevelPayload { + clientMutationId?: string | null; + /** The `AppLevel` that was created by this mutation. */ + appLevel?: AppLevel | null; + appLevelEdge?: AppLevelEdge | null; +} +export type CreateAppLevelPayloadSelect = { + clientMutationId?: boolean; + appLevel?: { + select: AppLevelSelect; + }; + appLevelEdge?: { + select: AppLevelEdgeSelect; + }; +}; +export interface UpdateAppLevelPayload { + clientMutationId?: string | null; + /** The `AppLevel` that was updated by this mutation. */ + appLevel?: AppLevel | null; + appLevelEdge?: AppLevelEdge | null; +} +export type UpdateAppLevelPayloadSelect = { + clientMutationId?: boolean; + appLevel?: { + select: AppLevelSelect; + }; + appLevelEdge?: { + select: AppLevelEdgeSelect; + }; +}; +export interface DeleteAppLevelPayload { + clientMutationId?: string | null; + /** The `AppLevel` that was deleted by this mutation. */ + appLevel?: AppLevel | null; + appLevelEdge?: AppLevelEdge | null; +} +export type DeleteAppLevelPayloadSelect = { + clientMutationId?: boolean; + appLevel?: { + select: AppLevelSelect; + }; + appLevelEdge?: { + select: AppLevelEdgeSelect; + }; +}; +export interface CreateEmailPayload { + clientMutationId?: string | null; + /** The `Email` that was created by this mutation. */ + email?: Email | null; + emailEdge?: EmailEdge | null; +} +export type CreateEmailPayloadSelect = { + clientMutationId?: boolean; + email?: { + select: EmailSelect; + }; + emailEdge?: { + select: EmailEdgeSelect; + }; +}; +export interface UpdateEmailPayload { + clientMutationId?: string | null; + /** The `Email` that was updated by this mutation. */ + email?: Email | null; + emailEdge?: EmailEdge | null; +} +export type UpdateEmailPayloadSelect = { + clientMutationId?: boolean; + email?: { + select: EmailSelect; + }; + emailEdge?: { + select: EmailEdgeSelect; + }; +}; +export interface DeleteEmailPayload { + clientMutationId?: string | null; + /** The `Email` that was deleted by this mutation. */ + email?: Email | null; + emailEdge?: EmailEdge | null; +} +export type DeleteEmailPayloadSelect = { + clientMutationId?: boolean; + email?: { + select: EmailSelect; + }; + emailEdge?: { + select: EmailEdgeSelect; + }; +}; +export interface CreatePhoneNumberPayload { + clientMutationId?: string | null; + /** The `PhoneNumber` that was created by this mutation. */ + phoneNumber?: PhoneNumber | null; + phoneNumberEdge?: PhoneNumberEdge | null; +} +export type CreatePhoneNumberPayloadSelect = { + clientMutationId?: boolean; + phoneNumber?: { + select: PhoneNumberSelect; + }; + phoneNumberEdge?: { + select: PhoneNumberEdgeSelect; + }; +}; +export interface UpdatePhoneNumberPayload { + clientMutationId?: string | null; + /** The `PhoneNumber` that was updated by this mutation. */ + phoneNumber?: PhoneNumber | null; + phoneNumberEdge?: PhoneNumberEdge | null; +} +export type UpdatePhoneNumberPayloadSelect = { + clientMutationId?: boolean; + phoneNumber?: { + select: PhoneNumberSelect; + }; + phoneNumberEdge?: { + select: PhoneNumberEdgeSelect; + }; +}; +export interface DeletePhoneNumberPayload { + clientMutationId?: string | null; + /** The `PhoneNumber` that was deleted by this mutation. */ + phoneNumber?: PhoneNumber | null; + phoneNumberEdge?: PhoneNumberEdge | null; +} +export type DeletePhoneNumberPayloadSelect = { + clientMutationId?: boolean; + phoneNumber?: { + select: PhoneNumberSelect; + }; + phoneNumberEdge?: { + select: PhoneNumberEdgeSelect; + }; +}; +export interface CreateCryptoAddressPayload { + clientMutationId?: string | null; + /** The `CryptoAddress` that was created by this mutation. */ + cryptoAddress?: CryptoAddress | null; + cryptoAddressEdge?: CryptoAddressEdge | null; +} +export type CreateCryptoAddressPayloadSelect = { + clientMutationId?: boolean; + cryptoAddress?: { + select: CryptoAddressSelect; + }; + cryptoAddressEdge?: { + select: CryptoAddressEdgeSelect; + }; +}; +export interface UpdateCryptoAddressPayload { + clientMutationId?: string | null; + /** The `CryptoAddress` that was updated by this mutation. */ + cryptoAddress?: CryptoAddress | null; + cryptoAddressEdge?: CryptoAddressEdge | null; +} +export type UpdateCryptoAddressPayloadSelect = { + clientMutationId?: boolean; + cryptoAddress?: { + select: CryptoAddressSelect; + }; + cryptoAddressEdge?: { + select: CryptoAddressEdgeSelect; + }; +}; +export interface DeleteCryptoAddressPayload { clientMutationId?: string | null; - /** The `AppStep` that was deleted by this mutation. */ - appStep?: AppStep | null; - appStepEdge?: AppStepEdge | null; + /** The `CryptoAddress` that was deleted by this mutation. */ + cryptoAddress?: CryptoAddress | null; + cryptoAddressEdge?: CryptoAddressEdge | null; } -export type DeleteAppStepPayloadSelect = { +export type DeleteCryptoAddressPayloadSelect = { clientMutationId?: boolean; - appStep?: { - select: AppStepSelect; + cryptoAddress?: { + select: CryptoAddressSelect; }; - appStepEdge?: { - select: AppStepEdgeSelect; + cryptoAddressEdge?: { + select: CryptoAddressEdgeSelect; }; }; -export interface CreateAppAchievementPayload { +export interface CreateConnectedAccountPayload { clientMutationId?: string | null; - /** The `AppAchievement` that was created by this mutation. */ - appAchievement?: AppAchievement | null; - appAchievementEdge?: AppAchievementEdge | null; + /** The `ConnectedAccount` that was created by this mutation. */ + connectedAccount?: ConnectedAccount | null; + connectedAccountEdge?: ConnectedAccountEdge | null; } -export type CreateAppAchievementPayloadSelect = { +export type CreateConnectedAccountPayloadSelect = { clientMutationId?: boolean; - appAchievement?: { - select: AppAchievementSelect; + connectedAccount?: { + select: ConnectedAccountSelect; }; - appAchievementEdge?: { - select: AppAchievementEdgeSelect; + connectedAccountEdge?: { + select: ConnectedAccountEdgeSelect; }; }; -export interface UpdateAppAchievementPayload { +export interface UpdateConnectedAccountPayload { clientMutationId?: string | null; - /** The `AppAchievement` that was updated by this mutation. */ - appAchievement?: AppAchievement | null; - appAchievementEdge?: AppAchievementEdge | null; + /** The `ConnectedAccount` that was updated by this mutation. */ + connectedAccount?: ConnectedAccount | null; + connectedAccountEdge?: ConnectedAccountEdge | null; } -export type UpdateAppAchievementPayloadSelect = { +export type UpdateConnectedAccountPayloadSelect = { clientMutationId?: boolean; - appAchievement?: { - select: AppAchievementSelect; + connectedAccount?: { + select: ConnectedAccountSelect; }; - appAchievementEdge?: { - select: AppAchievementEdgeSelect; + connectedAccountEdge?: { + select: ConnectedAccountEdgeSelect; }; }; -export interface DeleteAppAchievementPayload { +export interface DeleteConnectedAccountPayload { clientMutationId?: string | null; - /** The `AppAchievement` that was deleted by this mutation. */ - appAchievement?: AppAchievement | null; - appAchievementEdge?: AppAchievementEdge | null; + /** The `ConnectedAccount` that was deleted by this mutation. */ + connectedAccount?: ConnectedAccount | null; + connectedAccountEdge?: ConnectedAccountEdge | null; } -export type DeleteAppAchievementPayloadSelect = { +export type DeleteConnectedAccountPayloadSelect = { clientMutationId?: boolean; - appAchievement?: { - select: AppAchievementSelect; + connectedAccount?: { + select: ConnectedAccountSelect; }; - appAchievementEdge?: { - select: AppAchievementEdgeSelect; + connectedAccountEdge?: { + select: ConnectedAccountEdgeSelect; }; }; export interface CreateInvitePayload { @@ -18569,6 +16676,51 @@ export type DeleteOrgClaimedInvitePayloadSelect = { select: OrgClaimedInviteEdgeSelect; }; }; +export interface CreateAuditLogPayload { + clientMutationId?: string | null; + /** The `AuditLog` that was created by this mutation. */ + auditLog?: AuditLog | null; + auditLogEdge?: AuditLogEdge | null; +} +export type CreateAuditLogPayloadSelect = { + clientMutationId?: boolean; + auditLog?: { + select: AuditLogSelect; + }; + auditLogEdge?: { + select: AuditLogEdgeSelect; + }; +}; +export interface UpdateAuditLogPayload { + clientMutationId?: string | null; + /** The `AuditLog` that was updated by this mutation. */ + auditLog?: AuditLog | null; + auditLogEdge?: AuditLogEdge | null; +} +export type UpdateAuditLogPayloadSelect = { + clientMutationId?: boolean; + auditLog?: { + select: AuditLogSelect; + }; + auditLogEdge?: { + select: AuditLogEdgeSelect; + }; +}; +export interface DeleteAuditLogPayload { + clientMutationId?: string | null; + /** The `AuditLog` that was deleted by this mutation. */ + auditLog?: AuditLog | null; + auditLogEdge?: AuditLogEdge | null; +} +export type DeleteAuditLogPayloadSelect = { + clientMutationId?: boolean; + auditLog?: { + select: AuditLogSelect; + }; + auditLogEdge?: { + select: AuditLogEdgeSelect; + }; +}; export interface CreateRefPayload { clientMutationId?: string | null; /** The `Ref` that was created by this mutation. */ @@ -18682,206 +16834,71 @@ export interface UpdateAppPermissionDefaultPayload { } export type UpdateAppPermissionDefaultPayloadSelect = { clientMutationId?: boolean; - appPermissionDefault?: { - select: AppPermissionDefaultSelect; - }; - appPermissionDefaultEdge?: { - select: AppPermissionDefaultEdgeSelect; - }; -}; -export interface DeleteAppPermissionDefaultPayload { - clientMutationId?: string | null; - /** The `AppPermissionDefault` that was deleted by this mutation. */ - appPermissionDefault?: AppPermissionDefault | null; - appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; -} -export type DeleteAppPermissionDefaultPayloadSelect = { - clientMutationId?: boolean; - appPermissionDefault?: { - select: AppPermissionDefaultSelect; - }; - appPermissionDefaultEdge?: { - select: AppPermissionDefaultEdgeSelect; - }; -}; -export interface CreateCryptoAddressPayload { - clientMutationId?: string | null; - /** The `CryptoAddress` that was created by this mutation. */ - cryptoAddress?: CryptoAddress | null; - cryptoAddressEdge?: CryptoAddressEdge | null; -} -export type CreateCryptoAddressPayloadSelect = { - clientMutationId?: boolean; - cryptoAddress?: { - select: CryptoAddressSelect; - }; - cryptoAddressEdge?: { - select: CryptoAddressEdgeSelect; - }; -}; -export interface UpdateCryptoAddressPayload { - clientMutationId?: string | null; - /** The `CryptoAddress` that was updated by this mutation. */ - cryptoAddress?: CryptoAddress | null; - cryptoAddressEdge?: CryptoAddressEdge | null; -} -export type UpdateCryptoAddressPayloadSelect = { - clientMutationId?: boolean; - cryptoAddress?: { - select: CryptoAddressSelect; - }; - cryptoAddressEdge?: { - select: CryptoAddressEdgeSelect; - }; -}; -export interface DeleteCryptoAddressPayload { - clientMutationId?: string | null; - /** The `CryptoAddress` that was deleted by this mutation. */ - cryptoAddress?: CryptoAddress | null; - cryptoAddressEdge?: CryptoAddressEdge | null; -} -export type DeleteCryptoAddressPayloadSelect = { - clientMutationId?: boolean; - cryptoAddress?: { - select: CryptoAddressSelect; - }; - cryptoAddressEdge?: { - select: CryptoAddressEdgeSelect; - }; -}; -export interface CreateRoleTypePayload { - clientMutationId?: string | null; - /** The `RoleType` that was created by this mutation. */ - roleType?: RoleType | null; - roleTypeEdge?: RoleTypeEdge | null; -} -export type CreateRoleTypePayloadSelect = { - clientMutationId?: boolean; - roleType?: { - select: RoleTypeSelect; - }; - roleTypeEdge?: { - select: RoleTypeEdgeSelect; - }; -}; -export interface UpdateRoleTypePayload { - clientMutationId?: string | null; - /** The `RoleType` that was updated by this mutation. */ - roleType?: RoleType | null; - roleTypeEdge?: RoleTypeEdge | null; -} -export type UpdateRoleTypePayloadSelect = { - clientMutationId?: boolean; - roleType?: { - select: RoleTypeSelect; - }; - roleTypeEdge?: { - select: RoleTypeEdgeSelect; - }; -}; -export interface DeleteRoleTypePayload { - clientMutationId?: string | null; - /** The `RoleType` that was deleted by this mutation. */ - roleType?: RoleType | null; - roleTypeEdge?: RoleTypeEdge | null; -} -export type DeleteRoleTypePayloadSelect = { - clientMutationId?: boolean; - roleType?: { - select: RoleTypeSelect; - }; - roleTypeEdge?: { - select: RoleTypeEdgeSelect; - }; -}; -export interface CreateOrgPermissionDefaultPayload { - clientMutationId?: string | null; - /** The `OrgPermissionDefault` that was created by this mutation. */ - orgPermissionDefault?: OrgPermissionDefault | null; - orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; -} -export type CreateOrgPermissionDefaultPayloadSelect = { - clientMutationId?: boolean; - orgPermissionDefault?: { - select: OrgPermissionDefaultSelect; - }; - orgPermissionDefaultEdge?: { - select: OrgPermissionDefaultEdgeSelect; - }; -}; -export interface UpdateOrgPermissionDefaultPayload { - clientMutationId?: string | null; - /** The `OrgPermissionDefault` that was updated by this mutation. */ - orgPermissionDefault?: OrgPermissionDefault | null; - orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; -} -export type UpdateOrgPermissionDefaultPayloadSelect = { - clientMutationId?: boolean; - orgPermissionDefault?: { - select: OrgPermissionDefaultSelect; + appPermissionDefault?: { + select: AppPermissionDefaultSelect; }; - orgPermissionDefaultEdge?: { - select: OrgPermissionDefaultEdgeSelect; + appPermissionDefaultEdge?: { + select: AppPermissionDefaultEdgeSelect; }; }; -export interface DeleteOrgPermissionDefaultPayload { +export interface DeleteAppPermissionDefaultPayload { clientMutationId?: string | null; - /** The `OrgPermissionDefault` that was deleted by this mutation. */ - orgPermissionDefault?: OrgPermissionDefault | null; - orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; + /** The `AppPermissionDefault` that was deleted by this mutation. */ + appPermissionDefault?: AppPermissionDefault | null; + appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; } -export type DeleteOrgPermissionDefaultPayloadSelect = { +export type DeleteAppPermissionDefaultPayloadSelect = { clientMutationId?: boolean; - orgPermissionDefault?: { - select: OrgPermissionDefaultSelect; + appPermissionDefault?: { + select: AppPermissionDefaultSelect; }; - orgPermissionDefaultEdge?: { - select: OrgPermissionDefaultEdgeSelect; + appPermissionDefaultEdge?: { + select: AppPermissionDefaultEdgeSelect; }; }; -export interface CreatePhoneNumberPayload { +export interface CreateRoleTypePayload { clientMutationId?: string | null; - /** The `PhoneNumber` that was created by this mutation. */ - phoneNumber?: PhoneNumber | null; - phoneNumberEdge?: PhoneNumberEdge | null; + /** The `RoleType` that was created by this mutation. */ + roleType?: RoleType | null; + roleTypeEdge?: RoleTypeEdge | null; } -export type CreatePhoneNumberPayloadSelect = { +export type CreateRoleTypePayloadSelect = { clientMutationId?: boolean; - phoneNumber?: { - select: PhoneNumberSelect; + roleType?: { + select: RoleTypeSelect; }; - phoneNumberEdge?: { - select: PhoneNumberEdgeSelect; + roleTypeEdge?: { + select: RoleTypeEdgeSelect; }; }; -export interface UpdatePhoneNumberPayload { +export interface UpdateRoleTypePayload { clientMutationId?: string | null; - /** The `PhoneNumber` that was updated by this mutation. */ - phoneNumber?: PhoneNumber | null; - phoneNumberEdge?: PhoneNumberEdge | null; + /** The `RoleType` that was updated by this mutation. */ + roleType?: RoleType | null; + roleTypeEdge?: RoleTypeEdge | null; } -export type UpdatePhoneNumberPayloadSelect = { +export type UpdateRoleTypePayloadSelect = { clientMutationId?: boolean; - phoneNumber?: { - select: PhoneNumberSelect; + roleType?: { + select: RoleTypeSelect; }; - phoneNumberEdge?: { - select: PhoneNumberEdgeSelect; + roleTypeEdge?: { + select: RoleTypeEdgeSelect; }; }; -export interface DeletePhoneNumberPayload { +export interface DeleteRoleTypePayload { clientMutationId?: string | null; - /** The `PhoneNumber` that was deleted by this mutation. */ - phoneNumber?: PhoneNumber | null; - phoneNumberEdge?: PhoneNumberEdge | null; + /** The `RoleType` that was deleted by this mutation. */ + roleType?: RoleType | null; + roleTypeEdge?: RoleTypeEdge | null; } -export type DeletePhoneNumberPayloadSelect = { +export type DeleteRoleTypePayloadSelect = { clientMutationId?: boolean; - phoneNumber?: { - select: PhoneNumberSelect; + roleType?: { + select: RoleTypeSelect; }; - phoneNumberEdge?: { - select: PhoneNumberEdgeSelect; + roleTypeEdge?: { + select: RoleTypeEdgeSelect; }; }; export interface CreateAppLimitDefaultPayload { @@ -18974,51 +16991,6 @@ export type DeleteOrgLimitDefaultPayloadSelect = { select: OrgLimitDefaultEdgeSelect; }; }; -export interface CreateConnectedAccountPayload { - clientMutationId?: string | null; - /** The `ConnectedAccount` that was created by this mutation. */ - connectedAccount?: ConnectedAccount | null; - connectedAccountEdge?: ConnectedAccountEdge | null; -} -export type CreateConnectedAccountPayloadSelect = { - clientMutationId?: boolean; - connectedAccount?: { - select: ConnectedAccountSelect; - }; - connectedAccountEdge?: { - select: ConnectedAccountEdgeSelect; - }; -}; -export interface UpdateConnectedAccountPayload { - clientMutationId?: string | null; - /** The `ConnectedAccount` that was updated by this mutation. */ - connectedAccount?: ConnectedAccount | null; - connectedAccountEdge?: ConnectedAccountEdge | null; -} -export type UpdateConnectedAccountPayloadSelect = { - clientMutationId?: boolean; - connectedAccount?: { - select: ConnectedAccountSelect; - }; - connectedAccountEdge?: { - select: ConnectedAccountEdgeSelect; - }; -}; -export interface DeleteConnectedAccountPayload { - clientMutationId?: string | null; - /** The `ConnectedAccount` that was deleted by this mutation. */ - connectedAccount?: ConnectedAccount | null; - connectedAccountEdge?: ConnectedAccountEdge | null; -} -export type DeleteConnectedAccountPayloadSelect = { - clientMutationId?: boolean; - connectedAccount?: { - select: ConnectedAccountSelect; - }; - connectedAccountEdge?: { - select: ConnectedAccountEdgeSelect; - }; -}; export interface CreateNodeTypeRegistryPayload { clientMutationId?: string | null; /** The `NodeTypeRegistry` that was created by this mutation. */ @@ -19270,169 +17242,34 @@ export type UpdateOrgMembershipDefaultPayloadSelect = { orgMembershipDefault?: { select: OrgMembershipDefaultSelect; }; - orgMembershipDefaultEdge?: { - select: OrgMembershipDefaultEdgeSelect; - }; -}; -export interface DeleteOrgMembershipDefaultPayload { - clientMutationId?: string | null; - /** The `OrgMembershipDefault` that was deleted by this mutation. */ - orgMembershipDefault?: OrgMembershipDefault | null; - orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; -} -export type DeleteOrgMembershipDefaultPayloadSelect = { - clientMutationId?: boolean; - orgMembershipDefault?: { - select: OrgMembershipDefaultSelect; - }; - orgMembershipDefaultEdge?: { - select: OrgMembershipDefaultEdgeSelect; - }; -}; -export interface CreateAuditLogPayload { - clientMutationId?: string | null; - /** The `AuditLog` that was created by this mutation. */ - auditLog?: AuditLog | null; - auditLogEdge?: AuditLogEdge | null; -} -export type CreateAuditLogPayloadSelect = { - clientMutationId?: boolean; - auditLog?: { - select: AuditLogSelect; - }; - auditLogEdge?: { - select: AuditLogEdgeSelect; - }; -}; -export interface UpdateAuditLogPayload { - clientMutationId?: string | null; - /** The `AuditLog` that was updated by this mutation. */ - auditLog?: AuditLog | null; - auditLogEdge?: AuditLogEdge | null; -} -export type UpdateAuditLogPayloadSelect = { - clientMutationId?: boolean; - auditLog?: { - select: AuditLogSelect; - }; - auditLogEdge?: { - select: AuditLogEdgeSelect; - }; -}; -export interface DeleteAuditLogPayload { - clientMutationId?: string | null; - /** The `AuditLog` that was deleted by this mutation. */ - auditLog?: AuditLog | null; - auditLogEdge?: AuditLogEdge | null; -} -export type DeleteAuditLogPayloadSelect = { - clientMutationId?: boolean; - auditLog?: { - select: AuditLogSelect; - }; - auditLogEdge?: { - select: AuditLogEdgeSelect; - }; -}; -export interface CreateAppLevelPayload { - clientMutationId?: string | null; - /** The `AppLevel` that was created by this mutation. */ - appLevel?: AppLevel | null; - appLevelEdge?: AppLevelEdge | null; -} -export type CreateAppLevelPayloadSelect = { - clientMutationId?: boolean; - appLevel?: { - select: AppLevelSelect; - }; - appLevelEdge?: { - select: AppLevelEdgeSelect; - }; -}; -export interface UpdateAppLevelPayload { - clientMutationId?: string | null; - /** The `AppLevel` that was updated by this mutation. */ - appLevel?: AppLevel | null; - appLevelEdge?: AppLevelEdge | null; -} -export type UpdateAppLevelPayloadSelect = { - clientMutationId?: boolean; - appLevel?: { - select: AppLevelSelect; - }; - appLevelEdge?: { - select: AppLevelEdgeSelect; - }; -}; -export interface DeleteAppLevelPayload { - clientMutationId?: string | null; - /** The `AppLevel` that was deleted by this mutation. */ - appLevel?: AppLevel | null; - appLevelEdge?: AppLevelEdge | null; -} -export type DeleteAppLevelPayloadSelect = { - clientMutationId?: boolean; - appLevel?: { - select: AppLevelSelect; - }; - appLevelEdge?: { - select: AppLevelEdgeSelect; - }; -}; -export interface CreateSqlMigrationPayload { - clientMutationId?: string | null; - /** The `SqlMigration` that was created by this mutation. */ - sqlMigration?: SqlMigration | null; -} -export type CreateSqlMigrationPayloadSelect = { - clientMutationId?: boolean; - sqlMigration?: { - select: SqlMigrationSelect; - }; -}; -export interface CreateEmailPayload { - clientMutationId?: string | null; - /** The `Email` that was created by this mutation. */ - email?: Email | null; - emailEdge?: EmailEdge | null; -} -export type CreateEmailPayloadSelect = { - clientMutationId?: boolean; - email?: { - select: EmailSelect; - }; - emailEdge?: { - select: EmailEdgeSelect; + orgMembershipDefaultEdge?: { + select: OrgMembershipDefaultEdgeSelect; }; }; -export interface UpdateEmailPayload { +export interface DeleteOrgMembershipDefaultPayload { clientMutationId?: string | null; - /** The `Email` that was updated by this mutation. */ - email?: Email | null; - emailEdge?: EmailEdge | null; + /** The `OrgMembershipDefault` that was deleted by this mutation. */ + orgMembershipDefault?: OrgMembershipDefault | null; + orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; } -export type UpdateEmailPayloadSelect = { +export type DeleteOrgMembershipDefaultPayloadSelect = { clientMutationId?: boolean; - email?: { - select: EmailSelect; + orgMembershipDefault?: { + select: OrgMembershipDefaultSelect; }; - emailEdge?: { - select: EmailEdgeSelect; + orgMembershipDefaultEdge?: { + select: OrgMembershipDefaultEdgeSelect; }; }; -export interface DeleteEmailPayload { +export interface CreateSqlMigrationPayload { clientMutationId?: string | null; - /** The `Email` that was deleted by this mutation. */ - email?: Email | null; - emailEdge?: EmailEdge | null; + /** The `SqlMigration` that was created by this mutation. */ + sqlMigration?: SqlMigration | null; } -export type DeleteEmailPayloadSelect = { +export type CreateSqlMigrationPayloadSelect = { clientMutationId?: boolean; - email?: { - select: EmailSelect; - }; - emailEdge?: { - select: EmailEdgeSelect; + sqlMigration?: { + select: SqlMigrationSelect; }; }; export interface CreateUserPayload { @@ -19646,6 +17483,14 @@ export type AppLevelRequirementEdgeSelect = { select: AppLevelRequirementSelect; }; }; +export interface ProvisionDatabaseWithUserRecord { + outDatabaseId?: string | null; + outApiKey?: string | null; +} +export type ProvisionDatabaseWithUserRecordSelect = { + outDatabaseId?: boolean; + outApiKey?: boolean; +}; export interface BootstrapUserRecord { outUserId?: string | null; outEmail?: string | null; @@ -19655,16 +17500,6 @@ export interface BootstrapUserRecord { outIsOwner?: boolean | null; outIsSudo?: boolean | null; outApiKey?: string | null; - /** TRGM similarity when searching `outEmail`. Returns null when no trgm search filter is active. */ - outEmailTrgmSimilarity?: number | null; - /** TRGM similarity when searching `outUsername`. Returns null when no trgm search filter is active. */ - outUsernameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `outDisplayName`. Returns null when no trgm search filter is active. */ - outDisplayNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `outApiKey`. Returns null when no trgm search filter is active. */ - outApiKeyTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export type BootstrapUserRecordSelect = { outUserId?: boolean; @@ -19675,25 +17510,6 @@ export type BootstrapUserRecordSelect = { outIsOwner?: boolean; outIsSudo?: boolean; outApiKey?: boolean; - outEmailTrgmSimilarity?: boolean; - outUsernameTrgmSimilarity?: boolean; - outDisplayNameTrgmSimilarity?: boolean; - outApiKeyTrgmSimilarity?: boolean; - searchScore?: boolean; -}; -export interface ProvisionDatabaseWithUserRecord { - outDatabaseId?: string | null; - outApiKey?: string | null; - /** TRGM similarity when searching `outApiKey`. Returns null when no trgm search filter is active. */ - outApiKeyTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; -} -export type ProvisionDatabaseWithUserRecordSelect = { - outDatabaseId?: boolean; - outApiKey?: boolean; - outApiKeyTrgmSimilarity?: boolean; - searchScore?: boolean; }; export interface SignInOneTimeTokenRecord { id?: string | null; @@ -19702,10 +17518,6 @@ export interface SignInOneTimeTokenRecord { accessTokenExpiresAt?: string | null; isVerified?: boolean | null; totpEnabled?: boolean | null; - /** TRGM similarity when searching `accessToken`. Returns null when no trgm search filter is active. */ - accessTokenTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export type SignInOneTimeTokenRecordSelect = { id?: boolean; @@ -19714,8 +17526,6 @@ export type SignInOneTimeTokenRecordSelect = { accessTokenExpiresAt?: boolean; isVerified?: boolean; totpEnabled?: boolean; - accessTokenTrgmSimilarity?: boolean; - searchScore?: boolean; }; export interface ExtendTokenExpiresRecord { id?: string | null; @@ -19734,10 +17544,6 @@ export interface SignInRecord { accessTokenExpiresAt?: string | null; isVerified?: boolean | null; totpEnabled?: boolean | null; - /** TRGM similarity when searching `accessToken`. Returns null when no trgm search filter is active. */ - accessTokenTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export type SignInRecordSelect = { id?: boolean; @@ -19746,8 +17552,6 @@ export type SignInRecordSelect = { accessTokenExpiresAt?: boolean; isVerified?: boolean; totpEnabled?: boolean; - accessTokenTrgmSimilarity?: boolean; - searchScore?: boolean; }; export interface SignUpRecord { id?: string | null; @@ -19756,10 +17560,6 @@ export interface SignUpRecord { accessTokenExpiresAt?: string | null; isVerified?: boolean | null; totpEnabled?: boolean | null; - /** TRGM similarity when searching `accessToken`. Returns null when no trgm search filter is active. */ - accessTokenTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export type SignUpRecordSelect = { id?: boolean; @@ -19768,8 +17568,6 @@ export type SignUpRecordSelect = { accessTokenExpiresAt?: boolean; isVerified?: boolean; totpEnabled?: boolean; - accessTokenTrgmSimilarity?: boolean; - searchScore?: boolean; }; /** Tracks user authentication sessions with expiration, fingerprinting, and step-up verification state */ export interface Session { @@ -19798,14 +17596,6 @@ export interface Session { csrfSecret?: string | null; createdAt?: string | null; updatedAt?: string | null; - /** TRGM similarity when searching `uagent`. Returns null when no trgm search filter is active. */ - uagentTrgmSimilarity?: number | null; - /** TRGM similarity when searching `fingerprintMode`. Returns null when no trgm search filter is active. */ - fingerprintModeTrgmSimilarity?: number | null; - /** TRGM similarity when searching `csrfSecret`. Returns null when no trgm search filter is active. */ - csrfSecretTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export type SessionSelect = { id?: boolean; @@ -19822,10 +17612,6 @@ export type SessionSelect = { csrfSecret?: boolean; createdAt?: boolean; updatedAt?: boolean; - uagentTrgmSimilarity?: boolean; - fingerprintModeTrgmSimilarity?: boolean; - csrfSecretTrgmSimilarity?: boolean; - searchScore?: boolean; }; /** A `Database` edge in the connection. */ export interface DatabaseEdge { @@ -20031,6 +17817,18 @@ export type ViewRuleEdgeSelect = { select: ViewRuleSelect; }; }; +/** A `EmbeddingChunk` edge in the connection. */ +export interface EmbeddingChunkEdge { + cursor?: string | null; + /** The `EmbeddingChunk` at the end of the edge. */ + node?: EmbeddingChunk | null; +} +export type EmbeddingChunkEdgeSelect = { + cursor?: boolean; + node?: { + select: EmbeddingChunkSelect; + }; +}; /** A `TableTemplateModule` edge in the connection. */ export interface TableTemplateModuleEdge { cursor?: string | null; @@ -20091,6 +17889,18 @@ export type DefaultPrivilegeEdgeSelect = { select: DefaultPrivilegeSelect; }; }; +/** A `Enum` edge in the connection. */ +export interface EnumEdge { + cursor?: string | null; + /** The `Enum` at the end of the edge. */ + node?: Enum | null; +} +export type EnumEdgeSelect = { + cursor?: boolean; + node?: { + select: EnumSelect; + }; +}; /** A `ApiSchema` edge in the connection. */ export interface ApiSchemaEdge { cursor?: string | null; @@ -20175,6 +17985,18 @@ export type TriggerFunctionEdgeSelect = { select: TriggerFunctionSelect; }; }; +/** A `DatabaseTransfer` edge in the connection. */ +export interface DatabaseTransferEdge { + cursor?: string | null; + /** The `DatabaseTransfer` at the end of the edge. */ + node?: DatabaseTransfer | null; +} +export type DatabaseTransferEdgeSelect = { + cursor?: boolean; + node?: { + select: DatabaseTransferSelect; + }; +}; /** A `Api` edge in the connection. */ export interface ApiEdge { cursor?: string | null; @@ -20451,16 +18273,28 @@ export type UsersModuleEdgeSelect = { select: UsersModuleSelect; }; }; -/** A `UuidModule` edge in the connection. */ -export interface UuidModuleEdge { +/** A `Blueprint` edge in the connection. */ +export interface BlueprintEdge { + cursor?: string | null; + /** The `Blueprint` at the end of the edge. */ + node?: Blueprint | null; +} +export type BlueprintEdgeSelect = { + cursor?: boolean; + node?: { + select: BlueprintSelect; + }; +}; +/** A `BlueprintTemplate` edge in the connection. */ +export interface BlueprintTemplateEdge { cursor?: string | null; - /** The `UuidModule` at the end of the edge. */ - node?: UuidModule | null; + /** The `BlueprintTemplate` at the end of the edge. */ + node?: BlueprintTemplate | null; } -export type UuidModuleEdgeSelect = { +export type BlueprintTemplateEdgeSelect = { cursor?: boolean; node?: { - select: UuidModuleSelect; + select: BlueprintTemplateSelect; }; }; /** A `DatabaseProvisionModule` edge in the connection. */ @@ -20595,6 +18429,18 @@ export type OrgChartEdgeGrantEdgeSelect = { select: OrgChartEdgeGrantSelect; }; }; +/** A `OrgPermissionDefault` edge in the connection. */ +export interface OrgPermissionDefaultEdge { + cursor?: string | null; + /** The `OrgPermissionDefault` at the end of the edge. */ + node?: OrgPermissionDefault | null; +} +export type OrgPermissionDefaultEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgPermissionDefaultSelect; + }; +}; /** A `AppLimit` edge in the connection. */ export interface AppLimitEdge { cursor?: string | null; @@ -20643,6 +18489,66 @@ export type AppAchievementEdgeSelect = { select: AppAchievementSelect; }; }; +/** A `AppLevel` edge in the connection. */ +export interface AppLevelEdge { + cursor?: string | null; + /** The `AppLevel` at the end of the edge. */ + node?: AppLevel | null; +} +export type AppLevelEdgeSelect = { + cursor?: boolean; + node?: { + select: AppLevelSelect; + }; +}; +/** A `Email` edge in the connection. */ +export interface EmailEdge { + cursor?: string | null; + /** The `Email` at the end of the edge. */ + node?: Email | null; +} +export type EmailEdgeSelect = { + cursor?: boolean; + node?: { + select: EmailSelect; + }; +}; +/** A `PhoneNumber` edge in the connection. */ +export interface PhoneNumberEdge { + cursor?: string | null; + /** The `PhoneNumber` at the end of the edge. */ + node?: PhoneNumber | null; +} +export type PhoneNumberEdgeSelect = { + cursor?: boolean; + node?: { + select: PhoneNumberSelect; + }; +}; +/** A `CryptoAddress` edge in the connection. */ +export interface CryptoAddressEdge { + cursor?: string | null; + /** The `CryptoAddress` at the end of the edge. */ + node?: CryptoAddress | null; +} +export type CryptoAddressEdgeSelect = { + cursor?: boolean; + node?: { + select: CryptoAddressSelect; + }; +}; +/** A `ConnectedAccount` edge in the connection. */ +export interface ConnectedAccountEdge { + cursor?: string | null; + /** The `ConnectedAccount` at the end of the edge. */ + node?: ConnectedAccount | null; +} +export type ConnectedAccountEdgeSelect = { + cursor?: boolean; + node?: { + select: ConnectedAccountSelect; + }; +}; /** A `Invite` edge in the connection. */ export interface InviteEdge { cursor?: string | null; @@ -20691,6 +18597,18 @@ export type OrgClaimedInviteEdgeSelect = { select: OrgClaimedInviteSelect; }; }; +/** A `AuditLog` edge in the connection. */ +export interface AuditLogEdge { + cursor?: string | null; + /** The `AuditLog` at the end of the edge. */ + node?: AuditLog | null; +} +export type AuditLogEdgeSelect = { + cursor?: boolean; + node?: { + select: AuditLogSelect; + }; +}; /** A `Ref` edge in the connection. */ export interface RefEdge { cursor?: string | null; @@ -20727,18 +18645,6 @@ export type AppPermissionDefaultEdgeSelect = { select: AppPermissionDefaultSelect; }; }; -/** A `CryptoAddress` edge in the connection. */ -export interface CryptoAddressEdge { - cursor?: string | null; - /** The `CryptoAddress` at the end of the edge. */ - node?: CryptoAddress | null; -} -export type CryptoAddressEdgeSelect = { - cursor?: boolean; - node?: { - select: CryptoAddressSelect; - }; -}; /** A `RoleType` edge in the connection. */ export interface RoleTypeEdge { cursor?: string | null; @@ -20751,30 +18657,6 @@ export type RoleTypeEdgeSelect = { select: RoleTypeSelect; }; }; -/** A `OrgPermissionDefault` edge in the connection. */ -export interface OrgPermissionDefaultEdge { - cursor?: string | null; - /** The `OrgPermissionDefault` at the end of the edge. */ - node?: OrgPermissionDefault | null; -} -export type OrgPermissionDefaultEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgPermissionDefaultSelect; - }; -}; -/** A `PhoneNumber` edge in the connection. */ -export interface PhoneNumberEdge { - cursor?: string | null; - /** The `PhoneNumber` at the end of the edge. */ - node?: PhoneNumber | null; -} -export type PhoneNumberEdgeSelect = { - cursor?: boolean; - node?: { - select: PhoneNumberSelect; - }; -}; /** A `AppLimitDefault` edge in the connection. */ export interface AppLimitDefaultEdge { cursor?: string | null; @@ -20799,18 +18681,6 @@ export type OrgLimitDefaultEdgeSelect = { select: OrgLimitDefaultSelect; }; }; -/** A `ConnectedAccount` edge in the connection. */ -export interface ConnectedAccountEdge { - cursor?: string | null; - /** The `ConnectedAccount` at the end of the edge. */ - node?: ConnectedAccount | null; -} -export type ConnectedAccountEdgeSelect = { - cursor?: boolean; - node?: { - select: ConnectedAccountSelect; - }; -}; /** A `NodeTypeRegistry` edge in the connection. */ export interface NodeTypeRegistryEdge { cursor?: string | null; @@ -20883,42 +18753,6 @@ export type OrgMembershipDefaultEdgeSelect = { select: OrgMembershipDefaultSelect; }; }; -/** A `AuditLog` edge in the connection. */ -export interface AuditLogEdge { - cursor?: string | null; - /** The `AuditLog` at the end of the edge. */ - node?: AuditLog | null; -} -export type AuditLogEdgeSelect = { - cursor?: boolean; - node?: { - select: AuditLogSelect; - }; -}; -/** A `AppLevel` edge in the connection. */ -export interface AppLevelEdge { - cursor?: string | null; - /** The `AppLevel` at the end of the edge. */ - node?: AppLevel | null; -} -export type AppLevelEdgeSelect = { - cursor?: boolean; - node?: { - select: AppLevelSelect; - }; -}; -/** A `Email` edge in the connection. */ -export interface EmailEdge { - cursor?: string | null; - /** The `Email` at the end of the edge. */ - node?: Email | null; -} -export type EmailEdgeSelect = { - cursor?: boolean; - node?: { - select: EmailSelect; - }; -}; /** A `User` edge in the connection. */ export interface UserEdge { cursor?: string | null; diff --git a/sdk/constructive-cli/src/public/orm/models/uuidModule.ts b/sdk/constructive-react/src/public/orm/models/blueprint.ts similarity index 55% rename from sdk/constructive-cli/src/public/orm/models/uuidModule.ts rename to sdk/constructive-react/src/public/orm/models/blueprint.ts index 9a95fd500..f7dd60157 100644 --- a/sdk/constructive-cli/src/public/orm/models/uuidModule.ts +++ b/sdk/constructive-react/src/public/orm/models/blueprint.ts @@ -1,5 +1,5 @@ /** - * UuidModule model for ORM client + * Blueprint model for ORM client * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ @@ -24,28 +24,28 @@ import type { StrictSelect, } from '../select-types'; import type { - UuidModule, - UuidModuleWithRelations, - UuidModuleSelect, - UuidModuleFilter, - UuidModuleOrderBy, - CreateUuidModuleInput, - UpdateUuidModuleInput, - UuidModulePatch, + Blueprint, + BlueprintWithRelations, + BlueprintSelect, + BlueprintFilter, + BlueprintOrderBy, + CreateBlueprintInput, + UpdateBlueprintInput, + BlueprintPatch, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; -export class UuidModuleModel { +export class BlueprintModel { constructor(private client: OrmClient) {} - findMany( - args: FindManyArgs & { + findMany( + args: FindManyArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - uuidModules: ConnectionResult>; + blueprints: ConnectionResult>; }> { const { document, variables } = buildFindManyDocument( - 'UuidModule', - 'uuidModules', + 'Blueprint', + 'blueprints', args.select, { where: args?.where, @@ -56,58 +56,58 @@ export class UuidModuleModel { before: args?.before, offset: args?.offset, }, - 'UuidModuleFilter', - 'UuidModuleOrderBy', + 'BlueprintFilter', + 'BlueprintOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'UuidModule', - fieldName: 'uuidModules', + operationName: 'Blueprint', + fieldName: 'blueprints', document, variables, }); } - findFirst( - args: FindFirstArgs & { + findFirst( + args: FindFirstArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - uuidModules: { - nodes: InferSelectResult[]; + blueprints: { + nodes: InferSelectResult[]; }; }> { const { document, variables } = buildFindFirstDocument( - 'UuidModule', - 'uuidModules', + 'Blueprint', + 'blueprints', args.select, { where: args?.where, }, - 'UuidModuleFilter', + 'BlueprintFilter', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'UuidModule', - fieldName: 'uuidModules', + operationName: 'Blueprint', + fieldName: 'blueprints', document, variables, }); } - findOne( + findOne( args: { id: string; select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - uuidModule: InferSelectResult | null; + blueprint: InferSelectResult | null; }> { const { document, variables } = buildFindManyDocument( - 'UuidModule', - 'uuidModules', + 'Blueprint', + 'blueprints', args.select, { where: { @@ -117,90 +117,90 @@ export class UuidModuleModel { }, first: 1, }, - 'UuidModuleFilter', - 'UuidModuleOrderBy', + 'BlueprintFilter', + 'BlueprintOrderBy', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'query', - operationName: 'UuidModule', - fieldName: 'uuidModule', + operationName: 'Blueprint', + fieldName: 'blueprint', document, variables, transform: (data: { - uuidModules?: { - nodes?: InferSelectResult[]; + blueprints?: { + nodes?: InferSelectResult[]; }; }) => ({ - uuidModule: data.uuidModules?.nodes?.[0] ?? null, + blueprint: data.blueprints?.nodes?.[0] ?? null, }), }); } - create( - args: CreateArgs & { + create( + args: CreateArgs & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - createUuidModule: { - uuidModule: InferSelectResult; + createBlueprint: { + blueprint: InferSelectResult; }; }> { const { document, variables } = buildCreateDocument( - 'UuidModule', - 'createUuidModule', - 'uuidModule', + 'Blueprint', + 'createBlueprint', + 'blueprint', args.select, args.data, - 'CreateUuidModuleInput', + 'CreateBlueprintInput', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'UuidModule', - fieldName: 'createUuidModule', + operationName: 'Blueprint', + fieldName: 'createBlueprint', document, variables, }); } - update( + update( args: UpdateArgs< S, { id: string; }, - UuidModulePatch + BlueprintPatch > & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - updateUuidModule: { - uuidModule: InferSelectResult; + updateBlueprint: { + blueprint: InferSelectResult; }; }> { const { document, variables } = buildUpdateByPkDocument( - 'UuidModule', - 'updateUuidModule', - 'uuidModule', + 'Blueprint', + 'updateBlueprint', + 'blueprint', args.select, args.where.id, args.data, - 'UpdateUuidModuleInput', + 'UpdateBlueprintInput', 'id', - 'uuidModulePatch', + 'blueprintPatch', connectionFieldsMap ); return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'UuidModule', - fieldName: 'updateUuidModule', + operationName: 'Blueprint', + fieldName: 'updateBlueprint', document, variables, }); } - delete( + delete( args: DeleteArgs< { id: string; @@ -208,18 +208,18 @@ export class UuidModuleModel { S > & { select: S; - } & StrictSelect + } & StrictSelect ): QueryBuilder<{ - deleteUuidModule: { - uuidModule: InferSelectResult; + deleteBlueprint: { + blueprint: InferSelectResult; }; }> { const { document, variables } = buildDeleteByPkDocument( - 'UuidModule', - 'deleteUuidModule', - 'uuidModule', + 'Blueprint', + 'deleteBlueprint', + 'blueprint', args.where.id, - 'DeleteUuidModuleInput', + 'DeleteBlueprintInput', 'id', args.select, connectionFieldsMap @@ -227,8 +227,8 @@ export class UuidModuleModel { return new QueryBuilder({ client: this.client, operation: 'mutation', - operationName: 'UuidModule', - fieldName: 'deleteUuidModule', + operationName: 'Blueprint', + fieldName: 'deleteBlueprint', document, variables, }); diff --git a/sdk/constructive-react/src/public/orm/models/blueprintTemplate.ts b/sdk/constructive-react/src/public/orm/models/blueprintTemplate.ts new file mode 100644 index 000000000..b5bc3dbef --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/blueprintTemplate.ts @@ -0,0 +1,236 @@ +/** + * BlueprintTemplate model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + BlueprintTemplate, + BlueprintTemplateWithRelations, + BlueprintTemplateSelect, + BlueprintTemplateFilter, + BlueprintTemplateOrderBy, + CreateBlueprintTemplateInput, + UpdateBlueprintTemplateInput, + BlueprintTemplatePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class BlueprintTemplateModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + blueprintTemplates: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'BlueprintTemplate', + 'blueprintTemplates', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'BlueprintTemplateFilter', + 'BlueprintTemplateOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'BlueprintTemplate', + fieldName: 'blueprintTemplates', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + blueprintTemplates: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'BlueprintTemplate', + 'blueprintTemplates', + args.select, + { + where: args?.where, + }, + 'BlueprintTemplateFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'BlueprintTemplate', + fieldName: 'blueprintTemplates', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + blueprintTemplate: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'BlueprintTemplate', + 'blueprintTemplates', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'BlueprintTemplateFilter', + 'BlueprintTemplateOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'BlueprintTemplate', + fieldName: 'blueprintTemplate', + document, + variables, + transform: (data: { + blueprintTemplates?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + blueprintTemplate: data.blueprintTemplates?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createBlueprintTemplate: { + blueprintTemplate: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'BlueprintTemplate', + 'createBlueprintTemplate', + 'blueprintTemplate', + args.select, + args.data, + 'CreateBlueprintTemplateInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'BlueprintTemplate', + fieldName: 'createBlueprintTemplate', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + BlueprintTemplatePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateBlueprintTemplate: { + blueprintTemplate: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'BlueprintTemplate', + 'updateBlueprintTemplate', + 'blueprintTemplate', + args.select, + args.where.id, + args.data, + 'UpdateBlueprintTemplateInput', + 'id', + 'blueprintTemplatePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'BlueprintTemplate', + fieldName: 'updateBlueprintTemplate', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteBlueprintTemplate: { + blueprintTemplate: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'BlueprintTemplate', + 'deleteBlueprintTemplate', + 'blueprintTemplate', + args.where.id, + 'DeleteBlueprintTemplateInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'BlueprintTemplate', + fieldName: 'deleteBlueprintTemplate', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/databaseTransfer.ts b/sdk/constructive-react/src/public/orm/models/databaseTransfer.ts new file mode 100644 index 000000000..c90f3963f --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/databaseTransfer.ts @@ -0,0 +1,236 @@ +/** + * DatabaseTransfer model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + DatabaseTransfer, + DatabaseTransferWithRelations, + DatabaseTransferSelect, + DatabaseTransferFilter, + DatabaseTransferOrderBy, + CreateDatabaseTransferInput, + UpdateDatabaseTransferInput, + DatabaseTransferPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class DatabaseTransferModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + databaseTransfers: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'DatabaseTransfer', + 'databaseTransfers', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'DatabaseTransferFilter', + 'DatabaseTransferOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DatabaseTransfer', + fieldName: 'databaseTransfers', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + databaseTransfers: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'DatabaseTransfer', + 'databaseTransfers', + args.select, + { + where: args?.where, + }, + 'DatabaseTransferFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DatabaseTransfer', + fieldName: 'databaseTransfers', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + databaseTransfer: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'DatabaseTransfer', + 'databaseTransfers', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'DatabaseTransferFilter', + 'DatabaseTransferOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DatabaseTransfer', + fieldName: 'databaseTransfer', + document, + variables, + transform: (data: { + databaseTransfers?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + databaseTransfer: data.databaseTransfers?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createDatabaseTransfer: { + databaseTransfer: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'DatabaseTransfer', + 'createDatabaseTransfer', + 'databaseTransfer', + args.select, + args.data, + 'CreateDatabaseTransferInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DatabaseTransfer', + fieldName: 'createDatabaseTransfer', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + DatabaseTransferPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateDatabaseTransfer: { + databaseTransfer: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'DatabaseTransfer', + 'updateDatabaseTransfer', + 'databaseTransfer', + args.select, + args.where.id, + args.data, + 'UpdateDatabaseTransferInput', + 'id', + 'databaseTransferPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DatabaseTransfer', + fieldName: 'updateDatabaseTransfer', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteDatabaseTransfer: { + databaseTransfer: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'DatabaseTransfer', + 'deleteDatabaseTransfer', + 'databaseTransfer', + args.where.id, + 'DeleteDatabaseTransferInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DatabaseTransfer', + fieldName: 'deleteDatabaseTransfer', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/embeddingChunk.ts b/sdk/constructive-react/src/public/orm/models/embeddingChunk.ts new file mode 100644 index 000000000..6f0be845c --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/embeddingChunk.ts @@ -0,0 +1,236 @@ +/** + * EmbeddingChunk model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + EmbeddingChunk, + EmbeddingChunkWithRelations, + EmbeddingChunkSelect, + EmbeddingChunkFilter, + EmbeddingChunkOrderBy, + CreateEmbeddingChunkInput, + UpdateEmbeddingChunkInput, + EmbeddingChunkPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class EmbeddingChunkModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + embeddingChunks: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'EmbeddingChunk', + 'embeddingChunks', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'EmbeddingChunkFilter', + 'EmbeddingChunkOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'EmbeddingChunk', + fieldName: 'embeddingChunks', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + embeddingChunks: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'EmbeddingChunk', + 'embeddingChunks', + args.select, + { + where: args?.where, + }, + 'EmbeddingChunkFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'EmbeddingChunk', + fieldName: 'embeddingChunks', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + embeddingChunk: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'EmbeddingChunk', + 'embeddingChunks', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'EmbeddingChunkFilter', + 'EmbeddingChunkOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'EmbeddingChunk', + fieldName: 'embeddingChunk', + document, + variables, + transform: (data: { + embeddingChunks?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + embeddingChunk: data.embeddingChunks?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createEmbeddingChunk: { + embeddingChunk: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'EmbeddingChunk', + 'createEmbeddingChunk', + 'embeddingChunk', + args.select, + args.data, + 'CreateEmbeddingChunkInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'EmbeddingChunk', + fieldName: 'createEmbeddingChunk', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + EmbeddingChunkPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateEmbeddingChunk: { + embeddingChunk: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'EmbeddingChunk', + 'updateEmbeddingChunk', + 'embeddingChunk', + args.select, + args.where.id, + args.data, + 'UpdateEmbeddingChunkInput', + 'id', + 'embeddingChunkPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'EmbeddingChunk', + fieldName: 'updateEmbeddingChunk', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteEmbeddingChunk: { + embeddingChunk: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'EmbeddingChunk', + 'deleteEmbeddingChunk', + 'embeddingChunk', + args.where.id, + 'DeleteEmbeddingChunkInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'EmbeddingChunk', + fieldName: 'deleteEmbeddingChunk', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/enum.ts b/sdk/constructive-react/src/public/orm/models/enum.ts new file mode 100644 index 000000000..2efea885e --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/enum.ts @@ -0,0 +1,236 @@ +/** + * Enum model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + Enum, + EnumWithRelations, + EnumSelect, + EnumFilter, + EnumOrderBy, + CreateEnumInput, + UpdateEnumInput, + EnumPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class EnumModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + enums: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'Enum', + 'enums', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'EnumFilter', + 'EnumOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Enum', + fieldName: 'enums', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + enums: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'Enum', + 'enums', + args.select, + { + where: args?.where, + }, + 'EnumFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Enum', + fieldName: 'enums', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + enum: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'Enum', + 'enums', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'EnumFilter', + 'EnumOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Enum', + fieldName: 'enum', + document, + variables, + transform: (data: { + enums?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + enum: data.enums?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createEnum: { + enum: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'Enum', + 'createEnum', + 'enum', + args.select, + args.data, + 'CreateEnumInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Enum', + fieldName: 'createEnum', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + EnumPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateEnum: { + enum: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'Enum', + 'updateEnum', + 'enum', + args.select, + args.where.id, + args.data, + 'UpdateEnumInput', + 'id', + 'enumPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Enum', + fieldName: 'updateEnum', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteEnum: { + enum: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'Enum', + 'deleteEnum', + 'enum', + args.where.id, + 'DeleteEnumInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Enum', + fieldName: 'deleteEnum', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/index.ts b/sdk/constructive-react/src/public/orm/models/index.ts index 292be6a26..d10e88acb 100644 --- a/sdk/constructive-react/src/public/orm/models/index.ts +++ b/sdk/constructive-react/src/public/orm/models/index.ts @@ -3,9 +3,9 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ +export { GetAllRecordModel } from './getAllRecord'; export { OrgGetManagersRecordModel } from './orgGetManagersRecord'; export { OrgGetSubordinatesRecordModel } from './orgGetSubordinatesRecord'; -export { GetAllRecordModel } from './getAllRecord'; export { ObjectModel } from './object'; export { AppPermissionModel } from './appPermission'; export { OrgPermissionModel } from './orgPermission'; @@ -27,11 +27,13 @@ export { ViewModel } from './view'; export { ViewTableModel } from './viewTable'; export { ViewGrantModel } from './viewGrant'; export { ViewRuleModel } from './viewRule'; +export { EmbeddingChunkModel } from './embeddingChunk'; export { TableTemplateModuleModel } from './tableTemplateModule'; export { SecureTableProvisionModel } from './secureTableProvision'; export { RelationProvisionModel } from './relationProvision'; export { SchemaGrantModel } from './schemaGrant'; export { DefaultPrivilegeModel } from './defaultPrivilege'; +export { EnumModel } from './enum'; export { ApiSchemaModel } from './apiSchema'; export { ApiModuleModel } from './apiModule'; export { DomainModel } from './domain'; @@ -39,6 +41,7 @@ export { SiteMetadatumModel } from './siteMetadatum'; export { SiteModuleModel } from './siteModule'; export { SiteThemeModel } from './siteTheme'; export { TriggerFunctionModel } from './triggerFunction'; +export { DatabaseTransferModel } from './databaseTransfer'; export { ApiModel } from './api'; export { SiteModel } from './site'; export { AppModel } from './app'; @@ -62,7 +65,8 @@ export { SecretsModuleModel } from './secretsModule'; export { SessionsModuleModel } from './sessionsModule'; export { UserAuthModuleModel } from './userAuthModule'; export { UsersModuleModel } from './usersModule'; -export { UuidModuleModel } from './uuidModule'; +export { BlueprintModel } from './blueprint'; +export { BlueprintTemplateModel } from './blueprintTemplate'; export { DatabaseProvisionModuleModel } from './databaseProvisionModule'; export { AppAdminGrantModel } from './appAdminGrant'; export { AppOwnerGrantModel } from './appOwnerGrant'; @@ -74,34 +78,34 @@ export { OrgOwnerGrantModel } from './orgOwnerGrant'; export { OrgGrantModel } from './orgGrant'; export { OrgChartEdgeModel } from './orgChartEdge'; export { OrgChartEdgeGrantModel } from './orgChartEdgeGrant'; +export { OrgPermissionDefaultModel } from './orgPermissionDefault'; export { AppLimitModel } from './appLimit'; export { OrgLimitModel } from './orgLimit'; export { AppStepModel } from './appStep'; export { AppAchievementModel } from './appAchievement'; +export { AppLevelModel } from './appLevel'; +export { EmailModel } from './email'; +export { PhoneNumberModel } from './phoneNumber'; +export { CryptoAddressModel } from './cryptoAddress'; +export { ConnectedAccountModel } from './connectedAccount'; export { InviteModel } from './invite'; export { ClaimedInviteModel } from './claimedInvite'; export { OrgInviteModel } from './orgInvite'; export { OrgClaimedInviteModel } from './orgClaimedInvite'; +export { AuditLogModel } from './auditLog'; export { RefModel } from './ref'; export { StoreModel } from './store'; export { AppPermissionDefaultModel } from './appPermissionDefault'; -export { CryptoAddressModel } from './cryptoAddress'; export { RoleTypeModel } from './roleType'; -export { OrgPermissionDefaultModel } from './orgPermissionDefault'; -export { PhoneNumberModel } from './phoneNumber'; export { AppLimitDefaultModel } from './appLimitDefault'; export { OrgLimitDefaultModel } from './orgLimitDefault'; -export { ConnectedAccountModel } from './connectedAccount'; export { NodeTypeRegistryModel } from './nodeTypeRegistry'; export { MembershipTypeModel } from './membershipType'; export { CommitModel } from './commit'; export { AppMembershipDefaultModel } from './appMembershipDefault'; export { RlsModuleModel } from './rlsModule'; export { OrgMembershipDefaultModel } from './orgMembershipDefault'; -export { AuditLogModel } from './auditLog'; -export { AppLevelModel } from './appLevel'; export { SqlMigrationModel } from './sqlMigration'; -export { EmailModel } from './email'; export { UserModel } from './user'; export { AstMigrationModel } from './astMigration'; export { AppMembershipModel } from './appMembership'; diff --git a/sdk/constructive-react/src/public/orm/mutation/index.ts b/sdk/constructive-react/src/public/orm/mutation/index.ts index e16b7ce43..12c82abdb 100644 --- a/sdk/constructive-react/src/public/orm/mutation/index.ts +++ b/sdk/constructive-react/src/public/orm/mutation/index.ts @@ -7,23 +7,28 @@ import { OrmClient } from '../client'; import { QueryBuilder, buildCustomDocument } from '../query-builder'; import type { InferSelectResult, StrictSelect } from '../select-types'; import type { - SignOutInput, SendAccountDeletionEmailInput, - CheckPasswordInput, + SignOutInput, + AcceptDatabaseTransferInput, + CancelDatabaseTransferInput, + RejectDatabaseTransferInput, SubmitInviteCodeInput, SubmitOrgInviteCodeInput, - FreezeObjectsInput, - InitEmptyRepoInput, + CheckPasswordInput, ConfirmDeleteAccountInput, SetPasswordInput, VerifyEmailInput, - RemoveNodeAtPathInput, + FreezeObjectsInput, + InitEmptyRepoInput, + ConstructBlueprintInput, ResetPasswordInput, - BootstrapUserInput, - SetFieldOrderInput, + RemoveNodeAtPathInput, SetDataAtPathInput, SetPropsAndCommitInput, + CopyTemplateToBlueprintInput, ProvisionDatabaseWithUserInput, + BootstrapUserInput, + SetFieldOrderInput, InsertNodeAtPathInput, UpdateNodeAtPathInput, SetAndCommitInput, @@ -34,27 +39,32 @@ import type { SignInInput, SignUpInput, OneTimeTokenInput, - ForgotPasswordInput, SendVerificationEmailInput, + ForgotPasswordInput, VerifyPasswordInput, VerifyTotpInput, - SignOutPayload, SendAccountDeletionEmailPayload, - CheckPasswordPayload, + SignOutPayload, + AcceptDatabaseTransferPayload, + CancelDatabaseTransferPayload, + RejectDatabaseTransferPayload, SubmitInviteCodePayload, SubmitOrgInviteCodePayload, - FreezeObjectsPayload, - InitEmptyRepoPayload, + CheckPasswordPayload, ConfirmDeleteAccountPayload, SetPasswordPayload, VerifyEmailPayload, - RemoveNodeAtPathPayload, + FreezeObjectsPayload, + InitEmptyRepoPayload, + ConstructBlueprintPayload, ResetPasswordPayload, - BootstrapUserPayload, - SetFieldOrderPayload, + RemoveNodeAtPathPayload, SetDataAtPathPayload, SetPropsAndCommitPayload, + CopyTemplateToBlueprintPayload, ProvisionDatabaseWithUserPayload, + BootstrapUserPayload, + SetFieldOrderPayload, InsertNodeAtPathPayload, UpdateNodeAtPathPayload, SetAndCommitPayload, @@ -65,27 +75,32 @@ import type { SignInPayload, SignUpPayload, OneTimeTokenPayload, - ForgotPasswordPayload, SendVerificationEmailPayload, + ForgotPasswordPayload, VerifyPasswordPayload, VerifyTotpPayload, - SignOutPayloadSelect, SendAccountDeletionEmailPayloadSelect, - CheckPasswordPayloadSelect, + SignOutPayloadSelect, + AcceptDatabaseTransferPayloadSelect, + CancelDatabaseTransferPayloadSelect, + RejectDatabaseTransferPayloadSelect, SubmitInviteCodePayloadSelect, SubmitOrgInviteCodePayloadSelect, - FreezeObjectsPayloadSelect, - InitEmptyRepoPayloadSelect, + CheckPasswordPayloadSelect, ConfirmDeleteAccountPayloadSelect, SetPasswordPayloadSelect, VerifyEmailPayloadSelect, - RemoveNodeAtPathPayloadSelect, + FreezeObjectsPayloadSelect, + InitEmptyRepoPayloadSelect, + ConstructBlueprintPayloadSelect, ResetPasswordPayloadSelect, - BootstrapUserPayloadSelect, - SetFieldOrderPayloadSelect, + RemoveNodeAtPathPayloadSelect, SetDataAtPathPayloadSelect, SetPropsAndCommitPayloadSelect, + CopyTemplateToBlueprintPayloadSelect, ProvisionDatabaseWithUserPayloadSelect, + BootstrapUserPayloadSelect, + SetFieldOrderPayloadSelect, InsertNodeAtPathPayloadSelect, UpdateNodeAtPathPayloadSelect, SetAndCommitPayloadSelect, @@ -96,20 +111,26 @@ import type { SignInPayloadSelect, SignUpPayloadSelect, OneTimeTokenPayloadSelect, - ForgotPasswordPayloadSelect, SendVerificationEmailPayloadSelect, + ForgotPasswordPayloadSelect, VerifyPasswordPayloadSelect, VerifyTotpPayloadSelect, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; +export interface SendAccountDeletionEmailVariables { + input: SendAccountDeletionEmailInput; +} export interface SignOutVariables { input: SignOutInput; } -export interface SendAccountDeletionEmailVariables { - input: SendAccountDeletionEmailInput; +export interface AcceptDatabaseTransferVariables { + input: AcceptDatabaseTransferInput; } -export interface CheckPasswordVariables { - input: CheckPasswordInput; +export interface CancelDatabaseTransferVariables { + input: CancelDatabaseTransferInput; +} +export interface RejectDatabaseTransferVariables { + input: RejectDatabaseTransferInput; } export interface SubmitInviteCodeVariables { input: SubmitInviteCodeInput; @@ -117,11 +138,8 @@ export interface SubmitInviteCodeVariables { export interface SubmitOrgInviteCodeVariables { input: SubmitOrgInviteCodeInput; } -export interface FreezeObjectsVariables { - input: FreezeObjectsInput; -} -export interface InitEmptyRepoVariables { - input: InitEmptyRepoInput; +export interface CheckPasswordVariables { + input: CheckPasswordInput; } export interface ConfirmDeleteAccountVariables { input: ConfirmDeleteAccountInput; @@ -132,17 +150,24 @@ export interface SetPasswordVariables { export interface VerifyEmailVariables { input: VerifyEmailInput; } -export interface RemoveNodeAtPathVariables { - input: RemoveNodeAtPathInput; +export interface FreezeObjectsVariables { + input: FreezeObjectsInput; +} +export interface InitEmptyRepoVariables { + input: InitEmptyRepoInput; +} +/** + * Variables for constructBlueprint + * Executes a draft blueprint definition. Four phases: (1) create tables with nodes[], fields, and policies[], (2) create relations between tables, (3) create indexes on table fields (supports BTREE, HNSW, GIN, GIST, BM25, etc.), (4) create full-text search configurations with weighted multi-field TSVector support. nodes[] entries can be strings or {$type, data} objects. Relations use $type for relation_type with junction config in data. Indexes reference table_ref + column name(s) and are resolved to field_ids. Full-text searches reference table_ref + tsvector field + source fields with weights/langs. Builds a ref_map of local ref names to created table UUIDs. Updates blueprint status to constructed (or failed with error_details). Returns the ref_map. + */ +export interface ConstructBlueprintVariables { + input: ConstructBlueprintInput; } export interface ResetPasswordVariables { input: ResetPasswordInput; } -export interface BootstrapUserVariables { - input: BootstrapUserInput; -} -export interface SetFieldOrderVariables { - input: SetFieldOrderInput; +export interface RemoveNodeAtPathVariables { + input: RemoveNodeAtPathInput; } export interface SetDataAtPathVariables { input: SetDataAtPathInput; @@ -150,9 +175,22 @@ export interface SetDataAtPathVariables { export interface SetPropsAndCommitVariables { input: SetPropsAndCommitInput; } +/** + * Variables for copyTemplateToBlueprint + * 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. + */ +export interface CopyTemplateToBlueprintVariables { + input: CopyTemplateToBlueprintInput; +} export interface ProvisionDatabaseWithUserVariables { input: ProvisionDatabaseWithUserInput; } +export interface BootstrapUserVariables { + input: BootstrapUserInput; +} +export interface SetFieldOrderVariables { + input: SetFieldOrderInput; +} export interface InsertNodeAtPathVariables { input: InsertNodeAtPathInput; } @@ -202,12 +240,12 @@ export interface SignUpVariables { export interface OneTimeTokenVariables { input: OneTimeTokenInput; } -export interface ForgotPasswordVariables { - input: ForgotPasswordInput; -} export interface SendVerificationEmailVariables { input: SendVerificationEmailInput; } +export interface ForgotPasswordVariables { + input: ForgotPasswordInput; +} export interface VerifyPasswordVariables { input: VerifyPasswordInput; } @@ -216,6 +254,35 @@ export interface VerifyTotpVariables { } export function createMutationOperations(client: OrmClient) { return { + sendAccountDeletionEmail: ( + args: SendAccountDeletionEmailVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + sendAccountDeletionEmail: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SendAccountDeletionEmail', + fieldName: 'sendAccountDeletionEmail', + ...buildCustomDocument( + 'mutation', + 'SendAccountDeletionEmail', + 'sendAccountDeletionEmail', + options.select, + args, + [ + { + name: 'input', + type: 'SendAccountDeletionEmailInput!', + }, + ], + connectionFieldsMap, + 'SendAccountDeletionEmailPayload' + ), + }), signOut: ( args: SignOutVariables, options: { @@ -245,62 +312,91 @@ export function createMutationOperations(client: OrmClient) { 'SignOutPayload' ), }), - sendAccountDeletionEmail: ( - args: SendAccountDeletionEmailVariables, + acceptDatabaseTransfer: ( + args: AcceptDatabaseTransferVariables, options: { select: S; - } & StrictSelect + } & StrictSelect ) => new QueryBuilder<{ - sendAccountDeletionEmail: InferSelectResult | null; + acceptDatabaseTransfer: InferSelectResult | null; }>({ client, operation: 'mutation', - operationName: 'SendAccountDeletionEmail', - fieldName: 'sendAccountDeletionEmail', + operationName: 'AcceptDatabaseTransfer', + fieldName: 'acceptDatabaseTransfer', ...buildCustomDocument( 'mutation', - 'SendAccountDeletionEmail', - 'sendAccountDeletionEmail', + 'AcceptDatabaseTransfer', + 'acceptDatabaseTransfer', options.select, args, [ { name: 'input', - type: 'SendAccountDeletionEmailInput!', + type: 'AcceptDatabaseTransferInput!', }, ], connectionFieldsMap, - 'SendAccountDeletionEmailPayload' + 'AcceptDatabaseTransferPayload' ), }), - checkPassword: ( - args: CheckPasswordVariables, + cancelDatabaseTransfer: ( + args: CancelDatabaseTransferVariables, options: { select: S; - } & StrictSelect + } & StrictSelect ) => new QueryBuilder<{ - checkPassword: InferSelectResult | null; + cancelDatabaseTransfer: InferSelectResult | null; }>({ client, operation: 'mutation', - operationName: 'CheckPassword', - fieldName: 'checkPassword', + operationName: 'CancelDatabaseTransfer', + fieldName: 'cancelDatabaseTransfer', ...buildCustomDocument( 'mutation', - 'CheckPassword', - 'checkPassword', + 'CancelDatabaseTransfer', + 'cancelDatabaseTransfer', options.select, args, [ { name: 'input', - type: 'CheckPasswordInput!', + type: 'CancelDatabaseTransferInput!', }, ], connectionFieldsMap, - 'CheckPasswordPayload' + 'CancelDatabaseTransferPayload' + ), + }), + rejectDatabaseTransfer: ( + args: RejectDatabaseTransferVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + rejectDatabaseTransfer: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'RejectDatabaseTransfer', + fieldName: 'rejectDatabaseTransfer', + ...buildCustomDocument( + 'mutation', + 'RejectDatabaseTransfer', + 'rejectDatabaseTransfer', + options.select, + args, + [ + { + name: 'input', + type: 'RejectDatabaseTransferInput!', + }, + ], + connectionFieldsMap, + 'RejectDatabaseTransferPayload' ), }), submitInviteCode: ( @@ -361,62 +457,33 @@ export function createMutationOperations(client: OrmClient) { 'SubmitOrgInviteCodePayload' ), }), - freezeObjects: ( - args: FreezeObjectsVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - freezeObjects: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'FreezeObjects', - fieldName: 'freezeObjects', - ...buildCustomDocument( - 'mutation', - 'FreezeObjects', - 'freezeObjects', - options.select, - args, - [ - { - name: 'input', - type: 'FreezeObjectsInput!', - }, - ], - connectionFieldsMap, - 'FreezeObjectsPayload' - ), - }), - initEmptyRepo: ( - args: InitEmptyRepoVariables, + checkPassword: ( + args: CheckPasswordVariables, options: { select: S; - } & StrictSelect + } & StrictSelect ) => new QueryBuilder<{ - initEmptyRepo: InferSelectResult | null; + checkPassword: InferSelectResult | null; }>({ client, operation: 'mutation', - operationName: 'InitEmptyRepo', - fieldName: 'initEmptyRepo', + operationName: 'CheckPassword', + fieldName: 'checkPassword', ...buildCustomDocument( 'mutation', - 'InitEmptyRepo', - 'initEmptyRepo', + 'CheckPassword', + 'checkPassword', options.select, args, [ { name: 'input', - type: 'InitEmptyRepoInput!', + type: 'CheckPasswordInput!', }, ], connectionFieldsMap, - 'InitEmptyRepoPayload' + 'CheckPasswordPayload' ), }), confirmDeleteAccount: ( @@ -506,120 +573,149 @@ export function createMutationOperations(client: OrmClient) { 'VerifyEmailPayload' ), }), - removeNodeAtPath: ( - args: RemoveNodeAtPathVariables, + freezeObjects: ( + args: FreezeObjectsVariables, options: { select: S; - } & StrictSelect + } & StrictSelect ) => new QueryBuilder<{ - removeNodeAtPath: InferSelectResult | null; + freezeObjects: InferSelectResult | null; }>({ client, operation: 'mutation', - operationName: 'RemoveNodeAtPath', - fieldName: 'removeNodeAtPath', + operationName: 'FreezeObjects', + fieldName: 'freezeObjects', ...buildCustomDocument( 'mutation', - 'RemoveNodeAtPath', - 'removeNodeAtPath', + 'FreezeObjects', + 'freezeObjects', options.select, args, [ { name: 'input', - type: 'RemoveNodeAtPathInput!', + type: 'FreezeObjectsInput!', }, ], connectionFieldsMap, - 'RemoveNodeAtPathPayload' + 'FreezeObjectsPayload' ), }), - resetPassword: ( - args: ResetPasswordVariables, + initEmptyRepo: ( + args: InitEmptyRepoVariables, options: { select: S; - } & StrictSelect + } & StrictSelect ) => new QueryBuilder<{ - resetPassword: InferSelectResult | null; + initEmptyRepo: InferSelectResult | null; }>({ client, operation: 'mutation', - operationName: 'ResetPassword', - fieldName: 'resetPassword', + operationName: 'InitEmptyRepo', + fieldName: 'initEmptyRepo', ...buildCustomDocument( 'mutation', - 'ResetPassword', - 'resetPassword', + 'InitEmptyRepo', + 'initEmptyRepo', options.select, args, [ { name: 'input', - type: 'ResetPasswordInput!', + type: 'InitEmptyRepoInput!', }, ], connectionFieldsMap, - 'ResetPasswordPayload' + 'InitEmptyRepoPayload' ), }), - bootstrapUser: ( - args: BootstrapUserVariables, + constructBlueprint: ( + args: ConstructBlueprintVariables, options: { select: S; - } & StrictSelect + } & StrictSelect ) => new QueryBuilder<{ - bootstrapUser: InferSelectResult | null; + constructBlueprint: InferSelectResult | null; }>({ client, operation: 'mutation', - operationName: 'BootstrapUser', - fieldName: 'bootstrapUser', + operationName: 'ConstructBlueprint', + fieldName: 'constructBlueprint', ...buildCustomDocument( 'mutation', - 'BootstrapUser', - 'bootstrapUser', + 'ConstructBlueprint', + 'constructBlueprint', options.select, args, [ { name: 'input', - type: 'BootstrapUserInput!', + type: 'ConstructBlueprintInput!', }, ], connectionFieldsMap, - 'BootstrapUserPayload' + 'ConstructBlueprintPayload' ), }), - setFieldOrder: ( - args: SetFieldOrderVariables, + resetPassword: ( + args: ResetPasswordVariables, options: { select: S; - } & StrictSelect + } & StrictSelect ) => new QueryBuilder<{ - setFieldOrder: InferSelectResult | null; + resetPassword: InferSelectResult | null; }>({ client, operation: 'mutation', - operationName: 'SetFieldOrder', - fieldName: 'setFieldOrder', + operationName: 'ResetPassword', + fieldName: 'resetPassword', ...buildCustomDocument( 'mutation', - 'SetFieldOrder', - 'setFieldOrder', + 'ResetPassword', + 'resetPassword', options.select, args, [ { name: 'input', - type: 'SetFieldOrderInput!', + type: 'ResetPasswordInput!', }, ], connectionFieldsMap, - 'SetFieldOrderPayload' + 'ResetPasswordPayload' + ), + }), + removeNodeAtPath: ( + args: RemoveNodeAtPathVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + removeNodeAtPath: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'RemoveNodeAtPath', + fieldName: 'removeNodeAtPath', + ...buildCustomDocument( + 'mutation', + 'RemoveNodeAtPath', + 'removeNodeAtPath', + options.select, + args, + [ + { + name: 'input', + type: 'RemoveNodeAtPathInput!', + }, + ], + connectionFieldsMap, + 'RemoveNodeAtPathPayload' ), }), setDataAtPath: ( @@ -680,6 +776,35 @@ export function createMutationOperations(client: OrmClient) { 'SetPropsAndCommitPayload' ), }), + copyTemplateToBlueprint: ( + args: CopyTemplateToBlueprintVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + copyTemplateToBlueprint: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'CopyTemplateToBlueprint', + fieldName: 'copyTemplateToBlueprint', + ...buildCustomDocument( + 'mutation', + 'CopyTemplateToBlueprint', + 'copyTemplateToBlueprint', + options.select, + args, + [ + { + name: 'input', + type: 'CopyTemplateToBlueprintInput!', + }, + ], + connectionFieldsMap, + 'CopyTemplateToBlueprintPayload' + ), + }), provisionDatabaseWithUser: ( args: ProvisionDatabaseWithUserVariables, options: { @@ -709,6 +834,64 @@ export function createMutationOperations(client: OrmClient) { 'ProvisionDatabaseWithUserPayload' ), }), + bootstrapUser: ( + args: BootstrapUserVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + bootstrapUser: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'BootstrapUser', + fieldName: 'bootstrapUser', + ...buildCustomDocument( + 'mutation', + 'BootstrapUser', + 'bootstrapUser', + options.select, + args, + [ + { + name: 'input', + type: 'BootstrapUserInput!', + }, + ], + connectionFieldsMap, + 'BootstrapUserPayload' + ), + }), + setFieldOrder: ( + args: SetFieldOrderVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + setFieldOrder: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SetFieldOrder', + fieldName: 'setFieldOrder', + ...buildCustomDocument( + 'mutation', + 'SetFieldOrder', + 'setFieldOrder', + options.select, + args, + [ + { + name: 'input', + type: 'SetFieldOrderInput!', + }, + ], + connectionFieldsMap, + 'SetFieldOrderPayload' + ), + }), insertNodeAtPath: ( args: InsertNodeAtPathVariables, options: { @@ -999,62 +1182,62 @@ export function createMutationOperations(client: OrmClient) { 'OneTimeTokenPayload' ), }), - forgotPassword: ( - args: ForgotPasswordVariables, + sendVerificationEmail: ( + args: SendVerificationEmailVariables, options: { select: S; - } & StrictSelect + } & StrictSelect ) => new QueryBuilder<{ - forgotPassword: InferSelectResult | null; + sendVerificationEmail: InferSelectResult | null; }>({ client, operation: 'mutation', - operationName: 'ForgotPassword', - fieldName: 'forgotPassword', + operationName: 'SendVerificationEmail', + fieldName: 'sendVerificationEmail', ...buildCustomDocument( 'mutation', - 'ForgotPassword', - 'forgotPassword', + 'SendVerificationEmail', + 'sendVerificationEmail', options.select, args, [ { name: 'input', - type: 'ForgotPasswordInput!', + type: 'SendVerificationEmailInput!', }, ], connectionFieldsMap, - 'ForgotPasswordPayload' + 'SendVerificationEmailPayload' ), }), - sendVerificationEmail: ( - args: SendVerificationEmailVariables, + forgotPassword: ( + args: ForgotPasswordVariables, options: { select: S; - } & StrictSelect + } & StrictSelect ) => new QueryBuilder<{ - sendVerificationEmail: InferSelectResult | null; + forgotPassword: InferSelectResult | null; }>({ client, operation: 'mutation', - operationName: 'SendVerificationEmail', - fieldName: 'sendVerificationEmail', + operationName: 'ForgotPassword', + fieldName: 'forgotPassword', ...buildCustomDocument( 'mutation', - 'SendVerificationEmail', - 'sendVerificationEmail', + 'ForgotPassword', + 'forgotPassword', options.select, args, [ { name: 'input', - type: 'SendVerificationEmailInput!', + type: 'ForgotPasswordInput!', }, ], connectionFieldsMap, - 'SendVerificationEmailPayload' + 'ForgotPasswordPayload' ), }), verifyPassword: ( diff --git a/sdk/constructive-react/src/public/schema-types.ts b/sdk/constructive-react/src/public/schema-types.ts index c52280120..e06d4d91c 100644 --- a/sdk/constructive-react/src/public/schema-types.ts +++ b/sdk/constructive-react/src/public/schema-types.ts @@ -24,6 +24,8 @@ import type { AppStep, AstMigration, AuditLog, + Blueprint, + BlueprintTemplate, CheckConstraint, ClaimedInvite, Commit, @@ -34,13 +36,16 @@ import type { CryptoAuthModule, Database, DatabaseProvisionModule, + DatabaseTransfer, DefaultIdsModule, DefaultPrivilege, DenormalizedTableField, Domain, Email, EmailsModule, + EmbeddingChunk, EncryptedSecretsModule, + Enum, Field, FieldModule, ForeignKeyConstraint, @@ -103,7 +108,6 @@ import type { User, UserAuthModule, UsersModule, - UuidModule, View, ViewGrant, ViewRule, @@ -149,15 +153,7 @@ export type CheckConstraintOrderBy = | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'NAME_TRGM_SIMILARITY_ASC' - | 'NAME_TRGM_SIMILARITY_DESC' - | 'TYPE_TRGM_SIMILARITY_ASC' - | 'TYPE_TRGM_SIMILARITY_DESC' - | 'MODULE_TRGM_SIMILARITY_ASC' - | 'MODULE_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'UPDATED_AT_DESC'; /** Methods to use when ordering `Field`. */ export type FieldOrderBy = | 'NATURAL' @@ -174,21 +170,7 @@ export type FieldOrderBy = | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'NAME_TRGM_SIMILARITY_ASC' - | 'NAME_TRGM_SIMILARITY_DESC' - | 'LABEL_TRGM_SIMILARITY_ASC' - | 'LABEL_TRGM_SIMILARITY_DESC' - | 'DESCRIPTION_TRGM_SIMILARITY_ASC' - | 'DESCRIPTION_TRGM_SIMILARITY_DESC' - | 'DEFAULT_VALUE_TRGM_SIMILARITY_ASC' - | 'DEFAULT_VALUE_TRGM_SIMILARITY_DESC' - | 'REGEXP_TRGM_SIMILARITY_ASC' - | 'REGEXP_TRGM_SIMILARITY_DESC' - | 'MODULE_TRGM_SIMILARITY_ASC' - | 'MODULE_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'UPDATED_AT_DESC'; /** Methods to use when ordering `ForeignKeyConstraint`. */ export type ForeignKeyConstraintOrderBy = | 'NATURAL' @@ -205,21 +187,7 @@ export type ForeignKeyConstraintOrderBy = | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'NAME_TRGM_SIMILARITY_ASC' - | 'NAME_TRGM_SIMILARITY_DESC' - | 'DESCRIPTION_TRGM_SIMILARITY_ASC' - | 'DESCRIPTION_TRGM_SIMILARITY_DESC' - | 'TYPE_TRGM_SIMILARITY_ASC' - | 'TYPE_TRGM_SIMILARITY_DESC' - | 'DELETE_ACTION_TRGM_SIMILARITY_ASC' - | 'DELETE_ACTION_TRGM_SIMILARITY_DESC' - | 'UPDATE_ACTION_TRGM_SIMILARITY_ASC' - | 'UPDATE_ACTION_TRGM_SIMILARITY_DESC' - | 'MODULE_TRGM_SIMILARITY_ASC' - | 'MODULE_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'UPDATED_AT_DESC'; /** Methods to use when ordering `FullTextSearch`. */ export type FullTextSearchOrderBy = | 'NATURAL' @@ -251,15 +219,7 @@ export type IndexOrderBy = | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'NAME_TRGM_SIMILARITY_ASC' - | 'NAME_TRGM_SIMILARITY_DESC' - | 'ACCESS_METHOD_TRGM_SIMILARITY_ASC' - | 'ACCESS_METHOD_TRGM_SIMILARITY_DESC' - | 'MODULE_TRGM_SIMILARITY_ASC' - | 'MODULE_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'UPDATED_AT_DESC'; /** Methods to use when ordering `Policy`. */ export type PolicyOrderBy = | 'NATURAL' @@ -276,19 +236,7 @@ export type PolicyOrderBy = | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'NAME_TRGM_SIMILARITY_ASC' - | 'NAME_TRGM_SIMILARITY_DESC' - | 'GRANTEE_NAME_TRGM_SIMILARITY_ASC' - | 'GRANTEE_NAME_TRGM_SIMILARITY_DESC' - | 'PRIVILEGE_TRGM_SIMILARITY_ASC' - | 'PRIVILEGE_TRGM_SIMILARITY_DESC' - | 'POLICY_TYPE_TRGM_SIMILARITY_ASC' - | 'POLICY_TYPE_TRGM_SIMILARITY_DESC' - | 'MODULE_TRGM_SIMILARITY_ASC' - | 'MODULE_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'UPDATED_AT_DESC'; /** Methods to use when ordering `PrimaryKeyConstraint`. */ export type PrimaryKeyConstraintOrderBy = | 'NATURAL' @@ -305,15 +253,7 @@ export type PrimaryKeyConstraintOrderBy = | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'NAME_TRGM_SIMILARITY_ASC' - | 'NAME_TRGM_SIMILARITY_DESC' - | 'TYPE_TRGM_SIMILARITY_ASC' - | 'TYPE_TRGM_SIMILARITY_DESC' - | 'MODULE_TRGM_SIMILARITY_ASC' - | 'MODULE_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'UPDATED_AT_DESC'; /** Methods to use when ordering `TableGrant`. */ export type TableGrantOrderBy = | 'NATURAL' @@ -328,13 +268,7 @@ export type TableGrantOrderBy = | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'PRIVILEGE_TRGM_SIMILARITY_ASC' - | 'PRIVILEGE_TRGM_SIMILARITY_DESC' - | 'GRANTEE_NAME_TRGM_SIMILARITY_ASC' - | 'GRANTEE_NAME_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'UPDATED_AT_DESC'; /** Methods to use when ordering `Trigger`. */ export type TriggerOrderBy = | 'NATURAL' @@ -351,17 +285,7 @@ export type TriggerOrderBy = | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'NAME_TRGM_SIMILARITY_ASC' - | 'NAME_TRGM_SIMILARITY_DESC' - | 'EVENT_TRGM_SIMILARITY_ASC' - | 'EVENT_TRGM_SIMILARITY_DESC' - | 'FUNCTION_NAME_TRGM_SIMILARITY_ASC' - | 'FUNCTION_NAME_TRGM_SIMILARITY_DESC' - | 'MODULE_TRGM_SIMILARITY_ASC' - | 'MODULE_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'UPDATED_AT_DESC'; /** Methods to use when ordering `UniqueConstraint`. */ export type UniqueConstraintOrderBy = | 'NATURAL' @@ -378,17 +302,7 @@ export type UniqueConstraintOrderBy = | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'NAME_TRGM_SIMILARITY_ASC' - | 'NAME_TRGM_SIMILARITY_DESC' - | 'DESCRIPTION_TRGM_SIMILARITY_ASC' - | 'DESCRIPTION_TRGM_SIMILARITY_DESC' - | 'TYPE_TRGM_SIMILARITY_ASC' - | 'TYPE_TRGM_SIMILARITY_DESC' - | 'MODULE_TRGM_SIMILARITY_ASC' - | 'MODULE_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'UPDATED_AT_DESC'; /** Methods to use when ordering `ViewTable`. */ export type ViewTableOrderBy = | 'NATURAL' @@ -416,13 +330,7 @@ export type ViewGrantOrderBy = | 'PRIVILEGE_ASC' | 'PRIVILEGE_DESC' | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' - | 'GRANTEE_NAME_TRGM_SIMILARITY_ASC' - | 'GRANTEE_NAME_TRGM_SIMILARITY_DESC' - | 'PRIVILEGE_TRGM_SIMILARITY_ASC' - | 'PRIVILEGE_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'IS_GRANT_DESC'; /** Methods to use when ordering `ViewRule`. */ export type ViewRuleOrderBy = | 'NATURAL' @@ -435,15 +343,7 @@ export type ViewRuleOrderBy = | 'VIEW_ID_ASC' | 'VIEW_ID_DESC' | 'NAME_ASC' - | 'NAME_DESC' - | 'NAME_TRGM_SIMILARITY_ASC' - | 'NAME_TRGM_SIMILARITY_DESC' - | 'EVENT_TRGM_SIMILARITY_ASC' - | 'EVENT_TRGM_SIMILARITY_DESC' - | 'ACTION_TRGM_SIMILARITY_ASC' - | 'ACTION_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'NAME_DESC'; /** Methods to use when ordering `View`. */ export type ViewOrderBy = | 'NATURAL' @@ -458,17 +358,24 @@ export type ViewOrderBy = | 'NAME_ASC' | 'NAME_DESC' | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC'; +/** Methods to use when ordering `EmbeddingChunk`. */ +export type EmbeddingChunkOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'TABLE_ID_ASC' | 'TABLE_ID_DESC' - | 'NAME_TRGM_SIMILARITY_ASC' - | 'NAME_TRGM_SIMILARITY_DESC' - | 'VIEW_TYPE_TRGM_SIMILARITY_ASC' - | 'VIEW_TYPE_TRGM_SIMILARITY_DESC' - | 'FILTER_TYPE_TRGM_SIMILARITY_ASC' - | 'FILTER_TYPE_TRGM_SIMILARITY_DESC' - | 'MODULE_TRGM_SIMILARITY_ASC' - | 'MODULE_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'CHUNKS_TABLE_ID_ASC' + | 'CHUNKS_TABLE_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; /** Methods to use when ordering `TableTemplateModule`. */ export type TableTemplateModuleOrderBy = | 'NATURAL' @@ -487,13 +394,7 @@ export type TableTemplateModuleOrderBy = | 'OWNER_TABLE_ID_ASC' | 'OWNER_TABLE_ID_DESC' | 'NODE_TYPE_ASC' - | 'NODE_TYPE_DESC' - | 'TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'NODE_TYPE_TRGM_SIMILARITY_ASC' - | 'NODE_TYPE_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'NODE_TYPE_DESC'; /** Methods to use when ordering `SecureTableProvision`. */ export type SecureTableProvisionOrderBy = | 'NATURAL' @@ -506,19 +407,7 @@ export type SecureTableProvisionOrderBy = | 'TABLE_ID_ASC' | 'TABLE_ID_DESC' | 'NODE_TYPE_ASC' - | 'NODE_TYPE_DESC' - | 'TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'NODE_TYPE_TRGM_SIMILARITY_ASC' - | 'NODE_TYPE_TRGM_SIMILARITY_DESC' - | 'POLICY_TYPE_TRGM_SIMILARITY_ASC' - | 'POLICY_TYPE_TRGM_SIMILARITY_DESC' - | 'POLICY_ROLE_TRGM_SIMILARITY_ASC' - | 'POLICY_ROLE_TRGM_SIMILARITY_DESC' - | 'POLICY_NAME_TRGM_SIMILARITY_ASC' - | 'POLICY_NAME_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'NODE_TYPE_DESC'; /** Methods to use when ordering `RelationProvision`. */ export type RelationProvisionOrderBy = | 'NATURAL' @@ -533,29 +422,7 @@ export type RelationProvisionOrderBy = | 'SOURCE_TABLE_ID_ASC' | 'SOURCE_TABLE_ID_DESC' | 'TARGET_TABLE_ID_ASC' - | 'TARGET_TABLE_ID_DESC' - | 'RELATION_TYPE_TRGM_SIMILARITY_ASC' - | 'RELATION_TYPE_TRGM_SIMILARITY_DESC' - | 'FIELD_NAME_TRGM_SIMILARITY_ASC' - | 'FIELD_NAME_TRGM_SIMILARITY_DESC' - | 'DELETE_ACTION_TRGM_SIMILARITY_ASC' - | 'DELETE_ACTION_TRGM_SIMILARITY_DESC' - | 'JUNCTION_TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'JUNCTION_TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'SOURCE_FIELD_NAME_TRGM_SIMILARITY_ASC' - | 'SOURCE_FIELD_NAME_TRGM_SIMILARITY_DESC' - | 'TARGET_FIELD_NAME_TRGM_SIMILARITY_ASC' - | 'TARGET_FIELD_NAME_TRGM_SIMILARITY_DESC' - | 'NODE_TYPE_TRGM_SIMILARITY_ASC' - | 'NODE_TYPE_TRGM_SIMILARITY_DESC' - | 'POLICY_TYPE_TRGM_SIMILARITY_ASC' - | 'POLICY_TYPE_TRGM_SIMILARITY_DESC' - | 'POLICY_ROLE_TRGM_SIMILARITY_ASC' - | 'POLICY_ROLE_TRGM_SIMILARITY_DESC' - | 'POLICY_NAME_TRGM_SIMILARITY_ASC' - | 'POLICY_NAME_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'TARGET_TABLE_ID_DESC'; /** Methods to use when ordering `Table`. */ export type TableOrderBy = | 'NATURAL' @@ -572,21 +439,7 @@ export type TableOrderBy = | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'NAME_TRGM_SIMILARITY_ASC' - | 'NAME_TRGM_SIMILARITY_DESC' - | 'LABEL_TRGM_SIMILARITY_ASC' - | 'LABEL_TRGM_SIMILARITY_DESC' - | 'DESCRIPTION_TRGM_SIMILARITY_ASC' - | 'DESCRIPTION_TRGM_SIMILARITY_DESC' - | 'MODULE_TRGM_SIMILARITY_ASC' - | 'MODULE_TRGM_SIMILARITY_DESC' - | 'PLURAL_NAME_TRGM_SIMILARITY_ASC' - | 'PLURAL_NAME_TRGM_SIMILARITY_DESC' - | 'SINGULAR_NAME_TRGM_SIMILARITY_ASC' - | 'SINGULAR_NAME_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'UPDATED_AT_DESC'; /** Methods to use when ordering `SchemaGrant`. */ export type SchemaGrantOrderBy = | 'NATURAL' @@ -601,11 +454,7 @@ export type SchemaGrantOrderBy = | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'GRANTEE_NAME_TRGM_SIMILARITY_ASC' - | 'GRANTEE_NAME_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'UPDATED_AT_DESC'; /** Methods to use when ordering `DefaultPrivilege`. */ export type DefaultPrivilegeOrderBy = | 'NATURAL' @@ -624,15 +473,20 @@ export type DefaultPrivilegeOrderBy = | 'GRANTEE_NAME_ASC' | 'GRANTEE_NAME_DESC' | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' - | 'OBJECT_TYPE_TRGM_SIMILARITY_ASC' - | 'OBJECT_TYPE_TRGM_SIMILARITY_DESC' - | 'PRIVILEGE_TRGM_SIMILARITY_ASC' - | 'PRIVILEGE_TRGM_SIMILARITY_DESC' - | 'GRANTEE_NAME_TRGM_SIMILARITY_ASC' - | 'GRANTEE_NAME_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'IS_GRANT_DESC'; +/** Methods to use when ordering `Enum`. */ +export type EnumOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC'; /** Methods to use when ordering `ApiModule`. */ export type ApiModuleOrderBy = | 'NATURAL' @@ -645,11 +499,7 @@ export type ApiModuleOrderBy = | 'API_ID_ASC' | 'API_ID_DESC' | 'NAME_ASC' - | 'NAME_DESC' - | 'NAME_TRGM_SIMILARITY_ASC' - | 'NAME_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'NAME_DESC'; /** Methods to use when ordering `ApiSchema`. */ export type ApiSchemaOrderBy = | 'NATURAL' @@ -690,13 +540,7 @@ export type SiteMetadatumOrderBy = | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'SITE_ID_ASC' - | 'SITE_ID_DESC' - | 'TITLE_TRGM_SIMILARITY_ASC' - | 'TITLE_TRGM_SIMILARITY_DESC' - | 'DESCRIPTION_TRGM_SIMILARITY_ASC' - | 'DESCRIPTION_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'SITE_ID_DESC'; /** Methods to use when ordering `SiteModule`. */ export type SiteModuleOrderBy = | 'NATURAL' @@ -707,11 +551,7 @@ export type SiteModuleOrderBy = | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'SITE_ID_ASC' - | 'SITE_ID_DESC' - | 'NAME_TRGM_SIMILARITY_ASC' - | 'NAME_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'SITE_ID_DESC'; /** Methods to use when ordering `SiteTheme`. */ export type SiteThemeOrderBy = | 'NATURAL' @@ -739,19 +579,7 @@ export type SchemaOrderBy = | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'NAME_TRGM_SIMILARITY_ASC' - | 'NAME_TRGM_SIMILARITY_DESC' - | 'SCHEMA_NAME_TRGM_SIMILARITY_ASC' - | 'SCHEMA_NAME_TRGM_SIMILARITY_DESC' - | 'LABEL_TRGM_SIMILARITY_ASC' - | 'LABEL_TRGM_SIMILARITY_DESC' - | 'DESCRIPTION_TRGM_SIMILARITY_ASC' - | 'DESCRIPTION_TRGM_SIMILARITY_DESC' - | 'MODULE_TRGM_SIMILARITY_ASC' - | 'MODULE_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'UPDATED_AT_DESC'; /** Methods to use when ordering `TriggerFunction`. */ export type TriggerFunctionOrderBy = | 'NATURAL' @@ -766,13 +594,20 @@ export type TriggerFunctionOrderBy = | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'NAME_TRGM_SIMILARITY_ASC' - | 'NAME_TRGM_SIMILARITY_DESC' - | 'CODE_TRGM_SIMILARITY_ASC' - | 'CODE_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `DatabaseTransfer`. */ +export type DatabaseTransferOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'TARGET_OWNER_ID_ASC' + | 'TARGET_OWNER_ID_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC'; /** Methods to use when ordering `Api`. */ export type ApiOrderBy = | 'NATURAL' @@ -783,17 +618,7 @@ export type ApiOrderBy = | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'NAME_ASC' - | 'NAME_DESC' - | 'NAME_TRGM_SIMILARITY_ASC' - | 'NAME_TRGM_SIMILARITY_DESC' - | 'DBNAME_TRGM_SIMILARITY_ASC' - | 'DBNAME_TRGM_SIMILARITY_DESC' - | 'ROLE_NAME_TRGM_SIMILARITY_ASC' - | 'ROLE_NAME_TRGM_SIMILARITY_DESC' - | 'ANON_ROLE_TRGM_SIMILARITY_ASC' - | 'ANON_ROLE_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'NAME_DESC'; /** Methods to use when ordering `Site`. */ export type SiteOrderBy = | 'NATURAL' @@ -802,15 +627,7 @@ export type SiteOrderBy = | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'TITLE_TRGM_SIMILARITY_ASC' - | 'TITLE_TRGM_SIMILARITY_DESC' - | 'DESCRIPTION_TRGM_SIMILARITY_ASC' - | 'DESCRIPTION_TRGM_SIMILARITY_DESC' - | 'DBNAME_TRGM_SIMILARITY_ASC' - | 'DBNAME_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'DATABASE_ID_DESC'; /** Methods to use when ordering `App`. */ export type AppOrderBy = | 'NATURAL' @@ -821,15 +638,7 @@ export type AppOrderBy = | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'SITE_ID_ASC' - | 'SITE_ID_DESC' - | 'NAME_TRGM_SIMILARITY_ASC' - | 'NAME_TRGM_SIMILARITY_DESC' - | 'APP_STORE_ID_TRGM_SIMILARITY_ASC' - | 'APP_STORE_ID_TRGM_SIMILARITY_DESC' - | 'APP_ID_PREFIX_TRGM_SIMILARITY_ASC' - | 'APP_ID_PREFIX_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'SITE_ID_DESC'; /** Methods to use when ordering `ConnectedAccountsModule`. */ export type ConnectedAccountsModuleOrderBy = | 'NATURAL' @@ -838,11 +647,7 @@ export type ConnectedAccountsModuleOrderBy = | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'DATABASE_ID_DESC'; /** Methods to use when ordering `CryptoAddressesModule`. */ export type CryptoAddressesModuleOrderBy = | 'NATURAL' @@ -851,13 +656,7 @@ export type CryptoAddressesModuleOrderBy = | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'CRYPTO_NETWORK_TRGM_SIMILARITY_ASC' - | 'CRYPTO_NETWORK_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'DATABASE_ID_DESC'; /** Methods to use when ordering `CryptoAuthModule`. */ export type CryptoAuthModuleOrderBy = | 'NATURAL' @@ -866,21 +665,7 @@ export type CryptoAuthModuleOrderBy = | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'USER_FIELD_TRGM_SIMILARITY_ASC' - | 'USER_FIELD_TRGM_SIMILARITY_DESC' - | 'CRYPTO_NETWORK_TRGM_SIMILARITY_ASC' - | 'CRYPTO_NETWORK_TRGM_SIMILARITY_DESC' - | 'SIGN_IN_REQUEST_CHALLENGE_TRGM_SIMILARITY_ASC' - | 'SIGN_IN_REQUEST_CHALLENGE_TRGM_SIMILARITY_DESC' - | 'SIGN_IN_RECORD_FAILURE_TRGM_SIMILARITY_ASC' - | 'SIGN_IN_RECORD_FAILURE_TRGM_SIMILARITY_DESC' - | 'SIGN_UP_WITH_KEY_TRGM_SIMILARITY_ASC' - | 'SIGN_UP_WITH_KEY_TRGM_SIMILARITY_DESC' - | 'SIGN_IN_WITH_CHALLENGE_TRGM_SIMILARITY_ASC' - | 'SIGN_IN_WITH_CHALLENGE_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'DATABASE_ID_DESC'; /** Methods to use when ordering `DefaultIdsModule`. */ export type DefaultIdsModuleOrderBy = | 'NATURAL' @@ -898,11 +683,7 @@ export type DenormalizedTableFieldOrderBy = | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'FUNC_NAME_TRGM_SIMILARITY_ASC' - | 'FUNC_NAME_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'DATABASE_ID_DESC'; /** Methods to use when ordering `EmailsModule`. */ export type EmailsModuleOrderBy = | 'NATURAL' @@ -911,11 +692,7 @@ export type EmailsModuleOrderBy = | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'DATABASE_ID_DESC'; /** Methods to use when ordering `EncryptedSecretsModule`. */ export type EncryptedSecretsModuleOrderBy = | 'NATURAL' @@ -924,11 +701,7 @@ export type EncryptedSecretsModuleOrderBy = | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'DATABASE_ID_DESC'; /** Methods to use when ordering `FieldModule`. */ export type FieldModuleOrderBy = | 'NATURAL' @@ -939,11 +712,7 @@ export type FieldModuleOrderBy = | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'NODE_TYPE_ASC' - | 'NODE_TYPE_DESC' - | 'NODE_TYPE_TRGM_SIMILARITY_ASC' - | 'NODE_TYPE_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'NODE_TYPE_DESC'; /** Methods to use when ordering `InvitesModule`. */ export type InvitesModuleOrderBy = | 'NATURAL' @@ -952,17 +721,7 @@ export type InvitesModuleOrderBy = | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'INVITES_TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'INVITES_TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'CLAIMED_INVITES_TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'CLAIMED_INVITES_TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'SUBMIT_INVITE_CODE_FUNCTION_TRGM_SIMILARITY_ASC' - | 'SUBMIT_INVITE_CODE_FUNCTION_TRGM_SIMILARITY_DESC' - | 'PREFIX_TRGM_SIMILARITY_ASC' - | 'PREFIX_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'DATABASE_ID_DESC'; /** Methods to use when ordering `LevelsModule`. */ export type LevelsModuleOrderBy = | 'NATURAL' @@ -971,39 +730,7 @@ export type LevelsModuleOrderBy = | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'STEPS_TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'STEPS_TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'ACHIEVEMENTS_TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'ACHIEVEMENTS_TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'LEVELS_TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'LEVELS_TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'LEVEL_REQUIREMENTS_TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'LEVEL_REQUIREMENTS_TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'COMPLETED_STEP_TRGM_SIMILARITY_ASC' - | 'COMPLETED_STEP_TRGM_SIMILARITY_DESC' - | 'INCOMPLETED_STEP_TRGM_SIMILARITY_ASC' - | 'INCOMPLETED_STEP_TRGM_SIMILARITY_DESC' - | 'TG_ACHIEVEMENT_TRGM_SIMILARITY_ASC' - | 'TG_ACHIEVEMENT_TRGM_SIMILARITY_DESC' - | 'TG_ACHIEVEMENT_TOGGLE_TRGM_SIMILARITY_ASC' - | 'TG_ACHIEVEMENT_TOGGLE_TRGM_SIMILARITY_DESC' - | 'TG_ACHIEVEMENT_TOGGLE_BOOLEAN_TRGM_SIMILARITY_ASC' - | 'TG_ACHIEVEMENT_TOGGLE_BOOLEAN_TRGM_SIMILARITY_DESC' - | 'TG_ACHIEVEMENT_BOOLEAN_TRGM_SIMILARITY_ASC' - | 'TG_ACHIEVEMENT_BOOLEAN_TRGM_SIMILARITY_DESC' - | 'UPSERT_ACHIEVEMENT_TRGM_SIMILARITY_ASC' - | 'UPSERT_ACHIEVEMENT_TRGM_SIMILARITY_DESC' - | 'TG_UPDATE_ACHIEVEMENTS_TRGM_SIMILARITY_ASC' - | 'TG_UPDATE_ACHIEVEMENTS_TRGM_SIMILARITY_DESC' - | 'STEPS_REQUIRED_TRGM_SIMILARITY_ASC' - | 'STEPS_REQUIRED_TRGM_SIMILARITY_DESC' - | 'LEVEL_ACHIEVED_TRGM_SIMILARITY_ASC' - | 'LEVEL_ACHIEVED_TRGM_SIMILARITY_DESC' - | 'PREFIX_TRGM_SIMILARITY_ASC' - | 'PREFIX_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'DATABASE_ID_DESC'; /** Methods to use when ordering `LimitsModule`. */ export type LimitsModuleOrderBy = | 'NATURAL' @@ -1012,27 +739,7 @@ export type LimitsModuleOrderBy = | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'DEFAULT_TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'DEFAULT_TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'LIMIT_INCREMENT_FUNCTION_TRGM_SIMILARITY_ASC' - | 'LIMIT_INCREMENT_FUNCTION_TRGM_SIMILARITY_DESC' - | 'LIMIT_DECREMENT_FUNCTION_TRGM_SIMILARITY_ASC' - | 'LIMIT_DECREMENT_FUNCTION_TRGM_SIMILARITY_DESC' - | 'LIMIT_INCREMENT_TRIGGER_TRGM_SIMILARITY_ASC' - | 'LIMIT_INCREMENT_TRIGGER_TRGM_SIMILARITY_DESC' - | 'LIMIT_DECREMENT_TRIGGER_TRGM_SIMILARITY_ASC' - | 'LIMIT_DECREMENT_TRIGGER_TRGM_SIMILARITY_DESC' - | 'LIMIT_UPDATE_TRIGGER_TRGM_SIMILARITY_ASC' - | 'LIMIT_UPDATE_TRIGGER_TRGM_SIMILARITY_DESC' - | 'LIMIT_CHECK_FUNCTION_TRGM_SIMILARITY_ASC' - | 'LIMIT_CHECK_FUNCTION_TRGM_SIMILARITY_DESC' - | 'PREFIX_TRGM_SIMILARITY_ASC' - | 'PREFIX_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'DATABASE_ID_DESC'; /** Methods to use when ordering `MembershipTypesModule`. */ export type MembershipTypesModuleOrderBy = | 'NATURAL' @@ -1041,11 +748,7 @@ export type MembershipTypesModuleOrderBy = | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'DATABASE_ID_DESC'; /** Methods to use when ordering `MembershipsModule`. */ export type MembershipsModuleOrderBy = | 'NATURAL' @@ -1054,33 +757,7 @@ export type MembershipsModuleOrderBy = | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'MEMBERSHIPS_TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'MEMBERSHIPS_TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'MEMBERS_TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'MEMBERS_TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'MEMBERSHIP_DEFAULTS_TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'MEMBERSHIP_DEFAULTS_TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'GRANTS_TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'GRANTS_TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'ADMIN_GRANTS_TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'ADMIN_GRANTS_TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'OWNER_GRANTS_TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'OWNER_GRANTS_TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'PREFIX_TRGM_SIMILARITY_ASC' - | 'PREFIX_TRGM_SIMILARITY_DESC' - | 'ACTOR_MASK_CHECK_TRGM_SIMILARITY_ASC' - | 'ACTOR_MASK_CHECK_TRGM_SIMILARITY_DESC' - | 'ACTOR_PERM_CHECK_TRGM_SIMILARITY_ASC' - | 'ACTOR_PERM_CHECK_TRGM_SIMILARITY_DESC' - | 'ENTITY_IDS_BY_MASK_TRGM_SIMILARITY_ASC' - | 'ENTITY_IDS_BY_MASK_TRGM_SIMILARITY_DESC' - | 'ENTITY_IDS_BY_PERM_TRGM_SIMILARITY_ASC' - | 'ENTITY_IDS_BY_PERM_TRGM_SIMILARITY_DESC' - | 'ENTITY_IDS_FUNCTION_TRGM_SIMILARITY_ASC' - | 'ENTITY_IDS_FUNCTION_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'DATABASE_ID_DESC'; /** Methods to use when ordering `PermissionsModule`. */ export type PermissionsModuleOrderBy = | 'NATURAL' @@ -1089,23 +766,7 @@ export type PermissionsModuleOrderBy = | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'DEFAULT_TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'DEFAULT_TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'PREFIX_TRGM_SIMILARITY_ASC' - | 'PREFIX_TRGM_SIMILARITY_DESC' - | 'GET_PADDED_MASK_TRGM_SIMILARITY_ASC' - | 'GET_PADDED_MASK_TRGM_SIMILARITY_DESC' - | 'GET_MASK_TRGM_SIMILARITY_ASC' - | 'GET_MASK_TRGM_SIMILARITY_DESC' - | 'GET_BY_MASK_TRGM_SIMILARITY_ASC' - | 'GET_BY_MASK_TRGM_SIMILARITY_DESC' - | 'GET_MASK_BY_NAME_TRGM_SIMILARITY_ASC' - | 'GET_MASK_BY_NAME_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'DATABASE_ID_DESC'; /** Methods to use when ordering `PhoneNumbersModule`. */ export type PhoneNumbersModuleOrderBy = | 'NATURAL' @@ -1114,11 +775,7 @@ export type PhoneNumbersModuleOrderBy = | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'DATABASE_ID_DESC'; /** Methods to use when ordering `ProfilesModule`. */ export type ProfilesModuleOrderBy = | 'NATURAL' @@ -1129,19 +786,7 @@ export type ProfilesModuleOrderBy = | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'MEMBERSHIP_TYPE_ASC' - | 'MEMBERSHIP_TYPE_DESC' - | 'TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'PROFILE_PERMISSIONS_TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'PROFILE_PERMISSIONS_TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'PROFILE_GRANTS_TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'PROFILE_GRANTS_TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'PROFILE_DEFINITION_GRANTS_TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'PROFILE_DEFINITION_GRANTS_TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'PREFIX_TRGM_SIMILARITY_ASC' - | 'PREFIX_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'MEMBERSHIP_TYPE_DESC'; /** Methods to use when ordering `SecretsModule`. */ export type SecretsModuleOrderBy = | 'NATURAL' @@ -1150,11 +795,7 @@ export type SecretsModuleOrderBy = | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'DATABASE_ID_DESC'; /** Methods to use when ordering `SessionsModule`. */ export type SessionsModuleOrderBy = | 'NATURAL' @@ -1163,15 +804,7 @@ export type SessionsModuleOrderBy = | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SESSIONS_TABLE_TRGM_SIMILARITY_ASC' - | 'SESSIONS_TABLE_TRGM_SIMILARITY_DESC' - | 'SESSION_CREDENTIALS_TABLE_TRGM_SIMILARITY_ASC' - | 'SESSION_CREDENTIALS_TABLE_TRGM_SIMILARITY_DESC' - | 'AUTH_SETTINGS_TABLE_TRGM_SIMILARITY_ASC' - | 'AUTH_SETTINGS_TABLE_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'DATABASE_ID_DESC'; /** Methods to use when ordering `UserAuthModule`. */ export type UserAuthModuleOrderBy = | 'NATURAL' @@ -1180,41 +813,7 @@ export type UserAuthModuleOrderBy = | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'AUDITS_TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'AUDITS_TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'SIGN_IN_FUNCTION_TRGM_SIMILARITY_ASC' - | 'SIGN_IN_FUNCTION_TRGM_SIMILARITY_DESC' - | 'SIGN_UP_FUNCTION_TRGM_SIMILARITY_ASC' - | 'SIGN_UP_FUNCTION_TRGM_SIMILARITY_DESC' - | 'SIGN_OUT_FUNCTION_TRGM_SIMILARITY_ASC' - | 'SIGN_OUT_FUNCTION_TRGM_SIMILARITY_DESC' - | 'SET_PASSWORD_FUNCTION_TRGM_SIMILARITY_ASC' - | 'SET_PASSWORD_FUNCTION_TRGM_SIMILARITY_DESC' - | 'RESET_PASSWORD_FUNCTION_TRGM_SIMILARITY_ASC' - | 'RESET_PASSWORD_FUNCTION_TRGM_SIMILARITY_DESC' - | 'FORGOT_PASSWORD_FUNCTION_TRGM_SIMILARITY_ASC' - | 'FORGOT_PASSWORD_FUNCTION_TRGM_SIMILARITY_DESC' - | 'SEND_VERIFICATION_EMAIL_FUNCTION_TRGM_SIMILARITY_ASC' - | 'SEND_VERIFICATION_EMAIL_FUNCTION_TRGM_SIMILARITY_DESC' - | 'VERIFY_EMAIL_FUNCTION_TRGM_SIMILARITY_ASC' - | 'VERIFY_EMAIL_FUNCTION_TRGM_SIMILARITY_DESC' - | 'VERIFY_PASSWORD_FUNCTION_TRGM_SIMILARITY_ASC' - | 'VERIFY_PASSWORD_FUNCTION_TRGM_SIMILARITY_DESC' - | 'CHECK_PASSWORD_FUNCTION_TRGM_SIMILARITY_ASC' - | 'CHECK_PASSWORD_FUNCTION_TRGM_SIMILARITY_DESC' - | 'SEND_ACCOUNT_DELETION_EMAIL_FUNCTION_TRGM_SIMILARITY_ASC' - | 'SEND_ACCOUNT_DELETION_EMAIL_FUNCTION_TRGM_SIMILARITY_DESC' - | 'DELETE_ACCOUNT_FUNCTION_TRGM_SIMILARITY_ASC' - | 'DELETE_ACCOUNT_FUNCTION_TRGM_SIMILARITY_DESC' - | 'SIGN_IN_ONE_TIME_TOKEN_FUNCTION_TRGM_SIMILARITY_ASC' - | 'SIGN_IN_ONE_TIME_TOKEN_FUNCTION_TRGM_SIMILARITY_DESC' - | 'ONE_TIME_TOKEN_FUNCTION_TRGM_SIMILARITY_ASC' - | 'ONE_TIME_TOKEN_FUNCTION_TRGM_SIMILARITY_DESC' - | 'EXTEND_TOKEN_EXPIRES_TRGM_SIMILARITY_ASC' - | 'EXTEND_TOKEN_EXPIRES_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'DATABASE_ID_DESC'; /** Methods to use when ordering `UsersModule`. */ export type UsersModuleOrderBy = | 'NATURAL' @@ -1223,28 +822,45 @@ export type UsersModuleOrderBy = | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'TYPE_TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'TYPE_TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; -/** Methods to use when ordering `UuidModule`. */ -export type UuidModuleOrderBy = + | 'DATABASE_ID_DESC'; +/** Methods to use when ordering `BlueprintTemplate`. */ +export type BlueprintTemplateOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'VERSION_ASC' + | 'VERSION_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'VISIBILITY_ASC' + | 'VISIBILITY_DESC' + | 'FORKED_FROM_ID_ASC' + | 'FORKED_FROM_ID_DESC' + | 'DEFINITION_HASH_ASC' + | 'DEFINITION_HASH_DESC'; +/** Methods to use when ordering `Blueprint`. */ +export type BlueprintOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'UUID_FUNCTION_TRGM_SIMILARITY_ASC' - | 'UUID_FUNCTION_TRGM_SIMILARITY_DESC' - | 'UUID_SEED_TRGM_SIMILARITY_ASC' - | 'UUID_SEED_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'NAME_ASC' + | 'NAME_DESC' + | 'TEMPLATE_ID_ASC' + | 'TEMPLATE_ID_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'DEFINITION_HASH_ASC' + | 'DEFINITION_HASH_DESC'; /** Methods to use when ordering `DatabaseProvisionModule`. */ export type DatabaseProvisionModuleOrderBy = | 'NATURAL' @@ -1257,19 +873,7 @@ export type DatabaseProvisionModuleOrderBy = | 'STATUS_ASC' | 'STATUS_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'DATABASE_NAME_TRGM_SIMILARITY_ASC' - | 'DATABASE_NAME_TRGM_SIMILARITY_DESC' - | 'SUBDOMAIN_TRGM_SIMILARITY_ASC' - | 'SUBDOMAIN_TRGM_SIMILARITY_DESC' - | 'DOMAIN_TRGM_SIMILARITY_ASC' - | 'DOMAIN_TRGM_SIMILARITY_DESC' - | 'STATUS_TRGM_SIMILARITY_ASC' - | 'STATUS_TRGM_SIMILARITY_DESC' - | 'ERROR_MESSAGE_TRGM_SIMILARITY_ASC' - | 'ERROR_MESSAGE_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'DATABASE_ID_DESC'; /** Methods to use when ordering `Database`. */ export type DatabaseOrderBy = | 'NATURAL' @@ -1284,15 +888,7 @@ export type DatabaseOrderBy = | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'SCHEMA_HASH_TRGM_SIMILARITY_ASC' - | 'SCHEMA_HASH_TRGM_SIMILARITY_DESC' - | 'NAME_TRGM_SIMILARITY_ASC' - | 'NAME_TRGM_SIMILARITY_DESC' - | 'LABEL_TRGM_SIMILARITY_ASC' - | 'LABEL_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'UPDATED_AT_DESC'; /** Methods to use when ordering `AppAdminGrant`. */ export type AppAdminGrantOrderBy = | 'NATURAL' @@ -1300,6 +896,8 @@ export type AppAdminGrantOrderBy = | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' | 'GRANTOR_ID_ASC' | 'GRANTOR_ID_DESC' | 'CREATED_AT_ASC' @@ -1313,6 +911,8 @@ export type AppOwnerGrantOrderBy = | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' | 'GRANTOR_ID_ASC' | 'GRANTOR_ID_DESC' | 'CREATED_AT_ASC' @@ -1326,6 +926,8 @@ export type AppGrantOrderBy = | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' | 'GRANTOR_ID_ASC' | 'GRANTOR_ID_DESC' | 'CREATED_AT_ASC' @@ -1377,6 +979,8 @@ export type OrgAdminGrantOrderBy = | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' | 'GRANTOR_ID_ASC' @@ -1392,6 +996,8 @@ export type OrgOwnerGrantOrderBy = | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' | 'GRANTOR_ID_ASC' @@ -1407,6 +1013,8 @@ export type OrgGrantOrderBy = | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' | 'GRANTOR_ID_ASC' @@ -1431,11 +1039,7 @@ export type OrgChartEdgeOrderBy = | 'CHILD_ID_ASC' | 'CHILD_ID_DESC' | 'PARENT_ID_ASC' - | 'PARENT_ID_DESC' - | 'POSITION_TITLE_TRGM_SIMILARITY_ASC' - | 'POSITION_TITLE_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'PARENT_ID_DESC'; /** Methods to use when ordering `OrgChartEdgeGrant`. */ export type OrgChartEdgeGrantOrderBy = | 'NATURAL' @@ -1450,11 +1054,16 @@ export type OrgChartEdgeGrantOrderBy = | 'PARENT_ID_ASC' | 'PARENT_ID_DESC' | 'GRANTOR_ID_ASC' - | 'GRANTOR_ID_DESC' - | 'POSITION_TITLE_TRGM_SIMILARITY_ASC' - | 'POSITION_TITLE_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'GRANTOR_ID_DESC'; +/** Methods to use when ordering `OrgPermissionDefault`. */ +export type OrgPermissionDefaultOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC'; /** Methods to use when ordering `AppLimit`. */ export type AppLimitOrderBy = | 'NATURAL' @@ -1509,17 +1118,94 @@ export type AppAchievementOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `Invite`. */ -export type InviteOrderBy = +/** Methods to use when ordering `AppLevel`. */ +export type AppLevelOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'EMAIL_ASC' - | 'EMAIL_DESC' - | 'SENDER_ID_ASC' - | 'SENDER_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `Email`. */ +export type EmailOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'EMAIL_ASC' + | 'EMAIL_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `PhoneNumber`. */ +export type PhoneNumberOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'NUMBER_ASC' + | 'NUMBER_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `CryptoAddress`. */ +export type CryptoAddressOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'ADDRESS_ASC' + | 'ADDRESS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `ConnectedAccount`. */ +export type ConnectedAccountOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'SERVICE_ASC' + | 'SERVICE_DESC' + | 'IDENTIFIER_ASC' + | 'IDENTIFIER_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `Invite`. */ +export type InviteOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'EMAIL_ASC' + | 'EMAIL_DESC' + | 'SENDER_ID_ASC' + | 'SENDER_ID_DESC' | 'INVITE_TOKEN_ASC' | 'INVITE_TOKEN_DESC' | 'INVITE_VALID_ASC' @@ -1529,11 +1215,7 @@ export type InviteOrderBy = | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'INVITE_TOKEN_TRGM_SIMILARITY_ASC' - | 'INVITE_TOKEN_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'UPDATED_AT_DESC'; /** Methods to use when ordering `ClaimedInvite`. */ export type ClaimedInviteOrderBy = | 'NATURAL' @@ -1560,6 +1242,8 @@ export type OrgInviteOrderBy = | 'EMAIL_DESC' | 'SENDER_ID_ASC' | 'SENDER_ID_DESC' + | 'RECEIVER_ID_ASC' + | 'RECEIVER_ID_DESC' | 'INVITE_TOKEN_ASC' | 'INVITE_TOKEN_DESC' | 'INVITE_VALID_ASC' @@ -1571,11 +1255,7 @@ export type OrgInviteOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'INVITE_TOKEN_TRGM_SIMILARITY_ASC' - | 'INVITE_TOKEN_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'ENTITY_ID_DESC'; /** Methods to use when ordering `OrgClaimedInvite`. */ export type OrgClaimedInviteOrderBy = | 'NATURAL' @@ -1590,7 +1270,20 @@ export type OrgClaimedInviteOrderBy = | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; + | 'UPDATED_AT_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC'; +/** Methods to use when ordering `AuditLog`. */ +export type AuditLogOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'EVENT_ASC' + | 'EVENT_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC'; /** Methods to use when ordering `Ref`. */ export type RefOrderBy = | 'NATURAL' @@ -1601,11 +1294,7 @@ export type RefOrderBy = | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'STORE_ID_ASC' - | 'STORE_ID_DESC' - | 'NAME_TRGM_SIMILARITY_ASC' - | 'NAME_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'STORE_ID_DESC'; /** Methods to use when ordering `Store`. */ export type StoreOrderBy = | 'NATURAL' @@ -1614,11 +1303,7 @@ export type StoreOrderBy = | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'NAME_TRGM_SIMILARITY_ASC' - | 'NAME_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'DATABASE_ID_DESC'; /** Methods to use when ordering `AppPermissionDefault`. */ export type AppPermissionDefaultOrderBy = | 'NATURAL' @@ -1626,23 +1311,6 @@ export type AppPermissionDefaultOrderBy = | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC'; -/** Methods to use when ordering `CryptoAddress`. */ -export type CryptoAddressOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'ADDRESS_ASC' - | 'ADDRESS_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'ADDRESS_TRGM_SIMILARITY_ASC' - | 'ADDRESS_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; /** Methods to use when ordering `RoleType`. */ export type RoleTypeOrderBy = | 'NATURAL' @@ -1652,32 +1320,6 @@ export type RoleTypeOrderBy = | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC'; -/** Methods to use when ordering `OrgPermissionDefault`. */ -export type OrgPermissionDefaultOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC'; -/** Methods to use when ordering `PhoneNumber`. */ -export type PhoneNumberOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NUMBER_ASC' - | 'NUMBER_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CC_TRGM_SIMILARITY_ASC' - | 'CC_TRGM_SIMILARITY_DESC' - | 'NUMBER_TRGM_SIMILARITY_ASC' - | 'NUMBER_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; /** Methods to use when ordering `AppLimitDefault`. */ export type AppLimitDefaultOrderBy = | 'NATURAL' @@ -1696,27 +1338,6 @@ export type OrgLimitDefaultOrderBy = | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC'; -/** Methods to use when ordering `ConnectedAccount`. */ -export type ConnectedAccountOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'SERVICE_ASC' - | 'SERVICE_DESC' - | 'IDENTIFIER_ASC' - | 'IDENTIFIER_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'SERVICE_TRGM_SIMILARITY_ASC' - | 'SERVICE_TRGM_SIMILARITY_DESC' - | 'IDENTIFIER_TRGM_SIMILARITY_ASC' - | 'IDENTIFIER_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; /** Methods to use when ordering `NodeTypeRegistry`. */ export type NodeTypeRegistryOrderBy = | 'NATURAL' @@ -1727,19 +1348,7 @@ export type NodeTypeRegistryOrderBy = | 'SLUG_ASC' | 'SLUG_DESC' | 'CATEGORY_ASC' - | 'CATEGORY_DESC' - | 'NAME_TRGM_SIMILARITY_ASC' - | 'NAME_TRGM_SIMILARITY_DESC' - | 'SLUG_TRGM_SIMILARITY_ASC' - | 'SLUG_TRGM_SIMILARITY_DESC' - | 'CATEGORY_TRGM_SIMILARITY_ASC' - | 'CATEGORY_TRGM_SIMILARITY_DESC' - | 'DISPLAY_NAME_TRGM_SIMILARITY_ASC' - | 'DISPLAY_NAME_TRGM_SIMILARITY_DESC' - | 'DESCRIPTION_TRGM_SIMILARITY_ASC' - | 'DESCRIPTION_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'CATEGORY_DESC'; /** Methods to use when ordering `MembershipType`. */ export type MembershipTypeOrderBy = | 'NATURAL' @@ -1748,13 +1357,7 @@ export type MembershipTypeOrderBy = | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' - | 'NAME_DESC' - | 'DESCRIPTION_TRGM_SIMILARITY_ASC' - | 'DESCRIPTION_TRGM_SIMILARITY_DESC' - | 'PREFIX_TRGM_SIMILARITY_ASC' - | 'PREFIX_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'NAME_DESC'; /** Methods to use when ordering `Object`. */ export type ObjectOrderBy = | 'NATURAL' @@ -1774,11 +1377,7 @@ export type CommitOrderBy = | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'MESSAGE_TRGM_SIMILARITY_ASC' - | 'MESSAGE_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'DATABASE_ID_DESC'; /** Methods to use when ordering `AppPermission`. */ export type AppPermissionOrderBy = | 'NATURAL' @@ -1789,11 +1388,7 @@ export type AppPermissionOrderBy = | 'NAME_ASC' | 'NAME_DESC' | 'BITNUM_ASC' - | 'BITNUM_DESC' - | 'DESCRIPTION_TRGM_SIMILARITY_ASC' - | 'DESCRIPTION_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'BITNUM_DESC'; /** Methods to use when ordering `OrgPermission`. */ export type OrgPermissionOrderBy = | 'NATURAL' @@ -1804,11 +1399,7 @@ export type OrgPermissionOrderBy = | 'NAME_ASC' | 'NAME_DESC' | 'BITNUM_ASC' - | 'BITNUM_DESC' - | 'DESCRIPTION_TRGM_SIMILARITY_ASC' - | 'DESCRIPTION_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'BITNUM_DESC'; /** Methods to use when ordering `AppMembershipDefault`. */ export type AppMembershipDefaultOrderBy = | 'NATURAL' @@ -1832,17 +1423,7 @@ export type RlsModuleOrderBy = | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'AUTHENTICATE_TRGM_SIMILARITY_ASC' - | 'AUTHENTICATE_TRGM_SIMILARITY_DESC' - | 'AUTHENTICATE_STRICT_TRGM_SIMILARITY_ASC' - | 'AUTHENTICATE_STRICT_TRGM_SIMILARITY_DESC' - | 'CURRENT_ROLE_TRGM_SIMILARITY_ASC' - | 'CURRENT_ROLE_TRGM_SIMILARITY_DESC' - | 'CURRENT_ROLE_ID_TRGM_SIMILARITY_ASC' - | 'CURRENT_ROLE_ID_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'DATABASE_ID_DESC'; /** Methods to use when ordering `OrgMembershipDefault`. */ export type OrgMembershipDefaultOrderBy = | 'NATURAL' @@ -1876,41 +1457,7 @@ export type AppLevelRequirementOrderBy = | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'DESCRIPTION_TRGM_SIMILARITY_ASC' - | 'DESCRIPTION_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; -/** Methods to use when ordering `AuditLog`. */ -export type AuditLogOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'EVENT_ASC' - | 'EVENT_DESC' - | 'USER_AGENT_TRGM_SIMILARITY_ASC' - | 'USER_AGENT_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; -/** Methods to use when ordering `AppLevel`. */ -export type AppLevelOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'DESCRIPTION_TRGM_SIMILARITY_ASC' - | 'DESCRIPTION_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'UPDATED_AT_DESC'; /** Methods to use when ordering `SqlMigration`. */ export type SqlMigrationOrderBy = | 'NATURAL' @@ -1935,34 +1482,7 @@ export type SqlMigrationOrderBy = | 'ACTION_ID_ASC' | 'ACTION_ID_DESC' | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'NAME_TRGM_SIMILARITY_ASC' - | 'NAME_TRGM_SIMILARITY_DESC' - | 'DEPLOY_TRGM_SIMILARITY_ASC' - | 'DEPLOY_TRGM_SIMILARITY_DESC' - | 'CONTENT_TRGM_SIMILARITY_ASC' - | 'CONTENT_TRGM_SIMILARITY_DESC' - | 'REVERT_TRGM_SIMILARITY_ASC' - | 'REVERT_TRGM_SIMILARITY_DESC' - | 'VERIFY_TRGM_SIMILARITY_ASC' - | 'VERIFY_TRGM_SIMILARITY_DESC' - | 'ACTION_TRGM_SIMILARITY_ASC' - | 'ACTION_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; -/** Methods to use when ordering `Email`. */ -export type EmailOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'EMAIL_ASC' - | 'EMAIL_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; + | 'ACTOR_ID_DESC'; /** Methods to use when ordering `User`. */ export type UserOrderBy = | 'NATURAL' @@ -2000,11 +1520,7 @@ export type AstMigrationOrderBy = | 'ACTION_ID_ASC' | 'ACTION_ID_DESC' | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'ACTION_TRGM_SIMILARITY_ASC' - | 'ACTION_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'ACTOR_ID_DESC'; /** Methods to use when ordering `AppMembership`. */ export type AppMembershipOrderBy = | 'NATURAL' @@ -2036,29 +1552,7 @@ export type HierarchyModuleOrderBy = | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'CHART_EDGES_TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'CHART_EDGES_TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'HIERARCHY_SPRT_TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'HIERARCHY_SPRT_TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'CHART_EDGE_GRANTS_TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'CHART_EDGE_GRANTS_TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'PREFIX_TRGM_SIMILARITY_ASC' - | 'PREFIX_TRGM_SIMILARITY_DESC' - | 'PRIVATE_SCHEMA_NAME_TRGM_SIMILARITY_ASC' - | 'PRIVATE_SCHEMA_NAME_TRGM_SIMILARITY_DESC' - | 'SPRT_TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'SPRT_TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'REBUILD_HIERARCHY_FUNCTION_TRGM_SIMILARITY_ASC' - | 'REBUILD_HIERARCHY_FUNCTION_TRGM_SIMILARITY_DESC' - | 'GET_SUBORDINATES_FUNCTION_TRGM_SIMILARITY_ASC' - | 'GET_SUBORDINATES_FUNCTION_TRGM_SIMILARITY_DESC' - | 'GET_MANAGERS_FUNCTION_TRGM_SIMILARITY_ASC' - | 'GET_MANAGERS_FUNCTION_TRGM_SIMILARITY_DESC' - | 'IS_MANAGER_OF_FUNCTION_TRGM_SIMILARITY_ASC' - | 'IS_MANAGER_OF_FUNCTION_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'DATABASE_ID_DESC'; /** A filter to be used against `CheckConstraint` object types. All fields are combined with a logical ‘and.’ */ export interface CheckConstraintFilter { /** Filter by the object’s `id` field. */ @@ -2099,26 +1593,6 @@ export interface CheckConstraintFilter { database?: DatabaseFilter; /** Filter by the object’s `table` relation. */ table?: TableFilter; - /** TRGM search on the `name` column. */ - trgmName?: TrgmSearchInput; - /** TRGM search on the `type` column. */ - trgmType?: TrgmSearchInput; - /** TRGM search on the `module` column. */ - trgmModule?: TrgmSearchInput; - /** - * Composite full-text search. Provide a search string and it will be dispatched - * to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - * simultaneously. Rows matching ANY algorithm are returned. All matching score - * fields are populated. - */ - fullTextSearch?: string; -} -/** Input for pg_trgm fuzzy text matching. Provide a search value and optional similarity threshold. */ -export interface TrgmSearchInput { - /** The text to fuzzy-match against. Typos and misspellings are tolerated. */ - value: string; - /** Minimum similarity threshold (0.0 to 1.0). Higher = stricter matching. Default is 0.3. */ - threshold?: number; } /** A filter to be used against ObjectCategory fields. All fields are combined with a logical ‘and.’ */ export interface ObjectCategoryFilter { @@ -2245,6 +1719,18 @@ export interface DatabaseFilter { defaultPrivileges?: DatabaseToManyDefaultPrivilegeFilter; /** `defaultPrivileges` exist. */ defaultPrivilegesExist?: boolean; + /** Filter by the object’s `enums` relation. */ + enums?: DatabaseToManyEnumFilter; + /** `enums` exist. */ + enumsExist?: boolean; + /** Filter by the object’s `embeddingChunks` relation. */ + embeddingChunks?: DatabaseToManyEmbeddingChunkFilter; + /** `embeddingChunks` exist. */ + embeddingChunksExist?: boolean; + /** Filter by the object’s `databaseTransfers` relation. */ + databaseTransfers?: DatabaseToManyDatabaseTransferFilter; + /** `databaseTransfers` exist. */ + databaseTransfersExist?: boolean; /** Filter by the object’s `apis` relation. */ apis?: DatabaseToManyApiFilter; /** `apis` exist. */ @@ -2365,10 +1851,6 @@ export interface DatabaseFilter { usersModules?: DatabaseToManyUsersModuleFilter; /** `usersModules` exist. */ usersModulesExist?: boolean; - /** Filter by the object’s `uuidModules` relation. */ - uuidModules?: DatabaseToManyUuidModuleFilter; - /** `uuidModules` exist. */ - uuidModulesExist?: boolean; /** Filter by the object’s `hierarchyModule` relation. */ hierarchyModule?: HierarchyModuleFilter; /** A related `hierarchyModule` exists. */ @@ -2385,32 +1867,23 @@ export interface DatabaseFilter { relationProvisions?: DatabaseToManyRelationProvisionFilter; /** `relationProvisions` exist. */ relationProvisionsExist?: boolean; + /** Filter by the object’s `blueprints` relation. */ + blueprints?: DatabaseToManyBlueprintFilter; + /** `blueprints` exist. */ + blueprintsExist?: boolean; /** Filter by the object’s `databaseProvisionModules` relation. */ databaseProvisionModules?: DatabaseToManyDatabaseProvisionModuleFilter; /** `databaseProvisionModules` exist. */ databaseProvisionModulesExist?: boolean; - /** TRGM search on the `schema_hash` column. */ - trgmSchemaHash?: TrgmSearchInput; - /** TRGM search on the `name` column. */ - trgmName?: TrgmSearchInput; - /** TRGM search on the `label` column. */ - trgmLabel?: TrgmSearchInput; - /** - * Composite full-text search. Provide a search string and it will be dispatched - * to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - * simultaneously. Rows matching ANY algorithm are returned. All matching score - * fields are populated. - */ - fullTextSearch?: string; } /** A filter to be used against `User` object types. All fields are combined with a logical ‘and.’ */ export interface UserFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `username` field. */ - username?: StringFilter; + username?: StringTrgmFilter; /** Filter by the object’s `displayName` field. */ - displayName?: StringFilter; + displayName?: StringTrgmFilter; /** Filter by the object’s `profilePicture` field. */ profilePicture?: ConstructiveInternalTypeImageFilter; /** Filter by the object’s `searchTsv` field. */ @@ -2437,14 +1910,26 @@ export interface UserFilter { appMembershipByActorId?: AppMembershipFilter; /** A related `appMembershipByActorId` exists. */ appMembershipByActorIdExists?: boolean; + /** Filter by the object’s `appAdminGrantsByActorId` relation. */ + appAdminGrantsByActorId?: UserToManyAppAdminGrantFilter; + /** `appAdminGrantsByActorId` exist. */ + appAdminGrantsByActorIdExist?: boolean; /** Filter by the object’s `appAdminGrantsByGrantorId` relation. */ appAdminGrantsByGrantorId?: UserToManyAppAdminGrantFilter; /** `appAdminGrantsByGrantorId` exist. */ appAdminGrantsByGrantorIdExist?: boolean; + /** Filter by the object’s `appOwnerGrantsByActorId` relation. */ + appOwnerGrantsByActorId?: UserToManyAppOwnerGrantFilter; + /** `appOwnerGrantsByActorId` exist. */ + appOwnerGrantsByActorIdExist?: boolean; /** Filter by the object’s `appOwnerGrantsByGrantorId` relation. */ appOwnerGrantsByGrantorId?: UserToManyAppOwnerGrantFilter; /** `appOwnerGrantsByGrantorId` exist. */ appOwnerGrantsByGrantorIdExist?: boolean; + /** Filter by the object’s `appGrantsByActorId` relation. */ + appGrantsByActorId?: UserToManyAppGrantFilter; + /** `appGrantsByActorId` exist. */ + appGrantsByActorIdExist?: boolean; /** Filter by the object’s `appGrantsByGrantorId` relation. */ appGrantsByGrantorId?: UserToManyAppGrantFilter; /** `appGrantsByGrantorId` exist. */ @@ -2469,6 +1954,10 @@ export interface UserFilter { orgMembersByEntityId?: UserToManyOrgMemberFilter; /** `orgMembersByEntityId` exist. */ orgMembersByEntityIdExist?: boolean; + /** Filter by the object’s `orgAdminGrantsByActorId` relation. */ + orgAdminGrantsByActorId?: UserToManyOrgAdminGrantFilter; + /** `orgAdminGrantsByActorId` exist. */ + orgAdminGrantsByActorIdExist?: boolean; /** Filter by the object’s `orgAdminGrantsByEntityId` relation. */ orgAdminGrantsByEntityId?: UserToManyOrgAdminGrantFilter; /** `orgAdminGrantsByEntityId` exist. */ @@ -2477,6 +1966,10 @@ export interface UserFilter { orgAdminGrantsByGrantorId?: UserToManyOrgAdminGrantFilter; /** `orgAdminGrantsByGrantorId` exist. */ orgAdminGrantsByGrantorIdExist?: boolean; + /** Filter by the object’s `orgOwnerGrantsByActorId` relation. */ + orgOwnerGrantsByActorId?: UserToManyOrgOwnerGrantFilter; + /** `orgOwnerGrantsByActorId` exist. */ + orgOwnerGrantsByActorIdExist?: boolean; /** Filter by the object’s `orgOwnerGrantsByEntityId` relation. */ orgOwnerGrantsByEntityId?: UserToManyOrgOwnerGrantFilter; /** `orgOwnerGrantsByEntityId` exist. */ @@ -2485,6 +1978,10 @@ export interface UserFilter { orgOwnerGrantsByGrantorId?: UserToManyOrgOwnerGrantFilter; /** `orgOwnerGrantsByGrantorId` exist. */ orgOwnerGrantsByGrantorIdExist?: boolean; + /** Filter by the object’s `orgGrantsByActorId` relation. */ + orgGrantsByActorId?: UserToManyOrgGrantFilter; + /** `orgGrantsByActorId` exist. */ + orgGrantsByActorIdExist?: boolean; /** Filter by the object’s `orgGrantsByEntityId` relation. */ orgGrantsByEntityId?: UserToManyOrgGrantFilter; /** `orgGrantsByEntityId` exist. */ @@ -2521,6 +2018,10 @@ export interface UserFilter { childOrgChartEdgeGrants?: UserToManyOrgChartEdgeGrantFilter; /** `childOrgChartEdgeGrants` exist. */ childOrgChartEdgeGrantsExist?: boolean; + /** Filter by the object’s `orgPermissionDefaultsByEntityId` relation. */ + orgPermissionDefaultsByEntityId?: UserToManyOrgPermissionDefaultFilter; + /** `orgPermissionDefaultsByEntityId` exist. */ + orgPermissionDefaultsByEntityIdExist?: boolean; /** Filter by the object’s `appLimitsByActorId` relation. */ appLimitsByActorId?: UserToManyAppLimitFilter; /** `appLimitsByActorId` exist. */ @@ -2541,6 +2042,26 @@ export interface UserFilter { appAchievementsByActorId?: UserToManyAppAchievementFilter; /** `appAchievementsByActorId` exist. */ appAchievementsByActorIdExist?: boolean; + /** Filter by the object’s `ownedAppLevels` relation. */ + ownedAppLevels?: UserToManyAppLevelFilter; + /** `ownedAppLevels` exist. */ + ownedAppLevelsExist?: boolean; + /** Filter by the object’s `ownedEmails` relation. */ + ownedEmails?: UserToManyEmailFilter; + /** `ownedEmails` exist. */ + ownedEmailsExist?: boolean; + /** Filter by the object’s `ownedPhoneNumbers` relation. */ + ownedPhoneNumbers?: UserToManyPhoneNumberFilter; + /** `ownedPhoneNumbers` exist. */ + ownedPhoneNumbersExist?: boolean; + /** Filter by the object’s `ownedCryptoAddresses` relation. */ + ownedCryptoAddresses?: UserToManyCryptoAddressFilter; + /** `ownedCryptoAddresses` exist. */ + ownedCryptoAddressesExist?: boolean; + /** Filter by the object’s `ownedConnectedAccounts` relation. */ + ownedConnectedAccounts?: UserToManyConnectedAccountFilter; + /** `ownedConnectedAccounts` exist. */ + ownedConnectedAccountsExist?: boolean; /** Filter by the object’s `invitesBySenderId` relation. */ invitesBySenderId?: UserToManyInviteFilter; /** `invitesBySenderId` exist. */ @@ -2557,10 +2078,18 @@ export interface UserFilter { orgInvitesByEntityId?: UserToManyOrgInviteFilter; /** `orgInvitesByEntityId` exist. */ orgInvitesByEntityIdExist?: boolean; + /** Filter by the object’s `orgInvitesByReceiverId` relation. */ + orgInvitesByReceiverId?: UserToManyOrgInviteFilter; + /** `orgInvitesByReceiverId` exist. */ + orgInvitesByReceiverIdExist?: boolean; /** Filter by the object’s `orgInvitesBySenderId` relation. */ orgInvitesBySenderId?: UserToManyOrgInviteFilter; /** `orgInvitesBySenderId` exist. */ orgInvitesBySenderIdExist?: boolean; + /** Filter by the object’s `orgClaimedInvitesByEntityId` relation. */ + orgClaimedInvitesByEntityId?: UserToManyOrgClaimedInviteFilter; + /** `orgClaimedInvitesByEntityId` exist. */ + orgClaimedInvitesByEntityIdExist?: boolean; /** Filter by the object’s `orgClaimedInvitesByReceiverId` relation. */ orgClaimedInvitesByReceiverId?: UserToManyOrgClaimedInviteFilter; /** `orgClaimedInvitesByReceiverId` exist. */ @@ -2569,6 +2098,10 @@ export interface UserFilter { orgClaimedInvitesBySenderId?: UserToManyOrgClaimedInviteFilter; /** `orgClaimedInvitesBySenderId` exist. */ orgClaimedInvitesBySenderIdExist?: boolean; + /** Filter by the object’s `auditLogsByActorId` relation. */ + auditLogsByActorId?: UserToManyAuditLogFilter; + /** `auditLogsByActorId` exist. */ + auditLogsByActorIdExist?: boolean; /** TSV search on the `search_tsv` column. */ tsvSearchTsv?: string; /** TRGM search on the `display_name` column. */ @@ -2581,6 +2114,94 @@ export interface UserFilter { */ fullTextSearch?: string; } +/** A filter to be used against String fields with pg_trgm support. All fields are combined with a logical ‘and.’ */ +export interface StringTrgmFilter { + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Equal to the specified value. */ + equalTo?: string; + /** Not equal to the specified value. */ + notEqualTo?: string; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: string; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: string; + /** Included in the specified list. */ + in?: string[]; + /** Not included in the specified list. */ + notIn?: string[]; + /** Less than the specified value. */ + lessThan?: string; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: string; + /** Greater than the specified value. */ + greaterThan?: string; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: string; + /** Contains the specified string (case-sensitive). */ + includes?: string; + /** Does not contain the specified string (case-sensitive). */ + notIncludes?: string; + /** Contains the specified string (case-insensitive). */ + includesInsensitive?: string; + /** Does not contain the specified string (case-insensitive). */ + notIncludesInsensitive?: string; + /** Starts with the specified string (case-sensitive). */ + startsWith?: string; + /** Does not start with the specified string (case-sensitive). */ + notStartsWith?: string; + /** Starts with the specified string (case-insensitive). */ + startsWithInsensitive?: string; + /** Does not start with the specified string (case-insensitive). */ + notStartsWithInsensitive?: string; + /** Ends with the specified string (case-sensitive). */ + endsWith?: string; + /** Does not end with the specified string (case-sensitive). */ + notEndsWith?: string; + /** Ends with the specified string (case-insensitive). */ + endsWithInsensitive?: string; + /** Does not end with the specified string (case-insensitive). */ + notEndsWithInsensitive?: string; + /** Matches the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ + like?: string; + /** Does not match the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ + notLike?: string; + /** Matches the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ + likeInsensitive?: string; + /** Does not match the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ + notLikeInsensitive?: string; + /** Equal to the specified value (case-insensitive). */ + equalToInsensitive?: string; + /** Not equal to the specified value (case-insensitive). */ + notEqualToInsensitive?: string; + /** Not equal to the specified value, treating null like an ordinary value (case-insensitive). */ + distinctFromInsensitive?: string; + /** Equal to the specified value, treating null like an ordinary value (case-insensitive). */ + notDistinctFromInsensitive?: string; + /** Included in the specified list (case-insensitive). */ + inInsensitive?: string[]; + /** Not included in the specified list (case-insensitive). */ + notInInsensitive?: string[]; + /** Less than the specified value (case-insensitive). */ + lessThanInsensitive?: string; + /** Less than or equal to the specified value (case-insensitive). */ + lessThanOrEqualToInsensitive?: string; + /** Greater than the specified value (case-insensitive). */ + greaterThanInsensitive?: string; + /** Greater than or equal to the specified value (case-insensitive). */ + greaterThanOrEqualToInsensitive?: string; + /** Fuzzy matches using pg_trgm trigram similarity. Tolerates typos and misspellings. */ + similarTo?: TrgmSearchInput; + /** Fuzzy matches using pg_trgm word_similarity. Finds the best matching substring within the column value. */ + wordSimilarTo?: TrgmSearchInput; +} +/** Input for pg_trgm fuzzy text matching. Provide a search value and optional similarity threshold. */ +export interface TrgmSearchInput { + /** The text to fuzzy-match against. Typos and misspellings are tolerated. */ + value: string; + /** Minimum similarity threshold (0.0 to 1.0). Higher = stricter matching. Default is 0.3. */ + threshold?: number; +} /** A filter to be used against ConstructiveInternalTypeImage fields. All fields are combined with a logical ‘and.’ */ export interface ConstructiveInternalTypeImageFilter { /** Is null (if `true` is specified) or is not null (if `false` is specified). */ @@ -3067,15 +2688,6 @@ export interface OrgChartEdgeFilter { parent?: UserFilter; /** A related `parent` exists. */ parentExists?: boolean; - /** TRGM search on the `position_title` column. */ - trgmPositionTitle?: TrgmSearchInput; - /** - * Composite full-text search. Provide a search string and it will be dispatched - * to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - * simultaneously. Rows matching ANY algorithm are returned. All matching score - * fields are populated. - */ - fullTextSearch?: string; } /** A filter to be used against many `OrgChartEdgeGrant` object types. All fields are combined with a logical ‘and.’ */ export interface UserToManyOrgChartEdgeGrantFilter { @@ -3118,19 +2730,38 @@ export interface OrgChartEdgeGrantFilter { entity?: UserFilter; /** Filter by the object’s `grantor` relation. */ grantor?: UserFilter; + /** A related `grantor` exists. */ + grantorExists?: boolean; /** Filter by the object’s `parent` relation. */ parent?: UserFilter; /** A related `parent` exists. */ parentExists?: boolean; - /** TRGM search on the `position_title` column. */ - trgmPositionTitle?: TrgmSearchInput; - /** - * Composite full-text search. Provide a search string and it will be dispatched - * to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - * simultaneously. Rows matching ANY algorithm are returned. All matching score - * fields are populated. - */ - fullTextSearch?: string; +} +/** A filter to be used against many `OrgPermissionDefault` object types. All fields are combined with a logical ‘and.’ */ +export interface UserToManyOrgPermissionDefaultFilter { + /** Filters to entities where at least one related entity matches. */ + some?: OrgPermissionDefaultFilter; + /** Filters to entities where every related entity matches. */ + every?: OrgPermissionDefaultFilter; + /** Filters to entities where no related entity matches. */ + none?: OrgPermissionDefaultFilter; +} +/** A filter to be used against `OrgPermissionDefault` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgPermissionDefaultFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `permissions` field. */ + permissions?: BitStringFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: OrgPermissionDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgPermissionDefaultFilter[]; + /** Negates the expression. */ + not?: OrgPermissionDefaultFilter; + /** Filter by the object’s `entity` relation. */ + entity?: UserFilter; } /** A filter to be used against many `AppLimit` object types. All fields are combined with a logical ‘and.’ */ export interface UserToManyAppLimitFilter { @@ -3260,56 +2891,75 @@ export interface AppAchievementFilter { /** Filter by the object’s `actor` relation. */ actor?: UserFilter; } -/** A filter to be used against many `Invite` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyInviteFilter { +/** A filter to be used against many `AppLevel` object types. All fields are combined with a logical ‘and.’ */ +export interface UserToManyAppLevelFilter { /** Filters to entities where at least one related entity matches. */ - some?: InviteFilter; + some?: AppLevelFilter; /** Filters to entities where every related entity matches. */ - every?: InviteFilter; + every?: AppLevelFilter; /** Filters to entities where no related entity matches. */ - none?: InviteFilter; + none?: AppLevelFilter; } -/** A filter to be used against `Invite` object types. All fields are combined with a logical ‘and.’ */ -export interface InviteFilter { +/** A filter to be used against `AppLevel` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLevelFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `image` field. */ + image?: ConstructiveInternalTypeImageFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: AppLevelFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLevelFilter[]; + /** Negates the expression. */ + not?: AppLevelFilter; + /** Filter by the object’s `owner` relation. */ + owner?: UserFilter; + /** A related `owner` exists. */ + ownerExists?: boolean; +} +/** A filter to be used against many `Email` object types. All fields are combined with a logical ‘and.’ */ +export interface UserToManyEmailFilter { + /** Filters to entities where at least one related entity matches. */ + some?: EmailFilter; + /** Filters to entities where every related entity matches. */ + every?: EmailFilter; + /** Filters to entities where no related entity matches. */ + none?: EmailFilter; +} +/** A filter to be used against `Email` object types. All fields are combined with a logical ‘and.’ */ +export interface EmailFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; /** Filter by the object’s `email` field. */ email?: ConstructiveInternalTypeEmailFilter; - /** Filter by the object’s `senderId` field. */ - senderId?: UUIDFilter; - /** Filter by the object’s `inviteToken` field. */ - inviteToken?: StringFilter; - /** Filter by the object’s `inviteValid` field. */ - inviteValid?: BooleanFilter; - /** Filter by the object’s `inviteLimit` field. */ - inviteLimit?: IntFilter; - /** Filter by the object’s `inviteCount` field. */ - inviteCount?: IntFilter; - /** Filter by the object’s `multiple` field. */ - multiple?: BooleanFilter; - /** Filter by the object’s `expiresAt` field. */ - expiresAt?: DatetimeFilter; + /** Filter by the object’s `isVerified` field. */ + isVerified?: BooleanFilter; + /** Filter by the object’s `isPrimary` field. */ + isPrimary?: BooleanFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; /** Checks for all expressions in this list. */ - and?: InviteFilter[]; + and?: EmailFilter[]; /** Checks for any expressions in this list. */ - or?: InviteFilter[]; + or?: EmailFilter[]; /** Negates the expression. */ - not?: InviteFilter; - /** Filter by the object’s `sender` relation. */ - sender?: UserFilter; - /** TRGM search on the `invite_token` column. */ - trgmInviteToken?: TrgmSearchInput; - /** - * Composite full-text search. Provide a search string and it will be dispatched - * to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - * simultaneously. Rows matching ANY algorithm are returned. All matching score - * fields are populated. - */ - fullTextSearch?: string; + not?: EmailFilter; + /** Filter by the object’s `owner` relation. */ + owner?: UserFilter; } /** A filter to be used against ConstructiveInternalTypeEmail fields. All fields are combined with a logical ‘and.’ */ export interface ConstructiveInternalTypeEmailFilter { @@ -3388,68 +3038,216 @@ export interface ConstructiveInternalTypeEmailFilter { /** Greater than or equal to the specified value (case-insensitive). */ greaterThanOrEqualToInsensitive?: ConstructiveInternalTypeEmail; } -/** A filter to be used against many `ClaimedInvite` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyClaimedInviteFilter { +/** A filter to be used against many `PhoneNumber` object types. All fields are combined with a logical ‘and.’ */ +export interface UserToManyPhoneNumberFilter { /** Filters to entities where at least one related entity matches. */ - some?: ClaimedInviteFilter; + some?: PhoneNumberFilter; /** Filters to entities where every related entity matches. */ - every?: ClaimedInviteFilter; + every?: PhoneNumberFilter; /** Filters to entities where no related entity matches. */ - none?: ClaimedInviteFilter; + none?: PhoneNumberFilter; } -/** A filter to be used against `ClaimedInvite` object types. All fields are combined with a logical ‘and.’ */ -export interface ClaimedInviteFilter { +/** A filter to be used against `PhoneNumber` object types. All fields are combined with a logical ‘and.’ */ +export interface PhoneNumberFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `senderId` field. */ - senderId?: UUIDFilter; - /** Filter by the object’s `receiverId` field. */ - receiverId?: UUIDFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `cc` field. */ + cc?: StringFilter; + /** Filter by the object’s `number` field. */ + number?: StringFilter; + /** Filter by the object’s `isVerified` field. */ + isVerified?: BooleanFilter; + /** Filter by the object’s `isPrimary` field. */ + isPrimary?: BooleanFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; /** Checks for all expressions in this list. */ - and?: ClaimedInviteFilter[]; + and?: PhoneNumberFilter[]; /** Checks for any expressions in this list. */ - or?: ClaimedInviteFilter[]; + or?: PhoneNumberFilter[]; /** Negates the expression. */ - not?: ClaimedInviteFilter; - /** Filter by the object’s `receiver` relation. */ - receiver?: UserFilter; - /** A related `receiver` exists. */ - receiverExists?: boolean; - /** Filter by the object’s `sender` relation. */ - sender?: UserFilter; - /** A related `sender` exists. */ - senderExists?: boolean; + not?: PhoneNumberFilter; + /** Filter by the object’s `owner` relation. */ + owner?: UserFilter; } -/** A filter to be used against many `OrgInvite` object types. All fields are combined with a logical ‘and.’ */ -export interface UserToManyOrgInviteFilter { +/** A filter to be used against many `CryptoAddress` object types. All fields are combined with a logical ‘and.’ */ +export interface UserToManyCryptoAddressFilter { /** Filters to entities where at least one related entity matches. */ - some?: OrgInviteFilter; + some?: CryptoAddressFilter; /** Filters to entities where every related entity matches. */ - every?: OrgInviteFilter; + every?: CryptoAddressFilter; /** Filters to entities where no related entity matches. */ - none?: OrgInviteFilter; + none?: CryptoAddressFilter; } -/** A filter to be used against `OrgInvite` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgInviteFilter { +/** A filter to be used against `CryptoAddress` object types. All fields are combined with a logical ‘and.’ */ +export interface CryptoAddressFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `email` field. */ - email?: ConstructiveInternalTypeEmailFilter; - /** Filter by the object’s `senderId` field. */ - senderId?: UUIDFilter; - /** Filter by the object’s `receiverId` field. */ - receiverId?: UUIDFilter; - /** Filter by the object’s `inviteToken` field. */ - inviteToken?: StringFilter; - /** Filter by the object’s `inviteValid` field. */ - inviteValid?: BooleanFilter; - /** Filter by the object’s `inviteLimit` field. */ - inviteLimit?: IntFilter; - /** Filter by the object’s `inviteCount` field. */ + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `address` field. */ + address?: StringFilter; + /** Filter by the object’s `isVerified` field. */ + isVerified?: BooleanFilter; + /** Filter by the object’s `isPrimary` field. */ + isPrimary?: BooleanFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: CryptoAddressFilter[]; + /** Checks for any expressions in this list. */ + or?: CryptoAddressFilter[]; + /** Negates the expression. */ + not?: CryptoAddressFilter; + /** Filter by the object’s `owner` relation. */ + owner?: UserFilter; +} +/** A filter to be used against many `ConnectedAccount` object types. All fields are combined with a logical ‘and.’ */ +export interface UserToManyConnectedAccountFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ConnectedAccountFilter; + /** Filters to entities where every related entity matches. */ + every?: ConnectedAccountFilter; + /** Filters to entities where no related entity matches. */ + none?: ConnectedAccountFilter; +} +/** A filter to be used against `ConnectedAccount` object types. All fields are combined with a logical ‘and.’ */ +export interface ConnectedAccountFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `service` field. */ + service?: StringFilter; + /** Filter by the object’s `identifier` field. */ + identifier?: StringFilter; + /** Filter by the object’s `details` field. */ + details?: JSONFilter; + /** Filter by the object’s `isVerified` field. */ + isVerified?: BooleanFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: ConnectedAccountFilter[]; + /** Checks for any expressions in this list. */ + or?: ConnectedAccountFilter[]; + /** Negates the expression. */ + not?: ConnectedAccountFilter; + /** Filter by the object’s `owner` relation. */ + owner?: UserFilter; +} +/** A filter to be used against many `Invite` object types. All fields are combined with a logical ‘and.’ */ +export interface UserToManyInviteFilter { + /** Filters to entities where at least one related entity matches. */ + some?: InviteFilter; + /** Filters to entities where every related entity matches. */ + every?: InviteFilter; + /** Filters to entities where no related entity matches. */ + none?: InviteFilter; +} +/** A filter to be used against `Invite` object types. All fields are combined with a logical ‘and.’ */ +export interface InviteFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `email` field. */ + email?: ConstructiveInternalTypeEmailFilter; + /** Filter by the object’s `senderId` field. */ + senderId?: UUIDFilter; + /** Filter by the object’s `inviteToken` field. */ + inviteToken?: StringFilter; + /** Filter by the object’s `inviteValid` field. */ + inviteValid?: BooleanFilter; + /** Filter by the object’s `inviteLimit` field. */ + inviteLimit?: IntFilter; + /** Filter by the object’s `inviteCount` field. */ + inviteCount?: IntFilter; + /** Filter by the object’s `multiple` field. */ + multiple?: BooleanFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: InviteFilter[]; + /** Checks for any expressions in this list. */ + or?: InviteFilter[]; + /** Negates the expression. */ + not?: InviteFilter; + /** Filter by the object’s `sender` relation. */ + sender?: UserFilter; +} +/** A filter to be used against many `ClaimedInvite` object types. All fields are combined with a logical ‘and.’ */ +export interface UserToManyClaimedInviteFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ClaimedInviteFilter; + /** Filters to entities where every related entity matches. */ + every?: ClaimedInviteFilter; + /** Filters to entities where no related entity matches. */ + none?: ClaimedInviteFilter; +} +/** A filter to be used against `ClaimedInvite` object types. All fields are combined with a logical ‘and.’ */ +export interface ClaimedInviteFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `senderId` field. */ + senderId?: UUIDFilter; + /** Filter by the object’s `receiverId` field. */ + receiverId?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: ClaimedInviteFilter[]; + /** Checks for any expressions in this list. */ + or?: ClaimedInviteFilter[]; + /** Negates the expression. */ + not?: ClaimedInviteFilter; + /** Filter by the object’s `receiver` relation. */ + receiver?: UserFilter; + /** A related `receiver` exists. */ + receiverExists?: boolean; + /** Filter by the object’s `sender` relation. */ + sender?: UserFilter; + /** A related `sender` exists. */ + senderExists?: boolean; +} +/** A filter to be used against many `OrgInvite` object types. All fields are combined with a logical ‘and.’ */ +export interface UserToManyOrgInviteFilter { + /** Filters to entities where at least one related entity matches. */ + some?: OrgInviteFilter; + /** Filters to entities where every related entity matches. */ + every?: OrgInviteFilter; + /** Filters to entities where no related entity matches. */ + none?: OrgInviteFilter; +} +/** A filter to be used against `OrgInvite` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgInviteFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `email` field. */ + email?: ConstructiveInternalTypeEmailFilter; + /** Filter by the object’s `senderId` field. */ + senderId?: UUIDFilter; + /** Filter by the object’s `receiverId` field. */ + receiverId?: UUIDFilter; + /** Filter by the object’s `inviteToken` field. */ + inviteToken?: StringFilter; + /** Filter by the object’s `inviteValid` field. */ + inviteValid?: BooleanFilter; + /** Filter by the object’s `inviteLimit` field. */ + inviteLimit?: IntFilter; + /** Filter by the object’s `inviteCount` field. */ inviteCount?: IntFilter; /** Filter by the object’s `multiple` field. */ multiple?: BooleanFilter; @@ -3475,15 +3273,6 @@ export interface OrgInviteFilter { receiverExists?: boolean; /** Filter by the object’s `sender` relation. */ sender?: UserFilter; - /** TRGM search on the `invite_token` column. */ - trgmInviteToken?: TrgmSearchInput; - /** - * Composite full-text search. Provide a search string and it will be dispatched - * to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - * simultaneously. Rows matching ANY algorithm are returned. All matching score - * fields are populated. - */ - fullTextSearch?: string; } /** A filter to be used against many `OrgClaimedInvite` object types. All fields are combined with a logical ‘and.’ */ export interface UserToManyOrgClaimedInviteFilter { @@ -3525,102 +3314,204 @@ export interface OrgClaimedInviteFilter { /** A related `sender` exists. */ senderExists?: boolean; } -/** A filter to be used against many `Schema` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManySchemaFilter { +/** A filter to be used against many `AuditLog` object types. All fields are combined with a logical ‘and.’ */ +export interface UserToManyAuditLogFilter { /** Filters to entities where at least one related entity matches. */ - some?: SchemaFilter; + some?: AuditLogFilter; /** Filters to entities where every related entity matches. */ - every?: SchemaFilter; + every?: AuditLogFilter; /** Filters to entities where no related entity matches. */ - none?: SchemaFilter; + none?: AuditLogFilter; } -/** A filter to be used against `Schema` object types. All fields are combined with a logical ‘and.’ */ -export interface SchemaFilter { +/** A filter to be used against `AuditLog` object types. All fields are combined with a logical ‘and.’ */ +export interface AuditLogFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `schemaName` field. */ - schemaName?: StringFilter; - /** Filter by the object’s `label` field. */ - label?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `smartTags` field. */ - smartTags?: JSONFilter; - /** Filter by the object’s `category` field. */ - category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: IntFilter; - /** Filter by the object’s `tags` field. */ - tags?: StringListFilter; - /** Filter by the object’s `isPublic` field. */ - isPublic?: BooleanFilter; + /** Filter by the object’s `event` field. */ + event?: StringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `origin` field. */ + origin?: ConstructiveInternalTypeOriginFilter; + /** Filter by the object’s `userAgent` field. */ + userAgent?: StringFilter; + /** Filter by the object’s `ipAddress` field. */ + ipAddress?: InternetAddressFilter; + /** Filter by the object’s `success` field. */ + success?: BooleanFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; /** Checks for all expressions in this list. */ - and?: SchemaFilter[]; + and?: AuditLogFilter[]; /** Checks for any expressions in this list. */ - or?: SchemaFilter[]; + or?: AuditLogFilter[]; /** Negates the expression. */ - not?: SchemaFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `tables` relation. */ - tables?: SchemaToManyTableFilter; - /** `tables` exist. */ - tablesExist?: boolean; - /** Filter by the object’s `schemaGrants` relation. */ - schemaGrants?: SchemaToManySchemaGrantFilter; - /** `schemaGrants` exist. */ - schemaGrantsExist?: boolean; - /** Filter by the object’s `views` relation. */ - views?: SchemaToManyViewFilter; - /** `views` exist. */ - viewsExist?: boolean; - /** Filter by the object’s `defaultPrivileges` relation. */ - defaultPrivileges?: SchemaToManyDefaultPrivilegeFilter; - /** `defaultPrivileges` exist. */ - defaultPrivilegesExist?: boolean; - /** Filter by the object’s `apiSchemas` relation. */ - apiSchemas?: SchemaToManyApiSchemaFilter; - /** `apiSchemas` exist. */ - apiSchemasExist?: boolean; - /** Filter by the object’s `tableTemplateModulesByPrivateSchemaId` relation. */ - tableTemplateModulesByPrivateSchemaId?: SchemaToManyTableTemplateModuleFilter; - /** `tableTemplateModulesByPrivateSchemaId` exist. */ - tableTemplateModulesByPrivateSchemaIdExist?: boolean; - /** Filter by the object’s `tableTemplateModules` relation. */ - tableTemplateModules?: SchemaToManyTableTemplateModuleFilter; - /** `tableTemplateModules` exist. */ - tableTemplateModulesExist?: boolean; - /** TRGM search on the `name` column. */ - trgmName?: TrgmSearchInput; - /** TRGM search on the `schema_name` column. */ - trgmSchemaName?: TrgmSearchInput; - /** TRGM search on the `label` column. */ - trgmLabel?: TrgmSearchInput; - /** TRGM search on the `description` column. */ - trgmDescription?: TrgmSearchInput; - /** TRGM search on the `module` column. */ - trgmModule?: TrgmSearchInput; - /** - * Composite full-text search. Provide a search string and it will be dispatched - * to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - * simultaneously. Rows matching ANY algorithm are returned. All matching score - * fields are populated. - */ - fullTextSearch?: string; + not?: AuditLogFilter; + /** Filter by the object’s `actor` relation. */ + actor?: UserFilter; + /** A related `actor` exists. */ + actorExists?: boolean; } -/** A filter to be used against many `Table` object types. All fields are combined with a logical ‘and.’ */ -export interface SchemaToManyTableFilter { - /** Filters to entities where at least one related entity matches. */ +/** A filter to be used against ConstructiveInternalTypeOrigin fields. All fields are combined with a logical ‘and.’ */ +export interface ConstructiveInternalTypeOriginFilter { + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Equal to the specified value. */ + equalTo?: ConstructiveInternalTypeOrigin; + /** Not equal to the specified value. */ + notEqualTo?: ConstructiveInternalTypeOrigin; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: ConstructiveInternalTypeOrigin; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: ConstructiveInternalTypeOrigin; + /** Included in the specified list. */ + in?: ConstructiveInternalTypeOrigin[]; + /** Not included in the specified list. */ + notIn?: ConstructiveInternalTypeOrigin[]; + /** Less than the specified value. */ + lessThan?: ConstructiveInternalTypeOrigin; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: ConstructiveInternalTypeOrigin; + /** Greater than the specified value. */ + greaterThan?: ConstructiveInternalTypeOrigin; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: ConstructiveInternalTypeOrigin; + /** Contains the specified string (case-sensitive). */ + includes?: ConstructiveInternalTypeOrigin; + /** Does not contain the specified string (case-sensitive). */ + notIncludes?: ConstructiveInternalTypeOrigin; + /** Contains the specified string (case-insensitive). */ + includesInsensitive?: ConstructiveInternalTypeOrigin; + /** Does not contain the specified string (case-insensitive). */ + notIncludesInsensitive?: ConstructiveInternalTypeOrigin; + /** Starts with the specified string (case-sensitive). */ + startsWith?: ConstructiveInternalTypeOrigin; + /** Does not start with the specified string (case-sensitive). */ + notStartsWith?: ConstructiveInternalTypeOrigin; + /** Starts with the specified string (case-insensitive). */ + startsWithInsensitive?: ConstructiveInternalTypeOrigin; + /** Does not start with the specified string (case-insensitive). */ + notStartsWithInsensitive?: ConstructiveInternalTypeOrigin; + /** Ends with the specified string (case-sensitive). */ + endsWith?: ConstructiveInternalTypeOrigin; + /** Does not end with the specified string (case-sensitive). */ + notEndsWith?: ConstructiveInternalTypeOrigin; + /** Ends with the specified string (case-insensitive). */ + endsWithInsensitive?: ConstructiveInternalTypeOrigin; + /** Does not end with the specified string (case-insensitive). */ + notEndsWithInsensitive?: ConstructiveInternalTypeOrigin; + /** Matches the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ + like?: ConstructiveInternalTypeOrigin; + /** Does not match the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ + notLike?: ConstructiveInternalTypeOrigin; + /** Matches the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ + likeInsensitive?: ConstructiveInternalTypeOrigin; + /** Does not match the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ + notLikeInsensitive?: ConstructiveInternalTypeOrigin; + /** Equal to the specified value (case-insensitive). */ + equalToInsensitive?: string; + /** Not equal to the specified value (case-insensitive). */ + notEqualToInsensitive?: string; + /** Not equal to the specified value, treating null like an ordinary value (case-insensitive). */ + distinctFromInsensitive?: string; + /** Equal to the specified value, treating null like an ordinary value (case-insensitive). */ + notDistinctFromInsensitive?: string; + /** Included in the specified list (case-insensitive). */ + inInsensitive?: string[]; + /** Not included in the specified list (case-insensitive). */ + notInInsensitive?: string[]; + /** Less than the specified value (case-insensitive). */ + lessThanInsensitive?: string; + /** Less than or equal to the specified value (case-insensitive). */ + lessThanOrEqualToInsensitive?: string; + /** Greater than the specified value (case-insensitive). */ + greaterThanInsensitive?: string; + /** Greater than or equal to the specified value (case-insensitive). */ + greaterThanOrEqualToInsensitive?: string; +} +/** A filter to be used against many `Schema` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManySchemaFilter { + /** Filters to entities where at least one related entity matches. */ + some?: SchemaFilter; + /** Filters to entities where every related entity matches. */ + every?: SchemaFilter; + /** Filters to entities where no related entity matches. */ + none?: SchemaFilter; +} +/** A filter to be used against `Schema` object types. All fields are combined with a logical ‘and.’ */ +export interface SchemaFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `schemaName` field. */ + schemaName?: StringFilter; + /** Filter by the object’s `label` field. */ + label?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `module` field. */ + module?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Filter by the object’s `isPublic` field. */ + isPublic?: BooleanFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: SchemaFilter[]; + /** Checks for any expressions in this list. */ + or?: SchemaFilter[]; + /** Negates the expression. */ + not?: SchemaFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `tables` relation. */ + tables?: SchemaToManyTableFilter; + /** `tables` exist. */ + tablesExist?: boolean; + /** Filter by the object’s `schemaGrants` relation. */ + schemaGrants?: SchemaToManySchemaGrantFilter; + /** `schemaGrants` exist. */ + schemaGrantsExist?: boolean; + /** Filter by the object’s `views` relation. */ + views?: SchemaToManyViewFilter; + /** `views` exist. */ + viewsExist?: boolean; + /** Filter by the object’s `defaultPrivileges` relation. */ + defaultPrivileges?: SchemaToManyDefaultPrivilegeFilter; + /** `defaultPrivileges` exist. */ + defaultPrivilegesExist?: boolean; + /** Filter by the object’s `enums` relation. */ + enums?: SchemaToManyEnumFilter; + /** `enums` exist. */ + enumsExist?: boolean; + /** Filter by the object’s `apiSchemas` relation. */ + apiSchemas?: SchemaToManyApiSchemaFilter; + /** `apiSchemas` exist. */ + apiSchemasExist?: boolean; + /** Filter by the object’s `tableTemplateModulesByPrivateSchemaId` relation. */ + tableTemplateModulesByPrivateSchemaId?: SchemaToManyTableTemplateModuleFilter; + /** `tableTemplateModulesByPrivateSchemaId` exist. */ + tableTemplateModulesByPrivateSchemaIdExist?: boolean; + /** Filter by the object’s `tableTemplateModules` relation. */ + tableTemplateModules?: SchemaToManyTableTemplateModuleFilter; + /** `tableTemplateModules` exist. */ + tableTemplateModulesExist?: boolean; +} +/** A filter to be used against many `Table` object types. All fields are combined with a logical ‘and.’ */ +export interface SchemaToManyTableFilter { + /** Filters to entities where at least one related entity matches. */ some?: TableFilter; /** Filters to entities where every related entity matches. */ every?: TableFilter; @@ -3729,6 +3620,14 @@ export interface TableFilter { viewTables?: TableToManyViewTableFilter; /** `viewTables` exist. */ viewTablesExist?: boolean; + /** Filter by the object’s `embeddingChunksByChunksTableId` relation. */ + embeddingChunksByChunksTableId?: TableToManyEmbeddingChunkFilter; + /** `embeddingChunksByChunksTableId` exist. */ + embeddingChunksByChunksTableIdExist?: boolean; + /** Filter by the object’s `embeddingChunks` relation. */ + embeddingChunks?: TableToManyEmbeddingChunkFilter; + /** `embeddingChunks` exist. */ + embeddingChunksExist?: boolean; /** Filter by the object’s `tableTemplateModulesByOwnerTableId` relation. */ tableTemplateModulesByOwnerTableId?: TableToManyTableTemplateModuleFilter; /** `tableTemplateModulesByOwnerTableId` exist. */ @@ -3749,25 +3648,6 @@ export interface TableFilter { relationProvisionsByTargetTableId?: TableToManyRelationProvisionFilter; /** `relationProvisionsByTargetTableId` exist. */ relationProvisionsByTargetTableIdExist?: boolean; - /** TRGM search on the `name` column. */ - trgmName?: TrgmSearchInput; - /** TRGM search on the `label` column. */ - trgmLabel?: TrgmSearchInput; - /** TRGM search on the `description` column. */ - trgmDescription?: TrgmSearchInput; - /** TRGM search on the `module` column. */ - trgmModule?: TrgmSearchInput; - /** TRGM search on the `plural_name` column. */ - trgmPluralName?: TrgmSearchInput; - /** TRGM search on the `singular_name` column. */ - trgmSingularName?: TrgmSearchInput; - /** - * Composite full-text search. Provide a search string and it will be dispatched - * to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - * simultaneously. Rows matching ANY algorithm are returned. All matching score - * fields are populated. - */ - fullTextSearch?: string; } /** A filter to be used against many `CheckConstraint` object types. All fields are combined with a logical ‘and.’ */ export interface TableToManyCheckConstraintFilter { @@ -3805,6 +3685,8 @@ export interface FieldFilter { smartTags?: JSONFilter; /** Filter by the object’s `isRequired` field. */ isRequired?: BooleanFilter; + /** Filter by the object’s `apiRequired` field. */ + apiRequired?: BooleanFilter; /** Filter by the object’s `defaultValue` field. */ defaultValue?: StringFilter; /** Filter by the object’s `defaultValueAst` field. */ @@ -3847,25 +3729,6 @@ export interface FieldFilter { database?: DatabaseFilter; /** Filter by the object’s `table` relation. */ table?: TableFilter; - /** TRGM search on the `name` column. */ - trgmName?: TrgmSearchInput; - /** TRGM search on the `label` column. */ - trgmLabel?: TrgmSearchInput; - /** TRGM search on the `description` column. */ - trgmDescription?: TrgmSearchInput; - /** TRGM search on the `default_value` column. */ - trgmDefaultValue?: TrgmSearchInput; - /** TRGM search on the `regexp` column. */ - trgmRegexp?: TrgmSearchInput; - /** TRGM search on the `module` column. */ - trgmModule?: TrgmSearchInput; - /** - * Composite full-text search. Provide a search string and it will be dispatched - * to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - * simultaneously. Rows matching ANY algorithm are returned. All matching score - * fields are populated. - */ - fullTextSearch?: string; } /** A filter to be used against many `ForeignKeyConstraint` object types. All fields are combined with a logical ‘and.’ */ export interface TableToManyForeignKeyConstraintFilter { @@ -3926,25 +3789,6 @@ export interface ForeignKeyConstraintFilter { refTable?: TableFilter; /** Filter by the object’s `table` relation. */ table?: TableFilter; - /** TRGM search on the `name` column. */ - trgmName?: TrgmSearchInput; - /** TRGM search on the `description` column. */ - trgmDescription?: TrgmSearchInput; - /** TRGM search on the `type` column. */ - trgmType?: TrgmSearchInput; - /** TRGM search on the `delete_action` column. */ - trgmDeleteAction?: TrgmSearchInput; - /** TRGM search on the `update_action` column. */ - trgmUpdateAction?: TrgmSearchInput; - /** TRGM search on the `module` column. */ - trgmModule?: TrgmSearchInput; - /** - * Composite full-text search. Provide a search string and it will be dispatched - * to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - * simultaneously. Rows matching ANY algorithm are returned. All matching score - * fields are populated. - */ - fullTextSearch?: string; } /** A filter to be used against many `FullTextSearch` object types. All fields are combined with a logical ‘and.’ */ export interface TableToManyFullTextSearchFilter { @@ -4045,19 +3889,6 @@ export interface IndexFilter { database?: DatabaseFilter; /** Filter by the object’s `table` relation. */ table?: TableFilter; - /** TRGM search on the `name` column. */ - trgmName?: TrgmSearchInput; - /** TRGM search on the `access_method` column. */ - trgmAccessMethod?: TrgmSearchInput; - /** TRGM search on the `module` column. */ - trgmModule?: TrgmSearchInput; - /** - * Composite full-text search. Provide a search string and it will be dispatched - * to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - * simultaneously. Rows matching ANY algorithm are returned. All matching score - * fields are populated. - */ - fullTextSearch?: string; } /** A filter to be used against many `Policy` object types. All fields are combined with a logical ‘and.’ */ export interface TableToManyPolicyFilter { @@ -4114,23 +3945,6 @@ export interface PolicyFilter { database?: DatabaseFilter; /** Filter by the object’s `table` relation. */ table?: TableFilter; - /** TRGM search on the `name` column. */ - trgmName?: TrgmSearchInput; - /** TRGM search on the `grantee_name` column. */ - trgmGranteeName?: TrgmSearchInput; - /** TRGM search on the `privilege` column. */ - trgmPrivilege?: TrgmSearchInput; - /** TRGM search on the `policy_type` column. */ - trgmPolicyType?: TrgmSearchInput; - /** TRGM search on the `module` column. */ - trgmModule?: TrgmSearchInput; - /** - * Composite full-text search. Provide a search string and it will be dispatched - * to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - * simultaneously. Rows matching ANY algorithm are returned. All matching score - * fields are populated. - */ - fullTextSearch?: string; } /** A filter to be used against many `PrimaryKeyConstraint` object types. All fields are combined with a logical ‘and.’ */ export interface TableToManyPrimaryKeyConstraintFilter { @@ -4179,19 +3993,6 @@ export interface PrimaryKeyConstraintFilter { database?: DatabaseFilter; /** Filter by the object’s `table` relation. */ table?: TableFilter; - /** TRGM search on the `name` column. */ - trgmName?: TrgmSearchInput; - /** TRGM search on the `type` column. */ - trgmType?: TrgmSearchInput; - /** TRGM search on the `module` column. */ - trgmModule?: TrgmSearchInput; - /** - * Composite full-text search. Provide a search string and it will be dispatched - * to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - * simultaneously. Rows matching ANY algorithm are returned. All matching score - * fields are populated. - */ - fullTextSearch?: string; } /** A filter to be used against many `TableGrant` object types. All fields are combined with a logical ‘and.’ */ export interface TableToManyTableGrantFilter { @@ -4232,17 +4033,6 @@ export interface TableGrantFilter { database?: DatabaseFilter; /** Filter by the object’s `table` relation. */ table?: TableFilter; - /** TRGM search on the `privilege` column. */ - trgmPrivilege?: TrgmSearchInput; - /** TRGM search on the `grantee_name` column. */ - trgmGranteeName?: TrgmSearchInput; - /** - * Composite full-text search. Provide a search string and it will be dispatched - * to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - * simultaneously. Rows matching ANY algorithm are returned. All matching score - * fields are populated. - */ - fullTextSearch?: string; } /** A filter to be used against many `Trigger` object types. All fields are combined with a logical ‘and.’ */ export interface TableToManyTriggerFilter { @@ -4291,21 +4081,6 @@ export interface TriggerFilter { database?: DatabaseFilter; /** Filter by the object’s `table` relation. */ table?: TableFilter; - /** TRGM search on the `name` column. */ - trgmName?: TrgmSearchInput; - /** TRGM search on the `event` column. */ - trgmEvent?: TrgmSearchInput; - /** TRGM search on the `function_name` column. */ - trgmFunctionName?: TrgmSearchInput; - /** TRGM search on the `module` column. */ - trgmModule?: TrgmSearchInput; - /** - * Composite full-text search. Provide a search string and it will be dispatched - * to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - * simultaneously. Rows matching ANY algorithm are returned. All matching score - * fields are populated. - */ - fullTextSearch?: string; } /** A filter to be used against many `UniqueConstraint` object types. All fields are combined with a logical ‘and.’ */ export interface TableToManyUniqueConstraintFilter { @@ -4356,21 +4131,6 @@ export interface UniqueConstraintFilter { database?: DatabaseFilter; /** Filter by the object’s `table` relation. */ table?: TableFilter; - /** TRGM search on the `name` column. */ - trgmName?: TrgmSearchInput; - /** TRGM search on the `description` column. */ - trgmDescription?: TrgmSearchInput; - /** TRGM search on the `type` column. */ - trgmType?: TrgmSearchInput; - /** TRGM search on the `module` column. */ - trgmModule?: TrgmSearchInput; - /** - * Composite full-text search. Provide a search string and it will be dispatched - * to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - * simultaneously. Rows matching ANY algorithm are returned. All matching score - * fields are populated. - */ - fullTextSearch?: string; } /** A filter to be used against many `View` object types. All fields are combined with a logical ‘and.’ */ export interface TableToManyViewFilter { @@ -4441,21 +4201,6 @@ export interface ViewFilter { viewRules?: ViewToManyViewRuleFilter; /** `viewRules` exist. */ viewRulesExist?: boolean; - /** TRGM search on the `name` column. */ - trgmName?: TrgmSearchInput; - /** TRGM search on the `view_type` column. */ - trgmViewType?: TrgmSearchInput; - /** TRGM search on the `filter_type` column. */ - trgmFilterType?: TrgmSearchInput; - /** TRGM search on the `module` column. */ - trgmModule?: TrgmSearchInput; - /** - * Composite full-text search. Provide a search string and it will be dispatched - * to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - * simultaneously. Rows matching ANY algorithm are returned. All matching score - * fields are populated. - */ - fullTextSearch?: string; } /** A filter to be used against many `ViewTable` object types. All fields are combined with a logical ‘and.’ */ export interface ViewToManyViewTableFilter { @@ -4522,17 +4267,6 @@ export interface ViewGrantFilter { database?: DatabaseFilter; /** Filter by the object’s `view` relation. */ view?: ViewFilter; - /** TRGM search on the `grantee_name` column. */ - trgmGranteeName?: TrgmSearchInput; - /** TRGM search on the `privilege` column. */ - trgmPrivilege?: TrgmSearchInput; - /** - * Composite full-text search. Provide a search string and it will be dispatched - * to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - * simultaneously. Rows matching ANY algorithm are returned. All matching score - * fields are populated. - */ - fullTextSearch?: string; } /** A filter to be used against many `ViewRule` object types. All fields are combined with a logical ‘and.’ */ export interface ViewToManyViewRuleFilter { @@ -4567,19 +4301,6 @@ export interface ViewRuleFilter { database?: DatabaseFilter; /** Filter by the object’s `view` relation. */ view?: ViewFilter; - /** TRGM search on the `name` column. */ - trgmName?: TrgmSearchInput; - /** TRGM search on the `event` column. */ - trgmEvent?: TrgmSearchInput; - /** TRGM search on the `action` column. */ - trgmAction?: TrgmSearchInput; - /** - * Composite full-text search. Provide a search string and it will be dispatched - * to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - * simultaneously. Rows matching ANY algorithm are returned. All matching score - * fields are populated. - */ - fullTextSearch?: string; } /** A filter to be used against many `ViewTable` object types. All fields are combined with a logical ‘and.’ */ export interface TableToManyViewTableFilter { @@ -4590,32 +4311,102 @@ export interface TableToManyViewTableFilter { /** Filters to entities where no related entity matches. */ none?: ViewTableFilter; } -/** A filter to be used against many `TableTemplateModule` object types. All fields are combined with a logical ‘and.’ */ -export interface TableToManyTableTemplateModuleFilter { +/** A filter to be used against many `EmbeddingChunk` object types. All fields are combined with a logical ‘and.’ */ +export interface TableToManyEmbeddingChunkFilter { /** Filters to entities where at least one related entity matches. */ - some?: TableTemplateModuleFilter; + some?: EmbeddingChunkFilter; /** Filters to entities where every related entity matches. */ - every?: TableTemplateModuleFilter; + every?: EmbeddingChunkFilter; /** Filters to entities where no related entity matches. */ - none?: TableTemplateModuleFilter; + none?: EmbeddingChunkFilter; } -/** A filter to be used against `TableTemplateModule` object types. All fields are combined with a logical ‘and.’ */ -export interface TableTemplateModuleFilter { +/** A filter to be used against `EmbeddingChunk` object types. All fields are combined with a logical ‘and.’ */ +export interface EmbeddingChunkFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `privateSchemaId` field. */ - privateSchemaId?: UUIDFilter; /** Filter by the object’s `tableId` field. */ tableId?: UUIDFilter; - /** Filter by the object’s `ownerTableId` field. */ - ownerTableId?: UUIDFilter; - /** Filter by the object’s `tableName` field. */ - tableName?: StringFilter; - /** Filter by the object’s `nodeType` field. */ + /** Filter by the object’s `embeddingFieldId` field. */ + embeddingFieldId?: UUIDFilter; + /** Filter by the object’s `chunksTableId` field. */ + chunksTableId?: UUIDFilter; + /** Filter by the object’s `chunksTableName` field. */ + chunksTableName?: StringFilter; + /** Filter by the object’s `contentFieldName` field. */ + contentFieldName?: StringFilter; + /** Filter by the object’s `dimensions` field. */ + dimensions?: IntFilter; + /** Filter by the object’s `metric` field. */ + metric?: StringFilter; + /** Filter by the object’s `chunkSize` field. */ + chunkSize?: IntFilter; + /** Filter by the object’s `chunkOverlap` field. */ + chunkOverlap?: IntFilter; + /** Filter by the object’s `chunkStrategy` field. */ + chunkStrategy?: StringFilter; + /** Filter by the object’s `metadataFields` field. */ + metadataFields?: JSONFilter; + /** Filter by the object’s `enqueueChunkingJob` field. */ + enqueueChunkingJob?: BooleanFilter; + /** Filter by the object’s `chunkingTaskName` field. */ + chunkingTaskName?: StringFilter; + /** Filter by the object’s `parentFkFieldId` field. */ + parentFkFieldId?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: EmbeddingChunkFilter[]; + /** Checks for any expressions in this list. */ + or?: EmbeddingChunkFilter[]; + /** Negates the expression. */ + not?: EmbeddingChunkFilter; + /** Filter by the object’s `chunksTable` relation. */ + chunksTable?: TableFilter; + /** A related `chunksTable` exists. */ + chunksTableExists?: boolean; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `embeddingField` relation. */ + embeddingField?: FieldFilter; + /** A related `embeddingField` exists. */ + embeddingFieldExists?: boolean; + /** Filter by the object’s `parentFkField` relation. */ + parentFkField?: FieldFilter; + /** A related `parentFkField` exists. */ + parentFkFieldExists?: boolean; + /** Filter by the object’s `table` relation. */ + table?: TableFilter; +} +/** A filter to be used against many `TableTemplateModule` object types. All fields are combined with a logical ‘and.’ */ +export interface TableToManyTableTemplateModuleFilter { + /** Filters to entities where at least one related entity matches. */ + some?: TableTemplateModuleFilter; + /** Filters to entities where every related entity matches. */ + every?: TableTemplateModuleFilter; + /** Filters to entities where no related entity matches. */ + none?: TableTemplateModuleFilter; +} +/** A filter to be used against `TableTemplateModule` object types. All fields are combined with a logical ‘and.’ */ +export interface TableTemplateModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `ownerTableId` field. */ + ownerTableId?: UUIDFilter; + /** Filter by the object’s `tableName` field. */ + tableName?: StringFilter; + /** Filter by the object’s `nodeType` field. */ nodeType?: StringFilter; /** Filter by the object’s `data` field. */ data?: JSONFilter; @@ -4635,17 +4426,6 @@ export interface TableTemplateModuleFilter { schema?: SchemaFilter; /** Filter by the object’s `table` relation. */ table?: TableFilter; - /** TRGM search on the `table_name` column. */ - trgmTableName?: TrgmSearchInput; - /** TRGM search on the `node_type` column. */ - trgmNodeType?: TrgmSearchInput; - /** - * Composite full-text search. Provide a search string and it will be dispatched - * to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - * simultaneously. Rows matching ANY algorithm are returned. All matching score - * fields are populated. - */ - fullTextSearch?: string; } /** A filter to be used against many `SecureTableProvision` object types. All fields are combined with a logical ‘and.’ */ export interface TableToManySecureTableProvisionFilter { @@ -4675,11 +4455,11 @@ export interface SecureTableProvisionFilter { /** Filter by the object’s `nodeData` field. */ nodeData?: JSONFilter; /** Filter by the object’s `fields` field. */ - fields?: JSONFilter; + fields?: JSONListFilter; /** Filter by the object’s `grantRoles` field. */ grantRoles?: StringListFilter; /** Filter by the object’s `grantPrivileges` field. */ - grantPrivileges?: JSONFilter; + grantPrivileges?: JSONListFilter; /** Filter by the object’s `policyType` field. */ policyType?: StringFilter; /** Filter by the object’s `policyPrivileges` field. */ @@ -4706,23 +4486,45 @@ export interface SecureTableProvisionFilter { schema?: SchemaFilter; /** Filter by the object’s `table` relation. */ table?: TableFilter; - /** TRGM search on the `table_name` column. */ - trgmTableName?: TrgmSearchInput; - /** TRGM search on the `node_type` column. */ - trgmNodeType?: TrgmSearchInput; - /** TRGM search on the `policy_type` column. */ - trgmPolicyType?: TrgmSearchInput; - /** TRGM search on the `policy_role` column. */ - trgmPolicyRole?: TrgmSearchInput; - /** TRGM search on the `policy_name` column. */ - trgmPolicyName?: TrgmSearchInput; - /** - * Composite full-text search. Provide a search string and it will be dispatched - * to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - * simultaneously. Rows matching ANY algorithm are returned. All matching score - * fields are populated. - */ - fullTextSearch?: string; +} +/** A filter to be used against JSON List fields. All fields are combined with a logical ‘and.’ */ +export interface JSONListFilter { + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Equal to the specified value. */ + equalTo?: unknown[]; + /** Not equal to the specified value. */ + notEqualTo?: unknown[]; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: unknown[]; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: unknown[]; + /** Less than the specified value. */ + lessThan?: unknown[]; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: unknown[]; + /** Greater than the specified value. */ + greaterThan?: unknown[]; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: unknown[]; + /** Contains the specified list of values. */ + contains?: unknown[]; + /** Contained by the specified list of values. */ + containedBy?: unknown[]; + /** Overlaps the specified list of values. */ + overlaps?: unknown[]; + /** Any array item is equal to the specified value. */ + anyEqualTo?: unknown; + /** Any array item is not equal to the specified value. */ + anyNotEqualTo?: unknown; + /** Any array item is less than the specified value. */ + anyLessThan?: unknown; + /** Any array item is less than or equal to the specified value. */ + anyLessThanOrEqualTo?: unknown; + /** Any array item is greater than the specified value. */ + anyGreaterThan?: unknown; + /** Any array item is greater than or equal to the specified value. */ + anyGreaterThanOrEqualTo?: unknown; } /** A filter to be used against many `RelationProvision` object types. All fields are combined with a logical ‘and.’ */ export interface TableToManyRelationProvisionFilter { @@ -4751,6 +4553,8 @@ export interface RelationProvisionFilter { deleteAction?: StringFilter; /** Filter by the object’s `isRequired` field. */ isRequired?: BooleanFilter; + /** Filter by the object’s `apiRequired` field. */ + apiRequired?: BooleanFilter; /** Filter by the object’s `junctionTableId` field. */ junctionTableId?: UUIDFilter; /** Filter by the object’s `junctionTableName` field. */ @@ -4763,6 +4567,10 @@ export interface RelationProvisionFilter { targetFieldName?: StringFilter; /** Filter by the object’s `useCompositeKey` field. */ useCompositeKey?: BooleanFilter; + /** Filter by the object’s `createIndex` field. */ + createIndex?: BooleanFilter; + /** Filter by the object’s `exposeInApi` field. */ + exposeInApi?: BooleanFilter; /** Filter by the object’s `nodeType` field. */ nodeType?: StringFilter; /** Filter by the object’s `nodeData` field. */ @@ -4770,7 +4578,7 @@ export interface RelationProvisionFilter { /** Filter by the object’s `grantRoles` field. */ grantRoles?: StringListFilter; /** Filter by the object’s `grantPrivileges` field. */ - grantPrivileges?: JSONFilter; + grantPrivileges?: JSONListFilter; /** Filter by the object’s `policyType` field. */ policyType?: StringFilter; /** Filter by the object’s `policyPrivileges` field. */ @@ -4803,33 +4611,6 @@ export interface RelationProvisionFilter { sourceTable?: TableFilter; /** Filter by the object’s `targetTable` relation. */ targetTable?: TableFilter; - /** TRGM search on the `relation_type` column. */ - trgmRelationType?: TrgmSearchInput; - /** TRGM search on the `field_name` column. */ - trgmFieldName?: TrgmSearchInput; - /** TRGM search on the `delete_action` column. */ - trgmDeleteAction?: TrgmSearchInput; - /** TRGM search on the `junction_table_name` column. */ - trgmJunctionTableName?: TrgmSearchInput; - /** TRGM search on the `source_field_name` column. */ - trgmSourceFieldName?: TrgmSearchInput; - /** TRGM search on the `target_field_name` column. */ - trgmTargetFieldName?: TrgmSearchInput; - /** TRGM search on the `node_type` column. */ - trgmNodeType?: TrgmSearchInput; - /** TRGM search on the `policy_type` column. */ - trgmPolicyType?: TrgmSearchInput; - /** TRGM search on the `policy_role` column. */ - trgmPolicyRole?: TrgmSearchInput; - /** TRGM search on the `policy_name` column. */ - trgmPolicyName?: TrgmSearchInput; - /** - * Composite full-text search. Provide a search string and it will be dispatched - * to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - * simultaneously. Rows matching ANY algorithm are returned. All matching score - * fields are populated. - */ - fullTextSearch?: string; } /** A filter to be used against many `SchemaGrant` object types. All fields are combined with a logical ‘and.’ */ export interface SchemaToManySchemaGrantFilter { @@ -4864,15 +4645,6 @@ export interface SchemaGrantFilter { database?: DatabaseFilter; /** Filter by the object’s `schema` relation. */ schema?: SchemaFilter; - /** TRGM search on the `grantee_name` column. */ - trgmGranteeName?: TrgmSearchInput; - /** - * Composite full-text search. Provide a search string and it will be dispatched - * to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - * simultaneously. Rows matching ANY algorithm are returned. All matching score - * fields are populated. - */ - fullTextSearch?: string; } /** A filter to be used against many `View` object types. All fields are combined with a logical ‘and.’ */ export interface SchemaToManyViewFilter { @@ -4918,19 +4690,52 @@ export interface DefaultPrivilegeFilter { database?: DatabaseFilter; /** Filter by the object’s `schema` relation. */ schema?: SchemaFilter; - /** TRGM search on the `object_type` column. */ - trgmObjectType?: TrgmSearchInput; - /** TRGM search on the `privilege` column. */ - trgmPrivilege?: TrgmSearchInput; - /** TRGM search on the `grantee_name` column. */ - trgmGranteeName?: TrgmSearchInput; - /** - * Composite full-text search. Provide a search string and it will be dispatched - * to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - * simultaneously. Rows matching ANY algorithm are returned. All matching score - * fields are populated. - */ - fullTextSearch?: string; +} +/** A filter to be used against many `Enum` object types. All fields are combined with a logical ‘and.’ */ +export interface SchemaToManyEnumFilter { + /** Filters to entities where at least one related entity matches. */ + some?: EnumFilter; + /** Filters to entities where every related entity matches. */ + every?: EnumFilter; + /** Filters to entities where no related entity matches. */ + none?: EnumFilter; +} +/** A filter to be used against `Enum` object types. All fields are combined with a logical ‘and.’ */ +export interface EnumFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `label` field. */ + label?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `values` field. */ + values?: StringListFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `module` field. */ + module?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: EnumFilter[]; + /** Checks for any expressions in this list. */ + or?: EnumFilter[]; + /** Negates the expression. */ + not?: EnumFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; } /** A filter to be used against many `ApiSchema` object types. All fields are combined with a logical ‘and.’ */ export interface SchemaToManyApiSchemaFilter { @@ -5000,21 +4805,6 @@ export interface ApiFilter { domains?: ApiToManyDomainFilter; /** `domains` exist. */ domainsExist?: boolean; - /** TRGM search on the `name` column. */ - trgmName?: TrgmSearchInput; - /** TRGM search on the `dbname` column. */ - trgmDbname?: TrgmSearchInput; - /** TRGM search on the `role_name` column. */ - trgmRoleName?: TrgmSearchInput; - /** TRGM search on the `anon_role` column. */ - trgmAnonRole?: TrgmSearchInput; - /** - * Composite full-text search. Provide a search string and it will be dispatched - * to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - * simultaneously. Rows matching ANY algorithm are returned. All matching score - * fields are populated. - */ - fullTextSearch?: string; } /** A filter to be used against many `ApiModule` object types. All fields are combined with a logical ‘and.’ */ export interface ApiToManyApiModuleFilter { @@ -5045,15 +4835,6 @@ export interface ApiModuleFilter { api?: ApiFilter; /** Filter by the object’s `database` relation. */ database?: DatabaseFilter; - /** TRGM search on the `name` column. */ - trgmName?: TrgmSearchInput; - /** - * Composite full-text search. Provide a search string and it will be dispatched - * to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - * simultaneously. Rows matching ANY algorithm are returned. All matching score - * fields are populated. - */ - fullTextSearch?: string; } /** A filter to be used against many `ApiSchema` object types. All fields are combined with a logical ‘and.’ */ export interface ApiToManyApiSchemaFilter { @@ -5229,19 +5010,6 @@ export interface SiteFilter { siteThemes?: SiteToManySiteThemeFilter; /** `siteThemes` exist. */ siteThemesExist?: boolean; - /** TRGM search on the `title` column. */ - trgmTitle?: TrgmSearchInput; - /** TRGM search on the `description` column. */ - trgmDescription?: TrgmSearchInput; - /** TRGM search on the `dbname` column. */ - trgmDbname?: TrgmSearchInput; - /** - * Composite full-text search. Provide a search string and it will be dispatched - * to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - * simultaneously. Rows matching ANY algorithm are returned. All matching score - * fields are populated. - */ - fullTextSearch?: string; } /** A filter to be used against ConstructiveInternalTypeAttachment fields. All fields are combined with a logical ‘and.’ */ export interface ConstructiveInternalTypeAttachmentFilter { @@ -5350,19 +5118,6 @@ export interface AppFilter { site?: SiteFilter; /** Filter by the object’s `database` relation. */ database?: DatabaseFilter; - /** TRGM search on the `name` column. */ - trgmName?: TrgmSearchInput; - /** TRGM search on the `app_store_id` column. */ - trgmAppStoreId?: TrgmSearchInput; - /** TRGM search on the `app_id_prefix` column. */ - trgmAppIdPrefix?: TrgmSearchInput; - /** - * Composite full-text search. Provide a search string and it will be dispatched - * to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - * simultaneously. Rows matching ANY algorithm are returned. All matching score - * fields are populated. - */ - fullTextSearch?: string; } /** A filter to be used against ConstructiveInternalTypeUrl fields. All fields are combined with a logical ‘and.’ */ export interface ConstructiveInternalTypeUrlFilter { @@ -5483,17 +5238,6 @@ export interface SiteMetadatumFilter { database?: DatabaseFilter; /** Filter by the object’s `site` relation. */ site?: SiteFilter; - /** TRGM search on the `title` column. */ - trgmTitle?: TrgmSearchInput; - /** TRGM search on the `description` column. */ - trgmDescription?: TrgmSearchInput; - /** - * Composite full-text search. Provide a search string and it will be dispatched - * to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - * simultaneously. Rows matching ANY algorithm are returned. All matching score - * fields are populated. - */ - fullTextSearch?: string; } /** A filter to be used against many `SiteModule` object types. All fields are combined with a logical ‘and.’ */ export interface SiteToManySiteModuleFilter { @@ -5524,15 +5268,6 @@ export interface SiteModuleFilter { database?: DatabaseFilter; /** Filter by the object’s `site` relation. */ site?: SiteFilter; - /** TRGM search on the `name` column. */ - trgmName?: TrgmSearchInput; - /** - * Composite full-text search. Provide a search string and it will be dispatched - * to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - * simultaneously. Rows matching ANY algorithm are returned. All matching score - * fields are populated. - */ - fullTextSearch?: string; } /** A filter to be used against many `SiteTheme` object types. All fields are combined with a logical ‘and.’ */ export interface SiteToManySiteThemeFilter { @@ -5694,17 +5429,6 @@ export interface TriggerFunctionFilter { not?: TriggerFunctionFilter; /** Filter by the object’s `database` relation. */ database?: DatabaseFilter; - /** TRGM search on the `name` column. */ - trgmName?: TrgmSearchInput; - /** TRGM search on the `code` column. */ - trgmCode?: TrgmSearchInput; - /** - * Composite full-text search. Provide a search string and it will be dispatched - * to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - * simultaneously. Rows matching ANY algorithm are returned. All matching score - * fields are populated. - */ - fullTextSearch?: string; } /** A filter to be used against many `Trigger` object types. All fields are combined with a logical ‘and.’ */ export interface DatabaseToManyTriggerFilter { @@ -5760,6 +5484,72 @@ export interface DatabaseToManyDefaultPrivilegeFilter { /** Filters to entities where no related entity matches. */ none?: DefaultPrivilegeFilter; } +/** A filter to be used against many `Enum` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyEnumFilter { + /** Filters to entities where at least one related entity matches. */ + some?: EnumFilter; + /** Filters to entities where every related entity matches. */ + every?: EnumFilter; + /** Filters to entities where no related entity matches. */ + none?: EnumFilter; +} +/** A filter to be used against many `EmbeddingChunk` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyEmbeddingChunkFilter { + /** Filters to entities where at least one related entity matches. */ + some?: EmbeddingChunkFilter; + /** Filters to entities where every related entity matches. */ + every?: EmbeddingChunkFilter; + /** Filters to entities where no related entity matches. */ + none?: EmbeddingChunkFilter; +} +/** A filter to be used against many `DatabaseTransfer` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyDatabaseTransferFilter { + /** Filters to entities where at least one related entity matches. */ + some?: DatabaseTransferFilter; + /** Filters to entities where every related entity matches. */ + every?: DatabaseTransferFilter; + /** Filters to entities where no related entity matches. */ + none?: DatabaseTransferFilter; +} +/** A filter to be used against `DatabaseTransfer` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseTransferFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `targetOwnerId` field. */ + targetOwnerId?: UUIDFilter; + /** Filter by the object’s `sourceApproved` field. */ + sourceApproved?: BooleanFilter; + /** Filter by the object’s `targetApproved` field. */ + targetApproved?: BooleanFilter; + /** Filter by the object’s `sourceApprovedAt` field. */ + sourceApprovedAt?: DatetimeFilter; + /** Filter by the object’s `targetApprovedAt` field. */ + targetApprovedAt?: DatetimeFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `initiatedBy` field. */ + initiatedBy?: UUIDFilter; + /** Filter by the object’s `notes` field. */ + notes?: StringFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `completedAt` field. */ + completedAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: DatabaseTransferFilter[]; + /** Checks for any expressions in this list. */ + or?: DatabaseTransferFilter[]; + /** Negates the expression. */ + not?: DatabaseTransferFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; +} /** A filter to be used against many `Api` object types. All fields are combined with a logical ‘and.’ */ export interface DatabaseToManyApiFilter { /** Filters to entities where at least one related entity matches. */ @@ -5882,15 +5672,6 @@ export interface ConnectedAccountsModuleFilter { schema?: SchemaFilter; /** Filter by the object’s `table` relation. */ table?: TableFilter; - /** TRGM search on the `table_name` column. */ - trgmTableName?: TrgmSearchInput; - /** - * Composite full-text search. Provide a search string and it will be dispatched - * to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - * simultaneously. Rows matching ANY algorithm are returned. All matching score - * fields are populated. - */ - fullTextSearch?: string; } /** A filter to be used against many `CryptoAddressesModule` object types. All fields are combined with a logical ‘and.’ */ export interface DatabaseToManyCryptoAddressesModuleFilter { @@ -5935,17 +5716,6 @@ export interface CryptoAddressesModuleFilter { schema?: SchemaFilter; /** Filter by the object’s `table` relation. */ table?: TableFilter; - /** TRGM search on the `table_name` column. */ - trgmTableName?: TrgmSearchInput; - /** TRGM search on the `crypto_network` column. */ - trgmCryptoNetwork?: TrgmSearchInput; - /** - * Composite full-text search. Provide a search string and it will be dispatched - * to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - * simultaneously. Rows matching ANY algorithm are returned. All matching score - * fields are populated. - */ - fullTextSearch?: string; } /** A filter to be used against many `CryptoAuthModule` object types. All fields are combined with a logical ‘and.’ */ export interface DatabaseToManyCryptoAuthModuleFilter { @@ -6004,25 +5774,6 @@ export interface CryptoAuthModuleFilter { sessionsTable?: TableFilter; /** Filter by the object’s `usersTable` relation. */ usersTable?: TableFilter; - /** TRGM search on the `user_field` column. */ - trgmUserField?: TrgmSearchInput; - /** TRGM search on the `crypto_network` column. */ - trgmCryptoNetwork?: TrgmSearchInput; - /** TRGM search on the `sign_in_request_challenge` column. */ - trgmSignInRequestChallenge?: TrgmSearchInput; - /** TRGM search on the `sign_in_record_failure` column. */ - trgmSignInRecordFailure?: TrgmSearchInput; - /** TRGM search on the `sign_up_with_key` column. */ - trgmSignUpWithKey?: TrgmSearchInput; - /** TRGM search on the `sign_in_with_challenge` column. */ - trgmSignInWithChallenge?: TrgmSearchInput; - /** - * Composite full-text search. Provide a search string and it will be dispatched - * to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - * simultaneously. Rows matching ANY algorithm are returned. All matching score - * fields are populated. - */ - fullTextSearch?: string; } /** A filter to be used against many `DefaultIdsModule` object types. All fields are combined with a logical ‘and.’ */ export interface DatabaseToManyDefaultIdsModuleFilter { @@ -6099,15 +5850,6 @@ export interface DenormalizedTableFieldFilter { refTable?: TableFilter; /** Filter by the object’s `table` relation. */ table?: TableFilter; - /** TRGM search on the `func_name` column. */ - trgmFuncName?: TrgmSearchInput; - /** - * Composite full-text search. Provide a search string and it will be dispatched - * to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - * simultaneously. Rows matching ANY algorithm are returned. All matching score - * fields are populated. - */ - fullTextSearch?: string; } /** A filter to be used against many `EmailsModule` object types. All fields are combined with a logical ‘and.’ */ export interface DatabaseToManyEmailsModuleFilter { @@ -6150,15 +5892,6 @@ export interface EmailsModuleFilter { schema?: SchemaFilter; /** Filter by the object’s `table` relation. */ table?: TableFilter; - /** TRGM search on the `table_name` column. */ - trgmTableName?: TrgmSearchInput; - /** - * Composite full-text search. Provide a search string and it will be dispatched - * to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - * simultaneously. Rows matching ANY algorithm are returned. All matching score - * fields are populated. - */ - fullTextSearch?: string; } /** A filter to be used against many `EncryptedSecretsModule` object types. All fields are combined with a logical ‘and.’ */ export interface DatabaseToManyEncryptedSecretsModuleFilter { @@ -6193,15 +5926,6 @@ export interface EncryptedSecretsModuleFilter { schema?: SchemaFilter; /** Filter by the object’s `table` relation. */ table?: TableFilter; - /** TRGM search on the `table_name` column. */ - trgmTableName?: TrgmSearchInput; - /** - * Composite full-text search. Provide a search string and it will be dispatched - * to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - * simultaneously. Rows matching ANY algorithm are returned. All matching score - * fields are populated. - */ - fullTextSearch?: string; } /** A filter to be used against many `FieldModule` object types. All fields are combined with a logical ‘and.’ */ export interface DatabaseToManyFieldModuleFilter { @@ -6246,15 +5970,6 @@ export interface FieldModuleFilter { privateSchema?: SchemaFilter; /** Filter by the object’s `table` relation. */ table?: TableFilter; - /** TRGM search on the `node_type` column. */ - trgmNodeType?: TrgmSearchInput; - /** - * Composite full-text search. Provide a search string and it will be dispatched - * to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - * simultaneously. Rows matching ANY algorithm are returned. All matching score - * fields are populated. - */ - fullTextSearch?: string; } /** A filter to be used against many `InvitesModule` object types. All fields are combined with a logical ‘and.’ */ export interface DatabaseToManyInvitesModuleFilter { @@ -6319,21 +6034,6 @@ export interface InvitesModuleFilter { schema?: SchemaFilter; /** Filter by the object’s `usersTable` relation. */ usersTable?: TableFilter; - /** TRGM search on the `invites_table_name` column. */ - trgmInvitesTableName?: TrgmSearchInput; - /** TRGM search on the `claimed_invites_table_name` column. */ - trgmClaimedInvitesTableName?: TrgmSearchInput; - /** TRGM search on the `submit_invite_code_function` column. */ - trgmSubmitInviteCodeFunction?: TrgmSearchInput; - /** TRGM search on the `prefix` column. */ - trgmPrefix?: TrgmSearchInput; - /** - * Composite full-text search. Provide a search string and it will be dispatched - * to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - * simultaneously. Rows matching ANY algorithm are returned. All matching score - * fields are populated. - */ - fullTextSearch?: string; } /** A filter to be used against many `LevelsModule` object types. All fields are combined with a logical ‘and.’ */ export interface DatabaseToManyLevelsModuleFilter { @@ -6424,43 +6124,6 @@ export interface LevelsModuleFilter { schema?: SchemaFilter; /** Filter by the object’s `stepsTable` relation. */ stepsTable?: TableFilter; - /** TRGM search on the `steps_table_name` column. */ - trgmStepsTableName?: TrgmSearchInput; - /** TRGM search on the `achievements_table_name` column. */ - trgmAchievementsTableName?: TrgmSearchInput; - /** TRGM search on the `levels_table_name` column. */ - trgmLevelsTableName?: TrgmSearchInput; - /** TRGM search on the `level_requirements_table_name` column. */ - trgmLevelRequirementsTableName?: TrgmSearchInput; - /** TRGM search on the `completed_step` column. */ - trgmCompletedStep?: TrgmSearchInput; - /** TRGM search on the `incompleted_step` column. */ - trgmIncompletedStep?: TrgmSearchInput; - /** TRGM search on the `tg_achievement` column. */ - trgmTgAchievement?: TrgmSearchInput; - /** TRGM search on the `tg_achievement_toggle` column. */ - trgmTgAchievementToggle?: TrgmSearchInput; - /** TRGM search on the `tg_achievement_toggle_boolean` column. */ - trgmTgAchievementToggleBoolean?: TrgmSearchInput; - /** TRGM search on the `tg_achievement_boolean` column. */ - trgmTgAchievementBoolean?: TrgmSearchInput; - /** TRGM search on the `upsert_achievement` column. */ - trgmUpsertAchievement?: TrgmSearchInput; - /** TRGM search on the `tg_update_achievements` column. */ - trgmTgUpdateAchievements?: TrgmSearchInput; - /** TRGM search on the `steps_required` column. */ - trgmStepsRequired?: TrgmSearchInput; - /** TRGM search on the `level_achieved` column. */ - trgmLevelAchieved?: TrgmSearchInput; - /** TRGM search on the `prefix` column. */ - trgmPrefix?: TrgmSearchInput; - /** - * Composite full-text search. Provide a search string and it will be dispatched - * to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - * simultaneously. Rows matching ANY algorithm are returned. All matching score - * fields are populated. - */ - fullTextSearch?: string; } /** A filter to be used against many `LimitsModule` object types. All fields are combined with a logical ‘and.’ */ export interface DatabaseToManyLimitsModuleFilter { @@ -6531,31 +6194,6 @@ export interface LimitsModuleFilter { schema?: SchemaFilter; /** Filter by the object’s `table` relation. */ table?: TableFilter; - /** TRGM search on the `table_name` column. */ - trgmTableName?: TrgmSearchInput; - /** TRGM search on the `default_table_name` column. */ - trgmDefaultTableName?: TrgmSearchInput; - /** TRGM search on the `limit_increment_function` column. */ - trgmLimitIncrementFunction?: TrgmSearchInput; - /** TRGM search on the `limit_decrement_function` column. */ - trgmLimitDecrementFunction?: TrgmSearchInput; - /** TRGM search on the `limit_increment_trigger` column. */ - trgmLimitIncrementTrigger?: TrgmSearchInput; - /** TRGM search on the `limit_decrement_trigger` column. */ - trgmLimitDecrementTrigger?: TrgmSearchInput; - /** TRGM search on the `limit_update_trigger` column. */ - trgmLimitUpdateTrigger?: TrgmSearchInput; - /** TRGM search on the `limit_check_function` column. */ - trgmLimitCheckFunction?: TrgmSearchInput; - /** TRGM search on the `prefix` column. */ - trgmPrefix?: TrgmSearchInput; - /** - * Composite full-text search. Provide a search string and it will be dispatched - * to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - * simultaneously. Rows matching ANY algorithm are returned. All matching score - * fields are populated. - */ - fullTextSearch?: string; } /** A filter to be used against many `MembershipTypesModule` object types. All fields are combined with a logical ‘and.’ */ export interface DatabaseToManyMembershipTypesModuleFilter { @@ -6590,15 +6228,6 @@ export interface MembershipTypesModuleFilter { schema?: SchemaFilter; /** Filter by the object’s `table` relation. */ table?: TableFilter; - /** TRGM search on the `table_name` column. */ - trgmTableName?: TrgmSearchInput; - /** - * Composite full-text search. Provide a search string and it will be dispatched - * to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - * simultaneously. Rows matching ANY algorithm are returned. All matching score - * fields are populated. - */ - fullTextSearch?: string; } /** A filter to be used against many `MembershipsModule` object types. All fields are combined with a logical ‘and.’ */ export interface DatabaseToManyMembershipsModuleFilter { @@ -6713,37 +6342,6 @@ export interface MembershipsModuleFilter { schema?: SchemaFilter; /** Filter by the object’s `sprtTable` relation. */ sprtTable?: TableFilter; - /** TRGM search on the `memberships_table_name` column. */ - trgmMembershipsTableName?: TrgmSearchInput; - /** TRGM search on the `members_table_name` column. */ - trgmMembersTableName?: TrgmSearchInput; - /** TRGM search on the `membership_defaults_table_name` column. */ - trgmMembershipDefaultsTableName?: TrgmSearchInput; - /** TRGM search on the `grants_table_name` column. */ - trgmGrantsTableName?: TrgmSearchInput; - /** TRGM search on the `admin_grants_table_name` column. */ - trgmAdminGrantsTableName?: TrgmSearchInput; - /** TRGM search on the `owner_grants_table_name` column. */ - trgmOwnerGrantsTableName?: TrgmSearchInput; - /** TRGM search on the `prefix` column. */ - trgmPrefix?: TrgmSearchInput; - /** TRGM search on the `actor_mask_check` column. */ - trgmActorMaskCheck?: TrgmSearchInput; - /** TRGM search on the `actor_perm_check` column. */ - trgmActorPermCheck?: TrgmSearchInput; - /** TRGM search on the `entity_ids_by_mask` column. */ - trgmEntityIdsByMask?: TrgmSearchInput; - /** TRGM search on the `entity_ids_by_perm` column. */ - trgmEntityIdsByPerm?: TrgmSearchInput; - /** TRGM search on the `entity_ids_function` column. */ - trgmEntityIdsFunction?: TrgmSearchInput; - /** - * Composite full-text search. Provide a search string and it will be dispatched - * to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - * simultaneously. Rows matching ANY algorithm are returned. All matching score - * fields are populated. - */ - fullTextSearch?: string; } /** A filter to be used against many `PermissionsModule` object types. All fields are combined with a logical ‘and.’ */ export interface DatabaseToManyPermissionsModuleFilter { @@ -6812,27 +6410,6 @@ export interface PermissionsModuleFilter { schema?: SchemaFilter; /** Filter by the object’s `table` relation. */ table?: TableFilter; - /** TRGM search on the `table_name` column. */ - trgmTableName?: TrgmSearchInput; - /** TRGM search on the `default_table_name` column. */ - trgmDefaultTableName?: TrgmSearchInput; - /** TRGM search on the `prefix` column. */ - trgmPrefix?: TrgmSearchInput; - /** TRGM search on the `get_padded_mask` column. */ - trgmGetPaddedMask?: TrgmSearchInput; - /** TRGM search on the `get_mask` column. */ - trgmGetMask?: TrgmSearchInput; - /** TRGM search on the `get_by_mask` column. */ - trgmGetByMask?: TrgmSearchInput; - /** TRGM search on the `get_mask_by_name` column. */ - trgmGetMaskByName?: TrgmSearchInput; - /** - * Composite full-text search. Provide a search string and it will be dispatched - * to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - * simultaneously. Rows matching ANY algorithm are returned. All matching score - * fields are populated. - */ - fullTextSearch?: string; } /** A filter to be used against many `PhoneNumbersModule` object types. All fields are combined with a logical ‘and.’ */ export interface DatabaseToManyPhoneNumbersModuleFilter { @@ -6875,15 +6452,6 @@ export interface PhoneNumbersModuleFilter { schema?: SchemaFilter; /** Filter by the object’s `table` relation. */ table?: TableFilter; - /** TRGM search on the `table_name` column. */ - trgmTableName?: TrgmSearchInput; - /** - * Composite full-text search. Provide a search string and it will be dispatched - * to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - * simultaneously. Rows matching ANY algorithm are returned. All matching score - * fields are populated. - */ - fullTextSearch?: string; } /** A filter to be used against many `ProfilesModule` object types. All fields are combined with a logical ‘and.’ */ export interface DatabaseToManyProfilesModuleFilter { @@ -6962,23 +6530,6 @@ export interface ProfilesModuleFilter { schema?: SchemaFilter; /** Filter by the object’s `table` relation. */ table?: TableFilter; - /** TRGM search on the `table_name` column. */ - trgmTableName?: TrgmSearchInput; - /** TRGM search on the `profile_permissions_table_name` column. */ - trgmProfilePermissionsTableName?: TrgmSearchInput; - /** TRGM search on the `profile_grants_table_name` column. */ - trgmProfileGrantsTableName?: TrgmSearchInput; - /** TRGM search on the `profile_definition_grants_table_name` column. */ - trgmProfileDefinitionGrantsTableName?: TrgmSearchInput; - /** TRGM search on the `prefix` column. */ - trgmPrefix?: TrgmSearchInput; - /** - * Composite full-text search. Provide a search string and it will be dispatched - * to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - * simultaneously. Rows matching ANY algorithm are returned. All matching score - * fields are populated. - */ - fullTextSearch?: string; } /** A filter to be used against `RlsModule` object types. All fields are combined with a logical ‘and.’ */ export interface RlsModuleFilter { @@ -7022,21 +6573,6 @@ export interface RlsModuleFilter { sessionsTable?: TableFilter; /** Filter by the object’s `usersTable` relation. */ usersTable?: TableFilter; - /** TRGM search on the `authenticate` column. */ - trgmAuthenticate?: TrgmSearchInput; - /** TRGM search on the `authenticate_strict` column. */ - trgmAuthenticateStrict?: TrgmSearchInput; - /** TRGM search on the `current_role` column. */ - trgmCurrentRole?: TrgmSearchInput; - /** TRGM search on the `current_role_id` column. */ - trgmCurrentRoleId?: TrgmSearchInput; - /** - * Composite full-text search. Provide a search string and it will be dispatched - * to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - * simultaneously. Rows matching ANY algorithm are returned. All matching score - * fields are populated. - */ - fullTextSearch?: string; } /** A filter to be used against many `SecretsModule` object types. All fields are combined with a logical ‘and.’ */ export interface DatabaseToManySecretsModuleFilter { @@ -7071,15 +6607,6 @@ export interface SecretsModuleFilter { schema?: SchemaFilter; /** Filter by the object’s `table` relation. */ table?: TableFilter; - /** TRGM search on the `table_name` column. */ - trgmTableName?: TrgmSearchInput; - /** - * Composite full-text search. Provide a search string and it will be dispatched - * to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - * simultaneously. Rows matching ANY algorithm are returned. All matching score - * fields are populated. - */ - fullTextSearch?: string; } /** A filter to be used against many `SessionsModule` object types. All fields are combined with a logical ‘and.’ */ export interface DatabaseToManySessionsModuleFilter { @@ -7132,19 +6659,6 @@ export interface SessionsModuleFilter { sessionsTableBySessionsTableId?: TableFilter; /** Filter by the object’s `usersTable` relation. */ usersTable?: TableFilter; - /** TRGM search on the `sessions_table` column. */ - trgmSessionsTable?: TrgmSearchInput; - /** TRGM search on the `session_credentials_table` column. */ - trgmSessionCredentialsTable?: TrgmSearchInput; - /** TRGM search on the `auth_settings_table` column. */ - trgmAuthSettingsTable?: TrgmSearchInput; - /** - * Composite full-text search. Provide a search string and it will be dispatched - * to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - * simultaneously. Rows matching ANY algorithm are returned. All matching score - * fields are populated. - */ - fullTextSearch?: string; } /** A filter to be used against Interval fields. All fields are combined with a logical ‘and.’ */ export interface IntervalFilter { @@ -7275,45 +6789,6 @@ export interface UserAuthModuleFilter { sessionsTable?: TableFilter; /** Filter by the object’s `usersTable` relation. */ usersTable?: TableFilter; - /** TRGM search on the `audits_table_name` column. */ - trgmAuditsTableName?: TrgmSearchInput; - /** TRGM search on the `sign_in_function` column. */ - trgmSignInFunction?: TrgmSearchInput; - /** TRGM search on the `sign_up_function` column. */ - trgmSignUpFunction?: TrgmSearchInput; - /** TRGM search on the `sign_out_function` column. */ - trgmSignOutFunction?: TrgmSearchInput; - /** TRGM search on the `set_password_function` column. */ - trgmSetPasswordFunction?: TrgmSearchInput; - /** TRGM search on the `reset_password_function` column. */ - trgmResetPasswordFunction?: TrgmSearchInput; - /** TRGM search on the `forgot_password_function` column. */ - trgmForgotPasswordFunction?: TrgmSearchInput; - /** TRGM search on the `send_verification_email_function` column. */ - trgmSendVerificationEmailFunction?: TrgmSearchInput; - /** TRGM search on the `verify_email_function` column. */ - trgmVerifyEmailFunction?: TrgmSearchInput; - /** TRGM search on the `verify_password_function` column. */ - trgmVerifyPasswordFunction?: TrgmSearchInput; - /** TRGM search on the `check_password_function` column. */ - trgmCheckPasswordFunction?: TrgmSearchInput; - /** TRGM search on the `send_account_deletion_email_function` column. */ - trgmSendAccountDeletionEmailFunction?: TrgmSearchInput; - /** TRGM search on the `delete_account_function` column. */ - trgmDeleteAccountFunction?: TrgmSearchInput; - /** TRGM search on the `sign_in_one_time_token_function` column. */ - trgmSignInOneTimeTokenFunction?: TrgmSearchInput; - /** TRGM search on the `one_time_token_function` column. */ - trgmOneTimeTokenFunction?: TrgmSearchInput; - /** TRGM search on the `extend_token_expires` column. */ - trgmExtendTokenExpires?: TrgmSearchInput; - /** - * Composite full-text search. Provide a search string and it will be dispatched - * to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - * simultaneously. Rows matching ANY algorithm are returned. All matching score - * fields are populated. - */ - fullTextSearch?: string; } /** A filter to be used against many `UsersModule` object types. All fields are combined with a logical ‘and.’ */ export interface DatabaseToManyUsersModuleFilter { @@ -7354,60 +6829,6 @@ export interface UsersModuleFilter { table?: TableFilter; /** Filter by the object’s `typeTable` relation. */ typeTable?: TableFilter; - /** TRGM search on the `table_name` column. */ - trgmTableName?: TrgmSearchInput; - /** TRGM search on the `type_table_name` column. */ - trgmTypeTableName?: TrgmSearchInput; - /** - * Composite full-text search. Provide a search string and it will be dispatched - * to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - * simultaneously. Rows matching ANY algorithm are returned. All matching score - * fields are populated. - */ - fullTextSearch?: string; -} -/** A filter to be used against many `UuidModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseToManyUuidModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: UuidModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: UuidModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: UuidModuleFilter; -} -/** A filter to be used against `UuidModule` object types. All fields are combined with a logical ‘and.’ */ -export interface UuidModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `uuidFunction` field. */ - uuidFunction?: StringFilter; - /** Filter by the object’s `uuidSeed` field. */ - uuidSeed?: StringFilter; - /** Checks for all expressions in this list. */ - and?: UuidModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: UuidModuleFilter[]; - /** Negates the expression. */ - not?: UuidModuleFilter; - /** Filter by the object’s `database` relation. */ - database?: DatabaseFilter; - /** Filter by the object’s `schema` relation. */ - schema?: SchemaFilter; - /** TRGM search on the `uuid_function` column. */ - trgmUuidFunction?: TrgmSearchInput; - /** TRGM search on the `uuid_seed` column. */ - trgmUuidSeed?: TrgmSearchInput; - /** - * Composite full-text search. Provide a search string and it will be dispatched - * to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - * simultaneously. Rows matching ANY algorithm are returned. All matching score - * fields are populated. - */ - fullTextSearch?: string; } /** A filter to be used against `HierarchyModule` object types. All fields are combined with a logical ‘and.’ */ export interface HierarchyModuleFilter { @@ -7473,33 +6894,6 @@ export interface HierarchyModuleFilter { schema?: SchemaFilter; /** Filter by the object’s `usersTable` relation. */ usersTable?: TableFilter; - /** TRGM search on the `chart_edges_table_name` column. */ - trgmChartEdgesTableName?: TrgmSearchInput; - /** TRGM search on the `hierarchy_sprt_table_name` column. */ - trgmHierarchySprtTableName?: TrgmSearchInput; - /** TRGM search on the `chart_edge_grants_table_name` column. */ - trgmChartEdgeGrantsTableName?: TrgmSearchInput; - /** TRGM search on the `prefix` column. */ - trgmPrefix?: TrgmSearchInput; - /** TRGM search on the `private_schema_name` column. */ - trgmPrivateSchemaName?: TrgmSearchInput; - /** TRGM search on the `sprt_table_name` column. */ - trgmSprtTableName?: TrgmSearchInput; - /** TRGM search on the `rebuild_hierarchy_function` column. */ - trgmRebuildHierarchyFunction?: TrgmSearchInput; - /** TRGM search on the `get_subordinates_function` column. */ - trgmGetSubordinatesFunction?: TrgmSearchInput; - /** TRGM search on the `get_managers_function` column. */ - trgmGetManagersFunction?: TrgmSearchInput; - /** TRGM search on the `is_manager_of_function` column. */ - trgmIsManagerOfFunction?: TrgmSearchInput; - /** - * Composite full-text search. Provide a search string and it will be dispatched - * to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - * simultaneously. Rows matching ANY algorithm are returned. All matching score - * fields are populated. - */ - fullTextSearch?: string; } /** A filter to be used against many `TableTemplateModule` object types. All fields are combined with a logical ‘and.’ */ export interface DatabaseToManyTableTemplateModuleFilter { @@ -7528,6 +6922,143 @@ export interface DatabaseToManyRelationProvisionFilter { /** Filters to entities where no related entity matches. */ none?: RelationProvisionFilter; } +/** A filter to be used against many `Blueprint` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyBlueprintFilter { + /** Filters to entities where at least one related entity matches. */ + some?: BlueprintFilter; + /** Filters to entities where every related entity matches. */ + every?: BlueprintFilter; + /** Filters to entities where no related entity matches. */ + none?: BlueprintFilter; +} +/** A filter to be used against `Blueprint` object types. All fields are combined with a logical ‘and.’ */ +export interface BlueprintFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `displayName` field. */ + displayName?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `definition` field. */ + definition?: JSONFilter; + /** Filter by the object’s `templateId` field. */ + templateId?: UUIDFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `constructedAt` field. */ + constructedAt?: DatetimeFilter; + /** Filter by the object’s `errorDetails` field. */ + errorDetails?: StringFilter; + /** Filter by the object’s `refMap` field. */ + refMap?: JSONFilter; + /** Filter by the object’s `constructedDefinition` field. */ + constructedDefinition?: JSONFilter; + /** Filter by the object’s `definitionHash` field. */ + definitionHash?: UUIDFilter; + /** Filter by the object’s `tableHashes` field. */ + tableHashes?: JSONFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: BlueprintFilter[]; + /** Checks for any expressions in this list. */ + or?: BlueprintFilter[]; + /** Negates the expression. */ + not?: BlueprintFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `template` relation. */ + template?: BlueprintTemplateFilter; + /** A related `template` exists. */ + templateExists?: boolean; +} +/** A filter to be used against `BlueprintTemplate` object types. All fields are combined with a logical ‘and.’ */ +export interface BlueprintTemplateFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `version` field. */ + version?: StringFilter; + /** Filter by the object’s `displayName` field. */ + displayName?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `visibility` field. */ + visibility?: StringFilter; + /** Filter by the object’s `categories` field. */ + categories?: StringListFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Filter by the object’s `definition` field. */ + definition?: JSONFilter; + /** Filter by the object’s `definitionSchemaVersion` field. */ + definitionSchemaVersion?: StringFilter; + /** Filter by the object’s `source` field. */ + source?: StringFilter; + /** Filter by the object’s `complexity` field. */ + complexity?: StringFilter; + /** Filter by the object’s `copyCount` field. */ + copyCount?: IntFilter; + /** Filter by the object’s `forkCount` field. */ + forkCount?: IntFilter; + /** Filter by the object’s `forkedFromId` field. */ + forkedFromId?: UUIDFilter; + /** Filter by the object’s `definitionHash` field. */ + definitionHash?: UUIDFilter; + /** Filter by the object’s `tableHashes` field. */ + tableHashes?: JSONFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: BlueprintTemplateFilter[]; + /** Checks for any expressions in this list. */ + or?: BlueprintTemplateFilter[]; + /** Negates the expression. */ + not?: BlueprintTemplateFilter; + /** Filter by the object’s `forkedFrom` relation. */ + forkedFrom?: BlueprintTemplateFilter; + /** A related `forkedFrom` exists. */ + forkedFromExists?: boolean; + /** Filter by the object’s `blueprintTemplatesByForkedFromId` relation. */ + blueprintTemplatesByForkedFromId?: BlueprintTemplateToManyBlueprintTemplateFilter; + /** `blueprintTemplatesByForkedFromId` exist. */ + blueprintTemplatesByForkedFromIdExist?: boolean; + /** Filter by the object’s `blueprintsByTemplateId` relation. */ + blueprintsByTemplateId?: BlueprintTemplateToManyBlueprintFilter; + /** `blueprintsByTemplateId` exist. */ + blueprintsByTemplateIdExist?: boolean; +} +/** A filter to be used against many `BlueprintTemplate` object types. All fields are combined with a logical ‘and.’ */ +export interface BlueprintTemplateToManyBlueprintTemplateFilter { + /** Filters to entities where at least one related entity matches. */ + some?: BlueprintTemplateFilter; + /** Filters to entities where every related entity matches. */ + every?: BlueprintTemplateFilter; + /** Filters to entities where no related entity matches. */ + none?: BlueprintTemplateFilter; +} +/** A filter to be used against many `Blueprint` object types. All fields are combined with a logical ‘and.’ */ +export interface BlueprintTemplateToManyBlueprintFilter { + /** Filters to entities where at least one related entity matches. */ + some?: BlueprintFilter; + /** Filters to entities where every related entity matches. */ + every?: BlueprintFilter; + /** Filters to entities where no related entity matches. */ + none?: BlueprintFilter; +} /** A filter to be used against many `DatabaseProvisionModule` object types. All fields are combined with a logical ‘and.’ */ export interface DatabaseToManyDatabaseProvisionModuleFilter { /** Filters to entities where at least one related entity matches. */ @@ -7577,23 +7108,6 @@ export interface DatabaseProvisionModuleFilter { database?: DatabaseFilter; /** A related `database` exists. */ databaseExists?: boolean; - /** TRGM search on the `database_name` column. */ - trgmDatabaseName?: TrgmSearchInput; - /** TRGM search on the `subdomain` column. */ - trgmSubdomain?: TrgmSearchInput; - /** TRGM search on the `domain` column. */ - trgmDomain?: TrgmSearchInput; - /** TRGM search on the `status` column. */ - trgmStatus?: TrgmSearchInput; - /** TRGM search on the `error_message` column. */ - trgmErrorMessage?: TrgmSearchInput; - /** - * Composite full-text search. Provide a search string and it will be dispatched - * to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - * simultaneously. Rows matching ANY algorithm are returned. All matching score - * fields are populated. - */ - fullTextSearch?: string; } /** A filter to be used against `Ref` object types. All fields are combined with a logical ‘and.’ */ export interface RefFilter { @@ -7613,15 +7127,6 @@ export interface RefFilter { or?: RefFilter[]; /** Negates the expression. */ not?: RefFilter; - /** TRGM search on the `name` column. */ - trgmName?: TrgmSearchInput; - /** - * Composite full-text search. Provide a search string and it will be dispatched - * to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - * simultaneously. Rows matching ANY algorithm are returned. All matching score - * fields are populated. - */ - fullTextSearch?: string; } /** A filter to be used against `Store` object types. All fields are combined with a logical ‘and.’ */ export interface StoreFilter { @@ -7641,15 +7146,6 @@ export interface StoreFilter { or?: StoreFilter[]; /** Negates the expression. */ not?: StoreFilter; - /** TRGM search on the `name` column. */ - trgmName?: TrgmSearchInput; - /** - * Composite full-text search. Provide a search string and it will be dispatched - * to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - * simultaneously. Rows matching ANY algorithm are returned. All matching score - * fields are populated. - */ - fullTextSearch?: string; } /** A filter to be used against `AppPermissionDefault` object types. All fields are combined with a logical ‘and.’ */ export interface AppPermissionDefaultFilter { @@ -7664,162 +7160,35 @@ export interface AppPermissionDefaultFilter { /** Negates the expression. */ not?: AppPermissionDefaultFilter; } -/** A filter to be used against `CryptoAddress` object types. All fields are combined with a logical ‘and.’ */ -export interface CryptoAddressFilter { +/** A filter to be used against `AppLimitDefault` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitDefaultFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `address` field. */ - address?: StringFilter; - /** Filter by the object’s `isVerified` field. */ - isVerified?: BooleanFilter; - /** Filter by the object’s `isPrimary` field. */ - isPrimary?: BooleanFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `max` field. */ + max?: IntFilter; /** Checks for all expressions in this list. */ - and?: CryptoAddressFilter[]; + and?: AppLimitDefaultFilter[]; /** Checks for any expressions in this list. */ - or?: CryptoAddressFilter[]; + or?: AppLimitDefaultFilter[]; /** Negates the expression. */ - not?: CryptoAddressFilter; - /** Filter by the object’s `owner` relation. */ - owner?: UserFilter; - /** TRGM search on the `address` column. */ - trgmAddress?: TrgmSearchInput; - /** - * Composite full-text search. Provide a search string and it will be dispatched - * to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - * simultaneously. Rows matching ANY algorithm are returned. All matching score - * fields are populated. - */ - fullTextSearch?: string; + not?: AppLimitDefaultFilter; } -/** A filter to be used against `OrgPermissionDefault` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgPermissionDefaultFilter { +/** A filter to be used against `OrgLimitDefault` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgLimitDefaultFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `max` field. */ + max?: IntFilter; /** Checks for all expressions in this list. */ - and?: OrgPermissionDefaultFilter[]; + and?: OrgLimitDefaultFilter[]; /** Checks for any expressions in this list. */ - or?: OrgPermissionDefaultFilter[]; + or?: OrgLimitDefaultFilter[]; /** Negates the expression. */ - not?: OrgPermissionDefaultFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; -} -/** A filter to be used against `PhoneNumber` object types. All fields are combined with a logical ‘and.’ */ -export interface PhoneNumberFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `cc` field. */ - cc?: StringFilter; - /** Filter by the object’s `number` field. */ - number?: StringFilter; - /** Filter by the object’s `isVerified` field. */ - isVerified?: BooleanFilter; - /** Filter by the object’s `isPrimary` field. */ - isPrimary?: BooleanFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: PhoneNumberFilter[]; - /** Checks for any expressions in this list. */ - or?: PhoneNumberFilter[]; - /** Negates the expression. */ - not?: PhoneNumberFilter; - /** Filter by the object’s `owner` relation. */ - owner?: UserFilter; - /** TRGM search on the `cc` column. */ - trgmCc?: TrgmSearchInput; - /** TRGM search on the `number` column. */ - trgmNumber?: TrgmSearchInput; - /** - * Composite full-text search. Provide a search string and it will be dispatched - * to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - * simultaneously. Rows matching ANY algorithm are returned. All matching score - * fields are populated. - */ - fullTextSearch?: string; -} -/** A filter to be used against `AppLimitDefault` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `max` field. */ - max?: IntFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitDefaultFilter[]; - /** Negates the expression. */ - not?: AppLimitDefaultFilter; -} -/** A filter to be used against `OrgLimitDefault` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgLimitDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `max` field. */ - max?: IntFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitDefaultFilter[]; - /** Negates the expression. */ - not?: OrgLimitDefaultFilter; -} -/** A filter to be used against `ConnectedAccount` object types. All fields are combined with a logical ‘and.’ */ -export interface ConnectedAccountFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `service` field. */ - service?: StringFilter; - /** Filter by the object’s `identifier` field. */ - identifier?: StringFilter; - /** Filter by the object’s `details` field. */ - details?: JSONFilter; - /** Filter by the object’s `isVerified` field. */ - isVerified?: BooleanFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: ConnectedAccountFilter[]; - /** Checks for any expressions in this list. */ - or?: ConnectedAccountFilter[]; - /** Negates the expression. */ - not?: ConnectedAccountFilter; - /** Filter by the object’s `owner` relation. */ - owner?: UserFilter; - /** TRGM search on the `service` column. */ - trgmService?: TrgmSearchInput; - /** TRGM search on the `identifier` column. */ - trgmIdentifier?: TrgmSearchInput; - /** - * Composite full-text search. Provide a search string and it will be dispatched - * to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - * simultaneously. Rows matching ANY algorithm are returned. All matching score - * fields are populated. - */ - fullTextSearch?: string; + not?: OrgLimitDefaultFilter; } /** A filter to be used against `NodeTypeRegistry` object types. All fields are combined with a logical ‘and.’ */ export interface NodeTypeRegistryFilter { @@ -7847,23 +7216,6 @@ export interface NodeTypeRegistryFilter { or?: NodeTypeRegistryFilter[]; /** Negates the expression. */ not?: NodeTypeRegistryFilter; - /** TRGM search on the `name` column. */ - trgmName?: TrgmSearchInput; - /** TRGM search on the `slug` column. */ - trgmSlug?: TrgmSearchInput; - /** TRGM search on the `category` column. */ - trgmCategory?: TrgmSearchInput; - /** TRGM search on the `display_name` column. */ - trgmDisplayName?: TrgmSearchInput; - /** TRGM search on the `description` column. */ - trgmDescription?: TrgmSearchInput; - /** - * Composite full-text search. Provide a search string and it will be dispatched - * to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - * simultaneously. Rows matching ANY algorithm are returned. All matching score - * fields are populated. - */ - fullTextSearch?: string; } /** A filter to be used against `MembershipType` object types. All fields are combined with a logical ‘and.’ */ export interface MembershipTypeFilter { @@ -7881,17 +7233,6 @@ export interface MembershipTypeFilter { or?: MembershipTypeFilter[]; /** Negates the expression. */ not?: MembershipTypeFilter; - /** TRGM search on the `description` column. */ - trgmDescription?: TrgmSearchInput; - /** TRGM search on the `prefix` column. */ - trgmPrefix?: TrgmSearchInput; - /** - * Composite full-text search. Provide a search string and it will be dispatched - * to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - * simultaneously. Rows matching ANY algorithm are returned. All matching score - * fields are populated. - */ - fullTextSearch?: string; } /** A filter to be used against `Object` object types. All fields are combined with a logical ‘and.’ */ export interface ObjectFilter { @@ -7921,298 +7262,113 @@ export interface CommitFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `message` field. */ - message?: StringFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `storeId` field. */ - storeId?: UUIDFilter; - /** Filter by the object’s `parentIds` field. */ - parentIds?: UUIDListFilter; - /** Filter by the object’s `authorId` field. */ - authorId?: UUIDFilter; - /** Filter by the object’s `committerId` field. */ - committerId?: UUIDFilter; - /** Filter by the object’s `treeId` field. */ - treeId?: UUIDFilter; - /** Filter by the object’s `date` field. */ - date?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: CommitFilter[]; - /** Checks for any expressions in this list. */ - or?: CommitFilter[]; - /** Negates the expression. */ - not?: CommitFilter; - /** TRGM search on the `message` column. */ - trgmMessage?: TrgmSearchInput; - /** - * Composite full-text search. Provide a search string and it will be dispatched - * to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - * simultaneously. Rows matching ANY algorithm are returned. All matching score - * fields are populated. - */ - fullTextSearch?: string; -} -/** A filter to be used against `AppPermission` object types. All fields are combined with a logical ‘and.’ */ -export interface AppPermissionFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `bitnum` field. */ - bitnum?: IntFilter; - /** Filter by the object’s `bitstr` field. */ - bitstr?: BitStringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Checks for all expressions in this list. */ - and?: AppPermissionFilter[]; - /** Checks for any expressions in this list. */ - or?: AppPermissionFilter[]; - /** Negates the expression. */ - not?: AppPermissionFilter; - /** TRGM search on the `description` column. */ - trgmDescription?: TrgmSearchInput; - /** - * Composite full-text search. Provide a search string and it will be dispatched - * to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - * simultaneously. Rows matching ANY algorithm are returned. All matching score - * fields are populated. - */ - fullTextSearch?: string; -} -/** A filter to be used against `OrgPermission` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgPermissionFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `bitnum` field. */ - bitnum?: IntFilter; - /** Filter by the object’s `bitstr` field. */ - bitstr?: BitStringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Checks for all expressions in this list. */ - and?: OrgPermissionFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgPermissionFilter[]; - /** Negates the expression. */ - not?: OrgPermissionFilter; - /** TRGM search on the `description` column. */ - trgmDescription?: TrgmSearchInput; - /** - * Composite full-text search. Provide a search string and it will be dispatched - * to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - * simultaneously. Rows matching ANY algorithm are returned. All matching score - * fields are populated. - */ - fullTextSearch?: string; -} -/** A filter to be used against `AppMembershipDefault` object types. All fields are combined with a logical ‘and.’ */ -export interface AppMembershipDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `isApproved` field. */ - isApproved?: BooleanFilter; - /** Filter by the object’s `isVerified` field. */ - isVerified?: BooleanFilter; - /** Checks for all expressions in this list. */ - and?: AppMembershipDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: AppMembershipDefaultFilter[]; - /** Negates the expression. */ - not?: AppMembershipDefaultFilter; -} -/** A filter to be used against `AppLevelRequirement` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLevelRequirementFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `level` field. */ - level?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `requiredCount` field. */ - requiredCount?: IntFilter; - /** Filter by the object’s `priority` field. */ - priority?: IntFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: AppLevelRequirementFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLevelRequirementFilter[]; - /** Negates the expression. */ - not?: AppLevelRequirementFilter; - /** TRGM search on the `description` column. */ - trgmDescription?: TrgmSearchInput; - /** - * Composite full-text search. Provide a search string and it will be dispatched - * to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - * simultaneously. Rows matching ANY algorithm are returned. All matching score - * fields are populated. - */ - fullTextSearch?: string; -} -/** A filter to be used against `AuditLog` object types. All fields are combined with a logical ‘and.’ */ -export interface AuditLogFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `event` field. */ - event?: StringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `origin` field. */ - origin?: ConstructiveInternalTypeOriginFilter; - /** Filter by the object’s `userAgent` field. */ - userAgent?: StringFilter; - /** Filter by the object’s `ipAddress` field. */ - ipAddress?: InternetAddressFilter; - /** Filter by the object’s `success` field. */ - success?: BooleanFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: AuditLogFilter[]; - /** Checks for any expressions in this list. */ - or?: AuditLogFilter[]; - /** Negates the expression. */ - not?: AuditLogFilter; - /** Filter by the object’s `actor` relation. */ - actor?: UserFilter; - /** TRGM search on the `user_agent` column. */ - trgmUserAgent?: TrgmSearchInput; - /** - * Composite full-text search. Provide a search string and it will be dispatched - * to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - * simultaneously. Rows matching ANY algorithm are returned. All matching score - * fields are populated. - */ - fullTextSearch?: string; -} -/** A filter to be used against ConstructiveInternalTypeOrigin fields. All fields are combined with a logical ‘and.’ */ -export interface ConstructiveInternalTypeOriginFilter { - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Equal to the specified value. */ - equalTo?: ConstructiveInternalTypeOrigin; - /** Not equal to the specified value. */ - notEqualTo?: ConstructiveInternalTypeOrigin; - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: ConstructiveInternalTypeOrigin; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: ConstructiveInternalTypeOrigin; - /** Included in the specified list. */ - in?: ConstructiveInternalTypeOrigin[]; - /** Not included in the specified list. */ - notIn?: ConstructiveInternalTypeOrigin[]; - /** Less than the specified value. */ - lessThan?: ConstructiveInternalTypeOrigin; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: ConstructiveInternalTypeOrigin; - /** Greater than the specified value. */ - greaterThan?: ConstructiveInternalTypeOrigin; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: ConstructiveInternalTypeOrigin; - /** Contains the specified string (case-sensitive). */ - includes?: ConstructiveInternalTypeOrigin; - /** Does not contain the specified string (case-sensitive). */ - notIncludes?: ConstructiveInternalTypeOrigin; - /** Contains the specified string (case-insensitive). */ - includesInsensitive?: ConstructiveInternalTypeOrigin; - /** Does not contain the specified string (case-insensitive). */ - notIncludesInsensitive?: ConstructiveInternalTypeOrigin; - /** Starts with the specified string (case-sensitive). */ - startsWith?: ConstructiveInternalTypeOrigin; - /** Does not start with the specified string (case-sensitive). */ - notStartsWith?: ConstructiveInternalTypeOrigin; - /** Starts with the specified string (case-insensitive). */ - startsWithInsensitive?: ConstructiveInternalTypeOrigin; - /** Does not start with the specified string (case-insensitive). */ - notStartsWithInsensitive?: ConstructiveInternalTypeOrigin; - /** Ends with the specified string (case-sensitive). */ - endsWith?: ConstructiveInternalTypeOrigin; - /** Does not end with the specified string (case-sensitive). */ - notEndsWith?: ConstructiveInternalTypeOrigin; - /** Ends with the specified string (case-insensitive). */ - endsWithInsensitive?: ConstructiveInternalTypeOrigin; - /** Does not end with the specified string (case-insensitive). */ - notEndsWithInsensitive?: ConstructiveInternalTypeOrigin; - /** Matches the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ - like?: ConstructiveInternalTypeOrigin; - /** Does not match the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ - notLike?: ConstructiveInternalTypeOrigin; - /** Matches the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ - likeInsensitive?: ConstructiveInternalTypeOrigin; - /** Does not match the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */ - notLikeInsensitive?: ConstructiveInternalTypeOrigin; - /** Equal to the specified value (case-insensitive). */ - equalToInsensitive?: string; - /** Not equal to the specified value (case-insensitive). */ - notEqualToInsensitive?: string; - /** Not equal to the specified value, treating null like an ordinary value (case-insensitive). */ - distinctFromInsensitive?: string; - /** Equal to the specified value, treating null like an ordinary value (case-insensitive). */ - notDistinctFromInsensitive?: string; - /** Included in the specified list (case-insensitive). */ - inInsensitive?: string[]; - /** Not included in the specified list (case-insensitive). */ - notInInsensitive?: string[]; - /** Less than the specified value (case-insensitive). */ - lessThanInsensitive?: string; - /** Less than or equal to the specified value (case-insensitive). */ - lessThanOrEqualToInsensitive?: string; - /** Greater than the specified value (case-insensitive). */ - greaterThanInsensitive?: string; - /** Greater than or equal to the specified value (case-insensitive). */ - greaterThanOrEqualToInsensitive?: string; + message?: StringFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `storeId` field. */ + storeId?: UUIDFilter; + /** Filter by the object’s `parentIds` field. */ + parentIds?: UUIDListFilter; + /** Filter by the object’s `authorId` field. */ + authorId?: UUIDFilter; + /** Filter by the object’s `committerId` field. */ + committerId?: UUIDFilter; + /** Filter by the object’s `treeId` field. */ + treeId?: UUIDFilter; + /** Filter by the object’s `date` field. */ + date?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: CommitFilter[]; + /** Checks for any expressions in this list. */ + or?: CommitFilter[]; + /** Negates the expression. */ + not?: CommitFilter; } -/** A filter to be used against `AppLevel` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLevelFilter { +/** A filter to be used against `AppPermission` object types. All fields are combined with a logical ‘and.’ */ +export interface AppPermissionFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; + /** Filter by the object’s `bitnum` field. */ + bitnum?: IntFilter; + /** Filter by the object’s `bitstr` field. */ + bitstr?: BitStringFilter; /** Filter by the object’s `description` field. */ description?: StringFilter; - /** Filter by the object’s `image` field. */ - image?: ConstructiveInternalTypeImageFilter; - /** Filter by the object’s `ownerId` field. */ - ownerId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: AppPermissionFilter[]; + /** Checks for any expressions in this list. */ + or?: AppPermissionFilter[]; + /** Negates the expression. */ + not?: AppPermissionFilter; +} +/** A filter to be used against `OrgPermission` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgPermissionFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `bitnum` field. */ + bitnum?: IntFilter; + /** Filter by the object’s `bitstr` field. */ + bitstr?: BitStringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Checks for all expressions in this list. */ + and?: OrgPermissionFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgPermissionFilter[]; + /** Negates the expression. */ + not?: OrgPermissionFilter; +} +/** A filter to be used against `AppMembershipDefault` object types. All fields are combined with a logical ‘and.’ */ +export interface AppMembershipDefaultFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `isApproved` field. */ + isApproved?: BooleanFilter; + /** Filter by the object’s `isVerified` field. */ + isVerified?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: AppMembershipDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: AppMembershipDefaultFilter[]; + /** Negates the expression. */ + not?: AppMembershipDefaultFilter; +} +/** A filter to be used against `AppLevelRequirement` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLevelRequirementFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `level` field. */ + level?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `requiredCount` field. */ + requiredCount?: IntFilter; + /** Filter by the object’s `priority` field. */ + priority?: IntFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; /** Checks for all expressions in this list. */ - and?: AppLevelFilter[]; + and?: AppLevelRequirementFilter[]; /** Checks for any expressions in this list. */ - or?: AppLevelFilter[]; + or?: AppLevelRequirementFilter[]; /** Negates the expression. */ - not?: AppLevelFilter; - /** Filter by the object’s `owner` relation. */ - owner?: UserFilter; - /** A related `owner` exists. */ - ownerExists?: boolean; - /** TRGM search on the `description` column. */ - trgmDescription?: TrgmSearchInput; - /** - * Composite full-text search. Provide a search string and it will be dispatched - * to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - * simultaneously. Rows matching ANY algorithm are returned. All matching score - * fields are populated. - */ - fullTextSearch?: string; + not?: AppLevelRequirementFilter; } /** A filter to be used against `SqlMigration` object types. All fields are combined with a logical ‘and.’ */ export interface SqlMigrationFilter { @@ -8246,50 +7402,6 @@ export interface SqlMigrationFilter { or?: SqlMigrationFilter[]; /** Negates the expression. */ not?: SqlMigrationFilter; - /** TRGM search on the `name` column. */ - trgmName?: TrgmSearchInput; - /** TRGM search on the `deploy` column. */ - trgmDeploy?: TrgmSearchInput; - /** TRGM search on the `content` column. */ - trgmContent?: TrgmSearchInput; - /** TRGM search on the `revert` column. */ - trgmRevert?: TrgmSearchInput; - /** TRGM search on the `verify` column. */ - trgmVerify?: TrgmSearchInput; - /** TRGM search on the `action` column. */ - trgmAction?: TrgmSearchInput; - /** - * Composite full-text search. Provide a search string and it will be dispatched - * to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - * simultaneously. Rows matching ANY algorithm are returned. All matching score - * fields are populated. - */ - fullTextSearch?: string; -} -/** A filter to be used against `Email` object types. All fields are combined with a logical ‘and.’ */ -export interface EmailFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `email` field. */ - email?: ConstructiveInternalTypeEmailFilter; - /** Filter by the object’s `isVerified` field. */ - isVerified?: BooleanFilter; - /** Filter by the object’s `isPrimary` field. */ - isPrimary?: BooleanFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: EmailFilter[]; - /** Checks for any expressions in this list. */ - or?: EmailFilter[]; - /** Negates the expression. */ - not?: EmailFilter; - /** Filter by the object’s `owner` relation. */ - owner?: UserFilter; } /** A filter to be used against `AstMigration` object types. All fields are combined with a logical ‘and.’ */ export interface AstMigrationFilter { @@ -8325,25 +7437,24 @@ export interface AstMigrationFilter { or?: AstMigrationFilter[]; /** Negates the expression. */ not?: AstMigrationFilter; - /** TRGM search on the `action` column. */ - trgmAction?: TrgmSearchInput; - /** - * Composite full-text search. Provide a search string and it will be dispatched - * to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - * simultaneously. Rows matching ANY algorithm are returned. All matching score - * fields are populated. - */ - fullTextSearch?: string; +} +export interface SendAccountDeletionEmailInput { + clientMutationId?: string; } export interface SignOutInput { clientMutationId?: string; } -export interface SendAccountDeletionEmailInput { +export interface AcceptDatabaseTransferInput { clientMutationId?: string; + transferId?: string; } -export interface CheckPasswordInput { +export interface CancelDatabaseTransferInput { clientMutationId?: string; - password?: string; + transferId?: string; +} +export interface RejectDatabaseTransferInput { + clientMutationId?: string; + transferId?: string; } export interface SubmitInviteCodeInput { clientMutationId?: string; @@ -8353,15 +7464,9 @@ export interface SubmitOrgInviteCodeInput { clientMutationId?: string; token?: string; } -export interface FreezeObjectsInput { - clientMutationId?: string; - databaseId?: string; - id?: string; -} -export interface InitEmptyRepoInput { +export interface CheckPasswordInput { clientMutationId?: string; - dbId?: string; - storeId?: string; + password?: string; } export interface ConfirmDeleteAccountInput { clientMutationId?: string; @@ -8378,11 +7483,20 @@ export interface VerifyEmailInput { emailId?: string; token?: string; } -export interface RemoveNodeAtPathInput { +export interface FreezeObjectsInput { + clientMutationId?: string; + databaseId?: string; + id?: string; +} +export interface InitEmptyRepoInput { clientMutationId?: string; dbId?: string; - root?: string; - path?: string[]; + storeId?: string; +} +export interface ConstructBlueprintInput { + clientMutationId?: string; + blueprintId?: string; + schemaId?: string; } export interface ResetPasswordInput { clientMutationId?: string; @@ -8390,19 +7504,11 @@ export interface ResetPasswordInput { resetToken?: string; newPassword?: string; } -export interface BootstrapUserInput { - clientMutationId?: string; - targetDatabaseId?: string; - password?: string; - isAdmin?: boolean; - isOwner?: boolean; - username?: string; - displayName?: string; - returnApiKey?: boolean; -} -export interface SetFieldOrderInput { +export interface RemoveNodeAtPathInput { clientMutationId?: string; - fieldIds?: string[]; + dbId?: string; + root?: string; + path?: string[]; } export interface SetDataAtPathInput { clientMutationId?: string; @@ -8419,6 +7525,14 @@ export interface SetPropsAndCommitInput { path?: string[]; data?: unknown; } +export interface CopyTemplateToBlueprintInput { + clientMutationId?: string; + templateId?: string; + databaseId?: string; + ownerId?: string; + nameOverride?: string; + displayNameOverride?: string; +} export interface ProvisionDatabaseWithUserInput { clientMutationId?: string; pDatabaseName?: string; @@ -8427,6 +7541,20 @@ export interface ProvisionDatabaseWithUserInput { pModules?: string[]; pOptions?: unknown; } +export interface BootstrapUserInput { + clientMutationId?: string; + targetDatabaseId?: string; + password?: string; + isAdmin?: boolean; + isOwner?: boolean; + username?: string; + displayName?: string; + returnApiKey?: boolean; +} +export interface SetFieldOrderInput { + clientMutationId?: string; + fieldIds?: string[]; +} export interface InsertNodeAtPathInput { clientMutationId?: string; dbId?: string; @@ -8507,11 +7635,11 @@ export interface OneTimeTokenInput { origin?: ConstructiveInternalTypeOrigin; rememberMe?: boolean; } -export interface ForgotPasswordInput { +export interface SendVerificationEmailInput { clientMutationId?: string; email?: ConstructiveInternalTypeEmail; } -export interface SendVerificationEmailInput { +export interface ForgotPasswordInput { clientMutationId?: string; email?: ConstructiveInternalTypeEmail; } @@ -8561,6 +7689,22 @@ export interface ApiSchemaInput { /** API that exposes this schema */ apiId: string; } +export interface CreateSiteThemeInput { + clientMutationId?: string; + /** The `SiteTheme` to be created by this mutation. */ + siteTheme: SiteThemeInput; +} +/** An input for mutations affecting `SiteTheme` */ +export interface SiteThemeInput { + /** Unique identifier for this theme record */ + id?: string; + /** Reference to the metaschema database */ + databaseId: string; + /** Site this theme belongs to */ + siteId: string; + /** JSONB object containing theme tokens (colors, typography, spacing, etc.) */ + theme: unknown; +} export interface CreateOrgMemberInput { clientMutationId?: string; /** The `OrgMember` to be created by this mutation. */ @@ -8622,42 +7766,13 @@ export interface CreateSecretsModuleInput { /** The `SecretsModule` to be created by this mutation. */ secretsModule: SecretsModuleInput; } -/** An input for mutations affecting `SecretsModule` */ -export interface SecretsModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - tableId?: string; - tableName?: string; -} -export interface CreateUuidModuleInput { - clientMutationId?: string; - /** The `UuidModule` to be created by this mutation. */ - uuidModule: UuidModuleInput; -} -/** An input for mutations affecting `UuidModule` */ -export interface UuidModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - uuidFunction?: string; - uuidSeed: string; -} -export interface CreateSiteThemeInput { - clientMutationId?: string; - /** The `SiteTheme` to be created by this mutation. */ - siteTheme: SiteThemeInput; -} -/** An input for mutations affecting `SiteTheme` */ -export interface SiteThemeInput { - /** Unique identifier for this theme record */ +/** An input for mutations affecting `SecretsModule` */ +export interface SecretsModuleInput { id?: string; - /** Reference to the metaschema database */ databaseId: string; - /** Site this theme belongs to */ - siteId: string; - /** JSONB object containing theme tokens (colors, typography, spacing, etc.) */ - theme: unknown; + schemaId?: string; + tableId?: string; + tableName?: string; } export interface CreateStoreInput { clientMutationId?: string; @@ -9020,6 +8135,26 @@ export interface CryptoAddressesModuleInput { tableName: string; cryptoNetwork?: string; } +export interface CreateConnectedAccountInput { + clientMutationId?: string; + /** The `ConnectedAccount` to be created by this mutation. */ + connectedAccount: ConnectedAccountInput; +} +/** An input for mutations affecting `ConnectedAccount` */ +export interface ConnectedAccountInput { + id?: string; + ownerId?: string; + /** The service used, e.g. `twitter` or `github`. */ + service: string; + /** A unique identifier for the user within the service */ + identifier: string; + /** Additional profile details extracted from this login method */ + details: unknown; + /** Whether this connected account has been verified */ + isVerified?: boolean; + createdAt?: string; + updatedAt?: string; +} export interface CreatePhoneNumberInput { clientMutationId?: string; /** The `PhoneNumber` to be created by this mutation. */ @@ -9066,26 +8201,6 @@ export interface OrgLimitDefaultInput { /** Default maximum usage allowed for this limit */ max?: number; } -export interface CreateConnectedAccountInput { - clientMutationId?: string; - /** The `ConnectedAccount` to be created by this mutation. */ - connectedAccount: ConnectedAccountInput; -} -/** An input for mutations affecting `ConnectedAccount` */ -export interface ConnectedAccountInput { - id?: string; - ownerId?: string; - /** The service used, e.g. `twitter` or `github`. */ - service: string; - /** A unique identifier for the user within the service */ - identifier: string; - /** Additional profile details extracted from this login method */ - details: unknown; - /** Whether this connected account has been verified */ - isVerified?: boolean; - createdAt?: string; - updatedAt?: string; -} export interface CreateTableGrantInput { clientMutationId?: string; /** The `TableGrant` to be created by this mutation. */ @@ -9151,8 +8266,8 @@ export interface OrgChartEdgeGrantInput { childId: string; /** User ID of the manager being assigned; NULL for top-level positions */ parentId?: string; - /** User ID of the admin who performed this grant or revocation */ - grantorId: string; + /** User ID of the admin who performed this grant or revocation; NULL if grantor was deleted */ + grantorId?: string; /** TRUE to add/update the edge, FALSE to remove it */ isGrant?: boolean; /** Job title or role name being assigned in this grant */ @@ -9620,7 +8735,7 @@ export interface AuditLogInput { id?: string; /** Type of authentication event (e.g. sign_in, sign_up, password_change, verify_email) */ event: string; - /** User who performed the authentication action */ + /** User who performed the authentication action; NULL if user was deleted */ actorId?: string; /** Request origin (domain) where the auth event occurred */ origin?: ConstructiveInternalTypeOrigin; @@ -9673,6 +8788,28 @@ export interface SqlMigrationInput { actionId?: string; actorId?: string; } +export interface CreateDatabaseTransferInput { + clientMutationId?: string; + /** The `DatabaseTransfer` to be created by this mutation. */ + databaseTransfer: DatabaseTransferInput; +} +/** An input for mutations affecting `DatabaseTransfer` */ +export interface DatabaseTransferInput { + id?: string; + databaseId: string; + targetOwnerId: string; + sourceApproved?: boolean; + targetApproved?: boolean; + sourceApprovedAt?: string; + targetApprovedAt?: string; + status?: string; + initiatedBy: string; + notes?: string; + expiresAt?: string; + createdAt?: string; + updatedAt?: string; + completedAt?: string; +} export interface CreateCryptoAuthModuleInput { clientMutationId?: string; /** The `CryptoAuthModule` to be created by this mutation. */ @@ -9766,6 +8903,26 @@ export interface EmailInput { createdAt?: string; updatedAt?: string; } +export interface CreateEnumInput { + clientMutationId?: string; + /** The `Enum` to be created by this mutation. */ + enum: EnumInput; +} +/** An input for mutations affecting `Enum` */ +export interface EnumInput { + id?: string; + databaseId: string; + schemaId: string; + name: string; + label?: string; + description?: string; + values?: string[]; + smartTags?: unknown; + category?: ObjectCategory; + module?: string; + scope?: number; + tags?: string[]; +} export interface CreateViewInput { clientMutationId?: string; /** The `View` to be created by this mutation. */ @@ -9790,6 +8947,48 @@ export interface ViewInput { scope?: number; tags?: string[]; } +export interface CreateBlueprintInput { + clientMutationId?: string; + /** The `Blueprint` to be created by this mutation. */ + blueprint: BlueprintInput; +} +/** An input for mutations affecting `Blueprint` */ +export interface BlueprintInput { + /** Unique identifier for this blueprint. */ + id?: string; + /** The user who owns this blueprint. */ + ownerId: string; + /** The database this blueprint is scoped to. Tables created by construct_blueprint() are provisioned in this database. */ + databaseId: string; + /** Machine-readable name for the blueprint. Must be unique per database. */ + name: string; + /** Human-readable display name for the blueprint. */ + displayName: string; + /** Optional description of the blueprint. */ + description?: string; + /** The blueprint definition as a JSONB document. Same format as blueprint_template.definition: contains tables[] (with nodes[], fields[], grants[], policies[] using $type) and relations[] (using $type). This is a mutable copy that the owner can customize before executing. */ + definition: unknown; + /** If this blueprint was created by copying a template, the ID of the source template. NULL if built from scratch. */ + templateId?: string; + /** Execution state of the blueprint. draft: not yet executed (definition can still be modified). constructed: successfully executed via construct_blueprint(). failed: execution failed (see error_details). Defaults to draft. */ + status?: string; + /** Timestamp when construct_blueprint() successfully completed. NULL until constructed. */ + constructedAt?: string; + /** Error message from the most recent failed construct_blueprint() attempt. NULL unless status is failed. */ + errorDetails?: string; + /** Mapping of ref names to created table UUIDs, populated by construct_blueprint() after successful execution. Format: {"products": "uuid", "categories": "uuid", ...}. Defaults to empty object. */ + refMap?: unknown; + /** Immutable snapshot of the definition at construct-time. Preserved so the exact definition that was executed is recorded even if the user later modifies the definition for re-execution. NULL until constructed. */ + constructedDefinition?: unknown; + /** UUIDv5 Merkle root hash of the definition. Computed automatically via trigger from the ordered table_hashes. Used for content-addressable deduplication and provenance tracking. Backend-computed — clients should never set this directly. */ + definitionHash?: string; + /** JSONB map of table ref names to their individual UUIDv5 content hashes. Each table hash is computed from the canonical jsonb::text of the table entry. Enables structural comparison at the table level across blueprints and templates. Backend-computed via trigger. */ + tableHashes?: unknown; + /** Timestamp when this blueprint was created. */ + createdAt?: string; + /** Timestamp when this blueprint was last modified. */ + updatedAt?: string; +} export interface CreatePermissionsModuleInput { clientMutationId?: string; /** The `PermissionsModule` to be created by this mutation. */ @@ -9815,6 +9014,32 @@ export interface PermissionsModuleInput { getByMask?: string; getMaskByName?: string; } +export interface CreateEmbeddingChunkInput { + clientMutationId?: string; + /** The `EmbeddingChunk` to be created by this mutation. */ + embeddingChunk: EmbeddingChunkInput; +} +/** An input for mutations affecting `EmbeddingChunk` */ +export interface EmbeddingChunkInput { + id?: string; + databaseId?: string; + tableId: string; + embeddingFieldId?: string; + chunksTableId?: string; + chunksTableName?: string; + contentFieldName?: string; + dimensions?: number; + metric?: string; + chunkSize?: number; + chunkOverlap?: number; + chunkStrategy?: string; + metadataFields?: unknown; + enqueueChunkingJob?: boolean; + chunkingTaskName?: string; + parentFkFieldId?: string; + createdAt?: string; + updatedAt?: string; +} export interface CreateLimitsModuleInput { clientMutationId?: string; /** The `LimitsModule` to be created by this mutation. */ @@ -9867,50 +9092,6 @@ export interface ProfilesModuleInput { membershipsTableId?: string; prefix?: string; } -export interface CreateSecureTableProvisionInput { - clientMutationId?: string; - /** The `SecureTableProvision` to be created by this mutation. */ - secureTableProvision: SecureTableProvisionInput; -} -/** An input for mutations affecting `SecureTableProvision` */ -export interface SecureTableProvisionInput { - /** Unique identifier for this provision row. */ - id?: string; - /** The database this provision belongs to. Required. */ - databaseId: string; - /** Target schema for the table. Defaults to uuid_nil(); the trigger resolves this to the app_public schema if not explicitly provided. */ - schemaId?: string; - /** Target table to provision. Defaults to uuid_nil(); the trigger creates or resolves the table via table_name if not explicitly provided. */ - tableId?: string; - /** Name of the target table. Used to create or look up the table when table_id is not provided. If omitted, it is backfilled from the resolved table. */ - tableName?: string; - /** Which generator to invoke for field creation. One of: DataId, DataDirectOwner, DataEntityMembership, DataOwnershipInEntity, DataTimestamps, DataPeoplestamps, DataPublishable, DataSoftDelete. NULL means no field creation — the row only provisions grants and/or policies. */ - nodeType?: string; - /** If true and Row Level Security is not yet enabled on the target table, enable it. Automatically set to true by the trigger when policy_type is provided. Defaults to true. */ - useRls?: boolean; - /** Configuration passed to the generator function for field creation (only used when node_type is set). Known keys include: field_name (text, default 'id') for DataId, owner_field_name (text, default 'owner_id') for DataDirectOwner/DataOwnershipInEntity, entity_field_name (text, default 'entity_id') for DataEntityMembership/DataOwnershipInEntity, include_id (boolean, default true) for most node_types, include_user_fk (boolean, default true) to add FK to users table. Defaults to '{}'. */ - nodeData?: unknown; - /** JSON array of field definition objects to create on the target table. Each object has keys: "name" (text, required), "type" (text, required), "default" (text, optional), "is_required" (boolean, optional, defaults to false), "min" (float, optional), "max" (float, optional), "regexp" (text, optional). min/max generate CHECK constraints: for text/citext they constrain character_length, for integer/float types they constrain the value. regexp generates a CHECK (col ~ pattern) constraint for text/citext. Fields are created via metaschema.create_field() after any node_type generator runs, and their IDs are appended to out_fields. Example: [{"name":"username","type":"citext","max":256,"regexp":"^[a-z0-9_]+$"},{"name":"score","type":"integer","min":0,"max":100}]. Defaults to '[]' (no additional fields). */ - fields?: unknown; - /** Database roles to grant privileges to. Supports multiple roles, e.g. ARRAY['authenticated', 'admin']. Each role receives all privileges defined in grant_privileges. Defaults to ARRAY['authenticated']. */ - grantRoles?: string[]; - /** Array of [privilege, columns] tuples defining table grants. Examples: [["select","*"],["insert","*"]] for full access, or [["update",["name","bio"]]] for column-level grants. "*" means all columns; an array means column-level grant. Defaults to '[]' (no grants). The trigger validates this is a proper jsonb array. */ - grantPrivileges?: unknown; - /** Policy generator type, e.g. 'AuthzEntityMembership', 'AuthzMembership', 'AuthzAllowAll'. NULL means no policy is created. When set, the trigger automatically enables RLS on the target table. */ - policyType?: string; - /** Privileges the policy applies to, e.g. ARRAY['select','update']. NULL means privileges are derived from the grant_privileges verbs. */ - policyPrivileges?: string[]; - /** Role the policy targets. NULL means it falls back to the first role in grant_roles. */ - policyRole?: string; - /** Whether the policy is PERMISSIVE (true) or RESTRICTIVE (false). Defaults to true. */ - policyPermissive?: boolean; - /** Custom suffix for the generated policy name. When NULL and policy_type is set, the trigger auto-derives a suffix from policy_type by stripping the Authz prefix and underscoring the remainder (e.g. AuthzDirectOwner becomes direct_owner, producing policy names like auth_sel_direct_owner). When explicitly set, the value is passed through as-is to metaschema.create_policy name parameter. This ensures multiple policies on the same table do not collide (e.g. AuthzDirectOwner + AuthzPublishable each get unique names). */ - policyName?: string; - /** Opaque configuration passed through to metaschema.create_policy(). Structure varies by policy_type and is not interpreted by this trigger. Defaults to '{}'. */ - policyData?: unknown; - /** Output column populated by the trigger after field creation. Contains the UUIDs of the metaschema fields created on the target table by this provision row's generator. NULL when node_type is NULL or before the trigger runs. Callers should not set this directly. */ - outFields?: string[]; -} export interface CreateUserInput { clientMutationId?: string; /** The `User` to be created by this mutation. */ @@ -10227,6 +9408,54 @@ export interface SiteInput { /** PostgreSQL database name this site connects to */ dbname?: string; } +export interface CreateBlueprintTemplateInput { + clientMutationId?: string; + /** The `BlueprintTemplate` to be created by this mutation. */ + blueprintTemplate: BlueprintTemplateInput; +} +/** An input for mutations affecting `BlueprintTemplate` */ +export interface BlueprintTemplateInput { + /** Unique identifier for this template. */ + id?: string; + /** Machine-readable name for the template (e.g. e_commerce_basic). Must be unique per owner + version. */ + name: string; + /** Semantic version string. Defaults to 1.0.0. */ + version?: string; + /** Human-readable display name for the template (e.g. E-Commerce Basic). */ + displayName: string; + /** Optional description of what the template provisions. */ + description?: string; + /** The user who created or published this template. */ + ownerId: string; + /** Access control for the template. private: only the owner can see and copy. public: anyone can browse and copy from the marketplace. Defaults to private. */ + visibility?: string; + /** Domain categories for marketplace browsing (e.g. e-commerce, healthcare, social). Defaults to empty array. */ + categories?: string[]; + /** Freeform tags for search and discovery (e.g. products, orders, payments). Defaults to empty array. */ + tags?: string[]; + /** The blueprint definition as a JSONB document. Contains tables[] (each with nodes[] for data behaviors via string shorthand or {"$type": "...", "data": {...}} objects, fields[], grants[], and policies[] using {"$type": "...", "data": {...}}), and relations[] (using $type for relation_type with junction config in data). This is the core payload that gets copied into a blueprint for execution. */ + definition: unknown; + /** Version of the definition format schema. Used for forward-compatible parsing. Defaults to 1. */ + definitionSchemaVersion?: string; + /** Provenance of the template. user: manually created by a human. system: official curated template from the Constructive team. agent: AI-generated. Defaults to user. */ + source?: string; + /** Complexity indicator for marketplace filtering. simple: 3-5 tables. moderate: 6-12 tables. complex: 13+ tables. NULL if not categorized. */ + complexity?: string; + /** Denormalized count of how many blueprints have been created from this template via copy_template_to_blueprint(). Incremented automatically. Defaults to 0. */ + copyCount?: number; + /** Denormalized count of how many derivative templates have been forked from this template. Defaults to 0. */ + forkCount?: number; + /** If this template was forked from another template, the ID of the parent. NULL for original templates. */ + forkedFromId?: string; + /** UUIDv5 Merkle root hash of the definition. Computed automatically via trigger from the ordered table_hashes. Used for content-addressable deduplication, provenance tracking, and cross-blueprint structural comparison. NULL columns are backend-computed — clients should never set this directly. */ + definitionHash?: string; + /** JSONB map of table ref names to their individual UUIDv5 content hashes (e.g. {"products": "uuid", "categories": "uuid"}). Each table hash is computed from the canonical jsonb::text of the table entry. Enables structural comparison at the table level across different blueprints. Backend-computed via trigger. */ + tableHashes?: unknown; + /** Timestamp when this template was created. */ + createdAt?: string; + /** Timestamp when this template was last modified. */ + updatedAt?: string; +} export interface CreateHierarchyModuleInput { clientMutationId?: string; /** The `HierarchyModule` to be created by this mutation. */ @@ -10310,6 +9539,50 @@ export interface ForeignKeyConstraintInput { createdAt?: string; updatedAt?: string; } +export interface CreateSecureTableProvisionInput { + clientMutationId?: string; + /** The `SecureTableProvision` to be created by this mutation. */ + secureTableProvision: SecureTableProvisionInput; +} +/** An input for mutations affecting `SecureTableProvision` */ +export interface SecureTableProvisionInput { + /** Unique identifier for this provision row. */ + id?: string; + /** The database this provision belongs to. Required. */ + databaseId: string; + /** Target schema for the table. Defaults to uuid_nil(); the trigger resolves this to the app_public schema if not explicitly provided. */ + schemaId?: string; + /** Target table to provision. Defaults to uuid_nil(); the trigger creates or resolves the table via table_name if not explicitly provided. */ + tableId?: string; + /** Name of the target table. Used to create or look up the table when table_id is not provided. If omitted, it is backfilled from the resolved table. */ + tableName?: string; + /** Which generator to invoke for field creation. One of: DataId, DataDirectOwner, DataEntityMembership, DataOwnershipInEntity, DataTimestamps, DataPeoplestamps, DataPublishable, DataSoftDelete. NULL means no field creation — the row only provisions grants and/or policies. */ + nodeType?: string; + /** If true and Row Level Security is not yet enabled on the target table, enable it. Automatically set to true by the trigger when policy_type is provided. Defaults to true. */ + useRls?: boolean; + /** Configuration passed to the generator function for field creation (only used when node_type is set). Known keys include: field_name (text, default 'id') for DataId, owner_field_name (text, default 'owner_id') for DataDirectOwner/DataOwnershipInEntity, entity_field_name (text, default 'entity_id') for DataEntityMembership/DataOwnershipInEntity, include_id (boolean, default true) for most node_types, include_user_fk (boolean, default true) to add FK to users table, create_index (boolean, default true) to create btree indexes on FK fields for join and cascade performance. Defaults to '{}'. */ + nodeData?: unknown; + /** PostgreSQL array of jsonb field definition objects to create on the target table. Each object has keys: "name" (text, required), "type" (text, required), "default" (text, optional), "is_required" (boolean, optional, defaults to false), "min" (float, optional), "max" (float, optional), "regexp" (text, optional), "index" (boolean, optional, defaults to false — creates a btree index on the field). min/max generate CHECK constraints: for text/citext they constrain character_length, for integer/float types they constrain the value. regexp generates a CHECK (col ~ pattern) constraint for text/citext. Fields are created via metaschema.create_field() after any node_type generator runs, and their IDs are appended to out_fields. Example: ARRAY['{"name":"username","type":"citext","max":256,"regexp":"^[a-z0-9_]+$"}'::jsonb, '{"name":"score","type":"integer","min":0,"max":100}'::jsonb]. Defaults to '{}' (no additional fields). */ + fields?: unknown[]; + /** Database roles to grant privileges to. Supports multiple roles, e.g. ARRAY['authenticated', 'admin']. Each role receives all privileges defined in grant_privileges. Defaults to ARRAY['authenticated']. */ + grantRoles?: string[]; + /** PostgreSQL array of jsonb [privilege, columns] tuples defining table grants. Examples: ARRAY['["select","*"]'::jsonb, '["insert","*"]'::jsonb] for full access, or ARRAY['["update",["name","bio"]]'::jsonb] for column-level grants. "*" means all columns; an array means column-level grant. Defaults to '{}' (no grants). Type safety is enforced by PostgreSQL at INSERT time. */ + grantPrivileges?: unknown[]; + /** Policy generator type, e.g. 'AuthzEntityMembership', 'AuthzMembership', 'AuthzAllowAll'. NULL means no policy is created. When set, the trigger automatically enables RLS on the target table. */ + policyType?: string; + /** Privileges the policy applies to, e.g. ARRAY['select','update']. NULL means privileges are derived from the grant_privileges verbs. */ + policyPrivileges?: string[]; + /** Role the policy targets. NULL means it falls back to the first role in grant_roles. */ + policyRole?: string; + /** Whether the policy is PERMISSIVE (true) or RESTRICTIVE (false). Defaults to true. */ + policyPermissive?: boolean; + /** Custom suffix for the generated policy name. When NULL and policy_type is set, the trigger auto-derives a suffix from policy_type by stripping the Authz prefix and underscoring the remainder (e.g. AuthzDirectOwner becomes direct_owner, producing policy names like auth_sel_direct_owner). When explicitly set, the value is passed through as-is to metaschema.create_policy name parameter. This ensures multiple policies on the same table do not collide (e.g. AuthzDirectOwner + AuthzPublishable each get unique names). */ + policyName?: string; + /** Opaque configuration passed through to metaschema.create_policy(). Structure varies by policy_type and is not interpreted by this trigger. Defaults to '{}'. */ + policyData?: unknown; + /** Output column populated by the trigger after field creation. Contains the UUIDs of the metaschema fields created on the target table by this provision row's generator. NULL when node_type is NULL or before the trigger runs. Callers should not set this directly. */ + outFields?: string[]; +} export interface CreateOrgInviteInput { clientMutationId?: string; /** The `OrgInvite` to be created by this mutation. */ @@ -10437,6 +9710,78 @@ export interface UserAuthModuleInput { oneTimeTokenFunction?: string; extendTokenExpires?: string; } +export interface CreateFieldInput { + clientMutationId?: string; + /** The `Field` to be created by this mutation. */ + field: FieldInput; +} +/** An input for mutations affecting `Field` */ +export interface FieldInput { + id?: string; + databaseId?: string; + tableId: string; + name: string; + label?: string; + description?: string; + smartTags?: unknown; + isRequired?: boolean; + apiRequired?: boolean; + defaultValue?: string; + defaultValueAst?: unknown; + isHidden?: boolean; + type: string; + fieldOrder?: number; + regexp?: string; + chk?: unknown; + chkExpr?: unknown; + min?: number; + max?: number; + tags?: string[]; + category?: ObjectCategory; + module?: string; + scope?: number; + createdAt?: string; + updatedAt?: string; +} +export interface CreateMembershipsModuleInput { + clientMutationId?: string; + /** The `MembershipsModule` to be created by this mutation. */ + membershipsModule: MembershipsModuleInput; +} +/** An input for mutations affecting `MembershipsModule` */ +export interface MembershipsModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + membershipsTableId?: string; + membershipsTableName?: string; + membersTableId?: string; + membersTableName?: string; + membershipDefaultsTableId?: string; + membershipDefaultsTableName?: string; + grantsTableId?: string; + grantsTableName?: string; + actorTableId?: string; + limitsTableId?: string; + defaultLimitsTableId?: string; + permissionsTableId?: string; + defaultPermissionsTableId?: string; + sprtTableId?: string; + adminGrantsTableId?: string; + adminGrantsTableName?: string; + ownerGrantsTableId?: string; + ownerGrantsTableName?: string; + membershipType: number; + entityTableId?: string; + entityTableOwnerId?: string; + prefix?: string; + actorMaskCheck?: string; + actorPermCheck?: string; + entityIdsByMask?: string; + entityIdsByPerm?: string; + entityIdsFunction?: string; +} export interface CreateRelationProvisionInput { clientMutationId?: string; /** The `RelationProvision` to be created by this mutation. */ @@ -10491,6 +9836,13 @@ export interface RelationProvisionInput { * Ignored for RelationManyToMany (junction FK fields are always required). */ isRequired?: boolean; + /** + * Whether the FK field should be required at the API level even though it is nullable at the database level. Defaults to false. + * When true and is_required is false, the field is created as nullable (allowing SET NULL cascade) but a @requiredInput smart tag is added so PostGraphile treats it as non-null in create/update input types. + * When is_required is true, api_required is ignored (the field is already required at both levels). + * Ignored for RelationManyToMany (junction FK fields are always required). + */ + apiRequired?: boolean; /** * For RelationManyToMany: an existing junction table to use. Defaults to uuid_nil(). * - When uuid_nil(): the trigger creates a new junction table via secure_table_provision using junction_table_name. @@ -10514,6 +9866,26 @@ export interface RelationProvisionInput { * Ignored for RelationBelongsTo/RelationHasOne. */ useCompositeKey?: boolean; + /** + * Whether to create a btree index on FK fields created by this relation. Defaults to true. + * PostgreSQL does not automatically index foreign key columns (only the referenced PK side is indexed). + * Without indexes on FK columns, JOINs, CASCADE deletes, and RLS policy lookups perform sequential scans. + * - RelationBelongsTo: creates an index on the FK field on the source table. + * - RelationHasMany: creates an index on the FK field on the target table. + * - RelationHasOne: skipped — the unique constraint already creates an implicit index. + * - RelationManyToMany: creates indexes on both FK fields on the junction table. + * Set to false only for very small tables or write-heavy tables where index maintenance cost outweighs read performance. + */ + createIndex?: boolean; + /** + * For RelationManyToMany: whether to expose the M:N shortcut fields in the GraphQL API. Defaults to true. + * When true, sets @behavior +manyToMany on the junction table smart_tags so PostGraphile generates + * clean M:N connection fields (e.g., event.contacts instead of event.contactEventsByEventId). + * When false (or toggled off via UPDATE), the behavior tag is removed and the M:N fields disappear from GraphQL. + * Toggling is supported: UPDATE expose_in_api to true/false and the smart tag is added/removed automatically. + * Ignored for RelationBelongsTo/RelationHasOne/RelationHasMany. + */ + exposeInApi?: boolean; /** * For RelationManyToMany: which generator to invoke for field creation on the junction table. Forwarded to secure_table_provision as-is. The trigger does not interpret or validate this value. * Examples: DataId (creates UUID primary key), DataDirectOwner (creates owner_id field), DataEntityMembership (creates entity_id field), DataOwnershipInEntity (creates both owner_id and entity_id), DataTimestamps, DataPeoplestamps, DataPublishable, DataSoftDelete. @@ -10533,8 +9905,8 @@ export interface RelationProvisionInput { nodeData?: unknown; /** For RelationManyToMany: database roles to grant privileges to on the junction table. Forwarded to secure_table_provision as-is. Supports multiple roles, e.g. ARRAY['authenticated', 'admin']. Each role receives all privileges defined in grant_privileges. Defaults to ARRAY['authenticated']. Ignored for RelationBelongsTo/RelationHasOne. */ grantRoles?: string[]; - /** For RelationManyToMany: privilege grants for the junction table. Forwarded to secure_table_provision as-is. Format: array of [privilege, columns] tuples. Examples: [["select","*"],["insert","*"]] for full access, or [["update",["name","bio"]]] for column-level grants. "*" means all columns. Defaults to select/insert/delete for all columns. Ignored for RelationBelongsTo/RelationHasOne. */ - grantPrivileges?: unknown; + /** For RelationManyToMany: privilege grants for the junction table. Forwarded to secure_table_provision as-is. Format: PostgreSQL array of jsonb [privilege, columns] tuples. Examples: ARRAY['["select","*"]'::jsonb, '["insert","*"]'::jsonb] for full access, or ARRAY['["update",["name","bio"]]'::jsonb] for column-level grants. "*" means all columns. Defaults to select/insert/delete for all columns. Ignored for RelationBelongsTo/RelationHasOne. */ + grantPrivileges?: unknown[]; /** * For RelationManyToMany: RLS policy type for the junction table. Forwarded to secure_table_provision as-is. The trigger does not interpret or validate this value. * Examples: AuthzEntityMembership, AuthzMembership, AuthzAllowAll, AuthzDirectOwner, AuthzOrgHierarchy. @@ -10568,77 +9940,6 @@ export interface RelationProvisionInput { /** Output column for RelationManyToMany: the UUID of the FK field on the junction table referencing the target table. Populated by the trigger. NULL for RelationBelongsTo/RelationHasOne. Callers should not set this directly. */ outTargetFieldId?: string; } -export interface CreateFieldInput { - clientMutationId?: string; - /** The `Field` to be created by this mutation. */ - field: FieldInput; -} -/** An input for mutations affecting `Field` */ -export interface FieldInput { - id?: string; - databaseId?: string; - tableId: string; - name: string; - label?: string; - description?: string; - smartTags?: unknown; - isRequired?: boolean; - defaultValue?: string; - defaultValueAst?: unknown; - isHidden?: boolean; - type: string; - fieldOrder?: number; - regexp?: string; - chk?: unknown; - chkExpr?: unknown; - min?: number; - max?: number; - tags?: string[]; - category?: ObjectCategory; - module?: string; - scope?: number; - createdAt?: string; - updatedAt?: string; -} -export interface CreateMembershipsModuleInput { - clientMutationId?: string; - /** The `MembershipsModule` to be created by this mutation. */ - membershipsModule: MembershipsModuleInput; -} -/** An input for mutations affecting `MembershipsModule` */ -export interface MembershipsModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - membershipsTableId?: string; - membershipsTableName?: string; - membersTableId?: string; - membersTableName?: string; - membershipDefaultsTableId?: string; - membershipDefaultsTableName?: string; - grantsTableId?: string; - grantsTableName?: string; - actorTableId?: string; - limitsTableId?: string; - defaultLimitsTableId?: string; - permissionsTableId?: string; - defaultPermissionsTableId?: string; - sprtTableId?: string; - adminGrantsTableId?: string; - adminGrantsTableName?: string; - ownerGrantsTableId?: string; - ownerGrantsTableName?: string; - membershipType: number; - entityTableId?: string; - entityTableOwnerId?: string; - prefix?: string; - actorMaskCheck?: string; - actorPermCheck?: string; - entityIdsByMask?: string; - entityIdsByPerm?: string; - entityIdsFunction?: string; -} export interface UpdateDefaultIdsModuleInput { clientMutationId?: string; id: string; @@ -10681,6 +9982,24 @@ export interface ApiSchemaPatch { /** API that exposes this schema */ apiId?: string; } +export interface UpdateSiteThemeInput { + clientMutationId?: string; + /** Unique identifier for this theme record */ + id: string; + /** An object where the defined keys will be set on the `SiteTheme` being updated. */ + siteThemePatch: SiteThemePatch; +} +/** Represents an update to a `SiteTheme`. Fields that are set will be updated. */ +export interface SiteThemePatch { + /** Unique identifier for this theme record */ + id?: string; + /** Reference to the metaschema database */ + databaseId?: string; + /** Site this theme belongs to */ + siteId?: string; + /** JSONB object containing theme tokens (colors, typography, spacing, etc.) */ + theme?: unknown; +} export interface UpdateOrgMemberInput { clientMutationId?: string; id: string; @@ -10757,38 +10076,6 @@ export interface SecretsModulePatch { tableId?: string; tableName?: string; } -export interface UpdateUuidModuleInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `UuidModule` being updated. */ - uuidModulePatch: UuidModulePatch; -} -/** Represents an update to a `UuidModule`. Fields that are set will be updated. */ -export interface UuidModulePatch { - id?: string; - databaseId?: string; - schemaId?: string; - uuidFunction?: string; - uuidSeed?: string; -} -export interface UpdateSiteThemeInput { - clientMutationId?: string; - /** Unique identifier for this theme record */ - id: string; - /** An object where the defined keys will be set on the `SiteTheme` being updated. */ - siteThemePatch: SiteThemePatch; -} -/** Represents an update to a `SiteTheme`. Fields that are set will be updated. */ -export interface SiteThemePatch { - /** Unique identifier for this theme record */ - id?: string; - /** Reference to the metaschema database */ - databaseId?: string; - /** Site this theme belongs to */ - siteId?: string; - /** JSONB object containing theme tokens (colors, typography, spacing, etc.) */ - theme?: unknown; -} export interface UpdateStoreInput { clientMutationId?: string; /** The primary unique identifier for the store. */ @@ -11177,6 +10464,27 @@ export interface CryptoAddressesModulePatch { tableName?: string; cryptoNetwork?: string; } +export interface UpdateConnectedAccountInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `ConnectedAccount` being updated. */ + connectedAccountPatch: ConnectedAccountPatch; +} +/** Represents an update to a `ConnectedAccount`. Fields that are set will be updated. */ +export interface ConnectedAccountPatch { + id?: string; + ownerId?: string; + /** The service used, e.g. `twitter` or `github`. */ + service?: string; + /** A unique identifier for the user within the service */ + identifier?: string; + /** Additional profile details extracted from this login method */ + details?: unknown; + /** Whether this connected account has been verified */ + isVerified?: boolean; + createdAt?: string; + updatedAt?: string; +} export interface UpdatePhoneNumberInput { clientMutationId?: string; id: string; @@ -11226,27 +10534,6 @@ export interface OrgLimitDefaultPatch { /** Default maximum usage allowed for this limit */ max?: number; } -export interface UpdateConnectedAccountInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `ConnectedAccount` being updated. */ - connectedAccountPatch: ConnectedAccountPatch; -} -/** Represents an update to a `ConnectedAccount`. Fields that are set will be updated. */ -export interface ConnectedAccountPatch { - id?: string; - ownerId?: string; - /** The service used, e.g. `twitter` or `github`. */ - service?: string; - /** A unique identifier for the user within the service */ - identifier?: string; - /** Additional profile details extracted from this login method */ - details?: unknown; - /** Whether this connected account has been verified */ - isVerified?: boolean; - createdAt?: string; - updatedAt?: string; -} export interface UpdateTableGrantInput { clientMutationId?: string; id: string; @@ -11316,7 +10603,7 @@ export interface OrgChartEdgeGrantPatch { childId?: string; /** User ID of the manager being assigned; NULL for top-level positions */ parentId?: string; - /** User ID of the admin who performed this grant or revocation */ + /** User ID of the admin who performed this grant or revocation; NULL if grantor was deleted */ grantorId?: string; /** TRUE to add/update the edge, FALSE to remove it */ isGrant?: boolean; @@ -11820,7 +11107,7 @@ export interface AuditLogPatch { id?: string; /** Type of authentication event (e.g. sign_in, sign_up, password_change, verify_email) */ event?: string; - /** User who performed the authentication action */ + /** User who performed the authentication action; NULL if user was deleted */ actorId?: string; /** Request origin (domain) where the auth event occurred */ origin?: ConstructiveInternalTypeOrigin; @@ -11855,6 +11142,29 @@ export interface AppLevelPatch { /** Upload for Badge or icon image associated with this level */ imageUpload?: File; } +export interface UpdateDatabaseTransferInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `DatabaseTransfer` being updated. */ + databaseTransferPatch: DatabaseTransferPatch; +} +/** Represents an update to a `DatabaseTransfer`. Fields that are set will be updated. */ +export interface DatabaseTransferPatch { + id?: string; + databaseId?: string; + targetOwnerId?: string; + sourceApproved?: boolean; + targetApproved?: boolean; + sourceApprovedAt?: string; + targetApprovedAt?: string; + status?: string; + initiatedBy?: string; + notes?: string; + expiresAt?: string; + createdAt?: string; + updatedAt?: string; + completedAt?: string; +} export interface UpdateCryptoAuthModuleInput { clientMutationId?: string; id: string; @@ -11952,6 +11262,27 @@ export interface EmailPatch { createdAt?: string; updatedAt?: string; } +export interface UpdateEnumInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `Enum` being updated. */ + enumPatch: EnumPatch; +} +/** Represents an update to a `Enum`. Fields that are set will be updated. */ +export interface EnumPatch { + id?: string; + databaseId?: string; + schemaId?: string; + name?: string; + label?: string; + description?: string; + values?: string[]; + smartTags?: unknown; + category?: ObjectCategory; + module?: string; + scope?: number; + tags?: string[]; +} export interface UpdateViewInput { clientMutationId?: string; id: string; @@ -11977,6 +11308,50 @@ export interface ViewPatch { scope?: number; tags?: string[]; } +export interface UpdateBlueprintInput { + clientMutationId?: string; + /** Unique identifier for this blueprint. */ + id: string; + /** An object where the defined keys will be set on the `Blueprint` being updated. */ + blueprintPatch: BlueprintPatch; +} +/** Represents an update to a `Blueprint`. Fields that are set will be updated. */ +export interface BlueprintPatch { + /** Unique identifier for this blueprint. */ + id?: string; + /** The user who owns this blueprint. */ + ownerId?: string; + /** The database this blueprint is scoped to. Tables created by construct_blueprint() are provisioned in this database. */ + databaseId?: string; + /** Machine-readable name for the blueprint. Must be unique per database. */ + name?: string; + /** Human-readable display name for the blueprint. */ + displayName?: string; + /** Optional description of the blueprint. */ + description?: string; + /** The blueprint definition as a JSONB document. Same format as blueprint_template.definition: contains tables[] (with nodes[], fields[], grants[], policies[] using $type) and relations[] (using $type). This is a mutable copy that the owner can customize before executing. */ + definition?: unknown; + /** If this blueprint was created by copying a template, the ID of the source template. NULL if built from scratch. */ + templateId?: string; + /** Execution state of the blueprint. draft: not yet executed (definition can still be modified). constructed: successfully executed via construct_blueprint(). failed: execution failed (see error_details). Defaults to draft. */ + status?: string; + /** Timestamp when construct_blueprint() successfully completed. NULL until constructed. */ + constructedAt?: string; + /** Error message from the most recent failed construct_blueprint() attempt. NULL unless status is failed. */ + errorDetails?: string; + /** Mapping of ref names to created table UUIDs, populated by construct_blueprint() after successful execution. Format: {"products": "uuid", "categories": "uuid", ...}. Defaults to empty object. */ + refMap?: unknown; + /** Immutable snapshot of the definition at construct-time. Preserved so the exact definition that was executed is recorded even if the user later modifies the definition for re-execution. NULL until constructed. */ + constructedDefinition?: unknown; + /** UUIDv5 Merkle root hash of the definition. Computed automatically via trigger from the ordered table_hashes. Used for content-addressable deduplication and provenance tracking. Backend-computed — clients should never set this directly. */ + definitionHash?: string; + /** JSONB map of table ref names to their individual UUIDv5 content hashes. Each table hash is computed from the canonical jsonb::text of the table entry. Enables structural comparison at the table level across blueprints and templates. Backend-computed via trigger. */ + tableHashes?: unknown; + /** Timestamp when this blueprint was created. */ + createdAt?: string; + /** Timestamp when this blueprint was last modified. */ + updatedAt?: string; +} export interface UpdatePermissionsModuleInput { clientMutationId?: string; id: string; @@ -12003,6 +11378,33 @@ export interface PermissionsModulePatch { getByMask?: string; getMaskByName?: string; } +export interface UpdateEmbeddingChunkInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `EmbeddingChunk` being updated. */ + embeddingChunkPatch: EmbeddingChunkPatch; +} +/** Represents an update to a `EmbeddingChunk`. Fields that are set will be updated. */ +export interface EmbeddingChunkPatch { + id?: string; + databaseId?: string; + tableId?: string; + embeddingFieldId?: string; + chunksTableId?: string; + chunksTableName?: string; + contentFieldName?: string; + dimensions?: number; + metric?: string; + chunkSize?: number; + chunkOverlap?: number; + chunkStrategy?: string; + metadataFields?: unknown; + enqueueChunkingJob?: boolean; + chunkingTaskName?: string; + parentFkFieldId?: string; + createdAt?: string; + updatedAt?: string; +} export interface UpdateLimitsModuleInput { clientMutationId?: string; id: string; @@ -12052,56 +11454,10 @@ export interface ProfilesModulePatch { profileDefinitionGrantsTableName?: string; membershipType?: number; entityTableId?: string; - actorTableId?: string; - permissionsTableId?: string; - membershipsTableId?: string; - prefix?: string; -} -export interface UpdateSecureTableProvisionInput { - clientMutationId?: string; - /** Unique identifier for this provision row. */ - id: string; - /** An object where the defined keys will be set on the `SecureTableProvision` being updated. */ - secureTableProvisionPatch: SecureTableProvisionPatch; -} -/** Represents an update to a `SecureTableProvision`. Fields that are set will be updated. */ -export interface SecureTableProvisionPatch { - /** Unique identifier for this provision row. */ - id?: string; - /** The database this provision belongs to. Required. */ - databaseId?: string; - /** Target schema for the table. Defaults to uuid_nil(); the trigger resolves this to the app_public schema if not explicitly provided. */ - schemaId?: string; - /** Target table to provision. Defaults to uuid_nil(); the trigger creates or resolves the table via table_name if not explicitly provided. */ - tableId?: string; - /** Name of the target table. Used to create or look up the table when table_id is not provided. If omitted, it is backfilled from the resolved table. */ - tableName?: string; - /** Which generator to invoke for field creation. One of: DataId, DataDirectOwner, DataEntityMembership, DataOwnershipInEntity, DataTimestamps, DataPeoplestamps, DataPublishable, DataSoftDelete. NULL means no field creation — the row only provisions grants and/or policies. */ - nodeType?: string; - /** If true and Row Level Security is not yet enabled on the target table, enable it. Automatically set to true by the trigger when policy_type is provided. Defaults to true. */ - useRls?: boolean; - /** Configuration passed to the generator function for field creation (only used when node_type is set). Known keys include: field_name (text, default 'id') for DataId, owner_field_name (text, default 'owner_id') for DataDirectOwner/DataOwnershipInEntity, entity_field_name (text, default 'entity_id') for DataEntityMembership/DataOwnershipInEntity, include_id (boolean, default true) for most node_types, include_user_fk (boolean, default true) to add FK to users table. Defaults to '{}'. */ - nodeData?: unknown; - /** JSON array of field definition objects to create on the target table. Each object has keys: "name" (text, required), "type" (text, required), "default" (text, optional), "is_required" (boolean, optional, defaults to false), "min" (float, optional), "max" (float, optional), "regexp" (text, optional). min/max generate CHECK constraints: for text/citext they constrain character_length, for integer/float types they constrain the value. regexp generates a CHECK (col ~ pattern) constraint for text/citext. Fields are created via metaschema.create_field() after any node_type generator runs, and their IDs are appended to out_fields. Example: [{"name":"username","type":"citext","max":256,"regexp":"^[a-z0-9_]+$"},{"name":"score","type":"integer","min":0,"max":100}]. Defaults to '[]' (no additional fields). */ - fields?: unknown; - /** Database roles to grant privileges to. Supports multiple roles, e.g. ARRAY['authenticated', 'admin']. Each role receives all privileges defined in grant_privileges. Defaults to ARRAY['authenticated']. */ - grantRoles?: string[]; - /** Array of [privilege, columns] tuples defining table grants. Examples: [["select","*"],["insert","*"]] for full access, or [["update",["name","bio"]]] for column-level grants. "*" means all columns; an array means column-level grant. Defaults to '[]' (no grants). The trigger validates this is a proper jsonb array. */ - grantPrivileges?: unknown; - /** Policy generator type, e.g. 'AuthzEntityMembership', 'AuthzMembership', 'AuthzAllowAll'. NULL means no policy is created. When set, the trigger automatically enables RLS on the target table. */ - policyType?: string; - /** Privileges the policy applies to, e.g. ARRAY['select','update']. NULL means privileges are derived from the grant_privileges verbs. */ - policyPrivileges?: string[]; - /** Role the policy targets. NULL means it falls back to the first role in grant_roles. */ - policyRole?: string; - /** Whether the policy is PERMISSIVE (true) or RESTRICTIVE (false). Defaults to true. */ - policyPermissive?: boolean; - /** Custom suffix for the generated policy name. When NULL and policy_type is set, the trigger auto-derives a suffix from policy_type by stripping the Authz prefix and underscoring the remainder (e.g. AuthzDirectOwner becomes direct_owner, producing policy names like auth_sel_direct_owner). When explicitly set, the value is passed through as-is to metaschema.create_policy name parameter. This ensures multiple policies on the same table do not collide (e.g. AuthzDirectOwner + AuthzPublishable each get unique names). */ - policyName?: string; - /** Opaque configuration passed through to metaschema.create_policy(). Structure varies by policy_type and is not interpreted by this trigger. Defaults to '{}'. */ - policyData?: unknown; - /** Output column populated by the trigger after field creation. Contains the UUIDs of the metaschema fields created on the target table by this provision row's generator. NULL when node_type is NULL or before the trigger runs. Callers should not set this directly. */ - outFields?: string[]; + actorTableId?: string; + permissionsTableId?: string; + membershipsTableId?: string; + prefix?: string; } export interface UpdateUserInput { clientMutationId?: string; @@ -12424,6 +11780,56 @@ export interface SitePatch { /** Upload for Primary logo image for the site */ logoUpload?: File; } +export interface UpdateBlueprintTemplateInput { + clientMutationId?: string; + /** Unique identifier for this template. */ + id: string; + /** An object where the defined keys will be set on the `BlueprintTemplate` being updated. */ + blueprintTemplatePatch: BlueprintTemplatePatch; +} +/** Represents an update to a `BlueprintTemplate`. Fields that are set will be updated. */ +export interface BlueprintTemplatePatch { + /** Unique identifier for this template. */ + id?: string; + /** Machine-readable name for the template (e.g. e_commerce_basic). Must be unique per owner + version. */ + name?: string; + /** Semantic version string. Defaults to 1.0.0. */ + version?: string; + /** Human-readable display name for the template (e.g. E-Commerce Basic). */ + displayName?: string; + /** Optional description of what the template provisions. */ + description?: string; + /** The user who created or published this template. */ + ownerId?: string; + /** Access control for the template. private: only the owner can see and copy. public: anyone can browse and copy from the marketplace. Defaults to private. */ + visibility?: string; + /** Domain categories for marketplace browsing (e.g. e-commerce, healthcare, social). Defaults to empty array. */ + categories?: string[]; + /** Freeform tags for search and discovery (e.g. products, orders, payments). Defaults to empty array. */ + tags?: string[]; + /** The blueprint definition as a JSONB document. Contains tables[] (each with nodes[] for data behaviors via string shorthand or {"$type": "...", "data": {...}} objects, fields[], grants[], and policies[] using {"$type": "...", "data": {...}}), and relations[] (using $type for relation_type with junction config in data). This is the core payload that gets copied into a blueprint for execution. */ + definition?: unknown; + /** Version of the definition format schema. Used for forward-compatible parsing. Defaults to 1. */ + definitionSchemaVersion?: string; + /** Provenance of the template. user: manually created by a human. system: official curated template from the Constructive team. agent: AI-generated. Defaults to user. */ + source?: string; + /** Complexity indicator for marketplace filtering. simple: 3-5 tables. moderate: 6-12 tables. complex: 13+ tables. NULL if not categorized. */ + complexity?: string; + /** Denormalized count of how many blueprints have been created from this template via copy_template_to_blueprint(). Incremented automatically. Defaults to 0. */ + copyCount?: number; + /** Denormalized count of how many derivative templates have been forked from this template. Defaults to 0. */ + forkCount?: number; + /** If this template was forked from another template, the ID of the parent. NULL for original templates. */ + forkedFromId?: string; + /** UUIDv5 Merkle root hash of the definition. Computed automatically via trigger from the ordered table_hashes. Used for content-addressable deduplication, provenance tracking, and cross-blueprint structural comparison. NULL columns are backend-computed — clients should never set this directly. */ + definitionHash?: string; + /** JSONB map of table ref names to their individual UUIDv5 content hashes (e.g. {"products": "uuid", "categories": "uuid"}). Each table hash is computed from the canonical jsonb::text of the table entry. Enables structural comparison at the table level across different blueprints. Backend-computed via trigger. */ + tableHashes?: unknown; + /** Timestamp when this template was created. */ + createdAt?: string; + /** Timestamp when this template was last modified. */ + updatedAt?: string; +} export interface UpdateHierarchyModuleInput { clientMutationId?: string; id: string; @@ -12510,6 +11916,52 @@ export interface ForeignKeyConstraintPatch { createdAt?: string; updatedAt?: string; } +export interface UpdateSecureTableProvisionInput { + clientMutationId?: string; + /** Unique identifier for this provision row. */ + id: string; + /** An object where the defined keys will be set on the `SecureTableProvision` being updated. */ + secureTableProvisionPatch: SecureTableProvisionPatch; +} +/** Represents an update to a `SecureTableProvision`. Fields that are set will be updated. */ +export interface SecureTableProvisionPatch { + /** Unique identifier for this provision row. */ + id?: string; + /** The database this provision belongs to. Required. */ + databaseId?: string; + /** Target schema for the table. Defaults to uuid_nil(); the trigger resolves this to the app_public schema if not explicitly provided. */ + schemaId?: string; + /** Target table to provision. Defaults to uuid_nil(); the trigger creates or resolves the table via table_name if not explicitly provided. */ + tableId?: string; + /** Name of the target table. Used to create or look up the table when table_id is not provided. If omitted, it is backfilled from the resolved table. */ + tableName?: string; + /** Which generator to invoke for field creation. One of: DataId, DataDirectOwner, DataEntityMembership, DataOwnershipInEntity, DataTimestamps, DataPeoplestamps, DataPublishable, DataSoftDelete. NULL means no field creation — the row only provisions grants and/or policies. */ + nodeType?: string; + /** If true and Row Level Security is not yet enabled on the target table, enable it. Automatically set to true by the trigger when policy_type is provided. Defaults to true. */ + useRls?: boolean; + /** Configuration passed to the generator function for field creation (only used when node_type is set). Known keys include: field_name (text, default 'id') for DataId, owner_field_name (text, default 'owner_id') for DataDirectOwner/DataOwnershipInEntity, entity_field_name (text, default 'entity_id') for DataEntityMembership/DataOwnershipInEntity, include_id (boolean, default true) for most node_types, include_user_fk (boolean, default true) to add FK to users table, create_index (boolean, default true) to create btree indexes on FK fields for join and cascade performance. Defaults to '{}'. */ + nodeData?: unknown; + /** PostgreSQL array of jsonb field definition objects to create on the target table. Each object has keys: "name" (text, required), "type" (text, required), "default" (text, optional), "is_required" (boolean, optional, defaults to false), "min" (float, optional), "max" (float, optional), "regexp" (text, optional), "index" (boolean, optional, defaults to false — creates a btree index on the field). min/max generate CHECK constraints: for text/citext they constrain character_length, for integer/float types they constrain the value. regexp generates a CHECK (col ~ pattern) constraint for text/citext. Fields are created via metaschema.create_field() after any node_type generator runs, and their IDs are appended to out_fields. Example: ARRAY['{"name":"username","type":"citext","max":256,"regexp":"^[a-z0-9_]+$"}'::jsonb, '{"name":"score","type":"integer","min":0,"max":100}'::jsonb]. Defaults to '{}' (no additional fields). */ + fields?: unknown[]; + /** Database roles to grant privileges to. Supports multiple roles, e.g. ARRAY['authenticated', 'admin']. Each role receives all privileges defined in grant_privileges. Defaults to ARRAY['authenticated']. */ + grantRoles?: string[]; + /** PostgreSQL array of jsonb [privilege, columns] tuples defining table grants. Examples: ARRAY['["select","*"]'::jsonb, '["insert","*"]'::jsonb] for full access, or ARRAY['["update",["name","bio"]]'::jsonb] for column-level grants. "*" means all columns; an array means column-level grant. Defaults to '{}' (no grants). Type safety is enforced by PostgreSQL at INSERT time. */ + grantPrivileges?: unknown[]; + /** Policy generator type, e.g. 'AuthzEntityMembership', 'AuthzMembership', 'AuthzAllowAll'. NULL means no policy is created. When set, the trigger automatically enables RLS on the target table. */ + policyType?: string; + /** Privileges the policy applies to, e.g. ARRAY['select','update']. NULL means privileges are derived from the grant_privileges verbs. */ + policyPrivileges?: string[]; + /** Role the policy targets. NULL means it falls back to the first role in grant_roles. */ + policyRole?: string; + /** Whether the policy is PERMISSIVE (true) or RESTRICTIVE (false). Defaults to true. */ + policyPermissive?: boolean; + /** Custom suffix for the generated policy name. When NULL and policy_type is set, the trigger auto-derives a suffix from policy_type by stripping the Authz prefix and underscoring the remainder (e.g. AuthzDirectOwner becomes direct_owner, producing policy names like auth_sel_direct_owner). When explicitly set, the value is passed through as-is to metaschema.create_policy name parameter. This ensures multiple policies on the same table do not collide (e.g. AuthzDirectOwner + AuthzPublishable each get unique names). */ + policyName?: string; + /** Opaque configuration passed through to metaschema.create_policy(). Structure varies by policy_type and is not interpreted by this trigger. Defaults to '{}'. */ + policyData?: unknown; + /** Output column populated by the trigger after field creation. Contains the UUIDs of the metaschema fields created on the target table by this provision row's generator. NULL when node_type is NULL or before the trigger runs. Callers should not set this directly. */ + outFields?: string[]; +} export interface UpdateOrgInviteInput { clientMutationId?: string; id: string; @@ -12641,6 +12093,80 @@ export interface UserAuthModulePatch { oneTimeTokenFunction?: string; extendTokenExpires?: string; } +export interface UpdateFieldInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `Field` being updated. */ + fieldPatch: FieldPatch; +} +/** Represents an update to a `Field`. Fields that are set will be updated. */ +export interface FieldPatch { + id?: string; + databaseId?: string; + tableId?: string; + name?: string; + label?: string; + description?: string; + smartTags?: unknown; + isRequired?: boolean; + apiRequired?: boolean; + defaultValue?: string; + defaultValueAst?: unknown; + isHidden?: boolean; + type?: string; + fieldOrder?: number; + regexp?: string; + chk?: unknown; + chkExpr?: unknown; + min?: number; + max?: number; + tags?: string[]; + category?: ObjectCategory; + module?: string; + scope?: number; + createdAt?: string; + updatedAt?: string; +} +export interface UpdateMembershipsModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `MembershipsModule` being updated. */ + membershipsModulePatch: MembershipsModulePatch; +} +/** Represents an update to a `MembershipsModule`. Fields that are set will be updated. */ +export interface MembershipsModulePatch { + id?: string; + databaseId?: string; + schemaId?: string; + privateSchemaId?: string; + membershipsTableId?: string; + membershipsTableName?: string; + membersTableId?: string; + membersTableName?: string; + membershipDefaultsTableId?: string; + membershipDefaultsTableName?: string; + grantsTableId?: string; + grantsTableName?: string; + actorTableId?: string; + limitsTableId?: string; + defaultLimitsTableId?: string; + permissionsTableId?: string; + defaultPermissionsTableId?: string; + sprtTableId?: string; + adminGrantsTableId?: string; + adminGrantsTableName?: string; + ownerGrantsTableId?: string; + ownerGrantsTableName?: string; + membershipType?: number; + entityTableId?: string; + entityTableOwnerId?: string; + prefix?: string; + actorMaskCheck?: string; + actorPermCheck?: string; + entityIdsByMask?: string; + entityIdsByPerm?: string; + entityIdsFunction?: string; +} export interface UpdateRelationProvisionInput { clientMutationId?: string; /** Unique identifier for this relation provision row. */ @@ -12697,6 +12223,13 @@ export interface RelationProvisionPatch { * Ignored for RelationManyToMany (junction FK fields are always required). */ isRequired?: boolean; + /** + * Whether the FK field should be required at the API level even though it is nullable at the database level. Defaults to false. + * When true and is_required is false, the field is created as nullable (allowing SET NULL cascade) but a @requiredInput smart tag is added so PostGraphile treats it as non-null in create/update input types. + * When is_required is true, api_required is ignored (the field is already required at both levels). + * Ignored for RelationManyToMany (junction FK fields are always required). + */ + apiRequired?: boolean; /** * For RelationManyToMany: an existing junction table to use. Defaults to uuid_nil(). * - When uuid_nil(): the trigger creates a new junction table via secure_table_provision using junction_table_name. @@ -12721,131 +12254,78 @@ export interface RelationProvisionPatch { */ useCompositeKey?: boolean; /** - * For RelationManyToMany: which generator to invoke for field creation on the junction table. Forwarded to secure_table_provision as-is. The trigger does not interpret or validate this value. - * Examples: DataId (creates UUID primary key), DataDirectOwner (creates owner_id field), DataEntityMembership (creates entity_id field), DataOwnershipInEntity (creates both owner_id and entity_id), DataTimestamps, DataPeoplestamps, DataPublishable, DataSoftDelete. - * NULL means no field creation beyond the FK fields (and composite key if use_composite_key is true). - * Ignored for RelationBelongsTo/RelationHasOne. - */ - nodeType?: string; - /** - * For RelationManyToMany: configuration passed to the generator function for field creation on the junction table. Forwarded to secure_table_provision as-is. The trigger does not interpret or validate this value. - * Only used when node_type is set. Structure varies by node_type. Examples: - * - DataId: {"field_name": "id"} (default field name is 'id') - * - DataEntityMembership: {"entity_field_name": "entity_id", "include_id": false, "include_user_fk": true} - * - DataDirectOwner: {"owner_field_name": "owner_id"} - * Defaults to '{}' (empty object). - * Ignored for RelationBelongsTo/RelationHasOne. - */ - nodeData?: unknown; - /** For RelationManyToMany: database roles to grant privileges to on the junction table. Forwarded to secure_table_provision as-is. Supports multiple roles, e.g. ARRAY['authenticated', 'admin']. Each role receives all privileges defined in grant_privileges. Defaults to ARRAY['authenticated']. Ignored for RelationBelongsTo/RelationHasOne. */ - grantRoles?: string[]; - /** For RelationManyToMany: privilege grants for the junction table. Forwarded to secure_table_provision as-is. Format: array of [privilege, columns] tuples. Examples: [["select","*"],["insert","*"]] for full access, or [["update",["name","bio"]]] for column-level grants. "*" means all columns. Defaults to select/insert/delete for all columns. Ignored for RelationBelongsTo/RelationHasOne. */ - grantPrivileges?: unknown; - /** - * For RelationManyToMany: RLS policy type for the junction table. Forwarded to secure_table_provision as-is. The trigger does not interpret or validate this value. - * Examples: AuthzEntityMembership, AuthzMembership, AuthzAllowAll, AuthzDirectOwner, AuthzOrgHierarchy. - * NULL means no policy is created — the junction table will have RLS enabled but no policies (unless added separately via secure_table_provision). - * Ignored for RelationBelongsTo/RelationHasOne. - */ - policyType?: string; - /** For RelationManyToMany: privileges the policy applies to, e.g. ARRAY['select','insert','delete']. Forwarded to secure_table_provision as-is. NULL means privileges are derived from the grant_privileges verbs by secure_table_provision. Ignored for RelationBelongsTo/RelationHasOne. */ - policyPrivileges?: string[]; - /** For RelationManyToMany: database role the policy targets, e.g. 'authenticated'. Forwarded to secure_table_provision as-is. NULL means secure_table_provision falls back to the first role in grant_roles. Ignored for RelationBelongsTo/RelationHasOne. */ - policyRole?: string; - /** For RelationManyToMany: whether the policy is PERMISSIVE (true) or RESTRICTIVE (false). Forwarded to secure_table_provision as-is. Defaults to true. Ignored for RelationBelongsTo/RelationHasOne. */ - policyPermissive?: boolean; - /** For RelationManyToMany: custom suffix for the generated policy name. Forwarded to secure_table_provision as-is. When NULL and policy_type is set, secure_table_provision auto-derives a suffix from policy_type (e.g. AuthzDirectOwner becomes direct_owner, producing policy names like auth_sel_direct_owner). When explicitly set, used as-is. This ensures multiple policies on the same junction table do not collide. Ignored for RelationBelongsTo/RelationHasOne. */ - policyName?: string; - /** - * For RelationManyToMany: opaque policy configuration forwarded to secure_table_provision as-is. The trigger does not interpret or validate this value. Structure varies by policy_type. Examples: - * - AuthzEntityMembership: {"entity_field": "entity_id", "membership_type": 2} - * - AuthzDirectOwner: {"owner_field": "owner_id"} - * - AuthzMembership: {"membership_type": 2} - * Defaults to '{}' (empty object). - * Ignored for RelationBelongsTo/RelationHasOne. - */ - policyData?: unknown; - /** Output column for RelationBelongsTo/RelationHasOne/RelationHasMany: the UUID of the FK field created (or found). For BelongsTo/HasOne this is on the source table; for HasMany this is on the target table. Populated by the trigger. NULL for RelationManyToMany. Callers should not set this directly. */ - outFieldId?: string; - /** Output column for RelationManyToMany: the UUID of the junction table created (or found). Populated by the trigger. NULL for RelationBelongsTo/RelationHasOne. Callers should not set this directly. */ - outJunctionTableId?: string; - /** Output column for RelationManyToMany: the UUID of the FK field on the junction table referencing the source table. Populated by the trigger. NULL for RelationBelongsTo/RelationHasOne. Callers should not set this directly. */ - outSourceFieldId?: string; - /** Output column for RelationManyToMany: the UUID of the FK field on the junction table referencing the target table. Populated by the trigger. NULL for RelationBelongsTo/RelationHasOne. Callers should not set this directly. */ - outTargetFieldId?: string; -} -export interface UpdateFieldInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `Field` being updated. */ - fieldPatch: FieldPatch; -} -/** Represents an update to a `Field`. Fields that are set will be updated. */ -export interface FieldPatch { - id?: string; - databaseId?: string; - tableId?: string; - name?: string; - label?: string; - description?: string; - smartTags?: unknown; - isRequired?: boolean; - defaultValue?: string; - defaultValueAst?: unknown; - isHidden?: boolean; - type?: string; - fieldOrder?: number; - regexp?: string; - chk?: unknown; - chkExpr?: unknown; - min?: number; - max?: number; - tags?: string[]; - category?: ObjectCategory; - module?: string; - scope?: number; - createdAt?: string; - updatedAt?: string; -} -export interface UpdateMembershipsModuleInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `MembershipsModule` being updated. */ - membershipsModulePatch: MembershipsModulePatch; -} -/** Represents an update to a `MembershipsModule`. Fields that are set will be updated. */ -export interface MembershipsModulePatch { - id?: string; - databaseId?: string; - schemaId?: string; - privateSchemaId?: string; - membershipsTableId?: string; - membershipsTableName?: string; - membersTableId?: string; - membersTableName?: string; - membershipDefaultsTableId?: string; - membershipDefaultsTableName?: string; - grantsTableId?: string; - grantsTableName?: string; - actorTableId?: string; - limitsTableId?: string; - defaultLimitsTableId?: string; - permissionsTableId?: string; - defaultPermissionsTableId?: string; - sprtTableId?: string; - adminGrantsTableId?: string; - adminGrantsTableName?: string; - ownerGrantsTableId?: string; - ownerGrantsTableName?: string; - membershipType?: number; - entityTableId?: string; - entityTableOwnerId?: string; - prefix?: string; - actorMaskCheck?: string; - actorPermCheck?: string; - entityIdsByMask?: string; - entityIdsByPerm?: string; - entityIdsFunction?: string; + * Whether to create a btree index on FK fields created by this relation. Defaults to true. + * PostgreSQL does not automatically index foreign key columns (only the referenced PK side is indexed). + * Without indexes on FK columns, JOINs, CASCADE deletes, and RLS policy lookups perform sequential scans. + * - RelationBelongsTo: creates an index on the FK field on the source table. + * - RelationHasMany: creates an index on the FK field on the target table. + * - RelationHasOne: skipped — the unique constraint already creates an implicit index. + * - RelationManyToMany: creates indexes on both FK fields on the junction table. + * Set to false only for very small tables or write-heavy tables where index maintenance cost outweighs read performance. + */ + createIndex?: boolean; + /** + * For RelationManyToMany: whether to expose the M:N shortcut fields in the GraphQL API. Defaults to true. + * When true, sets @behavior +manyToMany on the junction table smart_tags so PostGraphile generates + * clean M:N connection fields (e.g., event.contacts instead of event.contactEventsByEventId). + * When false (or toggled off via UPDATE), the behavior tag is removed and the M:N fields disappear from GraphQL. + * Toggling is supported: UPDATE expose_in_api to true/false and the smart tag is added/removed automatically. + * Ignored for RelationBelongsTo/RelationHasOne/RelationHasMany. + */ + exposeInApi?: boolean; + /** + * For RelationManyToMany: which generator to invoke for field creation on the junction table. Forwarded to secure_table_provision as-is. The trigger does not interpret or validate this value. + * Examples: DataId (creates UUID primary key), DataDirectOwner (creates owner_id field), DataEntityMembership (creates entity_id field), DataOwnershipInEntity (creates both owner_id and entity_id), DataTimestamps, DataPeoplestamps, DataPublishable, DataSoftDelete. + * NULL means no field creation beyond the FK fields (and composite key if use_composite_key is true). + * Ignored for RelationBelongsTo/RelationHasOne. + */ + nodeType?: string; + /** + * For RelationManyToMany: configuration passed to the generator function for field creation on the junction table. Forwarded to secure_table_provision as-is. The trigger does not interpret or validate this value. + * Only used when node_type is set. Structure varies by node_type. Examples: + * - DataId: {"field_name": "id"} (default field name is 'id') + * - DataEntityMembership: {"entity_field_name": "entity_id", "include_id": false, "include_user_fk": true} + * - DataDirectOwner: {"owner_field_name": "owner_id"} + * Defaults to '{}' (empty object). + * Ignored for RelationBelongsTo/RelationHasOne. + */ + nodeData?: unknown; + /** For RelationManyToMany: database roles to grant privileges to on the junction table. Forwarded to secure_table_provision as-is. Supports multiple roles, e.g. ARRAY['authenticated', 'admin']. Each role receives all privileges defined in grant_privileges. Defaults to ARRAY['authenticated']. Ignored for RelationBelongsTo/RelationHasOne. */ + grantRoles?: string[]; + /** For RelationManyToMany: privilege grants for the junction table. Forwarded to secure_table_provision as-is. Format: PostgreSQL array of jsonb [privilege, columns] tuples. Examples: ARRAY['["select","*"]'::jsonb, '["insert","*"]'::jsonb] for full access, or ARRAY['["update",["name","bio"]]'::jsonb] for column-level grants. "*" means all columns. Defaults to select/insert/delete for all columns. Ignored for RelationBelongsTo/RelationHasOne. */ + grantPrivileges?: unknown[]; + /** + * For RelationManyToMany: RLS policy type for the junction table. Forwarded to secure_table_provision as-is. The trigger does not interpret or validate this value. + * Examples: AuthzEntityMembership, AuthzMembership, AuthzAllowAll, AuthzDirectOwner, AuthzOrgHierarchy. + * NULL means no policy is created — the junction table will have RLS enabled but no policies (unless added separately via secure_table_provision). + * Ignored for RelationBelongsTo/RelationHasOne. + */ + policyType?: string; + /** For RelationManyToMany: privileges the policy applies to, e.g. ARRAY['select','insert','delete']. Forwarded to secure_table_provision as-is. NULL means privileges are derived from the grant_privileges verbs by secure_table_provision. Ignored for RelationBelongsTo/RelationHasOne. */ + policyPrivileges?: string[]; + /** For RelationManyToMany: database role the policy targets, e.g. 'authenticated'. Forwarded to secure_table_provision as-is. NULL means secure_table_provision falls back to the first role in grant_roles. Ignored for RelationBelongsTo/RelationHasOne. */ + policyRole?: string; + /** For RelationManyToMany: whether the policy is PERMISSIVE (true) or RESTRICTIVE (false). Forwarded to secure_table_provision as-is. Defaults to true. Ignored for RelationBelongsTo/RelationHasOne. */ + policyPermissive?: boolean; + /** For RelationManyToMany: custom suffix for the generated policy name. Forwarded to secure_table_provision as-is. When NULL and policy_type is set, secure_table_provision auto-derives a suffix from policy_type (e.g. AuthzDirectOwner becomes direct_owner, producing policy names like auth_sel_direct_owner). When explicitly set, used as-is. This ensures multiple policies on the same junction table do not collide. Ignored for RelationBelongsTo/RelationHasOne. */ + policyName?: string; + /** + * For RelationManyToMany: opaque policy configuration forwarded to secure_table_provision as-is. The trigger does not interpret or validate this value. Structure varies by policy_type. Examples: + * - AuthzEntityMembership: {"entity_field": "entity_id", "membership_type": 2} + * - AuthzDirectOwner: {"owner_field": "owner_id"} + * - AuthzMembership: {"membership_type": 2} + * Defaults to '{}' (empty object). + * Ignored for RelationBelongsTo/RelationHasOne. + */ + policyData?: unknown; + /** Output column for RelationBelongsTo/RelationHasOne/RelationHasMany: the UUID of the FK field created (or found). For BelongsTo/HasOne this is on the source table; for HasMany this is on the target table. Populated by the trigger. NULL for RelationManyToMany. Callers should not set this directly. */ + outFieldId?: string; + /** Output column for RelationManyToMany: the UUID of the junction table created (or found). Populated by the trigger. NULL for RelationBelongsTo/RelationHasOne. Callers should not set this directly. */ + outJunctionTableId?: string; + /** Output column for RelationManyToMany: the UUID of the FK field on the junction table referencing the source table. Populated by the trigger. NULL for RelationBelongsTo/RelationHasOne. Callers should not set this directly. */ + outSourceFieldId?: string; + /** Output column for RelationManyToMany: the UUID of the FK field on the junction table referencing the target table. Populated by the trigger. NULL for RelationBelongsTo/RelationHasOne. Callers should not set this directly. */ + outTargetFieldId?: string; } export interface DeleteDefaultIdsModuleInput { clientMutationId?: string; @@ -12860,6 +12340,11 @@ export interface DeleteApiSchemaInput { /** Unique identifier for this API-schema mapping */ id: string; } +export interface DeleteSiteThemeInput { + clientMutationId?: string; + /** Unique identifier for this theme record */ + id: string; +} export interface DeleteOrgMemberInput { clientMutationId?: string; id: string; @@ -12882,15 +12367,6 @@ export interface DeleteSecretsModuleInput { clientMutationId?: string; id: string; } -export interface DeleteUuidModuleInput { - clientMutationId?: string; - id: string; -} -export interface DeleteSiteThemeInput { - clientMutationId?: string; - /** Unique identifier for this theme record */ - id: string; -} export interface DeleteStoreInput { clientMutationId?: string; /** The primary unique identifier for the store. */ @@ -12987,19 +12463,19 @@ export interface DeleteCryptoAddressesModuleInput { clientMutationId?: string; id: string; } -export interface DeletePhoneNumberInput { +export interface DeleteConnectedAccountInput { clientMutationId?: string; id: string; } -export interface DeleteAppLimitDefaultInput { +export interface DeletePhoneNumberInput { clientMutationId?: string; id: string; } -export interface DeleteOrgLimitDefaultInput { +export interface DeleteAppLimitDefaultInput { clientMutationId?: string; id: string; } -export interface DeleteConnectedAccountInput { +export interface DeleteOrgLimitDefaultInput { clientMutationId?: string; id: string; } @@ -13131,6 +12607,10 @@ export interface DeleteAppLevelInput { clientMutationId?: string; id: string; } +export interface DeleteDatabaseTransferInput { + clientMutationId?: string; + id: string; +} export interface DeleteCryptoAuthModuleInput { clientMutationId?: string; id: string; @@ -13147,25 +12627,33 @@ export interface DeleteEmailInput { clientMutationId?: string; id: string; } +export interface DeleteEnumInput { + clientMutationId?: string; + id: string; +} export interface DeleteViewInput { clientMutationId?: string; id: string; } +export interface DeleteBlueprintInput { + clientMutationId?: string; + /** Unique identifier for this blueprint. */ + id: string; +} export interface DeletePermissionsModuleInput { clientMutationId?: string; id: string; } -export interface DeleteLimitsModuleInput { +export interface DeleteEmbeddingChunkInput { clientMutationId?: string; id: string; } -export interface DeleteProfilesModuleInput { +export interface DeleteLimitsModuleInput { clientMutationId?: string; id: string; } -export interface DeleteSecureTableProvisionInput { +export interface DeleteProfilesModuleInput { clientMutationId?: string; - /** Unique identifier for this provision row. */ id: string; } export interface DeleteUserInput { @@ -13218,6 +12706,11 @@ export interface DeleteSiteInput { /** Unique identifier for this site */ id: string; } +export interface DeleteBlueprintTemplateInput { + clientMutationId?: string; + /** Unique identifier for this template. */ + id: string; +} export interface DeleteHierarchyModuleInput { clientMutationId?: string; id: string; @@ -13230,6 +12723,11 @@ export interface DeleteForeignKeyConstraintInput { clientMutationId?: string; id: string; } +export interface DeleteSecureTableProvisionInput { + clientMutationId?: string; + /** Unique identifier for this provision row. */ + id: string; +} export interface DeleteOrgInviteInput { clientMutationId?: string; id: string; @@ -13246,19 +12744,26 @@ export interface DeleteUserAuthModuleInput { clientMutationId?: string; id: string; } -export interface DeleteRelationProvisionInput { +export interface DeleteFieldInput { clientMutationId?: string; - /** Unique identifier for this relation provision row. */ id: string; } -export interface DeleteFieldInput { +export interface DeleteMembershipsModuleInput { clientMutationId?: string; id: string; } -export interface DeleteMembershipsModuleInput { +export interface DeleteRelationProvisionInput { clientMutationId?: string; + /** Unique identifier for this relation provision row. */ id: string; } +/** A connection to a list of `GetAllRecord` values. */ +export interface GetAllConnection { + nodes: GetAllRecord[]; + edges: GetAllEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `OrgGetManagersRecord` values. */ export interface OrgGetManagersConnection { nodes: OrgGetManagersRecord[]; @@ -13273,13 +12778,6 @@ export interface OrgGetSubordinatesConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `GetAllRecord` values. */ -export interface GetAllConnection { - nodes: GetAllRecord[]; - edges: GetAllEdge[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `Object` values. */ export interface ObjectConnection { nodes: Object[]; @@ -13329,6 +12827,13 @@ export interface ApiSchemaConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `SiteTheme` values. */ +export interface SiteThemeConnection { + nodes: SiteTheme[]; + edges: SiteThemeEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `OrgMember` values. */ export interface OrgMemberConnection { nodes: OrgMember[]; @@ -13364,20 +12869,6 @@ export interface SecretsModuleConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `UuidModule` values. */ -export interface UuidModuleConnection { - nodes: UuidModule[]; - edges: UuidModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `SiteTheme` values. */ -export interface SiteThemeConnection { - nodes: SiteTheme[]; - edges: SiteThemeEdge[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `Store` values. */ export interface StoreConnection { nodes: Store[]; @@ -13539,6 +13030,13 @@ export interface CryptoAddressesModuleConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `ConnectedAccount` values. */ +export interface ConnectedAccountConnection { + nodes: ConnectedAccount[]; + edges: ConnectedAccountEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `PhoneNumber` values. */ export interface PhoneNumberConnection { nodes: PhoneNumber[]; @@ -13560,13 +13058,6 @@ export interface OrgLimitDefaultConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `ConnectedAccount` values. */ -export interface ConnectedAccountConnection { - nodes: ConnectedAccount[]; - edges: ConnectedAccountEdge[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `TableGrant` values. */ export interface TableGrantConnection { nodes: TableGrant[]; @@ -13756,6 +13247,13 @@ export interface SqlMigrationConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `DatabaseTransfer` values. */ +export interface DatabaseTransferConnection { + nodes: DatabaseTransfer[]; + edges: DatabaseTransferEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `CryptoAuthModule` values. */ export interface CryptoAuthModuleConnection { nodes: CryptoAuthModule[]; @@ -13784,6 +13282,13 @@ export interface EmailConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `Enum` values. */ +export interface EnumConnection { + nodes: Enum[]; + edges: EnumEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `View` values. */ export interface ViewConnection { nodes: View[]; @@ -13791,6 +13296,13 @@ export interface ViewConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `Blueprint` values. */ +export interface BlueprintConnection { + nodes: Blueprint[]; + edges: BlueprintEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `PermissionsModule` values. */ export interface PermissionsModuleConnection { nodes: PermissionsModule[]; @@ -13798,6 +13310,13 @@ export interface PermissionsModuleConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `EmbeddingChunk` values. */ +export interface EmbeddingChunkConnection { + nodes: EmbeddingChunk[]; + edges: EmbeddingChunkEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `LimitsModule` values. */ export interface LimitsModuleConnection { nodes: LimitsModule[]; @@ -13812,13 +13331,6 @@ export interface ProfilesModuleConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `SecureTableProvision` values. */ -export interface SecureTableProvisionConnection { - nodes: SecureTableProvision[]; - edges: SecureTableProvisionEdge[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `User` values. */ export interface UserConnection { nodes: User[]; @@ -13910,6 +13422,13 @@ export interface SiteConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `BlueprintTemplate` values. */ +export interface BlueprintTemplateConnection { + nodes: BlueprintTemplate[]; + edges: BlueprintTemplateEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `HierarchyModule` values. */ export interface HierarchyModuleConnection { nodes: HierarchyModule[]; @@ -13931,6 +13450,13 @@ export interface ForeignKeyConstraintConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `SecureTableProvision` values. */ +export interface SecureTableProvisionConnection { + nodes: SecureTableProvision[]; + edges: SecureTableProvisionEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `OrgInvite` values. */ export interface OrgInviteConnection { nodes: OrgInvite[]; @@ -13959,13 +13485,6 @@ export interface UserAuthModuleConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `RelationProvision` values. */ -export interface RelationProvisionConnection { - nodes: RelationProvision[]; - edges: RelationProvisionEdge[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `Field` values. */ export interface FieldConnection { nodes: Field[]; @@ -13980,32 +13499,45 @@ export interface MembershipsModuleConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `RelationProvision` values. */ +export interface RelationProvisionConnection { + nodes: RelationProvision[]; + edges: RelationProvisionEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** Root meta schema type */ export interface MetaSchema { tables: MetaTable[]; } +export interface SendAccountDeletionEmailPayload { + clientMutationId?: string | null; + result?: boolean | null; +} export interface SignOutPayload { clientMutationId?: string | null; } -export interface SendAccountDeletionEmailPayload { +export interface AcceptDatabaseTransferPayload { clientMutationId?: string | null; result?: boolean | null; } -export interface CheckPasswordPayload { +export interface CancelDatabaseTransferPayload { clientMutationId?: string | null; + result?: boolean | null; } -export interface SubmitInviteCodePayload { +export interface RejectDatabaseTransferPayload { clientMutationId?: string | null; result?: boolean | null; } -export interface SubmitOrgInviteCodePayload { +export interface SubmitInviteCodePayload { clientMutationId?: string | null; result?: boolean | null; } -export interface FreezeObjectsPayload { +export interface SubmitOrgInviteCodePayload { clientMutationId?: string | null; + result?: boolean | null; } -export interface InitEmptyRepoPayload { +export interface CheckPasswordPayload { clientMutationId?: string | null; } export interface ConfirmDeleteAccountPayload { @@ -14020,20 +13552,23 @@ export interface VerifyEmailPayload { clientMutationId?: string | null; result?: boolean | null; } -export interface RemoveNodeAtPathPayload { +export interface FreezeObjectsPayload { clientMutationId?: string | null; - result?: string | null; } -export interface ResetPasswordPayload { +export interface InitEmptyRepoPayload { clientMutationId?: string | null; - result?: boolean | null; } -export interface BootstrapUserPayload { +export interface ConstructBlueprintPayload { clientMutationId?: string | null; - result?: BootstrapUserRecord[] | null; + result?: unknown | null; } -export interface SetFieldOrderPayload { +export interface ResetPasswordPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export interface RemoveNodeAtPathPayload { clientMutationId?: string | null; + result?: string | null; } export interface SetDataAtPathPayload { clientMutationId?: string | null; @@ -14043,10 +13578,21 @@ export interface SetPropsAndCommitPayload { clientMutationId?: string | null; result?: string | null; } +export interface CopyTemplateToBlueprintPayload { + clientMutationId?: string | null; + result?: string | null; +} export interface ProvisionDatabaseWithUserPayload { clientMutationId?: string | null; result?: ProvisionDatabaseWithUserRecord[] | null; } +export interface BootstrapUserPayload { + clientMutationId?: string | null; + result?: BootstrapUserRecord[] | null; +} +export interface SetFieldOrderPayload { + clientMutationId?: string | null; +} export interface InsertNodeAtPathPayload { clientMutationId?: string | null; result?: string | null; @@ -14086,13 +13632,13 @@ export interface OneTimeTokenPayload { clientMutationId?: string | null; result?: string | null; } -export interface ForgotPasswordPayload { - clientMutationId?: string | null; -} export interface SendVerificationEmailPayload { clientMutationId?: string | null; result?: boolean | null; } +export interface ForgotPasswordPayload { + clientMutationId?: string | null; +} export interface VerifyPasswordPayload { clientMutationId?: string | null; result?: Session | null; @@ -14119,6 +13665,12 @@ export interface CreateApiSchemaPayload { apiSchema?: ApiSchema | null; apiSchemaEdge?: ApiSchemaEdge | null; } +export interface CreateSiteThemePayload { + clientMutationId?: string | null; + /** The `SiteTheme` that was created by this mutation. */ + siteTheme?: SiteTheme | null; + siteThemeEdge?: SiteThemeEdge | null; +} export interface CreateOrgMemberPayload { clientMutationId?: string | null; /** The `OrgMember` that was created by this mutation. */ @@ -14146,20 +13698,8 @@ export interface CreateMembershipTypesModulePayload { export interface CreateSecretsModulePayload { clientMutationId?: string | null; /** The `SecretsModule` that was created by this mutation. */ - secretsModule?: SecretsModule | null; - secretsModuleEdge?: SecretsModuleEdge | null; -} -export interface CreateUuidModulePayload { - clientMutationId?: string | null; - /** The `UuidModule` that was created by this mutation. */ - uuidModule?: UuidModule | null; - uuidModuleEdge?: UuidModuleEdge | null; -} -export interface CreateSiteThemePayload { - clientMutationId?: string | null; - /** The `SiteTheme` that was created by this mutation. */ - siteTheme?: SiteTheme | null; - siteThemeEdge?: SiteThemeEdge | null; + secretsModule?: SecretsModule | null; + secretsModuleEdge?: SecretsModuleEdge | null; } export interface CreateStorePayload { clientMutationId?: string | null; @@ -14299,6 +13839,12 @@ export interface CreateCryptoAddressesModulePayload { cryptoAddressesModule?: CryptoAddressesModule | null; cryptoAddressesModuleEdge?: CryptoAddressesModuleEdge | null; } +export interface CreateConnectedAccountPayload { + clientMutationId?: string | null; + /** The `ConnectedAccount` that was created by this mutation. */ + connectedAccount?: ConnectedAccount | null; + connectedAccountEdge?: ConnectedAccountEdge | null; +} export interface CreatePhoneNumberPayload { clientMutationId?: string | null; /** The `PhoneNumber` that was created by this mutation. */ @@ -14317,12 +13863,6 @@ export interface CreateOrgLimitDefaultPayload { orgLimitDefault?: OrgLimitDefault | null; orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; } -export interface CreateConnectedAccountPayload { - clientMutationId?: string | null; - /** The `ConnectedAccount` that was created by this mutation. */ - connectedAccount?: ConnectedAccount | null; - connectedAccountEdge?: ConnectedAccountEdge | null; -} export interface CreateTableGrantPayload { clientMutationId?: string | null; /** The `TableGrant` that was created by this mutation. */ @@ -14508,6 +14048,12 @@ export interface CreateSqlMigrationPayload { /** The `SqlMigration` that was created by this mutation. */ sqlMigration?: SqlMigration | null; } +export interface CreateDatabaseTransferPayload { + clientMutationId?: string | null; + /** The `DatabaseTransfer` that was created by this mutation. */ + databaseTransfer?: DatabaseTransfer | null; + databaseTransferEdge?: DatabaseTransferEdge | null; +} export interface CreateCryptoAuthModulePayload { clientMutationId?: string | null; /** The `CryptoAuthModule` that was created by this mutation. */ @@ -14532,18 +14078,36 @@ export interface CreateEmailPayload { email?: Email | null; emailEdge?: EmailEdge | null; } +export interface CreateEnumPayload { + clientMutationId?: string | null; + /** The `Enum` that was created by this mutation. */ + enum?: Enum | null; + enumEdge?: EnumEdge | null; +} export interface CreateViewPayload { clientMutationId?: string | null; /** The `View` that was created by this mutation. */ view?: View | null; viewEdge?: ViewEdge | null; } +export interface CreateBlueprintPayload { + clientMutationId?: string | null; + /** The `Blueprint` that was created by this mutation. */ + blueprint?: Blueprint | null; + blueprintEdge?: BlueprintEdge | null; +} export interface CreatePermissionsModulePayload { clientMutationId?: string | null; /** The `PermissionsModule` that was created by this mutation. */ permissionsModule?: PermissionsModule | null; permissionsModuleEdge?: PermissionsModuleEdge | null; } +export interface CreateEmbeddingChunkPayload { + clientMutationId?: string | null; + /** The `EmbeddingChunk` that was created by this mutation. */ + embeddingChunk?: EmbeddingChunk | null; + embeddingChunkEdge?: EmbeddingChunkEdge | null; +} export interface CreateLimitsModulePayload { clientMutationId?: string | null; /** The `LimitsModule` that was created by this mutation. */ @@ -14556,12 +14120,6 @@ export interface CreateProfilesModulePayload { profilesModule?: ProfilesModule | null; profilesModuleEdge?: ProfilesModuleEdge | null; } -export interface CreateSecureTableProvisionPayload { - clientMutationId?: string | null; - /** The `SecureTableProvision` that was created by this mutation. */ - secureTableProvision?: SecureTableProvision | null; - secureTableProvisionEdge?: SecureTableProvisionEdge | null; -} export interface CreateUserPayload { clientMutationId?: string | null; /** The `User` that was created by this mutation. */ @@ -14639,6 +14197,12 @@ export interface CreateSitePayload { site?: Site | null; siteEdge?: SiteEdge | null; } +export interface CreateBlueprintTemplatePayload { + clientMutationId?: string | null; + /** The `BlueprintTemplate` that was created by this mutation. */ + blueprintTemplate?: BlueprintTemplate | null; + blueprintTemplateEdge?: BlueprintTemplateEdge | null; +} export interface CreateHierarchyModulePayload { clientMutationId?: string | null; /** The `HierarchyModule` that was created by this mutation. */ @@ -14657,6 +14221,12 @@ export interface CreateForeignKeyConstraintPayload { foreignKeyConstraint?: ForeignKeyConstraint | null; foreignKeyConstraintEdge?: ForeignKeyConstraintEdge | null; } +export interface CreateSecureTableProvisionPayload { + clientMutationId?: string | null; + /** The `SecureTableProvision` that was created by this mutation. */ + secureTableProvision?: SecureTableProvision | null; + secureTableProvisionEdge?: SecureTableProvisionEdge | null; +} export interface CreateOrgInvitePayload { clientMutationId?: string | null; /** The `OrgInvite` that was created by this mutation. */ @@ -14681,12 +14251,6 @@ export interface CreateUserAuthModulePayload { userAuthModule?: UserAuthModule | null; userAuthModuleEdge?: UserAuthModuleEdge | null; } -export interface CreateRelationProvisionPayload { - clientMutationId?: string | null; - /** The `RelationProvision` that was created by this mutation. */ - relationProvision?: RelationProvision | null; - relationProvisionEdge?: RelationProvisionEdge | null; -} export interface CreateFieldPayload { clientMutationId?: string | null; /** The `Field` that was created by this mutation. */ @@ -14699,6 +14263,12 @@ export interface CreateMembershipsModulePayload { membershipsModule?: MembershipsModule | null; membershipsModuleEdge?: MembershipsModuleEdge | null; } +export interface CreateRelationProvisionPayload { + clientMutationId?: string | null; + /** The `RelationProvision` that was created by this mutation. */ + relationProvision?: RelationProvision | null; + relationProvisionEdge?: RelationProvisionEdge | null; +} export interface UpdateDefaultIdsModulePayload { clientMutationId?: string | null; /** The `DefaultIdsModule` that was updated by this mutation. */ @@ -14717,6 +14287,12 @@ export interface UpdateApiSchemaPayload { apiSchema?: ApiSchema | null; apiSchemaEdge?: ApiSchemaEdge | null; } +export interface UpdateSiteThemePayload { + clientMutationId?: string | null; + /** The `SiteTheme` that was updated by this mutation. */ + siteTheme?: SiteTheme | null; + siteThemeEdge?: SiteThemeEdge | null; +} export interface UpdateOrgMemberPayload { clientMutationId?: string | null; /** The `OrgMember` that was updated by this mutation. */ @@ -14747,18 +14323,6 @@ export interface UpdateSecretsModulePayload { secretsModule?: SecretsModule | null; secretsModuleEdge?: SecretsModuleEdge | null; } -export interface UpdateUuidModulePayload { - clientMutationId?: string | null; - /** The `UuidModule` that was updated by this mutation. */ - uuidModule?: UuidModule | null; - uuidModuleEdge?: UuidModuleEdge | null; -} -export interface UpdateSiteThemePayload { - clientMutationId?: string | null; - /** The `SiteTheme` that was updated by this mutation. */ - siteTheme?: SiteTheme | null; - siteThemeEdge?: SiteThemeEdge | null; -} export interface UpdateStorePayload { clientMutationId?: string | null; /** The `Store` that was updated by this mutation. */ @@ -14897,6 +14461,12 @@ export interface UpdateCryptoAddressesModulePayload { cryptoAddressesModule?: CryptoAddressesModule | null; cryptoAddressesModuleEdge?: CryptoAddressesModuleEdge | null; } +export interface UpdateConnectedAccountPayload { + clientMutationId?: string | null; + /** The `ConnectedAccount` that was updated by this mutation. */ + connectedAccount?: ConnectedAccount | null; + connectedAccountEdge?: ConnectedAccountEdge | null; +} export interface UpdatePhoneNumberPayload { clientMutationId?: string | null; /** The `PhoneNumber` that was updated by this mutation. */ @@ -14915,12 +14485,6 @@ export interface UpdateOrgLimitDefaultPayload { orgLimitDefault?: OrgLimitDefault | null; orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; } -export interface UpdateConnectedAccountPayload { - clientMutationId?: string | null; - /** The `ConnectedAccount` that was updated by this mutation. */ - connectedAccount?: ConnectedAccount | null; - connectedAccountEdge?: ConnectedAccountEdge | null; -} export interface UpdateTableGrantPayload { clientMutationId?: string | null; /** The `TableGrant` that was updated by this mutation. */ @@ -15101,6 +14665,12 @@ export interface UpdateAppLevelPayload { appLevel?: AppLevel | null; appLevelEdge?: AppLevelEdge | null; } +export interface UpdateDatabaseTransferPayload { + clientMutationId?: string | null; + /** The `DatabaseTransfer` that was updated by this mutation. */ + databaseTransfer?: DatabaseTransfer | null; + databaseTransferEdge?: DatabaseTransferEdge | null; +} export interface UpdateCryptoAuthModulePayload { clientMutationId?: string | null; /** The `CryptoAuthModule` that was updated by this mutation. */ @@ -15125,18 +14695,36 @@ export interface UpdateEmailPayload { email?: Email | null; emailEdge?: EmailEdge | null; } +export interface UpdateEnumPayload { + clientMutationId?: string | null; + /** The `Enum` that was updated by this mutation. */ + enum?: Enum | null; + enumEdge?: EnumEdge | null; +} export interface UpdateViewPayload { clientMutationId?: string | null; /** The `View` that was updated by this mutation. */ view?: View | null; viewEdge?: ViewEdge | null; } +export interface UpdateBlueprintPayload { + clientMutationId?: string | null; + /** The `Blueprint` that was updated by this mutation. */ + blueprint?: Blueprint | null; + blueprintEdge?: BlueprintEdge | null; +} export interface UpdatePermissionsModulePayload { clientMutationId?: string | null; /** The `PermissionsModule` that was updated by this mutation. */ permissionsModule?: PermissionsModule | null; permissionsModuleEdge?: PermissionsModuleEdge | null; } +export interface UpdateEmbeddingChunkPayload { + clientMutationId?: string | null; + /** The `EmbeddingChunk` that was updated by this mutation. */ + embeddingChunk?: EmbeddingChunk | null; + embeddingChunkEdge?: EmbeddingChunkEdge | null; +} export interface UpdateLimitsModulePayload { clientMutationId?: string | null; /** The `LimitsModule` that was updated by this mutation. */ @@ -15149,12 +14737,6 @@ export interface UpdateProfilesModulePayload { profilesModule?: ProfilesModule | null; profilesModuleEdge?: ProfilesModuleEdge | null; } -export interface UpdateSecureTableProvisionPayload { - clientMutationId?: string | null; - /** The `SecureTableProvision` that was updated by this mutation. */ - secureTableProvision?: SecureTableProvision | null; - secureTableProvisionEdge?: SecureTableProvisionEdge | null; -} export interface UpdateUserPayload { clientMutationId?: string | null; /** The `User` that was updated by this mutation. */ @@ -15227,6 +14809,12 @@ export interface UpdateSitePayload { site?: Site | null; siteEdge?: SiteEdge | null; } +export interface UpdateBlueprintTemplatePayload { + clientMutationId?: string | null; + /** The `BlueprintTemplate` that was updated by this mutation. */ + blueprintTemplate?: BlueprintTemplate | null; + blueprintTemplateEdge?: BlueprintTemplateEdge | null; +} export interface UpdateHierarchyModulePayload { clientMutationId?: string | null; /** The `HierarchyModule` that was updated by this mutation. */ @@ -15245,6 +14833,12 @@ export interface UpdateForeignKeyConstraintPayload { foreignKeyConstraint?: ForeignKeyConstraint | null; foreignKeyConstraintEdge?: ForeignKeyConstraintEdge | null; } +export interface UpdateSecureTableProvisionPayload { + clientMutationId?: string | null; + /** The `SecureTableProvision` that was updated by this mutation. */ + secureTableProvision?: SecureTableProvision | null; + secureTableProvisionEdge?: SecureTableProvisionEdge | null; +} export interface UpdateOrgInvitePayload { clientMutationId?: string | null; /** The `OrgInvite` that was updated by this mutation. */ @@ -15269,12 +14863,6 @@ export interface UpdateUserAuthModulePayload { userAuthModule?: UserAuthModule | null; userAuthModuleEdge?: UserAuthModuleEdge | null; } -export interface UpdateRelationProvisionPayload { - clientMutationId?: string | null; - /** The `RelationProvision` that was updated by this mutation. */ - relationProvision?: RelationProvision | null; - relationProvisionEdge?: RelationProvisionEdge | null; -} export interface UpdateFieldPayload { clientMutationId?: string | null; /** The `Field` that was updated by this mutation. */ @@ -15287,6 +14875,12 @@ export interface UpdateMembershipsModulePayload { membershipsModule?: MembershipsModule | null; membershipsModuleEdge?: MembershipsModuleEdge | null; } +export interface UpdateRelationProvisionPayload { + clientMutationId?: string | null; + /** The `RelationProvision` that was updated by this mutation. */ + relationProvision?: RelationProvision | null; + relationProvisionEdge?: RelationProvisionEdge | null; +} export interface DeleteDefaultIdsModulePayload { clientMutationId?: string | null; /** The `DefaultIdsModule` that was deleted by this mutation. */ @@ -15305,6 +14899,12 @@ export interface DeleteApiSchemaPayload { apiSchema?: ApiSchema | null; apiSchemaEdge?: ApiSchemaEdge | null; } +export interface DeleteSiteThemePayload { + clientMutationId?: string | null; + /** The `SiteTheme` that was deleted by this mutation. */ + siteTheme?: SiteTheme | null; + siteThemeEdge?: SiteThemeEdge | null; +} export interface DeleteOrgMemberPayload { clientMutationId?: string | null; /** The `OrgMember` that was deleted by this mutation. */ @@ -15335,18 +14935,6 @@ export interface DeleteSecretsModulePayload { secretsModule?: SecretsModule | null; secretsModuleEdge?: SecretsModuleEdge | null; } -export interface DeleteUuidModulePayload { - clientMutationId?: string | null; - /** The `UuidModule` that was deleted by this mutation. */ - uuidModule?: UuidModule | null; - uuidModuleEdge?: UuidModuleEdge | null; -} -export interface DeleteSiteThemePayload { - clientMutationId?: string | null; - /** The `SiteTheme` that was deleted by this mutation. */ - siteTheme?: SiteTheme | null; - siteThemeEdge?: SiteThemeEdge | null; -} export interface DeleteStorePayload { clientMutationId?: string | null; /** The `Store` that was deleted by this mutation. */ @@ -15485,6 +15073,12 @@ export interface DeleteCryptoAddressesModulePayload { cryptoAddressesModule?: CryptoAddressesModule | null; cryptoAddressesModuleEdge?: CryptoAddressesModuleEdge | null; } +export interface DeleteConnectedAccountPayload { + clientMutationId?: string | null; + /** The `ConnectedAccount` that was deleted by this mutation. */ + connectedAccount?: ConnectedAccount | null; + connectedAccountEdge?: ConnectedAccountEdge | null; +} export interface DeletePhoneNumberPayload { clientMutationId?: string | null; /** The `PhoneNumber` that was deleted by this mutation. */ @@ -15503,12 +15097,6 @@ export interface DeleteOrgLimitDefaultPayload { orgLimitDefault?: OrgLimitDefault | null; orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; } -export interface DeleteConnectedAccountPayload { - clientMutationId?: string | null; - /** The `ConnectedAccount` that was deleted by this mutation. */ - connectedAccount?: ConnectedAccount | null; - connectedAccountEdge?: ConnectedAccountEdge | null; -} export interface DeleteTableGrantPayload { clientMutationId?: string | null; /** The `TableGrant` that was deleted by this mutation. */ @@ -15689,6 +15277,12 @@ export interface DeleteAppLevelPayload { appLevel?: AppLevel | null; appLevelEdge?: AppLevelEdge | null; } +export interface DeleteDatabaseTransferPayload { + clientMutationId?: string | null; + /** The `DatabaseTransfer` that was deleted by this mutation. */ + databaseTransfer?: DatabaseTransfer | null; + databaseTransferEdge?: DatabaseTransferEdge | null; +} export interface DeleteCryptoAuthModulePayload { clientMutationId?: string | null; /** The `CryptoAuthModule` that was deleted by this mutation. */ @@ -15713,18 +15307,36 @@ export interface DeleteEmailPayload { email?: Email | null; emailEdge?: EmailEdge | null; } +export interface DeleteEnumPayload { + clientMutationId?: string | null; + /** The `Enum` that was deleted by this mutation. */ + enum?: Enum | null; + enumEdge?: EnumEdge | null; +} export interface DeleteViewPayload { clientMutationId?: string | null; /** The `View` that was deleted by this mutation. */ view?: View | null; viewEdge?: ViewEdge | null; } +export interface DeleteBlueprintPayload { + clientMutationId?: string | null; + /** The `Blueprint` that was deleted by this mutation. */ + blueprint?: Blueprint | null; + blueprintEdge?: BlueprintEdge | null; +} export interface DeletePermissionsModulePayload { clientMutationId?: string | null; /** The `PermissionsModule` that was deleted by this mutation. */ permissionsModule?: PermissionsModule | null; permissionsModuleEdge?: PermissionsModuleEdge | null; } +export interface DeleteEmbeddingChunkPayload { + clientMutationId?: string | null; + /** The `EmbeddingChunk` that was deleted by this mutation. */ + embeddingChunk?: EmbeddingChunk | null; + embeddingChunkEdge?: EmbeddingChunkEdge | null; +} export interface DeleteLimitsModulePayload { clientMutationId?: string | null; /** The `LimitsModule` that was deleted by this mutation. */ @@ -15737,12 +15349,6 @@ export interface DeleteProfilesModulePayload { profilesModule?: ProfilesModule | null; profilesModuleEdge?: ProfilesModuleEdge | null; } -export interface DeleteSecureTableProvisionPayload { - clientMutationId?: string | null; - /** The `SecureTableProvision` that was deleted by this mutation. */ - secureTableProvision?: SecureTableProvision | null; - secureTableProvisionEdge?: SecureTableProvisionEdge | null; -} export interface DeleteUserPayload { clientMutationId?: string | null; /** The `User` that was deleted by this mutation. */ @@ -15815,6 +15421,12 @@ export interface DeleteSitePayload { site?: Site | null; siteEdge?: SiteEdge | null; } +export interface DeleteBlueprintTemplatePayload { + clientMutationId?: string | null; + /** The `BlueprintTemplate` that was deleted by this mutation. */ + blueprintTemplate?: BlueprintTemplate | null; + blueprintTemplateEdge?: BlueprintTemplateEdge | null; +} export interface DeleteHierarchyModulePayload { clientMutationId?: string | null; /** The `HierarchyModule` that was deleted by this mutation. */ @@ -15833,6 +15445,12 @@ export interface DeleteForeignKeyConstraintPayload { foreignKeyConstraint?: ForeignKeyConstraint | null; foreignKeyConstraintEdge?: ForeignKeyConstraintEdge | null; } +export interface DeleteSecureTableProvisionPayload { + clientMutationId?: string | null; + /** The `SecureTableProvision` that was deleted by this mutation. */ + secureTableProvision?: SecureTableProvision | null; + secureTableProvisionEdge?: SecureTableProvisionEdge | null; +} export interface DeleteOrgInvitePayload { clientMutationId?: string | null; /** The `OrgInvite` that was deleted by this mutation. */ @@ -15857,12 +15475,6 @@ export interface DeleteUserAuthModulePayload { userAuthModule?: UserAuthModule | null; userAuthModuleEdge?: UserAuthModuleEdge | null; } -export interface DeleteRelationProvisionPayload { - clientMutationId?: string | null; - /** The `RelationProvision` that was deleted by this mutation. */ - relationProvision?: RelationProvision | null; - relationProvisionEdge?: RelationProvisionEdge | null; -} export interface DeleteFieldPayload { clientMutationId?: string | null; /** The `Field` that was deleted by this mutation. */ @@ -15875,11 +15487,17 @@ export interface DeleteMembershipsModulePayload { membershipsModule?: MembershipsModule | null; membershipsModuleEdge?: MembershipsModuleEdge | null; } -/** A `OrgGetManagersRecord` edge in the connection. */ -export interface OrgGetManagersEdge { +export interface DeleteRelationProvisionPayload { + clientMutationId?: string | null; + /** The `RelationProvision` that was deleted by this mutation. */ + relationProvision?: RelationProvision | null; + relationProvisionEdge?: RelationProvisionEdge | null; +} +/** A `GetAllRecord` edge in the connection. */ +export interface GetAllEdge { cursor?: string | null; - /** The `OrgGetManagersRecord` at the end of the edge. */ - node?: OrgGetManagersRecord | null; + /** The `GetAllRecord` at the end of the edge. */ + node?: GetAllRecord | null; } /** Information about pagination in a connection. */ export interface PageInfo { @@ -15892,18 +15510,18 @@ export interface PageInfo { /** When paginating forwards, the cursor to continue. */ endCursor?: string | null; } +/** A `OrgGetManagersRecord` edge in the connection. */ +export interface OrgGetManagersEdge { + cursor?: string | null; + /** The `OrgGetManagersRecord` at the end of the edge. */ + node?: OrgGetManagersRecord | null; +} /** A `OrgGetSubordinatesRecord` edge in the connection. */ export interface OrgGetSubordinatesEdge { cursor?: string | null; /** The `OrgGetSubordinatesRecord` at the end of the edge. */ node?: OrgGetSubordinatesRecord | null; } -/** A `GetAllRecord` edge in the connection. */ -export interface GetAllEdge { - cursor?: string | null; - /** The `GetAllRecord` at the end of the edge. */ - node?: GetAllRecord | null; -} /** A `Object` edge in the connection. */ export interface ObjectEdge { cursor?: string | null; @@ -15946,6 +15564,12 @@ export interface ApiSchemaEdge { /** The `ApiSchema` at the end of the edge. */ node?: ApiSchema | null; } +/** A `SiteTheme` edge in the connection. */ +export interface SiteThemeEdge { + cursor?: string | null; + /** The `SiteTheme` at the end of the edge. */ + node?: SiteTheme | null; +} /** A `OrgMember` edge in the connection. */ export interface OrgMemberEdge { cursor?: string | null; @@ -15976,18 +15600,6 @@ export interface SecretsModuleEdge { /** The `SecretsModule` at the end of the edge. */ node?: SecretsModule | null; } -/** A `UuidModule` edge in the connection. */ -export interface UuidModuleEdge { - cursor?: string | null; - /** The `UuidModule` at the end of the edge. */ - node?: UuidModule | null; -} -/** A `SiteTheme` edge in the connection. */ -export interface SiteThemeEdge { - cursor?: string | null; - /** The `SiteTheme` at the end of the edge. */ - node?: SiteTheme | null; -} /** A `Store` edge in the connection. */ export interface StoreEdge { cursor?: string | null; @@ -16126,6 +15738,12 @@ export interface CryptoAddressesModuleEdge { /** The `CryptoAddressesModule` at the end of the edge. */ node?: CryptoAddressesModule | null; } +/** A `ConnectedAccount` edge in the connection. */ +export interface ConnectedAccountEdge { + cursor?: string | null; + /** The `ConnectedAccount` at the end of the edge. */ + node?: ConnectedAccount | null; +} /** A `PhoneNumber` edge in the connection. */ export interface PhoneNumberEdge { cursor?: string | null; @@ -16144,12 +15762,6 @@ export interface OrgLimitDefaultEdge { /** The `OrgLimitDefault` at the end of the edge. */ node?: OrgLimitDefault | null; } -/** A `ConnectedAccount` edge in the connection. */ -export interface ConnectedAccountEdge { - cursor?: string | null; - /** The `ConnectedAccount` at the end of the edge. */ - node?: ConnectedAccount | null; -} /** A `TableGrant` edge in the connection. */ export interface TableGrantEdge { cursor?: string | null; @@ -16312,6 +15924,12 @@ export interface SqlMigrationEdge { /** The `SqlMigration` at the end of the edge. */ node?: SqlMigration | null; } +/** A `DatabaseTransfer` edge in the connection. */ +export interface DatabaseTransferEdge { + cursor?: string | null; + /** The `DatabaseTransfer` at the end of the edge. */ + node?: DatabaseTransfer | null; +} /** A `CryptoAuthModule` edge in the connection. */ export interface CryptoAuthModuleEdge { cursor?: string | null; @@ -16336,18 +15954,36 @@ export interface EmailEdge { /** The `Email` at the end of the edge. */ node?: Email | null; } +/** A `Enum` edge in the connection. */ +export interface EnumEdge { + cursor?: string | null; + /** The `Enum` at the end of the edge. */ + node?: Enum | null; +} /** A `View` edge in the connection. */ export interface ViewEdge { cursor?: string | null; /** The `View` at the end of the edge. */ node?: View | null; } +/** A `Blueprint` edge in the connection. */ +export interface BlueprintEdge { + cursor?: string | null; + /** The `Blueprint` at the end of the edge. */ + node?: Blueprint | null; +} /** A `PermissionsModule` edge in the connection. */ export interface PermissionsModuleEdge { cursor?: string | null; /** The `PermissionsModule` at the end of the edge. */ node?: PermissionsModule | null; } +/** A `EmbeddingChunk` edge in the connection. */ +export interface EmbeddingChunkEdge { + cursor?: string | null; + /** The `EmbeddingChunk` at the end of the edge. */ + node?: EmbeddingChunk | null; +} /** A `LimitsModule` edge in the connection. */ export interface LimitsModuleEdge { cursor?: string | null; @@ -16360,12 +15996,6 @@ export interface ProfilesModuleEdge { /** The `ProfilesModule` at the end of the edge. */ node?: ProfilesModule | null; } -/** A `SecureTableProvision` edge in the connection. */ -export interface SecureTableProvisionEdge { - cursor?: string | null; - /** The `SecureTableProvision` at the end of the edge. */ - node?: SecureTableProvision | null; -} /** A `User` edge in the connection. */ export interface UserEdge { cursor?: string | null; @@ -16444,6 +16074,12 @@ export interface SiteEdge { /** The `Site` at the end of the edge. */ node?: Site | null; } +/** A `BlueprintTemplate` edge in the connection. */ +export interface BlueprintTemplateEdge { + cursor?: string | null; + /** The `BlueprintTemplate` at the end of the edge. */ + node?: BlueprintTemplate | null; +} /** A `HierarchyModule` edge in the connection. */ export interface HierarchyModuleEdge { cursor?: string | null; @@ -16462,6 +16098,12 @@ export interface ForeignKeyConstraintEdge { /** The `ForeignKeyConstraint` at the end of the edge. */ node?: ForeignKeyConstraint | null; } +/** A `SecureTableProvision` edge in the connection. */ +export interface SecureTableProvisionEdge { + cursor?: string | null; + /** The `SecureTableProvision` at the end of the edge. */ + node?: SecureTableProvision | null; +} /** A `OrgInvite` edge in the connection. */ export interface OrgInviteEdge { cursor?: string | null; @@ -16486,12 +16128,6 @@ export interface UserAuthModuleEdge { /** The `UserAuthModule` at the end of the edge. */ node?: UserAuthModule | null; } -/** A `RelationProvision` edge in the connection. */ -export interface RelationProvisionEdge { - cursor?: string | null; - /** The `RelationProvision` at the end of the edge. */ - node?: RelationProvision | null; -} /** A `Field` edge in the connection. */ export interface FieldEdge { cursor?: string | null; @@ -16504,6 +16140,12 @@ export interface MembershipsModuleEdge { /** The `MembershipsModule` at the end of the edge. */ node?: MembershipsModule | null; } +/** A `RelationProvision` edge in the connection. */ +export interface RelationProvisionEdge { + cursor?: string | null; + /** The `RelationProvision` at the end of the edge. */ + node?: RelationProvision | null; +} /** Information about a database table */ export interface MetaTable { name: string; @@ -16518,6 +16160,10 @@ export interface MetaTable { inflection: MetaInflection; query: MetaQuery; } +export interface ProvisionDatabaseWithUserRecord { + outDatabaseId?: string | null; + outApiKey?: string | null; +} export interface BootstrapUserRecord { outUserId?: string | null; outEmail?: string | null; @@ -16527,24 +16173,6 @@ export interface BootstrapUserRecord { outIsOwner?: boolean | null; outIsSudo?: boolean | null; outApiKey?: string | null; - /** TRGM similarity when searching `outEmail`. Returns null when no trgm search filter is active. */ - outEmailTrgmSimilarity?: number | null; - /** TRGM similarity when searching `outUsername`. Returns null when no trgm search filter is active. */ - outUsernameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `outDisplayName`. Returns null when no trgm search filter is active. */ - outDisplayNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `outApiKey`. Returns null when no trgm search filter is active. */ - outApiKeyTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; -} -export interface ProvisionDatabaseWithUserRecord { - outDatabaseId?: string | null; - outApiKey?: string | null; - /** TRGM similarity when searching `outApiKey`. Returns null when no trgm search filter is active. */ - outApiKeyTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface SignInOneTimeTokenRecord { id?: string | null; @@ -16553,10 +16181,6 @@ export interface SignInOneTimeTokenRecord { accessTokenExpiresAt?: string | null; isVerified?: boolean | null; totpEnabled?: boolean | null; - /** TRGM similarity when searching `accessToken`. Returns null when no trgm search filter is active. */ - accessTokenTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface ExtendTokenExpiresRecord { id?: string | null; @@ -16570,10 +16194,6 @@ export interface SignInRecord { accessTokenExpiresAt?: string | null; isVerified?: boolean | null; totpEnabled?: boolean | null; - /** TRGM similarity when searching `accessToken`. Returns null when no trgm search filter is active. */ - accessTokenTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface SignUpRecord { id?: string | null; @@ -16582,10 +16202,6 @@ export interface SignUpRecord { accessTokenExpiresAt?: string | null; isVerified?: boolean | null; totpEnabled?: boolean | null; - /** TRGM similarity when searching `accessToken`. Returns null when no trgm search filter is active. */ - accessTokenTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } /** Tracks user authentication sessions with expiration, fingerprinting, and step-up verification state */ export interface Session { @@ -16614,14 +16230,6 @@ export interface Session { csrfSecret?: string | null; createdAt?: string | null; updatedAt?: string | null; - /** TRGM similarity when searching `uagent`. Returns null when no trgm search filter is active. */ - uagentTrgmSimilarity?: number | null; - /** TRGM similarity when searching `fingerprintMode`. Returns null when no trgm search filter is active. */ - fingerprintModeTrgmSimilarity?: number | null; - /** TRGM similarity when searching `csrfSecret`. Returns null when no trgm search filter is active. */ - csrfSecretTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } /** Information about a table field/column */ export interface MetaField { diff --git a/sdk/constructive-react/src/public/types.ts b/sdk/constructive-react/src/public/types.ts index b6051592f..d57823539 100644 --- a/sdk/constructive-react/src/public/types.ts +++ b/sdk/constructive-react/src/public/types.ts @@ -10,6 +10,10 @@ export type ConstructiveInternalTypeHostname = unknown; export type ConstructiveInternalTypeImage = unknown; export type ConstructiveInternalTypeOrigin = unknown; export type ConstructiveInternalTypeUrl = unknown; +export interface GetAllRecord { + path: string[] | null; + data: unknown | null; +} export interface OrgGetManagersRecord { userId: string | null; depth: number | null; @@ -18,10 +22,6 @@ export interface OrgGetSubordinatesRecord { userId: string | null; depth: number | null; } -export interface GetAllRecord { - path: string[] | null; - data: unknown | null; -} export interface Object { hashUuid: string | null; id: string | null; @@ -38,8 +38,6 @@ export interface AppPermission { bitnum: number | null; bitstr: string | null; description: string | null; - descriptionTrgmSimilarity: number | null; - searchScore: number | null; } export interface OrgPermission { id: string | null; @@ -47,8 +45,6 @@ export interface OrgPermission { bitnum: number | null; bitstr: string | null; description: string | null; - descriptionTrgmSimilarity: number | null; - searchScore: number | null; } export interface AppLevelRequirement { id: string | null; @@ -59,8 +55,6 @@ export interface AppLevelRequirement { priority: number | null; createdAt: string | null; updatedAt: string | null; - descriptionTrgmSimilarity: number | null; - searchScore: number | null; } export interface Database { id: string | null; @@ -71,10 +65,6 @@ export interface Database { hash: string | null; createdAt: string | null; updatedAt: string | null; - schemaHashTrgmSimilarity: number | null; - nameTrgmSimilarity: number | null; - labelTrgmSimilarity: number | null; - searchScore: number | null; } export interface Schema { id: string | null; @@ -91,12 +81,6 @@ export interface Schema { isPublic: boolean | null; createdAt: string | null; updatedAt: string | null; - nameTrgmSimilarity: number | null; - schemaNameTrgmSimilarity: number | null; - labelTrgmSimilarity: number | null; - descriptionTrgmSimilarity: number | null; - moduleTrgmSimilarity: number | null; - searchScore: number | null; } export interface Table { id: string | null; @@ -118,13 +102,6 @@ export interface Table { inheritsId: string | null; createdAt: string | null; updatedAt: string | null; - nameTrgmSimilarity: number | null; - labelTrgmSimilarity: number | null; - descriptionTrgmSimilarity: number | null; - moduleTrgmSimilarity: number | null; - pluralNameTrgmSimilarity: number | null; - singularNameTrgmSimilarity: number | null; - searchScore: number | null; } export interface CheckConstraint { id: string | null; @@ -141,10 +118,6 @@ export interface CheckConstraint { tags: string[] | null; createdAt: string | null; updatedAt: string | null; - nameTrgmSimilarity: number | null; - typeTrgmSimilarity: number | null; - moduleTrgmSimilarity: number | null; - searchScore: number | null; } export interface Field { id: string | null; @@ -155,6 +128,7 @@ export interface Field { description: string | null; smartTags: unknown | null; isRequired: boolean | null; + apiRequired: boolean | null; defaultValue: string | null; defaultValueAst: unknown | null; isHidden: boolean | null; @@ -171,13 +145,6 @@ export interface Field { scope: number | null; createdAt: string | null; updatedAt: string | null; - nameTrgmSimilarity: number | null; - labelTrgmSimilarity: number | null; - descriptionTrgmSimilarity: number | null; - defaultValueTrgmSimilarity: number | null; - regexpTrgmSimilarity: number | null; - moduleTrgmSimilarity: number | null; - searchScore: number | null; } export interface ForeignKeyConstraint { id: string | null; @@ -198,13 +165,6 @@ export interface ForeignKeyConstraint { tags: string[] | null; createdAt: string | null; updatedAt: string | null; - nameTrgmSimilarity: number | null; - descriptionTrgmSimilarity: number | null; - typeTrgmSimilarity: number | null; - deleteActionTrgmSimilarity: number | null; - updateActionTrgmSimilarity: number | null; - moduleTrgmSimilarity: number | null; - searchScore: number | null; } export interface FullTextSearch { id: string | null; @@ -237,10 +197,6 @@ export interface Index { tags: string[] | null; createdAt: string | null; updatedAt: string | null; - nameTrgmSimilarity: number | null; - accessMethodTrgmSimilarity: number | null; - moduleTrgmSimilarity: number | null; - searchScore: number | null; } export interface Policy { id: string | null; @@ -260,12 +216,6 @@ export interface Policy { tags: string[] | null; createdAt: string | null; updatedAt: string | null; - nameTrgmSimilarity: number | null; - granteeNameTrgmSimilarity: number | null; - privilegeTrgmSimilarity: number | null; - policyTypeTrgmSimilarity: number | null; - moduleTrgmSimilarity: number | null; - searchScore: number | null; } export interface PrimaryKeyConstraint { id: string | null; @@ -281,10 +231,6 @@ export interface PrimaryKeyConstraint { tags: string[] | null; createdAt: string | null; updatedAt: string | null; - nameTrgmSimilarity: number | null; - typeTrgmSimilarity: number | null; - moduleTrgmSimilarity: number | null; - searchScore: number | null; } export interface TableGrant { id: string | null; @@ -296,9 +242,6 @@ export interface TableGrant { isGrant: boolean | null; createdAt: string | null; updatedAt: string | null; - privilegeTrgmSimilarity: number | null; - granteeNameTrgmSimilarity: number | null; - searchScore: number | null; } export interface Trigger { id: string | null; @@ -314,11 +257,6 @@ export interface Trigger { tags: string[] | null; createdAt: string | null; updatedAt: string | null; - nameTrgmSimilarity: number | null; - eventTrgmSimilarity: number | null; - functionNameTrgmSimilarity: number | null; - moduleTrgmSimilarity: number | null; - searchScore: number | null; } export interface UniqueConstraint { id: string | null; @@ -335,11 +273,6 @@ export interface UniqueConstraint { tags: string[] | null; createdAt: string | null; updatedAt: string | null; - nameTrgmSimilarity: number | null; - descriptionTrgmSimilarity: number | null; - typeTrgmSimilarity: number | null; - moduleTrgmSimilarity: number | null; - searchScore: number | null; } export interface View { id: string | null; @@ -358,11 +291,6 @@ export interface View { module: string | null; scope: number | null; tags: string[] | null; - nameTrgmSimilarity: number | null; - viewTypeTrgmSimilarity: number | null; - filterTypeTrgmSimilarity: number | null; - moduleTrgmSimilarity: number | null; - searchScore: number | null; } export interface ViewTable { id: string | null; @@ -378,9 +306,6 @@ export interface ViewGrant { privilege: string | null; withGrantOption: boolean | null; isGrant: boolean | null; - granteeNameTrgmSimilarity: number | null; - privilegeTrgmSimilarity: number | null; - searchScore: number | null; } export interface ViewRule { id: string | null; @@ -389,10 +314,26 @@ export interface ViewRule { name: string | null; event: string | null; action: string | null; - nameTrgmSimilarity: number | null; - eventTrgmSimilarity: number | null; - actionTrgmSimilarity: number | null; - searchScore: number | null; +} +export interface EmbeddingChunk { + id: string | null; + databaseId: string | null; + tableId: string | null; + embeddingFieldId: string | null; + chunksTableId: string | null; + chunksTableName: string | null; + contentFieldName: string | null; + dimensions: number | null; + metric: string | null; + chunkSize: number | null; + chunkOverlap: number | null; + chunkStrategy: string | null; + metadataFields: unknown | null; + enqueueChunkingJob: boolean | null; + chunkingTaskName: string | null; + parentFkFieldId: string | null; + createdAt: string | null; + updatedAt: string | null; } export interface TableTemplateModule { id: string | null; @@ -404,9 +345,6 @@ export interface TableTemplateModule { tableName: string | null; nodeType: string | null; data: unknown | null; - tableNameTrgmSimilarity: number | null; - nodeTypeTrgmSimilarity: number | null; - searchScore: number | null; } export interface SecureTableProvision { id: string | null; @@ -417,9 +355,9 @@ export interface SecureTableProvision { nodeType: string | null; useRls: boolean | null; nodeData: unknown | null; - fields: unknown | null; + fields: unknown[] | null; grantRoles: string[] | null; - grantPrivileges: unknown | null; + grantPrivileges: unknown[] | null; policyType: string | null; policyPrivileges: string[] | null; policyRole: string | null; @@ -427,12 +365,6 @@ export interface SecureTableProvision { policyName: string | null; policyData: unknown | null; outFields: string[] | null; - tableNameTrgmSimilarity: number | null; - nodeTypeTrgmSimilarity: number | null; - policyTypeTrgmSimilarity: number | null; - policyRoleTrgmSimilarity: number | null; - policyNameTrgmSimilarity: number | null; - searchScore: number | null; } export interface RelationProvision { id: string | null; @@ -443,16 +375,19 @@ export interface RelationProvision { fieldName: string | null; deleteAction: string | null; isRequired: boolean | null; + apiRequired: boolean | null; junctionTableId: string | null; junctionTableName: string | null; junctionSchemaId: string | null; sourceFieldName: string | null; targetFieldName: string | null; useCompositeKey: boolean | null; + createIndex: boolean | null; + exposeInApi: boolean | null; nodeType: string | null; nodeData: unknown | null; grantRoles: string[] | null; - grantPrivileges: unknown | null; + grantPrivileges: unknown[] | null; policyType: string | null; policyPrivileges: string[] | null; policyRole: string | null; @@ -463,17 +398,6 @@ export interface RelationProvision { outJunctionTableId: string | null; outSourceFieldId: string | null; outTargetFieldId: string | null; - relationTypeTrgmSimilarity: number | null; - fieldNameTrgmSimilarity: number | null; - deleteActionTrgmSimilarity: number | null; - junctionTableNameTrgmSimilarity: number | null; - sourceFieldNameTrgmSimilarity: number | null; - targetFieldNameTrgmSimilarity: number | null; - nodeTypeTrgmSimilarity: number | null; - policyTypeTrgmSimilarity: number | null; - policyRoleTrgmSimilarity: number | null; - policyNameTrgmSimilarity: number | null; - searchScore: number | null; } export interface SchemaGrant { id: string | null; @@ -482,8 +406,6 @@ export interface SchemaGrant { granteeName: string | null; createdAt: string | null; updatedAt: string | null; - granteeNameTrgmSimilarity: number | null; - searchScore: number | null; } export interface DefaultPrivilege { id: string | null; @@ -493,10 +415,20 @@ export interface DefaultPrivilege { privilege: string | null; granteeName: string | null; isGrant: boolean | null; - objectTypeTrgmSimilarity: number | null; - privilegeTrgmSimilarity: number | null; - granteeNameTrgmSimilarity: number | null; - searchScore: number | null; +} +export interface Enum { + id: string | null; + databaseId: string | null; + schemaId: string | null; + name: string | null; + label: string | null; + description: string | null; + values: string[] | null; + smartTags: unknown | null; + category: ObjectCategory | null; + module: string | null; + scope: number | null; + tags: string[] | null; } export interface ApiSchema { id: string | null; @@ -510,8 +442,6 @@ export interface ApiModule { apiId: string | null; name: string | null; data: unknown | null; - nameTrgmSimilarity: number | null; - searchScore: number | null; } export interface Domain { id: string | null; @@ -528,9 +458,6 @@ export interface SiteMetadatum { title: string | null; description: string | null; ogImage: ConstructiveInternalTypeImage | null; - titleTrgmSimilarity: number | null; - descriptionTrgmSimilarity: number | null; - searchScore: number | null; } export interface SiteModule { id: string | null; @@ -538,8 +465,6 @@ export interface SiteModule { siteId: string | null; name: string | null; data: unknown | null; - nameTrgmSimilarity: number | null; - searchScore: number | null; } export interface SiteTheme { id: string | null; @@ -554,9 +479,22 @@ export interface TriggerFunction { code: string | null; createdAt: string | null; updatedAt: string | null; - nameTrgmSimilarity: number | null; - codeTrgmSimilarity: number | null; - searchScore: number | null; +} +export interface DatabaseTransfer { + id: string | null; + databaseId: string | null; + targetOwnerId: string | null; + sourceApproved: boolean | null; + targetApproved: boolean | null; + sourceApprovedAt: string | null; + targetApprovedAt: string | null; + status: string | null; + initiatedBy: string | null; + notes: string | null; + expiresAt: string | null; + createdAt: string | null; + updatedAt: string | null; + completedAt: string | null; } export interface Api { id: string | null; @@ -566,11 +504,6 @@ export interface Api { roleName: string | null; anonRole: string | null; isPublic: boolean | null; - nameTrgmSimilarity: number | null; - dbnameTrgmSimilarity: number | null; - roleNameTrgmSimilarity: number | null; - anonRoleTrgmSimilarity: number | null; - searchScore: number | null; } export interface Site { id: string | null; @@ -582,10 +515,6 @@ export interface Site { appleTouchIcon: ConstructiveInternalTypeImage | null; logo: ConstructiveInternalTypeImage | null; dbname: string | null; - titleTrgmSimilarity: number | null; - descriptionTrgmSimilarity: number | null; - dbnameTrgmSimilarity: number | null; - searchScore: number | null; } export interface App { id: string | null; @@ -597,10 +526,6 @@ export interface App { appStoreId: string | null; appIdPrefix: string | null; playStoreLink: ConstructiveInternalTypeUrl | null; - nameTrgmSimilarity: number | null; - appStoreIdTrgmSimilarity: number | null; - appIdPrefixTrgmSimilarity: number | null; - searchScore: number | null; } export interface ConnectedAccountsModule { id: string | null; @@ -610,8 +535,6 @@ export interface ConnectedAccountsModule { tableId: string | null; ownerTableId: string | null; tableName: string | null; - tableNameTrgmSimilarity: number | null; - searchScore: number | null; } export interface CryptoAddressesModule { id: string | null; @@ -622,9 +545,6 @@ export interface CryptoAddressesModule { ownerTableId: string | null; tableName: string | null; cryptoNetwork: string | null; - tableNameTrgmSimilarity: number | null; - cryptoNetworkTrgmSimilarity: number | null; - searchScore: number | null; } export interface CryptoAuthModule { id: string | null; @@ -641,13 +561,6 @@ export interface CryptoAuthModule { signInRecordFailure: string | null; signUpWithKey: string | null; signInWithChallenge: string | null; - userFieldTrgmSimilarity: number | null; - cryptoNetworkTrgmSimilarity: number | null; - signInRequestChallengeTrgmSimilarity: number | null; - signInRecordFailureTrgmSimilarity: number | null; - signUpWithKeyTrgmSimilarity: number | null; - signInWithChallengeTrgmSimilarity: number | null; - searchScore: number | null; } export interface DefaultIdsModule { id: string | null; @@ -666,8 +579,6 @@ export interface DenormalizedTableField { updateDefaults: boolean | null; funcName: string | null; funcOrder: number | null; - funcNameTrgmSimilarity: number | null; - searchScore: number | null; } export interface EmailsModule { id: string | null; @@ -677,8 +588,6 @@ export interface EmailsModule { tableId: string | null; ownerTableId: string | null; tableName: string | null; - tableNameTrgmSimilarity: number | null; - searchScore: number | null; } export interface EncryptedSecretsModule { id: string | null; @@ -686,8 +595,6 @@ export interface EncryptedSecretsModule { schemaId: string | null; tableId: string | null; tableName: string | null; - tableNameTrgmSimilarity: number | null; - searchScore: number | null; } export interface FieldModule { id: string | null; @@ -699,8 +606,6 @@ export interface FieldModule { data: unknown | null; triggers: string[] | null; functions: string[] | null; - nodeTypeTrgmSimilarity: number | null; - searchScore: number | null; } export interface InvitesModule { id: string | null; @@ -717,11 +622,6 @@ export interface InvitesModule { prefix: string | null; membershipType: number | null; entityTableId: string | null; - invitesTableNameTrgmSimilarity: number | null; - claimedInvitesTableNameTrgmSimilarity: number | null; - submitInviteCodeFunctionTrgmSimilarity: number | null; - prefixTrgmSimilarity: number | null; - searchScore: number | null; } export interface LevelsModule { id: string | null; @@ -750,22 +650,6 @@ export interface LevelsModule { membershipType: number | null; entityTableId: string | null; actorTableId: string | null; - stepsTableNameTrgmSimilarity: number | null; - achievementsTableNameTrgmSimilarity: number | null; - levelsTableNameTrgmSimilarity: number | null; - levelRequirementsTableNameTrgmSimilarity: number | null; - completedStepTrgmSimilarity: number | null; - incompletedStepTrgmSimilarity: number | null; - tgAchievementTrgmSimilarity: number | null; - tgAchievementToggleTrgmSimilarity: number | null; - tgAchievementToggleBooleanTrgmSimilarity: number | null; - tgAchievementBooleanTrgmSimilarity: number | null; - upsertAchievementTrgmSimilarity: number | null; - tgUpdateAchievementsTrgmSimilarity: number | null; - stepsRequiredTrgmSimilarity: number | null; - levelAchievedTrgmSimilarity: number | null; - prefixTrgmSimilarity: number | null; - searchScore: number | null; } export interface LimitsModule { id: string | null; @@ -786,16 +670,6 @@ export interface LimitsModule { membershipType: number | null; entityTableId: string | null; actorTableId: string | null; - tableNameTrgmSimilarity: number | null; - defaultTableNameTrgmSimilarity: number | null; - limitIncrementFunctionTrgmSimilarity: number | null; - limitDecrementFunctionTrgmSimilarity: number | null; - limitIncrementTriggerTrgmSimilarity: number | null; - limitDecrementTriggerTrgmSimilarity: number | null; - limitUpdateTriggerTrgmSimilarity: number | null; - limitCheckFunctionTrgmSimilarity: number | null; - prefixTrgmSimilarity: number | null; - searchScore: number | null; } export interface MembershipTypesModule { id: string | null; @@ -803,8 +677,6 @@ export interface MembershipTypesModule { schemaId: string | null; tableId: string | null; tableName: string | null; - tableNameTrgmSimilarity: number | null; - searchScore: number | null; } export interface MembershipsModule { id: string | null; @@ -838,19 +710,6 @@ export interface MembershipsModule { entityIdsByMask: string | null; entityIdsByPerm: string | null; entityIdsFunction: string | null; - membershipsTableNameTrgmSimilarity: number | null; - membersTableNameTrgmSimilarity: number | null; - membershipDefaultsTableNameTrgmSimilarity: number | null; - grantsTableNameTrgmSimilarity: number | null; - adminGrantsTableNameTrgmSimilarity: number | null; - ownerGrantsTableNameTrgmSimilarity: number | null; - prefixTrgmSimilarity: number | null; - actorMaskCheckTrgmSimilarity: number | null; - actorPermCheckTrgmSimilarity: number | null; - entityIdsByMaskTrgmSimilarity: number | null; - entityIdsByPermTrgmSimilarity: number | null; - entityIdsFunctionTrgmSimilarity: number | null; - searchScore: number | null; } export interface PermissionsModule { id: string | null; @@ -870,14 +729,6 @@ export interface PermissionsModule { getMask: string | null; getByMask: string | null; getMaskByName: string | null; - tableNameTrgmSimilarity: number | null; - defaultTableNameTrgmSimilarity: number | null; - prefixTrgmSimilarity: number | null; - getPaddedMaskTrgmSimilarity: number | null; - getMaskTrgmSimilarity: number | null; - getByMaskTrgmSimilarity: number | null; - getMaskByNameTrgmSimilarity: number | null; - searchScore: number | null; } export interface PhoneNumbersModule { id: string | null; @@ -887,8 +738,6 @@ export interface PhoneNumbersModule { tableId: string | null; ownerTableId: string | null; tableName: string | null; - tableNameTrgmSimilarity: number | null; - searchScore: number | null; } export interface ProfilesModule { id: string | null; @@ -909,12 +758,6 @@ export interface ProfilesModule { permissionsTableId: string | null; membershipsTableId: string | null; prefix: string | null; - tableNameTrgmSimilarity: number | null; - profilePermissionsTableNameTrgmSimilarity: number | null; - profileGrantsTableNameTrgmSimilarity: number | null; - profileDefinitionGrantsTableNameTrgmSimilarity: number | null; - prefixTrgmSimilarity: number | null; - searchScore: number | null; } export interface SecretsModule { id: string | null; @@ -922,8 +765,6 @@ export interface SecretsModule { schemaId: string | null; tableId: string | null; tableName: string | null; - tableNameTrgmSimilarity: number | null; - searchScore: number | null; } export interface SessionsModule { id: string | null; @@ -937,10 +778,6 @@ export interface SessionsModule { sessionsTable: string | null; sessionCredentialsTable: string | null; authSettingsTable: string | null; - sessionsTableTrgmSimilarity: number | null; - sessionCredentialsTableTrgmSimilarity: number | null; - authSettingsTableTrgmSimilarity: number | null; - searchScore: number | null; } export interface UserAuthModule { id: string | null; @@ -969,23 +806,6 @@ export interface UserAuthModule { signInOneTimeTokenFunction: string | null; oneTimeTokenFunction: string | null; extendTokenExpires: string | null; - auditsTableNameTrgmSimilarity: number | null; - signInFunctionTrgmSimilarity: number | null; - signUpFunctionTrgmSimilarity: number | null; - signOutFunctionTrgmSimilarity: number | null; - setPasswordFunctionTrgmSimilarity: number | null; - resetPasswordFunctionTrgmSimilarity: number | null; - forgotPasswordFunctionTrgmSimilarity: number | null; - sendVerificationEmailFunctionTrgmSimilarity: number | null; - verifyEmailFunctionTrgmSimilarity: number | null; - verifyPasswordFunctionTrgmSimilarity: number | null; - checkPasswordFunctionTrgmSimilarity: number | null; - sendAccountDeletionEmailFunctionTrgmSimilarity: number | null; - deleteAccountFunctionTrgmSimilarity: number | null; - signInOneTimeTokenFunctionTrgmSimilarity: number | null; - oneTimeTokenFunctionTrgmSimilarity: number | null; - extendTokenExpiresTrgmSimilarity: number | null; - searchScore: number | null; } export interface UsersModule { id: string | null; @@ -995,19 +815,47 @@ export interface UsersModule { tableName: string | null; typeTableId: string | null; typeTableName: string | null; - tableNameTrgmSimilarity: number | null; - typeTableNameTrgmSimilarity: number | null; - searchScore: number | null; } -export interface UuidModule { +export interface Blueprint { id: string | null; + ownerId: string | null; databaseId: string | null; - schemaId: string | null; - uuidFunction: string | null; - uuidSeed: string | null; - uuidFunctionTrgmSimilarity: number | null; - uuidSeedTrgmSimilarity: number | null; - searchScore: number | null; + name: string | null; + displayName: string | null; + description: string | null; + definition: unknown | null; + templateId: string | null; + status: string | null; + constructedAt: string | null; + errorDetails: string | null; + refMap: unknown | null; + constructedDefinition: unknown | null; + definitionHash: string | null; + tableHashes: unknown | null; + createdAt: string | null; + updatedAt: string | null; +} +export interface BlueprintTemplate { + id: string | null; + name: string | null; + version: string | null; + displayName: string | null; + description: string | null; + ownerId: string | null; + visibility: string | null; + categories: string[] | null; + tags: string[] | null; + definition: unknown | null; + definitionSchemaVersion: string | null; + source: string | null; + complexity: string | null; + copyCount: number | null; + forkCount: number | null; + forkedFromId: string | null; + definitionHash: string | null; + tableHashes: unknown | null; + createdAt: string | null; + updatedAt: string | null; } export interface DatabaseProvisionModule { id: string | null; @@ -1024,12 +872,6 @@ export interface DatabaseProvisionModule { createdAt: string | null; updatedAt: string | null; completedAt: string | null; - databaseNameTrgmSimilarity: number | null; - subdomainTrgmSimilarity: number | null; - domainTrgmSimilarity: number | null; - statusTrgmSimilarity: number | null; - errorMessageTrgmSimilarity: number | null; - searchScore: number | null; } export interface AppAdminGrant { id: string | null; @@ -1117,8 +959,6 @@ export interface OrgChartEdge { parentId: string | null; positionTitle: string | null; positionLevel: number | null; - positionTitleTrgmSimilarity: number | null; - searchScore: number | null; } export interface OrgChartEdgeGrant { id: string | null; @@ -1130,8 +970,11 @@ export interface OrgChartEdgeGrant { positionTitle: string | null; positionLevel: number | null; createdAt: string | null; - positionTitleTrgmSimilarity: number | null; - searchScore: number | null; +} +export interface OrgPermissionDefault { + id: string | null; + permissions: string | null; + entityId: string | null; } export interface AppLimit { id: string | null; @@ -1164,6 +1007,53 @@ export interface AppAchievement { createdAt: string | null; updatedAt: string | null; } +export interface AppLevel { + id: string | null; + name: string | null; + description: string | null; + image: ConstructiveInternalTypeImage | null; + ownerId: string | null; + createdAt: string | null; + updatedAt: string | null; +} +export interface Email { + id: string | null; + ownerId: string | null; + email: ConstructiveInternalTypeEmail | null; + isVerified: boolean | null; + isPrimary: boolean | null; + createdAt: string | null; + updatedAt: string | null; +} +export interface PhoneNumber { + id: string | null; + ownerId: string | null; + cc: string | null; + number: string | null; + isVerified: boolean | null; + isPrimary: boolean | null; + createdAt: string | null; + updatedAt: string | null; +} +export interface CryptoAddress { + id: string | null; + ownerId: string | null; + address: string | null; + isVerified: boolean | null; + isPrimary: boolean | null; + createdAt: string | null; + updatedAt: string | null; +} +export interface ConnectedAccount { + id: string | null; + ownerId: string | null; + service: string | null; + identifier: string | null; + details: unknown | null; + isVerified: boolean | null; + createdAt: string | null; + updatedAt: string | null; +} export interface Invite { id: string | null; email: ConstructiveInternalTypeEmail | null; @@ -1177,8 +1067,6 @@ export interface Invite { expiresAt: string | null; createdAt: string | null; updatedAt: string | null; - inviteTokenTrgmSimilarity: number | null; - searchScore: number | null; } export interface ClaimedInvite { id: string | null; @@ -1203,8 +1091,6 @@ export interface OrgInvite { createdAt: string | null; updatedAt: string | null; entityId: string | null; - inviteTokenTrgmSimilarity: number | null; - searchScore: number | null; } export interface OrgClaimedInvite { id: string | null; @@ -1215,14 +1101,22 @@ export interface OrgClaimedInvite { updatedAt: string | null; entityId: string | null; } +export interface AuditLog { + id: string | null; + event: string | null; + actorId: string | null; + origin: ConstructiveInternalTypeOrigin | null; + userAgent: string | null; + ipAddress: string | null; + success: boolean | null; + createdAt: string | null; +} export interface Ref { id: string | null; name: string | null; databaseId: string | null; storeId: string | null; commitId: string | null; - nameTrgmSimilarity: number | null; - searchScore: number | null; } export interface Store { id: string | null; @@ -1230,46 +1124,15 @@ export interface Store { databaseId: string | null; hash: string | null; createdAt: string | null; - nameTrgmSimilarity: number | null; - searchScore: number | null; } export interface AppPermissionDefault { id: string | null; permissions: string | null; } -export interface CryptoAddress { - id: string | null; - ownerId: string | null; - address: string | null; - isVerified: boolean | null; - isPrimary: boolean | null; - createdAt: string | null; - updatedAt: string | null; - addressTrgmSimilarity: number | null; - searchScore: number | null; -} export interface RoleType { id: number | null; name: string | null; } -export interface OrgPermissionDefault { - id: string | null; - permissions: string | null; - entityId: string | null; -} -export interface PhoneNumber { - id: string | null; - ownerId: string | null; - cc: string | null; - number: string | null; - isVerified: boolean | null; - isPrimary: boolean | null; - createdAt: string | null; - updatedAt: string | null; - ccTrgmSimilarity: number | null; - numberTrgmSimilarity: number | null; - searchScore: number | null; -} export interface AppLimitDefault { id: string | null; name: string | null; @@ -1280,19 +1143,6 @@ export interface OrgLimitDefault { name: string | null; max: number | null; } -export interface ConnectedAccount { - id: string | null; - ownerId: string | null; - service: string | null; - identifier: string | null; - details: unknown | null; - isVerified: boolean | null; - createdAt: string | null; - updatedAt: string | null; - serviceTrgmSimilarity: number | null; - identifierTrgmSimilarity: number | null; - searchScore: number | null; -} export interface NodeTypeRegistry { name: string | null; slug: string | null; @@ -1303,21 +1153,12 @@ export interface NodeTypeRegistry { tags: string[] | null; createdAt: string | null; updatedAt: string | null; - nameTrgmSimilarity: number | null; - slugTrgmSimilarity: number | null; - categoryTrgmSimilarity: number | null; - displayNameTrgmSimilarity: number | null; - descriptionTrgmSimilarity: number | null; - searchScore: number | null; } export interface MembershipType { id: number | null; name: string | null; description: string | null; prefix: string | null; - descriptionTrgmSimilarity: number | null; - prefixTrgmSimilarity: number | null; - searchScore: number | null; } export interface Commit { id: string | null; @@ -1329,8 +1170,6 @@ export interface Commit { committerId: string | null; treeId: string | null; date: string | null; - messageTrgmSimilarity: number | null; - searchScore: number | null; } export interface AppMembershipDefault { id: string | null; @@ -1353,11 +1192,6 @@ export interface RlsModule { authenticateStrict: string | null; currentRole: string | null; currentRoleId: string | null; - authenticateTrgmSimilarity: number | null; - authenticateStrictTrgmSimilarity: number | null; - currentRoleTrgmSimilarity: number | null; - currentRoleIdTrgmSimilarity: number | null; - searchScore: number | null; } export interface OrgMembershipDefault { id: string | null; @@ -1370,29 +1204,6 @@ export interface OrgMembershipDefault { deleteMemberCascadeGroups: boolean | null; createGroupsCascadeMembers: boolean | null; } -export interface AuditLog { - id: string | null; - event: string | null; - actorId: string | null; - origin: ConstructiveInternalTypeOrigin | null; - userAgent: string | null; - ipAddress: string | null; - success: boolean | null; - createdAt: string | null; - userAgentTrgmSimilarity: number | null; - searchScore: number | null; -} -export interface AppLevel { - id: string | null; - name: string | null; - description: string | null; - image: ConstructiveInternalTypeImage | null; - ownerId: string | null; - createdAt: string | null; - updatedAt: string | null; - descriptionTrgmSimilarity: number | null; - searchScore: number | null; -} export interface SqlMigration { id: number | null; name: string | null; @@ -1407,22 +1218,6 @@ export interface SqlMigration { action: string | null; actionId: string | null; actorId: string | null; - nameTrgmSimilarity: number | null; - deployTrgmSimilarity: number | null; - contentTrgmSimilarity: number | null; - revertTrgmSimilarity: number | null; - verifyTrgmSimilarity: number | null; - actionTrgmSimilarity: number | null; - searchScore: number | null; -} -export interface Email { - id: string | null; - ownerId: string | null; - email: ConstructiveInternalTypeEmail | null; - isVerified: boolean | null; - isPrimary: boolean | null; - createdAt: string | null; - updatedAt: string | null; } export interface User { id: string | null; @@ -1451,8 +1246,6 @@ export interface AstMigration { action: string | null; actionId: string | null; actorId: string | null; - actionTrgmSimilarity: number | null; - searchScore: number | null; } export interface AppMembership { id: string | null; @@ -1493,17 +1286,6 @@ export interface HierarchyModule { getManagersFunction: string | null; isManagerOfFunction: string | null; createdAt: string | null; - chartEdgesTableNameTrgmSimilarity: number | null; - hierarchySprtTableNameTrgmSimilarity: number | null; - chartEdgeGrantsTableNameTrgmSimilarity: number | null; - prefixTrgmSimilarity: number | null; - privateSchemaNameTrgmSimilarity: number | null; - sprtTableNameTrgmSimilarity: number | null; - rebuildHierarchyFunctionTrgmSimilarity: number | null; - getSubordinatesFunctionTrgmSimilarity: number | null; - getManagersFunctionTrgmSimilarity: number | null; - isManagerOfFunctionTrgmSimilarity: number | null; - searchScore: number | null; } export interface StringFilter { isNull?: boolean; diff --git a/sdk/constructive-sdk/README.md b/sdk/constructive-sdk/README.md index 26735893d..ec3441f5c 100644 --- a/sdk/constructive-sdk/README.md +++ b/sdk/constructive-sdk/README.md @@ -4,14 +4,6 @@

-

- - - - - -

- ## APIs diff --git a/sdk/constructive-sdk/schemas/admin.graphql b/sdk/constructive-sdk/schemas/admin.graphql index 8f9b1f689..bd26022e5 100644 --- a/sdk/constructive-sdk/schemas/admin.graphql +++ b/sdk/constructive-sdk/schemas/admin.graphql @@ -1107,16 +1107,6 @@ type AppPermission { """Human-readable description of what this permission allows""" description: String - - """ - TRGM similarity when searching `description`. Returns null when no trgm search filter is active. - """ - descriptionTrgmSimilarity: Float - - """ - Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. - """ - searchScore: Float } """A `AppPermission` edge in the connection.""" @@ -1166,16 +1156,6 @@ type OrgPermission { """Human-readable description of what this permission allows""" description: String - - """ - TRGM similarity when searching `description`. Returns null when no trgm search filter is active. - """ - descriptionTrgmSimilarity: Float - - """ - Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. - """ - searchScore: Float } """A `OrgPermission` edge in the connection.""" @@ -1226,16 +1206,6 @@ type AppLevelRequirement { priority: Int! createdAt: Datetime updatedAt: Datetime - - """ - TRGM similarity when searching `description`. Returns null when no trgm search filter is active. - """ - descriptionTrgmSimilarity: Float - - """ - Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. - """ - searchScore: Float } """ @@ -1603,6 +1573,8 @@ enum OrgPermissionDefaultOrderBy { PRIMARY_KEY_DESC ID_ASC ID_DESC + ENTITY_ID_ASC + ENTITY_ID_DESC } """A connection to a list of `AppAdminGrant` values.""" @@ -1726,6 +1698,8 @@ enum AppAdminGrantOrderBy { PRIMARY_KEY_DESC ID_ASC ID_DESC + ACTOR_ID_ASC + ACTOR_ID_DESC GRANTOR_ID_ASC GRANTOR_ID_DESC CREATED_AT_ASC @@ -1813,6 +1787,8 @@ enum AppOwnerGrantOrderBy { PRIMARY_KEY_DESC ID_ASC ID_DESC + ACTOR_ID_ASC + ACTOR_ID_DESC GRANTOR_ID_ASC GRANTOR_ID_DESC CREATED_AT_ASC @@ -1906,6 +1882,8 @@ enum OrgAdminGrantOrderBy { PRIMARY_KEY_DESC ID_ASC ID_DESC + ACTOR_ID_ASC + ACTOR_ID_DESC ENTITY_ID_ASC ENTITY_ID_DESC GRANTOR_ID_ASC @@ -2001,6 +1979,8 @@ enum OrgOwnerGrantOrderBy { PRIMARY_KEY_DESC ID_ASC ID_DESC + ACTOR_ID_ASC + ACTOR_ID_DESC ENTITY_ID_ASC ENTITY_ID_DESC GRANTOR_ID_ASC @@ -2205,29 +2185,6 @@ input StringFilter { """Greater than or equal to the specified value (case-insensitive).""" greaterThanOrEqualToInsensitive: String - - """ - Fuzzy matches using pg_trgm trigram similarity. Tolerates typos and misspellings. - """ - similarTo: TrgmSearchInput - - """ - Fuzzy matches using pg_trgm word_similarity. Finds the best matching substring within the column value. - """ - wordSimilarTo: TrgmSearchInput -} - -""" -Input for pg_trgm fuzzy text matching. Provide a search value and optional similarity threshold. -""" -input TrgmSearchInput { - """The text to fuzzy-match against. Typos and misspellings are tolerated.""" - value: String! - - """ - Minimum similarity threshold (0.0 to 1.0). Higher = stricter matching. Default is 0.3. - """ - threshold: Float } """ @@ -2392,8 +2349,10 @@ type OrgChartEdgeGrant { """User ID of the manager being assigned; NULL for top-level positions""" parentId: UUID - """User ID of the admin who performed this grant or revocation""" - grantorId: UUID! + """ + User ID of the admin who performed this grant or revocation; NULL if grantor was deleted + """ + grantorId: UUID """TRUE to add/update the edge, FALSE to remove it""" isGrant: Boolean! @@ -2406,16 +2365,6 @@ type OrgChartEdgeGrant { """Timestamp when this grant or revocation was recorded""" createdAt: Datetime! - - """ - TRGM similarity when searching `positionTitle`. Returns null when no trgm search filter is active. - """ - positionTitleTrgmSimilarity: Float - - """ - Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. - """ - searchScore: Float } """A `OrgChartEdgeGrant` edge in the connection.""" @@ -2466,17 +2415,6 @@ input OrgChartEdgeGrantFilter { """Negates the expression.""" not: OrgChartEdgeGrantFilter - - """TRGM search on the `position_title` column.""" - trgmPositionTitle: TrgmSearchInput - - """ - Composite full-text search. Provide a search string and it will be dispatched - to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - simultaneously. Rows matching ANY algorithm are returned. All matching score - fields are populated. - """ - fullTextSearch: String } """Methods to use when ordering `OrgChartEdgeGrant`.""" @@ -2494,10 +2432,6 @@ enum OrgChartEdgeGrantOrderBy { PARENT_ID_DESC GRANTOR_ID_ASC GRANTOR_ID_DESC - POSITION_TITLE_TRGM_SIMILARITY_ASC - POSITION_TITLE_TRGM_SIMILARITY_DESC - SEARCH_SCORE_ASC - SEARCH_SCORE_DESC } """A connection to a list of `MembershipType` values.""" @@ -2536,21 +2470,6 @@ type MembershipType { Short prefix used to namespace tables and functions for this membership scope """ prefix: String! - - """ - TRGM similarity when searching `description`. Returns null when no trgm search filter is active. - """ - descriptionTrgmSimilarity: Float - - """ - TRGM similarity when searching `prefix`. Returns null when no trgm search filter is active. - """ - prefixTrgmSimilarity: Float - - """ - Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. - """ - searchScore: Float } """A `MembershipType` edge in the connection.""" @@ -2586,20 +2505,6 @@ input MembershipTypeFilter { """Negates the expression.""" not: MembershipTypeFilter - - """TRGM search on the `description` column.""" - trgmDescription: TrgmSearchInput - - """TRGM search on the `prefix` column.""" - trgmPrefix: TrgmSearchInput - - """ - Composite full-text search. Provide a search string and it will be dispatched - to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - simultaneously. Rows matching ANY algorithm are returned. All matching score - fields are populated. - """ - fullTextSearch: String } """Methods to use when ordering `MembershipType`.""" @@ -2611,12 +2516,6 @@ enum MembershipTypeOrderBy { ID_DESC NAME_ASC NAME_DESC - DESCRIPTION_TRGM_SIMILARITY_ASC - DESCRIPTION_TRGM_SIMILARITY_DESC - PREFIX_TRGM_SIMILARITY_ASC - PREFIX_TRGM_SIMILARITY_DESC - SEARCH_SCORE_ASC - SEARCH_SCORE_DESC } """ @@ -2646,17 +2545,6 @@ input AppPermissionFilter { """Negates the expression.""" not: AppPermissionFilter - - """TRGM search on the `description` column.""" - trgmDescription: TrgmSearchInput - - """ - Composite full-text search. Provide a search string and it will be dispatched - to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - simultaneously. Rows matching ANY algorithm are returned. All matching score - fields are populated. - """ - fullTextSearch: String } """Methods to use when ordering `AppPermission`.""" @@ -2670,10 +2558,6 @@ enum AppPermissionOrderBy { NAME_DESC BITNUM_ASC BITNUM_DESC - DESCRIPTION_TRGM_SIMILARITY_ASC - DESCRIPTION_TRGM_SIMILARITY_DESC - SEARCH_SCORE_ASC - SEARCH_SCORE_DESC } """ @@ -2703,17 +2587,6 @@ input OrgPermissionFilter { """Negates the expression.""" not: OrgPermissionFilter - - """TRGM search on the `description` column.""" - trgmDescription: TrgmSearchInput - - """ - Composite full-text search. Provide a search string and it will be dispatched - to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - simultaneously. Rows matching ANY algorithm are returned. All matching score - fields are populated. - """ - fullTextSearch: String } """Methods to use when ordering `OrgPermission`.""" @@ -2727,10 +2600,6 @@ enum OrgPermissionOrderBy { NAME_DESC BITNUM_ASC BITNUM_DESC - DESCRIPTION_TRGM_SIMILARITY_ASC - DESCRIPTION_TRGM_SIMILARITY_DESC - SEARCH_SCORE_ASC - SEARCH_SCORE_DESC } """A connection to a list of `AppLimit` values.""" @@ -3182,6 +3051,8 @@ enum AppGrantOrderBy { PRIMARY_KEY_DESC ID_ASC ID_DESC + ACTOR_ID_ASC + ACTOR_ID_DESC GRANTOR_ID_ASC GRANTOR_ID_DESC CREATED_AT_ASC @@ -3472,6 +3343,8 @@ enum OrgClaimedInviteOrderBy { CREATED_AT_DESC UPDATED_AT_ASC UPDATED_AT_DESC + ENTITY_ID_ASC + ENTITY_ID_DESC } """A connection to a list of `OrgGrant` values.""" @@ -3567,6 +3440,8 @@ enum OrgGrantOrderBy { PRIMARY_KEY_DESC ID_ASC ID_DESC + ACTOR_ID_ASC + ACTOR_ID_DESC ENTITY_ID_ASC ENTITY_ID_DESC GRANTOR_ID_ASC @@ -3618,16 +3493,6 @@ type OrgChartEdge { """Numeric seniority level for this position (higher = more senior)""" positionLevel: Int - - """ - TRGM similarity when searching `positionTitle`. Returns null when no trgm search filter is active. - """ - positionTitleTrgmSimilarity: Float - - """ - Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. - """ - searchScore: Float } """A `OrgChartEdge` edge in the connection.""" @@ -3675,17 +3540,6 @@ input OrgChartEdgeFilter { """Negates the expression.""" not: OrgChartEdgeFilter - - """TRGM search on the `position_title` column.""" - trgmPositionTitle: TrgmSearchInput - - """ - Composite full-text search. Provide a search string and it will be dispatched - to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - simultaneously. Rows matching ANY algorithm are returned. All matching score - fields are populated. - """ - fullTextSearch: String } """Methods to use when ordering `OrgChartEdge`.""" @@ -3705,10 +3559,6 @@ enum OrgChartEdgeOrderBy { CHILD_ID_DESC PARENT_ID_ASC PARENT_ID_DESC - POSITION_TITLE_TRGM_SIMILARITY_ASC - POSITION_TITLE_TRGM_SIMILARITY_DESC - SEARCH_SCORE_ASC - SEARCH_SCORE_DESC } """A connection to a list of `OrgMembershipDefault` values.""" @@ -3862,17 +3712,6 @@ input AppLevelRequirementFilter { """Negates the expression.""" not: AppLevelRequirementFilter - - """TRGM search on the `description` column.""" - trgmDescription: TrgmSearchInput - - """ - Composite full-text search. Provide a search string and it will be dispatched - to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - simultaneously. Rows matching ANY algorithm are returned. All matching score - fields are populated. - """ - fullTextSearch: String } """Methods to use when ordering `AppLevelRequirement`.""" @@ -3892,10 +3731,6 @@ enum AppLevelRequirementOrderBy { CREATED_AT_DESC UPDATED_AT_ASC UPDATED_AT_DESC - DESCRIPTION_TRGM_SIMILARITY_ASC - DESCRIPTION_TRGM_SIMILARITY_DESC - SEARCH_SCORE_ASC - SEARCH_SCORE_DESC } """A connection to a list of `AppMembership` values.""" @@ -4273,16 +4108,6 @@ type Invite { expiresAt: Datetime! createdAt: Datetime updatedAt: Datetime - - """ - TRGM similarity when searching `inviteToken`. Returns null when no trgm search filter is active. - """ - inviteTokenTrgmSimilarity: Float - - """ - Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. - """ - searchScore: Float } scalar ConstructiveInternalTypeEmail @@ -4341,17 +4166,6 @@ input InviteFilter { """Negates the expression.""" not: InviteFilter - - """TRGM search on the `invite_token` column.""" - trgmInviteToken: TrgmSearchInput - - """ - Composite full-text search. Provide a search string and it will be dispatched - to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - simultaneously. Rows matching ANY algorithm are returned. All matching score - fields are populated. - """ - fullTextSearch: String } """ @@ -4507,10 +4321,6 @@ enum InviteOrderBy { CREATED_AT_DESC UPDATED_AT_ASC UPDATED_AT_DESC - INVITE_TOKEN_TRGM_SIMILARITY_ASC - INVITE_TOKEN_TRGM_SIMILARITY_DESC - SEARCH_SCORE_ASC - SEARCH_SCORE_DESC } """A connection to a list of `AppLevel` values.""" @@ -4549,16 +4359,6 @@ type AppLevel { ownerId: UUID createdAt: Datetime updatedAt: Datetime - - """ - TRGM similarity when searching `description`. Returns null when no trgm search filter is active. - """ - descriptionTrgmSimilarity: Float - - """ - Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. - """ - searchScore: Float } scalar ConstructiveInternalTypeImage @@ -4605,17 +4405,6 @@ input AppLevelFilter { """Negates the expression.""" not: AppLevelFilter - - """TRGM search on the `description` column.""" - trgmDescription: TrgmSearchInput - - """ - Composite full-text search. Provide a search string and it will be dispatched - to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - simultaneously. Rows matching ANY algorithm are returned. All matching score - fields are populated. - """ - fullTextSearch: String } """ @@ -4684,14 +4473,12 @@ enum AppLevelOrderBy { ID_DESC NAME_ASC NAME_DESC + OWNER_ID_ASC + OWNER_ID_DESC CREATED_AT_ASC CREATED_AT_DESC UPDATED_AT_ASC UPDATED_AT_DESC - DESCRIPTION_TRGM_SIMILARITY_ASC - DESCRIPTION_TRGM_SIMILARITY_DESC - SEARCH_SCORE_ASC - SEARCH_SCORE_DESC } """A connection to a list of `OrgInvite` values.""" @@ -4749,16 +4536,6 @@ type OrgInvite { createdAt: Datetime updatedAt: Datetime entityId: UUID! - - """ - TRGM similarity when searching `inviteToken`. Returns null when no trgm search filter is active. - """ - inviteTokenTrgmSimilarity: Float - - """ - Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. - """ - searchScore: Float } """A `OrgInvite` edge in the connection.""" @@ -4821,17 +4598,6 @@ input OrgInviteFilter { """Negates the expression.""" not: OrgInviteFilter - - """TRGM search on the `invite_token` column.""" - trgmInviteToken: TrgmSearchInput - - """ - Composite full-text search. Provide a search string and it will be dispatched - to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - simultaneously. Rows matching ANY algorithm are returned. All matching score - fields are populated. - """ - fullTextSearch: String } """Methods to use when ordering `OrgInvite`.""" @@ -4845,6 +4611,8 @@ enum OrgInviteOrderBy { EMAIL_DESC SENDER_ID_ASC SENDER_ID_DESC + RECEIVER_ID_ASC + RECEIVER_ID_DESC INVITE_TOKEN_ASC INVITE_TOKEN_DESC INVITE_VALID_ASC @@ -4857,10 +4625,6 @@ enum OrgInviteOrderBy { UPDATED_AT_DESC ENTITY_ID_ASC ENTITY_ID_DESC - INVITE_TOKEN_TRGM_SIMILARITY_ASC - INVITE_TOKEN_TRGM_SIMILARITY_DESC - SEARCH_SCORE_ASC - SEARCH_SCORE_DESC } """Root meta schema type""" @@ -6285,8 +6049,10 @@ input OrgChartEdgeGrantInput { """User ID of the manager being assigned; NULL for top-level positions""" parentId: UUID - """User ID of the admin who performed this grant or revocation""" - grantorId: UUID! + """ + User ID of the admin who performed this grant or revocation; NULL if grantor was deleted + """ + grantorId: UUID """TRUE to add/update the edge, FALSE to remove it""" isGrant: Boolean @@ -7994,7 +7760,9 @@ input OrgChartEdgeGrantPatch { """User ID of the manager being assigned; NULL for top-level positions""" parentId: UUID - """User ID of the admin who performed this grant or revocation""" + """ + User ID of the admin who performed this grant or revocation; NULL if grantor was deleted + """ grantorId: UUID """TRUE to add/update the edge, FALSE to remove it""" diff --git a/sdk/constructive-sdk/schemas/auth.graphql b/sdk/constructive-sdk/schemas/auth.graphql index 0e71c1397..96741450b 100644 --- a/sdk/constructive-sdk/schemas/auth.graphql +++ b/sdk/constructive-sdk/schemas/auth.graphql @@ -235,6 +235,151 @@ type User { """Reads a single `RoleType` that is related to this `User`.""" roleType: RoleType + """Reads and enables pagination through a set of `Email`.""" + ownedEmails( + """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: EmailFilter + + """The method to use when ordering `Email`.""" + orderBy: [EmailOrderBy!] = [PRIMARY_KEY_ASC] + ): EmailConnection! + + """Reads and enables pagination through a set of `PhoneNumber`.""" + ownedPhoneNumbers( + """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: PhoneNumberFilter + + """The method to use when ordering `PhoneNumber`.""" + orderBy: [PhoneNumberOrderBy!] = [PRIMARY_KEY_ASC] + ): PhoneNumberConnection! + + """Reads and enables pagination through a set of `CryptoAddress`.""" + ownedCryptoAddresses( + """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: CryptoAddressFilter + + """The method to use when ordering `CryptoAddress`.""" + orderBy: [CryptoAddressOrderBy!] = [PRIMARY_KEY_ASC] + ): CryptoAddressConnection! + + """Reads and enables pagination through a set of `ConnectedAccount`.""" + ownedConnectedAccounts( + """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: ConnectedAccountFilter + + """The method to use when ordering `ConnectedAccount`.""" + orderBy: [ConnectedAccountOrderBy!] = [PRIMARY_KEY_ASC] + ): ConnectedAccountConnection! + + """Reads and enables pagination through a set of `AuditLog`.""" + auditLogsByActorId( + """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: AuditLogFilter + + """The method to use when ordering `AuditLog`.""" + orderBy: [AuditLogOrderBy!] = [PRIMARY_KEY_ASC] + ): AuditLogConnection! + """ TSV rank when searching `searchTsv`. Returns null when no tsv search filter is active. """ @@ -246,7 +391,7 @@ type User { displayNameTrgmSimilarity: Float """ - Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. + Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. """ searchScore: Float } @@ -270,64 +415,52 @@ type RoleType { name: String! } -"""A connection to a list of `CryptoAddress` values.""" -type CryptoAddressConnection { - """A list of `CryptoAddress` objects.""" - nodes: [CryptoAddress]! +"""A connection to a list of `Email` values.""" +type EmailConnection { + """A list of `Email` objects.""" + nodes: [Email]! """ - A list of edges which contains the `CryptoAddress` and cursor to aid in pagination. + A list of edges which contains the `Email` and cursor to aid in pagination. """ - edges: [CryptoAddressEdge]! + edges: [EmailEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `CryptoAddress` you could get from the connection.""" + """The count of *all* `Email` you could get from the connection.""" totalCount: Int! } -""" -Cryptocurrency wallet addresses owned by users, with network-specific validation and verification -""" -type CryptoAddress { +"""User email addresses with verification and primary-email management""" +type Email { id: UUID! ownerId: UUID! - """ - The cryptocurrency wallet address, validated against network-specific patterns - """ - address: String! + """The email address""" + email: ConstructiveInternalTypeEmail! - """Whether ownership of this address has been cryptographically verified""" + """Whether the email address has been verified via confirmation link""" isVerified: Boolean! - """Whether this is the user's primary cryptocurrency address""" + """Whether this is the user's primary email address""" isPrimary: Boolean! createdAt: Datetime updatedAt: Datetime - """Reads a single `User` that is related to this `CryptoAddress`.""" + """Reads a single `User` that is related to this `Email`.""" owner: User - - """ - TRGM similarity when searching `address`. Returns null when no trgm search filter is active. - """ - addressTrgmSimilarity: Float - - """ - Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. - """ - searchScore: Float } -"""A `CryptoAddress` edge in the connection.""" -type CryptoAddressEdge { +scalar ConstructiveInternalTypeEmail + +"""A `Email` edge in the connection.""" +type EmailEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `CryptoAddress` at the end of the edge.""" - node: CryptoAddress + """The `Email` at the end of the edge.""" + node: Email } """A location in a connection that can be used for resuming pagination.""" @@ -349,17 +482,17 @@ type PageInfo { } """ -A filter to be used against `CryptoAddress` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `Email` object types. All fields are combined with a logical ‘and.’ """ -input CryptoAddressFilter { +input EmailFilter { """Filter by the object’s `id` field.""" id: UUIDFilter """Filter by the object’s `ownerId` field.""" ownerId: UUIDFilter - """Filter by the object’s `address` field.""" - address: StringFilter + """Filter by the object’s `email` field.""" + email: ConstructiveInternalTypeEmailFilter """Filter by the object’s `isVerified` field.""" isVerified: BooleanFilter @@ -374,27 +507,16 @@ input CryptoAddressFilter { updatedAt: DatetimeFilter """Checks for all expressions in this list.""" - and: [CryptoAddressFilter!] + and: [EmailFilter!] """Checks for any expressions in this list.""" - or: [CryptoAddressFilter!] + or: [EmailFilter!] """Negates the expression.""" - not: CryptoAddressFilter + not: EmailFilter """Filter by the object’s `owner` relation.""" owner: UserFilter - - """TRGM search on the `address` column.""" - trgmAddress: TrgmSearchInput - - """ - Composite full-text search. Provide a search string and it will be dispatched - to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - simultaneously. Rows matching ANY algorithm are returned. All matching score - fields are populated. - """ - fullTextSearch: String } """ @@ -440,9 +562,9 @@ input UUIDFilter { } """ -A filter to be used against String fields. All fields are combined with a logical ‘and.’ +A filter to be used against ConstructiveInternalTypeEmail fields. All fields are combined with a logical ‘and.’ """ -input StringFilter { +input ConstructiveInternalTypeEmailFilter { """ Is null (if `true` is specified) or is not null (if `false` is specified). """ @@ -487,10 +609,10 @@ input StringFilter { notIncludes: String """Contains the specified string (case-insensitive).""" - includesInsensitive: String + includesInsensitive: ConstructiveInternalTypeEmail """Does not contain the specified string (case-insensitive).""" - notIncludesInsensitive: String + notIncludesInsensitive: ConstructiveInternalTypeEmail """Starts with the specified string (case-sensitive).""" startsWith: String @@ -499,10 +621,10 @@ input StringFilter { notStartsWith: String """Starts with the specified string (case-insensitive).""" - startsWithInsensitive: String + startsWithInsensitive: ConstructiveInternalTypeEmail """Does not start with the specified string (case-insensitive).""" - notStartsWithInsensitive: String + notStartsWithInsensitive: ConstructiveInternalTypeEmail """Ends with the specified string (case-sensitive).""" endsWith: String @@ -511,10 +633,10 @@ input StringFilter { notEndsWith: String """Ends with the specified string (case-insensitive).""" - endsWithInsensitive: String + endsWithInsensitive: ConstructiveInternalTypeEmail """Does not end with the specified string (case-insensitive).""" - notEndsWithInsensitive: String + notEndsWithInsensitive: ConstructiveInternalTypeEmail """ Matches the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. @@ -529,79 +651,56 @@ input StringFilter { """ Matches the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. """ - likeInsensitive: String + likeInsensitive: ConstructiveInternalTypeEmail """ Does not match the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. """ - notLikeInsensitive: String + notLikeInsensitive: ConstructiveInternalTypeEmail """Equal to the specified value (case-insensitive).""" - equalToInsensitive: String + equalToInsensitive: ConstructiveInternalTypeEmail """Not equal to the specified value (case-insensitive).""" - notEqualToInsensitive: String + notEqualToInsensitive: ConstructiveInternalTypeEmail """ Not equal to the specified value, treating null like an ordinary value (case-insensitive). """ - distinctFromInsensitive: String + distinctFromInsensitive: ConstructiveInternalTypeEmail """ Equal to the specified value, treating null like an ordinary value (case-insensitive). """ - notDistinctFromInsensitive: String + notDistinctFromInsensitive: ConstructiveInternalTypeEmail """Included in the specified list (case-insensitive).""" - inInsensitive: [String!] + inInsensitive: [ConstructiveInternalTypeEmail!] """Not included in the specified list (case-insensitive).""" - notInInsensitive: [String!] + notInInsensitive: [ConstructiveInternalTypeEmail!] """Less than the specified value (case-insensitive).""" - lessThanInsensitive: String + lessThanInsensitive: ConstructiveInternalTypeEmail """Less than or equal to the specified value (case-insensitive).""" - lessThanOrEqualToInsensitive: String + lessThanOrEqualToInsensitive: ConstructiveInternalTypeEmail """Greater than the specified value (case-insensitive).""" - greaterThanInsensitive: String + greaterThanInsensitive: ConstructiveInternalTypeEmail """Greater than or equal to the specified value (case-insensitive).""" - greaterThanOrEqualToInsensitive: String + greaterThanOrEqualToInsensitive: ConstructiveInternalTypeEmail +} +""" +A filter to be used against Boolean fields. All fields are combined with a logical ‘and.’ +""" +input BooleanFilter { """ - Fuzzy matches using pg_trgm trigram similarity. Tolerates typos and misspellings. + Is null (if `true` is specified) or is not null (if `false` is specified). """ - similarTo: TrgmSearchInput - - """ - Fuzzy matches using pg_trgm word_similarity. Finds the best matching substring within the column value. - """ - wordSimilarTo: TrgmSearchInput -} - -""" -Input for pg_trgm fuzzy text matching. Provide a search value and optional similarity threshold. -""" -input TrgmSearchInput { - """The text to fuzzy-match against. Typos and misspellings are tolerated.""" - value: String! - - """ - Minimum similarity threshold (0.0 to 1.0). Higher = stricter matching. Default is 0.3. - """ - threshold: Float -} - -""" -A filter to be used against Boolean fields. All fields are combined with a logical ‘and.’ -""" -input BooleanFilter { - """ - Is null (if `true` is specified) or is not null (if `false` is specified). - """ - isNull: Boolean + isNull: Boolean """Equal to the specified value.""" equalTo: Boolean @@ -686,10 +785,10 @@ input UserFilter { id: UUIDFilter """Filter by the object’s `username` field.""" - username: StringFilter + username: StringTrgmFilter """Filter by the object’s `displayName` field.""" - displayName: StringFilter + displayName: StringTrgmFilter """Filter by the object’s `profilePicture` field.""" profilePicture: ConstructiveInternalTypeImageFilter @@ -718,6 +817,36 @@ input UserFilter { """Filter by the object’s `roleType` relation.""" roleType: RoleTypeFilter + """Filter by the object’s `ownedEmails` relation.""" + ownedEmails: UserToManyEmailFilter + + """`ownedEmails` exist.""" + ownedEmailsExist: Boolean + + """Filter by the object’s `ownedPhoneNumbers` relation.""" + ownedPhoneNumbers: UserToManyPhoneNumberFilter + + """`ownedPhoneNumbers` exist.""" + ownedPhoneNumbersExist: Boolean + + """Filter by the object’s `ownedCryptoAddresses` relation.""" + ownedCryptoAddresses: UserToManyCryptoAddressFilter + + """`ownedCryptoAddresses` exist.""" + ownedCryptoAddressesExist: Boolean + + """Filter by the object’s `ownedConnectedAccounts` relation.""" + ownedConnectedAccounts: UserToManyConnectedAccountFilter + + """`ownedConnectedAccounts` exist.""" + ownedConnectedAccountsExist: Boolean + + """Filter by the object’s `auditLogsByActorId` relation.""" + auditLogsByActorId: UserToManyAuditLogFilter + + """`auditLogsByActorId` exist.""" + auditLogsByActorIdExist: Boolean + """TSV search on the `search_tsv` column.""" tsvSearchTsv: String @@ -733,6 +862,161 @@ input UserFilter { fullTextSearch: String } +""" +A filter to be used against String fields with pg_trgm support. All fields are combined with a logical ‘and.’ +""" +input StringTrgmFilter { + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean + + """Equal to the specified value.""" + equalTo: String + + """Not equal to the specified value.""" + notEqualTo: String + + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: String + + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: String + + """Included in the specified list.""" + in: [String!] + + """Not included in the specified list.""" + notIn: [String!] + + """Less than the specified value.""" + lessThan: String + + """Less than or equal to the specified value.""" + lessThanOrEqualTo: String + + """Greater than the specified value.""" + greaterThan: String + + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: String + + """Contains the specified string (case-sensitive).""" + includes: String + + """Does not contain the specified string (case-sensitive).""" + notIncludes: String + + """Contains the specified string (case-insensitive).""" + includesInsensitive: String + + """Does not contain the specified string (case-insensitive).""" + notIncludesInsensitive: String + + """Starts with the specified string (case-sensitive).""" + startsWith: String + + """Does not start with the specified string (case-sensitive).""" + notStartsWith: String + + """Starts with the specified string (case-insensitive).""" + startsWithInsensitive: String + + """Does not start with the specified string (case-insensitive).""" + notStartsWithInsensitive: String + + """Ends with the specified string (case-sensitive).""" + endsWith: String + + """Does not end with the specified string (case-sensitive).""" + notEndsWith: String + + """Ends with the specified string (case-insensitive).""" + endsWithInsensitive: String + + """Does not end with the specified string (case-insensitive).""" + notEndsWithInsensitive: String + + """ + Matches the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. + """ + like: String + + """ + Does not match the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. + """ + notLike: String + + """ + Matches the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. + """ + likeInsensitive: String + + """ + Does not match the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. + """ + notLikeInsensitive: String + + """Equal to the specified value (case-insensitive).""" + equalToInsensitive: String + + """Not equal to the specified value (case-insensitive).""" + notEqualToInsensitive: String + + """ + Not equal to the specified value, treating null like an ordinary value (case-insensitive). + """ + distinctFromInsensitive: String + + """ + Equal to the specified value, treating null like an ordinary value (case-insensitive). + """ + notDistinctFromInsensitive: String + + """Included in the specified list (case-insensitive).""" + inInsensitive: [String!] + + """Not included in the specified list (case-insensitive).""" + notInInsensitive: [String!] + + """Less than the specified value (case-insensitive).""" + lessThanInsensitive: String + + """Less than or equal to the specified value (case-insensitive).""" + lessThanOrEqualToInsensitive: String + + """Greater than the specified value (case-insensitive).""" + greaterThanInsensitive: String + + """Greater than or equal to the specified value (case-insensitive).""" + greaterThanOrEqualToInsensitive: String + + """ + Fuzzy matches using pg_trgm trigram similarity. Tolerates typos and misspellings. + """ + similarTo: TrgmSearchInput + + """ + Fuzzy matches using pg_trgm word_similarity. Finds the best matching substring within the column value. + """ + wordSimilarTo: TrgmSearchInput +} + +""" +Input for pg_trgm fuzzy text matching. Provide a search value and optional similarity threshold. +""" +input TrgmSearchInput { + """The text to fuzzy-match against. Typos and misspellings are tolerated.""" + value: String! + + """ + Minimum similarity threshold (0.0 to 1.0). Higher = stricter matching. Default is 0.3. + """ + threshold: Float +} + """ A filter to be used against ConstructiveInternalTypeImage fields. All fields are combined with a logical ‘and.’ """ @@ -885,126 +1169,164 @@ input RoleTypeFilter { not: RoleTypeFilter } -"""Methods to use when ordering `CryptoAddress`.""" -enum CryptoAddressOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - ADDRESS_ASC - ADDRESS_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC - ADDRESS_TRGM_SIMILARITY_ASC - ADDRESS_TRGM_SIMILARITY_DESC - SEARCH_SCORE_ASC - SEARCH_SCORE_DESC -} +""" +A filter to be used against String fields. All fields are combined with a logical ‘and.’ +""" +input StringFilter { + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean -"""A connection to a list of `RoleType` values.""" -type RoleTypeConnection { - """A list of `RoleType` objects.""" - nodes: [RoleType]! + """Equal to the specified value.""" + equalTo: String + + """Not equal to the specified value.""" + notEqualTo: String """ - A list of edges which contains the `RoleType` and cursor to aid in pagination. + Not equal to the specified value, treating null like an ordinary value. """ - edges: [RoleTypeEdge]! + distinctFrom: String - """Information to aid in pagination.""" - pageInfo: PageInfo! + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: String - """The count of *all* `RoleType` you could get from the connection.""" - totalCount: Int! -} + """Included in the specified list.""" + in: [String!] -"""A `RoleType` edge in the connection.""" -type RoleTypeEdge { - """A cursor for use in pagination.""" - cursor: Cursor + """Not included in the specified list.""" + notIn: [String!] - """The `RoleType` at the end of the edge.""" - node: RoleType -} + """Less than the specified value.""" + lessThan: String -"""Methods to use when ordering `RoleType`.""" -enum RoleTypeOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - NAME_ASC - NAME_DESC -} + """Less than or equal to the specified value.""" + lessThanOrEqualTo: String -"""A connection to a list of `PhoneNumber` values.""" -type PhoneNumberConnection { - """A list of `PhoneNumber` objects.""" - nodes: [PhoneNumber]! + """Greater than the specified value.""" + greaterThan: String - """ - A list of edges which contains the `PhoneNumber` and cursor to aid in pagination. - """ - edges: [PhoneNumberEdge]! + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: String - """Information to aid in pagination.""" - pageInfo: PageInfo! + """Contains the specified string (case-sensitive).""" + includes: String - """The count of *all* `PhoneNumber` you could get from the connection.""" - totalCount: Int! -} + """Does not contain the specified string (case-sensitive).""" + notIncludes: String -""" -User phone numbers with country code, verification, and primary-number management -""" -type PhoneNumber { - id: UUID! - ownerId: UUID! + """Contains the specified string (case-insensitive).""" + includesInsensitive: String - """Country calling code (e.g. +1, +44)""" - cc: String! + """Does not contain the specified string (case-insensitive).""" + notIncludesInsensitive: String - """The phone number without country code""" - number: String! + """Starts with the specified string (case-sensitive).""" + startsWith: String - """Whether the phone number has been verified via SMS code""" - isVerified: Boolean! + """Does not start with the specified string (case-sensitive).""" + notStartsWith: String - """Whether this is the user's primary phone number""" - isPrimary: Boolean! - createdAt: Datetime - updatedAt: Datetime + """Starts with the specified string (case-insensitive).""" + startsWithInsensitive: String - """Reads a single `User` that is related to this `PhoneNumber`.""" - owner: User + """Does not start with the specified string (case-insensitive).""" + notStartsWithInsensitive: String + + """Ends with the specified string (case-sensitive).""" + endsWith: String + + """Does not end with the specified string (case-sensitive).""" + notEndsWith: String + + """Ends with the specified string (case-insensitive).""" + endsWithInsensitive: String + + """Does not end with the specified string (case-insensitive).""" + notEndsWithInsensitive: String """ - TRGM similarity when searching `cc`. Returns null when no trgm search filter is active. + Matches the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. """ - ccTrgmSimilarity: Float + like: String """ - TRGM similarity when searching `number`. Returns null when no trgm search filter is active. + Does not match the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. """ - numberTrgmSimilarity: Float + notLike: String """ - Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. + Matches the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. """ - searchScore: Float + likeInsensitive: String + + """ + Does not match the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. + """ + notLikeInsensitive: String + + """Equal to the specified value (case-insensitive).""" + equalToInsensitive: String + + """Not equal to the specified value (case-insensitive).""" + notEqualToInsensitive: String + + """ + Not equal to the specified value, treating null like an ordinary value (case-insensitive). + """ + distinctFromInsensitive: String + + """ + Equal to the specified value, treating null like an ordinary value (case-insensitive). + """ + notDistinctFromInsensitive: String + + """Included in the specified list (case-insensitive).""" + inInsensitive: [String!] + + """Not included in the specified list (case-insensitive).""" + notInInsensitive: [String!] + + """Less than the specified value (case-insensitive).""" + lessThanInsensitive: String + + """Less than or equal to the specified value (case-insensitive).""" + lessThanOrEqualToInsensitive: String + + """Greater than the specified value (case-insensitive).""" + greaterThanInsensitive: String + + """Greater than or equal to the specified value (case-insensitive).""" + greaterThanOrEqualToInsensitive: String } -"""A `PhoneNumber` edge in the connection.""" -type PhoneNumberEdge { - """A cursor for use in pagination.""" - cursor: Cursor +""" +A filter to be used against many `Email` object types. All fields are combined with a logical ‘and.’ +""" +input UserToManyEmailFilter { + """Filters to entities where at least one related entity matches.""" + some: EmailFilter - """The `PhoneNumber` at the end of the edge.""" - node: PhoneNumber + """Filters to entities where every related entity matches.""" + every: EmailFilter + + """Filters to entities where no related entity matches.""" + none: EmailFilter +} + +""" +A filter to be used against many `PhoneNumber` object types. All fields are combined with a logical ‘and.’ +""" +input UserToManyPhoneNumberFilter { + """Filters to entities where at least one related entity matches.""" + some: PhoneNumberFilter + + """Filters to entities where every related entity matches.""" + every: PhoneNumberFilter + + """Filters to entities where no related entity matches.""" + none: PhoneNumberFilter } """ @@ -1046,114 +1368,72 @@ input PhoneNumberFilter { """Filter by the object’s `owner` relation.""" owner: UserFilter - - """TRGM search on the `cc` column.""" - trgmCc: TrgmSearchInput - - """TRGM search on the `number` column.""" - trgmNumber: TrgmSearchInput - - """ - Composite full-text search. Provide a search string and it will be dispatched - to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - simultaneously. Rows matching ANY algorithm are returned. All matching score - fields are populated. - """ - fullTextSearch: String } -"""Methods to use when ordering `PhoneNumber`.""" -enum PhoneNumberOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - NUMBER_ASC - NUMBER_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC - CC_TRGM_SIMILARITY_ASC - CC_TRGM_SIMILARITY_DESC - NUMBER_TRGM_SIMILARITY_ASC - NUMBER_TRGM_SIMILARITY_DESC - SEARCH_SCORE_ASC - SEARCH_SCORE_DESC -} - -"""A connection to a list of `ConnectedAccount` values.""" -type ConnectedAccountConnection { - """A list of `ConnectedAccount` objects.""" - nodes: [ConnectedAccount]! - - """ - A list of edges which contains the `ConnectedAccount` and cursor to aid in pagination. - """ - edges: [ConnectedAccountEdge]! +""" +A filter to be used against many `CryptoAddress` object types. All fields are combined with a logical ‘and.’ +""" +input UserToManyCryptoAddressFilter { + """Filters to entities where at least one related entity matches.""" + some: CryptoAddressFilter - """Information to aid in pagination.""" - pageInfo: PageInfo! + """Filters to entities where every related entity matches.""" + every: CryptoAddressFilter - """ - The count of *all* `ConnectedAccount` you could get from the connection. - """ - totalCount: Int! + """Filters to entities where no related entity matches.""" + none: CryptoAddressFilter } """ -OAuth and social login connections linking external service accounts to users +A filter to be used against `CryptoAddress` object types. All fields are combined with a logical ‘and.’ """ -type ConnectedAccount { - id: UUID! - ownerId: UUID! +input CryptoAddressFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter - """The service used, e.g. `twitter` or `github`.""" - service: String! + """Filter by the object’s `ownerId` field.""" + ownerId: UUIDFilter - """A unique identifier for the user within the service""" - identifier: String! + """Filter by the object’s `address` field.""" + address: StringFilter - """Additional profile details extracted from this login method""" - details: JSON! + """Filter by the object’s `isVerified` field.""" + isVerified: BooleanFilter - """Whether this connected account has been verified""" - isVerified: Boolean! - createdAt: Datetime - updatedAt: Datetime + """Filter by the object’s `isPrimary` field.""" + isPrimary: BooleanFilter - """Reads a single `User` that is related to this `ConnectedAccount`.""" - owner: User + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter - """ - TRGM similarity when searching `service`. Returns null when no trgm search filter is active. - """ - serviceTrgmSimilarity: Float + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter - """ - TRGM similarity when searching `identifier`. Returns null when no trgm search filter is active. - """ - identifierTrgmSimilarity: Float + """Checks for all expressions in this list.""" + and: [CryptoAddressFilter!] - """ - Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. - """ - searchScore: Float + """Checks for any expressions in this list.""" + or: [CryptoAddressFilter!] + + """Negates the expression.""" + not: CryptoAddressFilter + + """Filter by the object’s `owner` relation.""" + owner: UserFilter } """ -Represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). +A filter to be used against many `ConnectedAccount` object types. All fields are combined with a logical ‘and.’ """ -scalar JSON +input UserToManyConnectedAccountFilter { + """Filters to entities where at least one related entity matches.""" + some: ConnectedAccountFilter -"""A `ConnectedAccount` edge in the connection.""" -type ConnectedAccountEdge { - """A cursor for use in pagination.""" - cursor: Cursor + """Filters to entities where every related entity matches.""" + every: ConnectedAccountFilter - """The `ConnectedAccount` at the end of the edge.""" - node: ConnectedAccount + """Filters to entities where no related entity matches.""" + none: ConnectedAccountFilter } """ @@ -1187,28 +1467,14 @@ input ConnectedAccountFilter { """Checks for all expressions in this list.""" and: [ConnectedAccountFilter!] - """Checks for any expressions in this list.""" - or: [ConnectedAccountFilter!] - - """Negates the expression.""" - not: ConnectedAccountFilter - - """Filter by the object’s `owner` relation.""" - owner: UserFilter - - """TRGM search on the `service` column.""" - trgmService: TrgmSearchInput - - """TRGM search on the `identifier` column.""" - trgmIdentifier: TrgmSearchInput - - """ - Composite full-text search. Provide a search string and it will be dispatched - to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - simultaneously. Rows matching ANY algorithm are returned. All matching score - fields are populated. - """ - fullTextSearch: String + """Checks for any expressions in this list.""" + or: [ConnectedAccountFilter!] + + """Negates the expression.""" + not: ConnectedAccountFilter + + """Filter by the object’s `owner` relation.""" + owner: UserFilter } """ @@ -1268,98 +1534,23 @@ input JSONFilter { containedBy: JSON } -"""Methods to use when ordering `ConnectedAccount`.""" -enum ConnectedAccountOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - SERVICE_ASC - SERVICE_DESC - IDENTIFIER_ASC - IDENTIFIER_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC - SERVICE_TRGM_SIMILARITY_ASC - SERVICE_TRGM_SIMILARITY_DESC - IDENTIFIER_TRGM_SIMILARITY_ASC - IDENTIFIER_TRGM_SIMILARITY_DESC - SEARCH_SCORE_ASC - SEARCH_SCORE_DESC -} - -"""A connection to a list of `AuditLog` values.""" -type AuditLogConnection { - """A list of `AuditLog` objects.""" - nodes: [AuditLog]! - - """ - A list of edges which contains the `AuditLog` and cursor to aid in pagination. - """ - edges: [AuditLogEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `AuditLog` you could get from the connection.""" - totalCount: Int! -} - """ -Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) +Represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). """ -type AuditLog { - id: UUID! - - """ - Type of authentication event (e.g. sign_in, sign_up, password_change, verify_email) - """ - event: String! - - """User who performed the authentication action""" - actorId: UUID! - - """Request origin (domain) where the auth event occurred""" - origin: ConstructiveInternalTypeOrigin - - """Browser or client user-agent string from the request""" - userAgent: String - - """IP address of the client that initiated the auth event""" - ipAddress: InternetAddress - - """Whether the authentication attempt succeeded""" - success: Boolean! - - """Timestamp when the audit event was recorded""" - createdAt: Datetime! - - """Reads a single `User` that is related to this `AuditLog`.""" - actor: User - - """ - TRGM similarity when searching `userAgent`. Returns null when no trgm search filter is active. - """ - userAgentTrgmSimilarity: Float - - """ - Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. - """ - searchScore: Float -} +scalar JSON -scalar ConstructiveInternalTypeOrigin +""" +A filter to be used against many `AuditLog` object types. All fields are combined with a logical ‘and.’ +""" +input UserToManyAuditLogFilter { + """Filters to entities where at least one related entity matches.""" + some: AuditLogFilter -"""A `AuditLog` edge in the connection.""" -type AuditLogEdge { - """A cursor for use in pagination.""" - cursor: Cursor + """Filters to entities where every related entity matches.""" + every: AuditLogFilter - """The `AuditLog` at the end of the edge.""" - node: AuditLog + """Filters to entities where no related entity matches.""" + none: AuditLogFilter } """ @@ -1402,16 +1593,8 @@ input AuditLogFilter { """Filter by the object’s `actor` relation.""" actor: UserFilter - """TRGM search on the `user_agent` column.""" - trgmUserAgent: TrgmSearchInput - - """ - Composite full-text search. Provide a search string and it will be dispatched - to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - simultaneously. Rows matching ANY algorithm are returned. All matching score - fields are populated. - """ - fullTextSearch: String + """A related `actor` exists.""" + actorExists: Boolean } """ @@ -1546,6 +1729,8 @@ input ConstructiveInternalTypeOriginFilter { greaterThanOrEqualToInsensitive: String } +scalar ConstructiveInternalTypeOrigin + """ A filter to be used against InternetAddress fields. All fields are combined with a logical ‘and.’ """ @@ -1603,252 +1788,337 @@ input InternetAddressFilter { containsOrContainedBy: InternetAddress } -"""Methods to use when ordering `AuditLog`.""" -enum AuditLogOrderBy { +"""Methods to use when ordering `Email`.""" +enum EmailOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC ID_ASC ID_DESC - EVENT_ASC - EVENT_DESC - USER_AGENT_TRGM_SIMILARITY_ASC - USER_AGENT_TRGM_SIMILARITY_DESC - SEARCH_SCORE_ASC - SEARCH_SCORE_DESC + OWNER_ID_ASC + OWNER_ID_DESC + EMAIL_ASC + EMAIL_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC } -"""A connection to a list of `Email` values.""" -type EmailConnection { - """A list of `Email` objects.""" - nodes: [Email]! +"""A connection to a list of `PhoneNumber` values.""" +type PhoneNumberConnection { + """A list of `PhoneNumber` objects.""" + nodes: [PhoneNumber]! """ - A list of edges which contains the `Email` and cursor to aid in pagination. + A list of edges which contains the `PhoneNumber` and cursor to aid in pagination. """ - edges: [EmailEdge]! + edges: [PhoneNumberEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `Email` you could get from the connection.""" + """The count of *all* `PhoneNumber` you could get from the connection.""" totalCount: Int! } -"""User email addresses with verification and primary-email management""" -type Email { +""" +User phone numbers with country code, verification, and primary-number management +""" +type PhoneNumber { id: UUID! ownerId: UUID! - """The email address""" - email: ConstructiveInternalTypeEmail! + """Country calling code (e.g. +1, +44)""" + cc: String! - """Whether the email address has been verified via confirmation link""" + """The phone number without country code""" + number: String! + + """Whether the phone number has been verified via SMS code""" isVerified: Boolean! - """Whether this is the user's primary email address""" + """Whether this is the user's primary phone number""" isPrimary: Boolean! createdAt: Datetime updatedAt: Datetime - """Reads a single `User` that is related to this `Email`.""" + """Reads a single `User` that is related to this `PhoneNumber`.""" owner: User } -scalar ConstructiveInternalTypeEmail - -"""A `Email` edge in the connection.""" -type EmailEdge { +"""A `PhoneNumber` edge in the connection.""" +type PhoneNumberEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `Email` at the end of the edge.""" - node: Email + """The `PhoneNumber` at the end of the edge.""" + node: PhoneNumber } -""" -A filter to be used against `Email` object types. All fields are combined with a logical ‘and.’ -""" -input EmailFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter +"""Methods to use when ordering `PhoneNumber`.""" +enum PhoneNumberOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + OWNER_ID_ASC + OWNER_ID_DESC + NUMBER_ASC + NUMBER_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC +} - """Filter by the object’s `ownerId` field.""" - ownerId: UUIDFilter +"""A connection to a list of `CryptoAddress` values.""" +type CryptoAddressConnection { + """A list of `CryptoAddress` objects.""" + nodes: [CryptoAddress]! - """Filter by the object’s `email` field.""" - email: ConstructiveInternalTypeEmailFilter + """ + A list of edges which contains the `CryptoAddress` and cursor to aid in pagination. + """ + edges: [CryptoAddressEdge]! - """Filter by the object’s `isVerified` field.""" - isVerified: BooleanFilter + """Information to aid in pagination.""" + pageInfo: PageInfo! - """Filter by the object’s `isPrimary` field.""" - isPrimary: BooleanFilter + """The count of *all* `CryptoAddress` you could get from the connection.""" + totalCount: Int! +} - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter +""" +Cryptocurrency wallet addresses owned by users, with network-specific validation and verification +""" +type CryptoAddress { + id: UUID! + ownerId: UUID! - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter + """ + The cryptocurrency wallet address, validated against network-specific patterns + """ + address: String! - """Checks for all expressions in this list.""" - and: [EmailFilter!] + """Whether ownership of this address has been cryptographically verified""" + isVerified: Boolean! - """Checks for any expressions in this list.""" - or: [EmailFilter!] + """Whether this is the user's primary cryptocurrency address""" + isPrimary: Boolean! + createdAt: Datetime + updatedAt: Datetime - """Negates the expression.""" - not: EmailFilter + """Reads a single `User` that is related to this `CryptoAddress`.""" + owner: User +} - """Filter by the object’s `owner` relation.""" - owner: UserFilter +"""A `CryptoAddress` edge in the connection.""" +type CryptoAddressEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `CryptoAddress` at the end of the edge.""" + node: CryptoAddress +} + +"""Methods to use when ordering `CryptoAddress`.""" +enum CryptoAddressOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + OWNER_ID_ASC + OWNER_ID_DESC + ADDRESS_ASC + ADDRESS_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC } -""" -A filter to be used against ConstructiveInternalTypeEmail fields. All fields are combined with a logical ‘and.’ -""" -input ConstructiveInternalTypeEmailFilter { +"""A connection to a list of `ConnectedAccount` values.""" +type ConnectedAccountConnection { + """A list of `ConnectedAccount` objects.""" + nodes: [ConnectedAccount]! + """ - Is null (if `true` is specified) or is not null (if `false` is specified). + A list of edges which contains the `ConnectedAccount` and cursor to aid in pagination. """ - isNull: Boolean - - """Equal to the specified value.""" - equalTo: String + edges: [ConnectedAccountEdge]! - """Not equal to the specified value.""" - notEqualTo: String + """Information to aid in pagination.""" + pageInfo: PageInfo! """ - Not equal to the specified value, treating null like an ordinary value. + The count of *all* `ConnectedAccount` you could get from the connection. """ - distinctFrom: String + totalCount: Int! +} - """Equal to the specified value, treating null like an ordinary value.""" - notDistinctFrom: String +""" +OAuth and social login connections linking external service accounts to users +""" +type ConnectedAccount { + id: UUID! + ownerId: UUID! - """Included in the specified list.""" - in: [String!] + """The service used, e.g. `twitter` or `github`.""" + service: String! - """Not included in the specified list.""" - notIn: [String!] + """A unique identifier for the user within the service""" + identifier: String! - """Less than the specified value.""" - lessThan: String + """Additional profile details extracted from this login method""" + details: JSON! - """Less than or equal to the specified value.""" - lessThanOrEqualTo: String + """Whether this connected account has been verified""" + isVerified: Boolean! + createdAt: Datetime + updatedAt: Datetime - """Greater than the specified value.""" - greaterThan: String + """Reads a single `User` that is related to this `ConnectedAccount`.""" + owner: User +} - """Greater than or equal to the specified value.""" - greaterThanOrEqualTo: String +"""A `ConnectedAccount` edge in the connection.""" +type ConnectedAccountEdge { + """A cursor for use in pagination.""" + cursor: Cursor - """Contains the specified string (case-sensitive).""" - includes: String + """The `ConnectedAccount` at the end of the edge.""" + node: ConnectedAccount +} - """Does not contain the specified string (case-sensitive).""" - notIncludes: String +"""Methods to use when ordering `ConnectedAccount`.""" +enum ConnectedAccountOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + OWNER_ID_ASC + OWNER_ID_DESC + SERVICE_ASC + SERVICE_DESC + IDENTIFIER_ASC + IDENTIFIER_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC +} - """Contains the specified string (case-insensitive).""" - includesInsensitive: ConstructiveInternalTypeEmail +"""A connection to a list of `AuditLog` values.""" +type AuditLogConnection { + """A list of `AuditLog` objects.""" + nodes: [AuditLog]! - """Does not contain the specified string (case-insensitive).""" - notIncludesInsensitive: ConstructiveInternalTypeEmail + """ + A list of edges which contains the `AuditLog` and cursor to aid in pagination. + """ + edges: [AuditLogEdge]! - """Starts with the specified string (case-sensitive).""" - startsWith: String + """Information to aid in pagination.""" + pageInfo: PageInfo! - """Does not start with the specified string (case-sensitive).""" - notStartsWith: String + """The count of *all* `AuditLog` you could get from the connection.""" + totalCount: Int! +} - """Starts with the specified string (case-insensitive).""" - startsWithInsensitive: ConstructiveInternalTypeEmail +""" +Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) +""" +type AuditLog { + id: UUID! - """Does not start with the specified string (case-insensitive).""" - notStartsWithInsensitive: ConstructiveInternalTypeEmail + """ + Type of authentication event (e.g. sign_in, sign_up, password_change, verify_email) + """ + event: String! - """Ends with the specified string (case-sensitive).""" - endsWith: String + """User who performed the authentication action; NULL if user was deleted""" + actorId: UUID - """Does not end with the specified string (case-sensitive).""" - notEndsWith: String + """Request origin (domain) where the auth event occurred""" + origin: ConstructiveInternalTypeOrigin - """Ends with the specified string (case-insensitive).""" - endsWithInsensitive: ConstructiveInternalTypeEmail + """Browser or client user-agent string from the request""" + userAgent: String - """Does not end with the specified string (case-insensitive).""" - notEndsWithInsensitive: ConstructiveInternalTypeEmail + """IP address of the client that initiated the auth event""" + ipAddress: InternetAddress - """ - Matches the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. - """ - like: String + """Whether the authentication attempt succeeded""" + success: Boolean! - """ - Does not match the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. - """ - notLike: String + """Timestamp when the audit event was recorded""" + createdAt: Datetime! - """ - Matches the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. - """ - likeInsensitive: ConstructiveInternalTypeEmail + """Reads a single `User` that is related to this `AuditLog`.""" + actor: User +} - """ - Does not match the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. - """ - notLikeInsensitive: ConstructiveInternalTypeEmail +"""A `AuditLog` edge in the connection.""" +type AuditLogEdge { + """A cursor for use in pagination.""" + cursor: Cursor - """Equal to the specified value (case-insensitive).""" - equalToInsensitive: ConstructiveInternalTypeEmail + """The `AuditLog` at the end of the edge.""" + node: AuditLog +} - """Not equal to the specified value (case-insensitive).""" - notEqualToInsensitive: ConstructiveInternalTypeEmail +"""Methods to use when ordering `AuditLog`.""" +enum AuditLogOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + EVENT_ASC + EVENT_DESC + ACTOR_ID_ASC + ACTOR_ID_DESC +} - """ - Not equal to the specified value, treating null like an ordinary value (case-insensitive). - """ - distinctFromInsensitive: ConstructiveInternalTypeEmail +"""A connection to a list of `RoleType` values.""" +type RoleTypeConnection { + """A list of `RoleType` objects.""" + nodes: [RoleType]! """ - Equal to the specified value, treating null like an ordinary value (case-insensitive). + A list of edges which contains the `RoleType` and cursor to aid in pagination. """ - notDistinctFromInsensitive: ConstructiveInternalTypeEmail - - """Included in the specified list (case-insensitive).""" - inInsensitive: [ConstructiveInternalTypeEmail!] - - """Not included in the specified list (case-insensitive).""" - notInInsensitive: [ConstructiveInternalTypeEmail!] + edges: [RoleTypeEdge]! - """Less than the specified value (case-insensitive).""" - lessThanInsensitive: ConstructiveInternalTypeEmail + """Information to aid in pagination.""" + pageInfo: PageInfo! - """Less than or equal to the specified value (case-insensitive).""" - lessThanOrEqualToInsensitive: ConstructiveInternalTypeEmail + """The count of *all* `RoleType` you could get from the connection.""" + totalCount: Int! +} - """Greater than the specified value (case-insensitive).""" - greaterThanInsensitive: ConstructiveInternalTypeEmail +"""A `RoleType` edge in the connection.""" +type RoleTypeEdge { + """A cursor for use in pagination.""" + cursor: Cursor - """Greater than or equal to the specified value (case-insensitive).""" - greaterThanOrEqualToInsensitive: ConstructiveInternalTypeEmail + """The `RoleType` at the end of the edge.""" + node: RoleType } -"""Methods to use when ordering `Email`.""" -enum EmailOrderBy { +"""Methods to use when ordering `RoleType`.""" +enum RoleTypeOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC ID_ASC ID_DESC - EMAIL_ASC - EMAIL_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC + NAME_ASC + NAME_DESC } """A connection to a list of `User` values.""" @@ -2512,16 +2782,6 @@ type SignInOneTimeTokenRecord { accessTokenExpiresAt: Datetime isVerified: Boolean totpEnabled: Boolean - - """ - TRGM similarity when searching `accessToken`. Returns null when no trgm search filter is active. - """ - accessTokenTrgmSimilarity: Float - - """ - Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. - """ - searchScore: Float } """All input for the `signInOneTimeToken` mutation.""" @@ -2557,16 +2817,6 @@ type SignInRecord { accessTokenExpiresAt: Datetime isVerified: Boolean totpEnabled: Boolean - - """ - TRGM similarity when searching `accessToken`. Returns null when no trgm search filter is active. - """ - accessTokenTrgmSimilarity: Float - - """ - Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. - """ - searchScore: Float } """All input for the `signIn` mutation.""" @@ -2605,16 +2855,6 @@ type SignUpRecord { accessTokenExpiresAt: Datetime isVerified: Boolean totpEnabled: Boolean - - """ - TRGM similarity when searching `accessToken`. Returns null when no trgm search filter is active. - """ - accessTokenTrgmSimilarity: Float - - """ - Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. - """ - searchScore: Float } """All input for the `signUp` mutation.""" @@ -2833,26 +3073,6 @@ type Session { csrfSecret: String createdAt: Datetime updatedAt: Datetime - - """ - TRGM similarity when searching `uagent`. Returns null when no trgm search filter is active. - """ - uagentTrgmSimilarity: Float - - """ - TRGM similarity when searching `fingerprintMode`. Returns null when no trgm search filter is active. - """ - fingerprintModeTrgmSimilarity: Float - - """ - TRGM similarity when searching `csrfSecret`. Returns null when no trgm search filter is active. - """ - csrfSecretTrgmSimilarity: Float - - """ - Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. - """ - searchScore: Float } """All input for the `verifyPassword` mutation.""" @@ -3139,7 +3359,7 @@ input AuditLogInput { """ event: String! - """User who performed the authentication action""" + """User who performed the authentication action; NULL if user was deleted""" actorId: UUID """Request origin (domain) where the auth event occurred""" @@ -3530,7 +3750,7 @@ input AuditLogPatch { """ event: String - """User who performed the authentication action""" + """User who performed the authentication action; NULL if user was deleted""" actorId: UUID """Request origin (domain) where the auth event occurred""" diff --git a/sdk/constructive-sdk/schemas/objects.graphql b/sdk/constructive-sdk/schemas/objects.graphql index 5d5efa69b..1874f9c38 100644 --- a/sdk/constructive-sdk/schemas/objects.graphql +++ b/sdk/constructive-sdk/schemas/objects.graphql @@ -313,16 +313,6 @@ type Ref { databaseId: UUID! storeId: UUID! commitId: UUID - - """ - TRGM similarity when searching `name`. Returns null when no trgm search filter is active. - """ - nameTrgmSimilarity: Float - - """ - Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. - """ - searchScore: Float } """A `Ref` edge in the connection.""" @@ -361,17 +351,6 @@ input RefFilter { """Negates the expression.""" not: RefFilter - - """TRGM search on the `name` column.""" - trgmName: TrgmSearchInput - - """ - Composite full-text search. Provide a search string and it will be dispatched - to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - simultaneously. Rows matching ANY algorithm are returned. All matching score - fields are populated. - """ - fullTextSearch: String } """ @@ -546,29 +525,6 @@ input StringFilter { """Greater than or equal to the specified value (case-insensitive).""" greaterThanOrEqualToInsensitive: String - - """ - Fuzzy matches using pg_trgm trigram similarity. Tolerates typos and misspellings. - """ - similarTo: TrgmSearchInput - - """ - Fuzzy matches using pg_trgm word_similarity. Finds the best matching substring within the column value. - """ - wordSimilarTo: TrgmSearchInput -} - -""" -Input for pg_trgm fuzzy text matching. Provide a search value and optional similarity threshold. -""" -input TrgmSearchInput { - """The text to fuzzy-match against. Typos and misspellings are tolerated.""" - value: String! - - """ - Minimum similarity threshold (0.0 to 1.0). Higher = stricter matching. Default is 0.3. - """ - threshold: Float } """Methods to use when ordering `Ref`.""" @@ -582,10 +538,6 @@ enum RefOrderBy { DATABASE_ID_DESC STORE_ID_ASC STORE_ID_DESC - NAME_TRGM_SIMILARITY_ASC - NAME_TRGM_SIMILARITY_DESC - SEARCH_SCORE_ASC - SEARCH_SCORE_DESC } """A connection to a list of `Store` values.""" @@ -619,16 +571,6 @@ type Store { """The current head tree_id for this store.""" hash: UUID createdAt: Datetime - - """ - TRGM similarity when searching `name`. Returns null when no trgm search filter is active. - """ - nameTrgmSimilarity: Float - - """ - Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. - """ - searchScore: Float } """A `Store` edge in the connection.""" @@ -667,17 +609,6 @@ input StoreFilter { """Negates the expression.""" not: StoreFilter - - """TRGM search on the `name` column.""" - trgmName: TrgmSearchInput - - """ - Composite full-text search. Provide a search string and it will be dispatched - to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - simultaneously. Rows matching ANY algorithm are returned. All matching score - fields are populated. - """ - fullTextSearch: String } """ @@ -731,10 +662,6 @@ enum StoreOrderBy { ID_DESC DATABASE_ID_ASC DATABASE_ID_DESC - NAME_TRGM_SIMILARITY_ASC - NAME_TRGM_SIMILARITY_DESC - SEARCH_SCORE_ASC - SEARCH_SCORE_DESC } """A connection to a list of `Commit` values.""" @@ -778,16 +705,6 @@ type Commit { """The root of the tree""" treeId: UUID date: Datetime! - - """ - TRGM similarity when searching `message`. Returns null when no trgm search filter is active. - """ - messageTrgmSimilarity: Float - - """ - Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. - """ - searchScore: Float } """A `Commit` edge in the connection.""" @@ -838,17 +755,6 @@ input CommitFilter { """Negates the expression.""" not: CommitFilter - - """TRGM search on the `message` column.""" - trgmMessage: TrgmSearchInput - - """ - Composite full-text search. Provide a search string and it will be dispatched - to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - simultaneously. Rows matching ANY algorithm are returned. All matching score - fields are populated. - """ - fullTextSearch: String } """ @@ -923,10 +829,6 @@ enum CommitOrderBy { ID_DESC DATABASE_ID_ASC DATABASE_ID_DESC - MESSAGE_TRGM_SIMILARITY_ASC - MESSAGE_TRGM_SIMILARITY_DESC - SEARCH_SCORE_ASC - SEARCH_SCORE_DESC } """ diff --git a/sdk/constructive-sdk/schemas/public.graphql b/sdk/constructive-sdk/schemas/public.graphql index ea9fb6e65..b20a1744b 100644 --- a/sdk/constructive-sdk/schemas/public.graphql +++ b/sdk/constructive-sdk/schemas/public.graphql @@ -7,6 +7,24 @@ type Query { orgPermissionsGetPaddedMask(mask: BitString): BitString stepsAchieved(vlevel: String, vroleId: UUID): Boolean revParse(dbId: UUID, storeId: UUID, refname: String): UUID + + """Reads and enables pagination through a set of `GetAllRecord`.""" + getAll( + databaseId: UUID + id: UUID + + """Only read the first `n` values of the set.""" + first: 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 after (below) this cursor.""" + after: Cursor + ): GetAllConnection orgIsManagerOf(pEntityId: UUID, pManagerId: UUID, pUserId: UUID, pMaxDepth: Int): Boolean """Reads and enables pagination through a set of `OrgGetManagersRecord`.""" @@ -50,24 +68,6 @@ type Query { ): OrgGetSubordinatesConnection appPermissionsGetMask(ids: [UUID]): BitString orgPermissionsGetMask(ids: [UUID]): BitString - - """Reads and enables pagination through a set of `GetAllRecord`.""" - getAll( - databaseId: UUID - id: UUID - - """Only read the first `n` values of the set.""" - first: 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 after (below) this cursor.""" - after: Cursor - ): GetAllConnection appPermissionsGetMaskByNames(names: [String]): BitString orgPermissionsGetMaskByNames(names: [String]): BitString @@ -250,6 +250,35 @@ type Query { orderBy: [ApiSchemaOrderBy!] = [PRIMARY_KEY_ASC] ): ApiSchemaConnection + """Reads and enables pagination through a set of `SiteTheme`.""" + siteThemes( + """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: SiteThemeFilter + + """The method to use when ordering `SiteTheme`.""" + orderBy: [SiteThemeOrderBy!] = [PRIMARY_KEY_ASC] + ): SiteThemeConnection + """Reads and enables pagination through a set of `OrgMember`.""" orgMembers( """Only read the first `n` values of the set.""" @@ -397,64 +426,6 @@ type Query { orderBy: [SecretsModuleOrderBy!] = [PRIMARY_KEY_ASC] ): SecretsModuleConnection - """Reads and enables pagination through a set of `UuidModule`.""" - uuidModules( - """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: UuidModuleFilter - - """The method to use when ordering `UuidModule`.""" - orderBy: [UuidModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): UuidModuleConnection - - """Reads and enables pagination through a set of `SiteTheme`.""" - siteThemes( - """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: SiteThemeFilter - - """The method to use when ordering `SiteTheme`.""" - orderBy: [SiteThemeOrderBy!] = [PRIMARY_KEY_ASC] - ): SiteThemeConnection - """Reads and enables pagination through a set of `Store`.""" stores( """Only read the first `n` values of the set.""" @@ -1124,8 +1095,8 @@ type Query { orderBy: [CryptoAddressesModuleOrderBy!] = [PRIMARY_KEY_ASC] ): CryptoAddressesModuleConnection - """Reads and enables pagination through a set of `PhoneNumber`.""" - phoneNumbers( + """Reads and enables pagination through a set of `ConnectedAccount`.""" + connectedAccounts( """Only read the first `n` values of the set.""" first: Int @@ -1147,14 +1118,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: PhoneNumberFilter + where: ConnectedAccountFilter - """The method to use when ordering `PhoneNumber`.""" - orderBy: [PhoneNumberOrderBy!] = [PRIMARY_KEY_ASC] - ): PhoneNumberConnection + """The method to use when ordering `ConnectedAccount`.""" + orderBy: [ConnectedAccountOrderBy!] = [PRIMARY_KEY_ASC] + ): ConnectedAccountConnection - """Reads and enables pagination through a set of `AppLimitDefault`.""" - appLimitDefaults( + """Reads and enables pagination through a set of `PhoneNumber`.""" + phoneNumbers( """Only read the first `n` values of the set.""" first: Int @@ -1176,14 +1147,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AppLimitDefaultFilter + where: PhoneNumberFilter - """The method to use when ordering `AppLimitDefault`.""" - orderBy: [AppLimitDefaultOrderBy!] = [PRIMARY_KEY_ASC] - ): AppLimitDefaultConnection + """The method to use when ordering `PhoneNumber`.""" + orderBy: [PhoneNumberOrderBy!] = [PRIMARY_KEY_ASC] + ): PhoneNumberConnection - """Reads and enables pagination through a set of `OrgLimitDefault`.""" - orgLimitDefaults( + """Reads and enables pagination through a set of `AppLimitDefault`.""" + appLimitDefaults( """Only read the first `n` values of the set.""" first: Int @@ -1205,14 +1176,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgLimitDefaultFilter + where: AppLimitDefaultFilter - """The method to use when ordering `OrgLimitDefault`.""" - orderBy: [OrgLimitDefaultOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgLimitDefaultConnection + """The method to use when ordering `AppLimitDefault`.""" + orderBy: [AppLimitDefaultOrderBy!] = [PRIMARY_KEY_ASC] + ): AppLimitDefaultConnection - """Reads and enables pagination through a set of `ConnectedAccount`.""" - connectedAccounts( + """Reads and enables pagination through a set of `OrgLimitDefault`.""" + orgLimitDefaults( """Only read the first `n` values of the set.""" first: Int @@ -1234,11 +1205,11 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: ConnectedAccountFilter + where: OrgLimitDefaultFilter - """The method to use when ordering `ConnectedAccount`.""" - orderBy: [ConnectedAccountOrderBy!] = [PRIMARY_KEY_ASC] - ): ConnectedAccountConnection + """The method to use when ordering `OrgLimitDefault`.""" + orderBy: [OrgLimitDefaultOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgLimitDefaultConnection """Reads and enables pagination through a set of `TableGrant`.""" tableGrants( @@ -2141,6 +2112,35 @@ type Query { orderBy: [SqlMigrationOrderBy!] = [NATURAL] ): SqlMigrationConnection + """Reads and enables pagination through a set of `DatabaseTransfer`.""" + databaseTransfers( + """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: DatabaseTransferFilter + + """The method to use when ordering `DatabaseTransfer`.""" + orderBy: [DatabaseTransferOrderBy!] = [PRIMARY_KEY_ASC] + ): DatabaseTransferConnection + """Reads and enables pagination through a set of `CryptoAuthModule`.""" cryptoAuthModules( """Only read the first `n` values of the set.""" @@ -2259,6 +2259,35 @@ type Query { orderBy: [EmailOrderBy!] = [PRIMARY_KEY_ASC] ): EmailConnection + """Reads and enables pagination through a set of `Enum`.""" + enums( + """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: EnumFilter + + """The method to use when ordering `Enum`.""" + orderBy: [EnumOrderBy!] = [PRIMARY_KEY_ASC] + ): EnumConnection + """Reads and enables pagination through a set of `View`.""" views( """Only read the first `n` values of the set.""" @@ -2288,6 +2317,35 @@ type Query { orderBy: [ViewOrderBy!] = [PRIMARY_KEY_ASC] ): ViewConnection + """Reads and enables pagination through a set of `Blueprint`.""" + blueprints( + """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: BlueprintFilter + + """The method to use when ordering `Blueprint`.""" + orderBy: [BlueprintOrderBy!] = [PRIMARY_KEY_ASC] + ): BlueprintConnection + """Reads and enables pagination through a set of `PermissionsModule`.""" permissionsModules( """Only read the first `n` values of the set.""" @@ -2317,6 +2375,35 @@ type Query { orderBy: [PermissionsModuleOrderBy!] = [PRIMARY_KEY_ASC] ): PermissionsModuleConnection + """Reads and enables pagination through a set of `EmbeddingChunk`.""" + embeddingChunks( + """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: EmbeddingChunkFilter + + """The method to use when ordering `EmbeddingChunk`.""" + orderBy: [EmbeddingChunkOrderBy!] = [PRIMARY_KEY_ASC] + ): EmbeddingChunkConnection + """Reads and enables pagination through a set of `LimitsModule`.""" limitsModules( """Only read the first `n` values of the set.""" @@ -2375,35 +2462,6 @@ type Query { orderBy: [ProfilesModuleOrderBy!] = [PRIMARY_KEY_ASC] ): ProfilesModuleConnection - """Reads and enables pagination through a set of `SecureTableProvision`.""" - secureTableProvisions( - """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: SecureTableProvisionFilter - - """The method to use when ordering `SecureTableProvision`.""" - orderBy: [SecureTableProvisionOrderBy!] = [PRIMARY_KEY_ASC] - ): SecureTableProvisionConnection - """Reads and enables pagination through a set of `User`.""" users( """Only read the first `n` values of the set.""" @@ -2781,6 +2839,35 @@ type Query { orderBy: [SiteOrderBy!] = [PRIMARY_KEY_ASC] ): SiteConnection + """Reads and enables pagination through a set of `BlueprintTemplate`.""" + blueprintTemplates( + """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: BlueprintTemplateFilter + + """The method to use when ordering `BlueprintTemplate`.""" + orderBy: [BlueprintTemplateOrderBy!] = [PRIMARY_KEY_ASC] + ): BlueprintTemplateConnection + """Reads and enables pagination through a set of `HierarchyModule`.""" hierarchyModules( """Only read the first `n` values of the set.""" @@ -2868,6 +2955,35 @@ type Query { orderBy: [ForeignKeyConstraintOrderBy!] = [PRIMARY_KEY_ASC] ): ForeignKeyConstraintConnection + """Reads and enables pagination through a set of `SecureTableProvision`.""" + secureTableProvisions( + """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: SecureTableProvisionFilter + + """The method to use when ordering `SecureTableProvision`.""" + orderBy: [SecureTableProvisionOrderBy!] = [PRIMARY_KEY_ASC] + ): SecureTableProvisionConnection + """Reads and enables pagination through a set of `OrgInvite`.""" orgInvites( """Only read the first `n` values of the set.""" @@ -2984,8 +3100,8 @@ type Query { orderBy: [UserAuthModuleOrderBy!] = [PRIMARY_KEY_ASC] ): UserAuthModuleConnection - """Reads and enables pagination through a set of `RelationProvision`.""" - relationProvisions( + """Reads and enables pagination through a set of `Field`.""" + fields( """Only read the first `n` values of the set.""" first: Int @@ -3007,14 +3123,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: RelationProvisionFilter + where: FieldFilter - """The method to use when ordering `RelationProvision`.""" - orderBy: [RelationProvisionOrderBy!] = [PRIMARY_KEY_ASC] - ): RelationProvisionConnection + """The method to use when ordering `Field`.""" + orderBy: [FieldOrderBy!] = [PRIMARY_KEY_ASC] + ): FieldConnection - """Reads and enables pagination through a set of `Field`.""" - fields( + """Reads and enables pagination through a set of `MembershipsModule`.""" + membershipsModules( """Only read the first `n` values of the set.""" first: Int @@ -3036,14 +3152,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: FieldFilter + where: MembershipsModuleFilter - """The method to use when ordering `Field`.""" - orderBy: [FieldOrderBy!] = [PRIMARY_KEY_ASC] - ): FieldConnection + """The method to use when ordering `MembershipsModule`.""" + orderBy: [MembershipsModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): MembershipsModuleConnection - """Reads and enables pagination through a set of `MembershipsModule`.""" - membershipsModules( + """Reads and enables pagination through a set of `RelationProvision`.""" + relationProvisions( """Only read the first `n` values of the set.""" first: Int @@ -3065,11 +3181,11 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: MembershipsModuleFilter + where: RelationProvisionFilter - """The method to use when ordering `MembershipsModule`.""" - orderBy: [MembershipsModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): MembershipsModuleConnection + """The method to use when ordering `RelationProvision`.""" + orderBy: [RelationProvisionOrderBy!] = [PRIMARY_KEY_ASC] + ): RelationProvisionConnection """ Metadata about the database schema, including tables, fields, indexes, and constraints. Useful for code generation tools. @@ -3088,37 +3204,40 @@ scalar InternetAddress """A string representing a series of binary bits""" scalar BitString -"""A connection to a list of `OrgGetManagersRecord` values.""" -type OrgGetManagersConnection { - """A list of `OrgGetManagersRecord` objects.""" - nodes: [OrgGetManagersRecord]! +"""A connection to a list of `GetAllRecord` values.""" +type GetAllConnection { + """A list of `GetAllRecord` objects.""" + nodes: [GetAllRecord]! """ - A list of edges which contains the `OrgGetManagersRecord` and cursor to aid in pagination. + A list of edges which contains the `GetAllRecord` and cursor to aid in pagination. """ - edges: [OrgGetManagersEdge]! + edges: [GetAllEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """ - The count of *all* `OrgGetManagersRecord` you could get from the connection. - """ + """The count of *all* `GetAllRecord` you could get from the connection.""" totalCount: Int! } -type OrgGetManagersRecord { - userId: UUID - depth: Int +type GetAllRecord { + path: [String] + data: JSON } -"""A `OrgGetManagersRecord` edge in the connection.""" -type OrgGetManagersEdge { +""" +Represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). +""" +scalar JSON + +"""A `GetAllRecord` edge in the connection.""" +type GetAllEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `OrgGetManagersRecord` at the end of the edge.""" - node: OrgGetManagersRecord + """The `GetAllRecord` at the end of the edge.""" + node: GetAllRecord } """A location in a connection that can be used for resuming pagination.""" @@ -3139,73 +3258,70 @@ type PageInfo { endCursor: Cursor } -"""A connection to a list of `OrgGetSubordinatesRecord` values.""" -type OrgGetSubordinatesConnection { - """A list of `OrgGetSubordinatesRecord` objects.""" - nodes: [OrgGetSubordinatesRecord]! +"""A connection to a list of `OrgGetManagersRecord` values.""" +type OrgGetManagersConnection { + """A list of `OrgGetManagersRecord` objects.""" + nodes: [OrgGetManagersRecord]! """ - A list of edges which contains the `OrgGetSubordinatesRecord` and cursor to aid in pagination. + A list of edges which contains the `OrgGetManagersRecord` and cursor to aid in pagination. """ - edges: [OrgGetSubordinatesEdge]! + edges: [OrgGetManagersEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `OrgGetSubordinatesRecord` you could get from the connection. + The count of *all* `OrgGetManagersRecord` you could get from the connection. """ totalCount: Int! } -type OrgGetSubordinatesRecord { +type OrgGetManagersRecord { userId: UUID depth: Int } -"""A `OrgGetSubordinatesRecord` edge in the connection.""" -type OrgGetSubordinatesEdge { +"""A `OrgGetManagersRecord` edge in the connection.""" +type OrgGetManagersEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `OrgGetSubordinatesRecord` at the end of the edge.""" - node: OrgGetSubordinatesRecord + """The `OrgGetManagersRecord` at the end of the edge.""" + node: OrgGetManagersRecord } -"""A connection to a list of `GetAllRecord` values.""" -type GetAllConnection { - """A list of `GetAllRecord` objects.""" - nodes: [GetAllRecord]! +"""A connection to a list of `OrgGetSubordinatesRecord` values.""" +type OrgGetSubordinatesConnection { + """A list of `OrgGetSubordinatesRecord` objects.""" + nodes: [OrgGetSubordinatesRecord]! """ - A list of edges which contains the `GetAllRecord` and cursor to aid in pagination. + A list of edges which contains the `OrgGetSubordinatesRecord` and cursor to aid in pagination. """ - edges: [GetAllEdge]! + edges: [OrgGetSubordinatesEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `GetAllRecord` you could get from the connection.""" + """ + The count of *all* `OrgGetSubordinatesRecord` you could get from the connection. + """ totalCount: Int! } -type GetAllRecord { - path: [String] - data: JSON +type OrgGetSubordinatesRecord { + userId: UUID + depth: Int } -""" -Represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). -""" -scalar JSON - -"""A `GetAllRecord` edge in the connection.""" -type GetAllEdge { +"""A `OrgGetSubordinatesRecord` edge in the connection.""" +type OrgGetSubordinatesEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `GetAllRecord` at the end of the edge.""" - node: GetAllRecord + """The `OrgGetSubordinatesRecord` at the end of the edge.""" + node: OrgGetSubordinatesRecord } """A connection to a list of `Object` values.""" @@ -3292,16 +3408,6 @@ type AppPermission { """Human-readable description of what this permission allows""" description: String - - """ - TRGM similarity when searching `description`. Returns null when no trgm search filter is active. - """ - descriptionTrgmSimilarity: Float - - """ - Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. - """ - searchScore: Float } """A `AppPermission` edge in the connection.""" @@ -3351,16 +3457,6 @@ type OrgPermission { """Human-readable description of what this permission allows""" description: String - - """ - TRGM similarity when searching `description`. Returns null when no trgm search filter is active. - """ - descriptionTrgmSimilarity: Float - - """ - Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. - """ - searchScore: Float } """A `OrgPermission` edge in the connection.""" @@ -3411,16 +3507,6 @@ type AppLevelRequirement { priority: Int! createdAt: Datetime updatedAt: Datetime - - """ - TRGM similarity when searching `description`. Returns null when no trgm search filter is active. - """ - descriptionTrgmSimilarity: Float - - """ - Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. - """ - searchScore: Float } """A `AppLevelRequirement` edge in the connection.""" @@ -3478,7 +3564,7 @@ type User { appMembershipByActorId: AppMembership """Reads and enables pagination through a set of `AppAdminGrant`.""" - appAdminGrantsByGrantorId( + appAdminGrantsByActorId( """Only read the first `n` values of the set.""" first: Int @@ -3506,8 +3592,8 @@ type User { orderBy: [AppAdminGrantOrderBy!] = [PRIMARY_KEY_ASC] ): AppAdminGrantConnection! - """Reads and enables pagination through a set of `AppOwnerGrant`.""" - appOwnerGrantsByGrantorId( + """Reads and enables pagination through a set of `AppAdminGrant`.""" + appAdminGrantsByGrantorId( """Only read the first `n` values of the set.""" first: Int @@ -3529,14 +3615,14 @@ type User { """ A filter to be used in determining which values should be returned by the collection. """ - where: AppOwnerGrantFilter + where: AppAdminGrantFilter - """The method to use when ordering `AppOwnerGrant`.""" - orderBy: [AppOwnerGrantOrderBy!] = [PRIMARY_KEY_ASC] - ): AppOwnerGrantConnection! + """The method to use when ordering `AppAdminGrant`.""" + orderBy: [AppAdminGrantOrderBy!] = [PRIMARY_KEY_ASC] + ): AppAdminGrantConnection! - """Reads and enables pagination through a set of `AppGrant`.""" - appGrantsByGrantorId( + """Reads and enables pagination through a set of `AppOwnerGrant`.""" + appOwnerGrantsByActorId( """Only read the first `n` values of the set.""" first: Int @@ -3558,14 +3644,101 @@ type User { """ A filter to be used in determining which values should be returned by the collection. """ - where: AppGrantFilter + where: AppOwnerGrantFilter - """The method to use when ordering `AppGrant`.""" - orderBy: [AppGrantOrderBy!] = [PRIMARY_KEY_ASC] - ): AppGrantConnection! + """The method to use when ordering `AppOwnerGrant`.""" + orderBy: [AppOwnerGrantOrderBy!] = [PRIMARY_KEY_ASC] + ): AppOwnerGrantConnection! - """Reads and enables pagination through a set of `OrgMembership`.""" - orgMembershipsByActorId( + """Reads and enables pagination through a set of `AppOwnerGrant`.""" + appOwnerGrantsByGrantorId( + """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: AppOwnerGrantFilter + + """The method to use when ordering `AppOwnerGrant`.""" + orderBy: [AppOwnerGrantOrderBy!] = [PRIMARY_KEY_ASC] + ): AppOwnerGrantConnection! + + """Reads and enables pagination through a set of `AppGrant`.""" + appGrantsByActorId( + """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: AppGrantFilter + + """The method to use when ordering `AppGrant`.""" + orderBy: [AppGrantOrderBy!] = [PRIMARY_KEY_ASC] + ): AppGrantConnection! + + """Reads and enables pagination through a set of `AppGrant`.""" + appGrantsByGrantorId( + """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: AppGrantFilter + + """The method to use when ordering `AppGrant`.""" + orderBy: [AppGrantOrderBy!] = [PRIMARY_KEY_ASC] + ): AppGrantConnection! + + """Reads and enables pagination through a set of `OrgMembership`.""" + orgMembershipsByActorId( """Only read the first `n` values of the set.""" first: Int @@ -3683,6 +3856,35 @@ type User { orderBy: [OrgMemberOrderBy!] = [PRIMARY_KEY_ASC] ): OrgMemberConnection! + """Reads and enables pagination through a set of `OrgAdminGrant`.""" + orgAdminGrantsByActorId( + """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: OrgAdminGrantFilter + + """The method to use when ordering `OrgAdminGrant`.""" + orderBy: [OrgAdminGrantOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgAdminGrantConnection! + """Reads and enables pagination through a set of `OrgAdminGrant`.""" orgAdminGrantsByEntityId( """Only read the first `n` values of the set.""" @@ -3741,6 +3943,35 @@ type User { orderBy: [OrgAdminGrantOrderBy!] = [PRIMARY_KEY_ASC] ): OrgAdminGrantConnection! + """Reads and enables pagination through a set of `OrgOwnerGrant`.""" + orgOwnerGrantsByActorId( + """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: OrgOwnerGrantFilter + + """The method to use when ordering `OrgOwnerGrant`.""" + orderBy: [OrgOwnerGrantOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgOwnerGrantConnection! + """Reads and enables pagination through a set of `OrgOwnerGrant`.""" orgOwnerGrantsByEntityId( """Only read the first `n` values of the set.""" @@ -3799,6 +4030,35 @@ type User { orderBy: [OrgOwnerGrantOrderBy!] = [PRIMARY_KEY_ASC] ): OrgOwnerGrantConnection! + """Reads and enables pagination through a set of `OrgGrant`.""" + orgGrantsByActorId( + """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: OrgGrantFilter + + """The method to use when ordering `OrgGrant`.""" + orderBy: [OrgGrantOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgGrantConnection! + """Reads and enables pagination through a set of `OrgGrant`.""" orgGrantsByEntityId( """Only read the first `n` values of the set.""" @@ -4060,6 +4320,35 @@ type User { orderBy: [OrgChartEdgeGrantOrderBy!] = [PRIMARY_KEY_ASC] ): OrgChartEdgeGrantConnection! + """Reads and enables pagination through a set of `OrgPermissionDefault`.""" + orgPermissionDefaultsByEntityId( + """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: OrgPermissionDefaultFilter + + """The method to use when ordering `OrgPermissionDefault`.""" + orderBy: [OrgPermissionDefaultOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgPermissionDefaultConnection! + """Reads and enables pagination through a set of `AppLimit`.""" appLimitsByActorId( """Only read the first `n` values of the set.""" @@ -4205,8 +4494,8 @@ type User { orderBy: [AppAchievementOrderBy!] = [PRIMARY_KEY_ASC] ): AppAchievementConnection! - """Reads and enables pagination through a set of `Invite`.""" - invitesBySenderId( + """Reads and enables pagination through a set of `AppLevel`.""" + ownedAppLevels( """Only read the first `n` values of the set.""" first: Int @@ -4228,14 +4517,14 @@ type User { """ A filter to be used in determining which values should be returned by the collection. """ - where: InviteFilter + where: AppLevelFilter - """The method to use when ordering `Invite`.""" - orderBy: [InviteOrderBy!] = [PRIMARY_KEY_ASC] - ): InviteConnection! + """The method to use when ordering `AppLevel`.""" + orderBy: [AppLevelOrderBy!] = [PRIMARY_KEY_ASC] + ): AppLevelConnection! - """Reads and enables pagination through a set of `ClaimedInvite`.""" - claimedInvitesByReceiverId( + """Reads and enables pagination through a set of `Email`.""" + ownedEmails( """Only read the first `n` values of the set.""" first: Int @@ -4257,14 +4546,14 @@ type User { """ A filter to be used in determining which values should be returned by the collection. """ - where: ClaimedInviteFilter + where: EmailFilter - """The method to use when ordering `ClaimedInvite`.""" - orderBy: [ClaimedInviteOrderBy!] = [PRIMARY_KEY_ASC] - ): ClaimedInviteConnection! + """The method to use when ordering `Email`.""" + orderBy: [EmailOrderBy!] = [PRIMARY_KEY_ASC] + ): EmailConnection! - """Reads and enables pagination through a set of `ClaimedInvite`.""" - claimedInvitesBySenderId( + """Reads and enables pagination through a set of `PhoneNumber`.""" + ownedPhoneNumbers( """Only read the first `n` values of the set.""" first: Int @@ -4286,14 +4575,188 @@ type User { """ A filter to be used in determining which values should be returned by the collection. """ - where: ClaimedInviteFilter + where: PhoneNumberFilter - """The method to use when ordering `ClaimedInvite`.""" - orderBy: [ClaimedInviteOrderBy!] = [PRIMARY_KEY_ASC] - ): ClaimedInviteConnection! + """The method to use when ordering `PhoneNumber`.""" + orderBy: [PhoneNumberOrderBy!] = [PRIMARY_KEY_ASC] + ): PhoneNumberConnection! - """Reads and enables pagination through a set of `OrgInvite`.""" - orgInvitesByEntityId( + """Reads and enables pagination through a set of `CryptoAddress`.""" + ownedCryptoAddresses( + """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: CryptoAddressFilter + + """The method to use when ordering `CryptoAddress`.""" + orderBy: [CryptoAddressOrderBy!] = [PRIMARY_KEY_ASC] + ): CryptoAddressConnection! + + """Reads and enables pagination through a set of `ConnectedAccount`.""" + ownedConnectedAccounts( + """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: ConnectedAccountFilter + + """The method to use when ordering `ConnectedAccount`.""" + orderBy: [ConnectedAccountOrderBy!] = [PRIMARY_KEY_ASC] + ): ConnectedAccountConnection! + + """Reads and enables pagination through a set of `Invite`.""" + invitesBySenderId( + """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: InviteFilter + + """The method to use when ordering `Invite`.""" + orderBy: [InviteOrderBy!] = [PRIMARY_KEY_ASC] + ): InviteConnection! + + """Reads and enables pagination through a set of `ClaimedInvite`.""" + claimedInvitesByReceiverId( + """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: ClaimedInviteFilter + + """The method to use when ordering `ClaimedInvite`.""" + orderBy: [ClaimedInviteOrderBy!] = [PRIMARY_KEY_ASC] + ): ClaimedInviteConnection! + + """Reads and enables pagination through a set of `ClaimedInvite`.""" + claimedInvitesBySenderId( + """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: ClaimedInviteFilter + + """The method to use when ordering `ClaimedInvite`.""" + orderBy: [ClaimedInviteOrderBy!] = [PRIMARY_KEY_ASC] + ): ClaimedInviteConnection! + + """Reads and enables pagination through a set of `OrgInvite`.""" + orgInvitesByEntityId( + """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: OrgInviteFilter + + """The method to use when ordering `OrgInvite`.""" + orderBy: [OrgInviteOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgInviteConnection! + + """Reads and enables pagination through a set of `OrgInvite`.""" + orgInvitesByReceiverId( """Only read the first `n` values of the set.""" first: Int @@ -4350,6 +4813,35 @@ type User { orderBy: [OrgInviteOrderBy!] = [PRIMARY_KEY_ASC] ): OrgInviteConnection! + """Reads and enables pagination through a set of `OrgClaimedInvite`.""" + orgClaimedInvitesByEntityId( + """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: OrgClaimedInviteFilter + + """The method to use when ordering `OrgClaimedInvite`.""" + orderBy: [OrgClaimedInviteOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgClaimedInviteConnection! + """Reads and enables pagination through a set of `OrgClaimedInvite`.""" orgClaimedInvitesByReceiverId( """Only read the first `n` values of the set.""" @@ -4408,6 +4900,35 @@ type User { orderBy: [OrgClaimedInviteOrderBy!] = [PRIMARY_KEY_ASC] ): OrgClaimedInviteConnection! + """Reads and enables pagination through a set of `AuditLog`.""" + auditLogsByActorId( + """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: AuditLogFilter + + """The method to use when ordering `AuditLog`.""" + orderBy: [AuditLogOrderBy!] = [PRIMARY_KEY_ASC] + ): AuditLogConnection! + """ TSV rank when searching `searchTsv`. Returns null when no tsv search filter is active. """ @@ -4419,7 +4940,7 @@ type User { displayNameTrgmSimilarity: Float """ - Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. + Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. """ searchScore: Float } @@ -4986,8 +5507,8 @@ type Database { orderBy: [DefaultPrivilegeOrderBy!] = [PRIMARY_KEY_ASC] ): DefaultPrivilegeConnection! - """Reads and enables pagination through a set of `Api`.""" - apis( + """Reads and enables pagination through a set of `Enum`.""" + enums( """Only read the first `n` values of the set.""" first: Int @@ -5009,14 +5530,14 @@ type Database { """ A filter to be used in determining which values should be returned by the collection. """ - where: ApiFilter + where: EnumFilter - """The method to use when ordering `Api`.""" - orderBy: [ApiOrderBy!] = [PRIMARY_KEY_ASC] - ): ApiConnection! + """The method to use when ordering `Enum`.""" + orderBy: [EnumOrderBy!] = [PRIMARY_KEY_ASC] + ): EnumConnection! - """Reads and enables pagination through a set of `ApiModule`.""" - apiModules( + """Reads and enables pagination through a set of `EmbeddingChunk`.""" + embeddingChunks( """Only read the first `n` values of the set.""" first: Int @@ -5038,14 +5559,14 @@ type Database { """ A filter to be used in determining which values should be returned by the collection. """ - where: ApiModuleFilter + where: EmbeddingChunkFilter - """The method to use when ordering `ApiModule`.""" - orderBy: [ApiModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): ApiModuleConnection! + """The method to use when ordering `EmbeddingChunk`.""" + orderBy: [EmbeddingChunkOrderBy!] = [PRIMARY_KEY_ASC] + ): EmbeddingChunkConnection! - """Reads and enables pagination through a set of `ApiSchema`.""" - apiSchemas( + """Reads and enables pagination through a set of `DatabaseTransfer`.""" + databaseTransfers( """Only read the first `n` values of the set.""" first: Int @@ -5067,43 +5588,14 @@ type Database { """ A filter to be used in determining which values should be returned by the collection. """ - where: ApiSchemaFilter + where: DatabaseTransferFilter - """The method to use when ordering `ApiSchema`.""" - orderBy: [ApiSchemaOrderBy!] = [PRIMARY_KEY_ASC] - ): ApiSchemaConnection! - - """Reads and enables pagination through a set of `Site`.""" - sites( - """Only read the first `n` values of the set.""" - first: Int + """The method to use when ordering `DatabaseTransfer`.""" + orderBy: [DatabaseTransferOrderBy!] = [PRIMARY_KEY_ASC] + ): DatabaseTransferConnection! - """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: SiteFilter - - """The method to use when ordering `Site`.""" - orderBy: [SiteOrderBy!] = [PRIMARY_KEY_ASC] - ): SiteConnection! - - """Reads and enables pagination through a set of `App`.""" - apps( + """Reads and enables pagination through a set of `Api`.""" + apis( """Only read the first `n` values of the set.""" first: Int @@ -5125,14 +5617,130 @@ type Database { """ A filter to be used in determining which values should be returned by the collection. """ - where: AppFilter + where: ApiFilter - """The method to use when ordering `App`.""" - orderBy: [AppOrderBy!] = [PRIMARY_KEY_ASC] - ): AppConnection! + """The method to use when ordering `Api`.""" + orderBy: [ApiOrderBy!] = [PRIMARY_KEY_ASC] + ): ApiConnection! - """Reads and enables pagination through a set of `Domain`.""" - domains( + """Reads and enables pagination through a set of `ApiModule`.""" + apiModules( + """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: ApiModuleFilter + + """The method to use when ordering `ApiModule`.""" + orderBy: [ApiModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): ApiModuleConnection! + + """Reads and enables pagination through a set of `ApiSchema`.""" + apiSchemas( + """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: ApiSchemaFilter + + """The method to use when ordering `ApiSchema`.""" + orderBy: [ApiSchemaOrderBy!] = [PRIMARY_KEY_ASC] + ): ApiSchemaConnection! + + """Reads and enables pagination through a set of `Site`.""" + sites( + """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: SiteFilter + + """The method to use when ordering `Site`.""" + orderBy: [SiteOrderBy!] = [PRIMARY_KEY_ASC] + ): SiteConnection! + + """Reads and enables pagination through a set of `App`.""" + apps( + """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: AppFilter + + """The method to use when ordering `App`.""" + orderBy: [AppOrderBy!] = [PRIMARY_KEY_ASC] + ): AppConnection! + + """Reads and enables pagination through a set of `Domain`.""" + domains( """Only read the first `n` values of the set.""" first: Int @@ -5836,8 +6444,11 @@ type Database { orderBy: [UsersModuleOrderBy!] = [PRIMARY_KEY_ASC] ): UsersModuleConnection! - """Reads and enables pagination through a set of `UuidModule`.""" - uuidModules( + """Reads a single `HierarchyModule` that is related to this `Database`.""" + hierarchyModule: HierarchyModule + + """Reads and enables pagination through a set of `TableTemplateModule`.""" + tableTemplateModules( """Only read the first `n` values of the set.""" first: Int @@ -5859,17 +6470,14 @@ type Database { """ A filter to be used in determining which values should be returned by the collection. """ - where: UuidModuleFilter - - """The method to use when ordering `UuidModule`.""" - orderBy: [UuidModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): UuidModuleConnection! + where: TableTemplateModuleFilter - """Reads a single `HierarchyModule` that is related to this `Database`.""" - hierarchyModule: HierarchyModule + """The method to use when ordering `TableTemplateModule`.""" + orderBy: [TableTemplateModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): TableTemplateModuleConnection! - """Reads and enables pagination through a set of `TableTemplateModule`.""" - tableTemplateModules( + """Reads and enables pagination through a set of `SecureTableProvision`.""" + secureTableProvisions( """Only read the first `n` values of the set.""" first: Int @@ -5891,14 +6499,14 @@ type Database { """ A filter to be used in determining which values should be returned by the collection. """ - where: TableTemplateModuleFilter + where: SecureTableProvisionFilter - """The method to use when ordering `TableTemplateModule`.""" - orderBy: [TableTemplateModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): TableTemplateModuleConnection! + """The method to use when ordering `SecureTableProvision`.""" + orderBy: [SecureTableProvisionOrderBy!] = [PRIMARY_KEY_ASC] + ): SecureTableProvisionConnection! - """Reads and enables pagination through a set of `SecureTableProvision`.""" - secureTableProvisions( + """Reads and enables pagination through a set of `RelationProvision`.""" + relationProvisions( """Only read the first `n` values of the set.""" first: Int @@ -5920,14 +6528,14 @@ type Database { """ A filter to be used in determining which values should be returned by the collection. """ - where: SecureTableProvisionFilter + where: RelationProvisionFilter - """The method to use when ordering `SecureTableProvision`.""" - orderBy: [SecureTableProvisionOrderBy!] = [PRIMARY_KEY_ASC] - ): SecureTableProvisionConnection! + """The method to use when ordering `RelationProvision`.""" + orderBy: [RelationProvisionOrderBy!] = [PRIMARY_KEY_ASC] + ): RelationProvisionConnection! - """Reads and enables pagination through a set of `RelationProvision`.""" - relationProvisions( + """Reads and enables pagination through a set of `Blueprint`.""" + blueprints( """Only read the first `n` values of the set.""" first: Int @@ -5949,11 +6557,11 @@ type Database { """ A filter to be used in determining which values should be returned by the collection. """ - where: RelationProvisionFilter + where: BlueprintFilter - """The method to use when ordering `RelationProvision`.""" - orderBy: [RelationProvisionOrderBy!] = [PRIMARY_KEY_ASC] - ): RelationProvisionConnection! + """The method to use when ordering `Blueprint`.""" + orderBy: [BlueprintOrderBy!] = [PRIMARY_KEY_ASC] + ): BlueprintConnection! """ Reads and enables pagination through a set of `DatabaseProvisionModule`. @@ -5985,26 +6593,6 @@ type Database { """The method to use when ordering `DatabaseProvisionModule`.""" orderBy: [DatabaseProvisionModuleOrderBy!] = [PRIMARY_KEY_ASC] ): DatabaseProvisionModuleConnection! - - """ - TRGM similarity when searching `schemaHash`. Returns null when no trgm search filter is active. - """ - schemaHashTrgmSimilarity: Float - - """ - TRGM similarity when searching `name`. Returns null when no trgm search filter is active. - """ - nameTrgmSimilarity: Float - - """ - TRGM similarity when searching `label`. Returns null when no trgm search filter is active. - """ - labelTrgmSimilarity: Float - - """ - Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. - """ - searchScore: Float } """A connection to a list of `Schema` values.""" @@ -6159,6 +6747,35 @@ type Schema { orderBy: [DefaultPrivilegeOrderBy!] = [PRIMARY_KEY_ASC] ): DefaultPrivilegeConnection! + """Reads and enables pagination through a set of `Enum`.""" + enums( + """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: EnumFilter + + """The method to use when ordering `Enum`.""" + orderBy: [EnumOrderBy!] = [PRIMARY_KEY_ASC] + ): EnumConnection! + """Reads and enables pagination through a set of `ApiSchema`.""" apiSchemas( """Only read the first `n` values of the set.""" @@ -6245,36 +6862,6 @@ type Schema { """The method to use when ordering `TableTemplateModule`.""" orderBy: [TableTemplateModuleOrderBy!] = [PRIMARY_KEY_ASC] ): TableTemplateModuleConnection! - - """ - TRGM similarity when searching `name`. Returns null when no trgm search filter is active. - """ - nameTrgmSimilarity: Float - - """ - TRGM similarity when searching `schemaName`. Returns null when no trgm search filter is active. - """ - schemaNameTrgmSimilarity: Float - - """ - TRGM similarity when searching `label`. Returns null when no trgm search filter is active. - """ - labelTrgmSimilarity: Float - - """ - TRGM similarity when searching `description`. Returns null when no trgm search filter is active. - """ - descriptionTrgmSimilarity: Float - - """ - TRGM similarity when searching `module`. Returns null when no trgm search filter is active. - """ - moduleTrgmSimilarity: Float - - """ - Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. - """ - searchScore: Float } enum ObjectCategory { @@ -6678,6 +7265,64 @@ type Table { orderBy: [ViewTableOrderBy!] = [PRIMARY_KEY_ASC] ): ViewTableConnection! + """Reads and enables pagination through a set of `EmbeddingChunk`.""" + embeddingChunksByChunksTableId( + """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: EmbeddingChunkFilter + + """The method to use when ordering `EmbeddingChunk`.""" + orderBy: [EmbeddingChunkOrderBy!] = [PRIMARY_KEY_ASC] + ): EmbeddingChunkConnection! + + """Reads and enables pagination through a set of `EmbeddingChunk`.""" + embeddingChunks( + """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: EmbeddingChunkFilter + + """The method to use when ordering `EmbeddingChunk`.""" + orderBy: [EmbeddingChunkOrderBy!] = [PRIMARY_KEY_ASC] + ): EmbeddingChunkConnection! + """Reads and enables pagination through a set of `TableTemplateModule`.""" tableTemplateModulesByOwnerTableId( """Only read the first `n` values of the set.""" @@ -6822,41 +7467,6 @@ type Table { """The method to use when ordering `RelationProvision`.""" orderBy: [RelationProvisionOrderBy!] = [PRIMARY_KEY_ASC] ): RelationProvisionConnection! - - """ - TRGM similarity when searching `name`. Returns null when no trgm search filter is active. - """ - nameTrgmSimilarity: Float - - """ - TRGM similarity when searching `label`. Returns null when no trgm search filter is active. - """ - labelTrgmSimilarity: Float - - """ - TRGM similarity when searching `description`. Returns null when no trgm search filter is active. - """ - descriptionTrgmSimilarity: Float - - """ - TRGM similarity when searching `module`. Returns null when no trgm search filter is active. - """ - moduleTrgmSimilarity: Float - - """ - TRGM similarity when searching `pluralName`. Returns null when no trgm search filter is active. - """ - pluralNameTrgmSimilarity: Float - - """ - TRGM similarity when searching `singularName`. Returns null when no trgm search filter is active. - """ - singularNameTrgmSimilarity: Float - - """ - Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. - """ - searchScore: Float } """A connection to a list of `CheckConstraint` values.""" @@ -6899,26 +7509,6 @@ type CheckConstraint { """Reads a single `Table` that is related to this `CheckConstraint`.""" table: Table - - """ - TRGM similarity when searching `name`. Returns null when no trgm search filter is active. - """ - nameTrgmSimilarity: Float - - """ - TRGM similarity when searching `type`. Returns null when no trgm search filter is active. - """ - typeTrgmSimilarity: Float - - """ - TRGM similarity when searching `module`. Returns null when no trgm search filter is active. - """ - moduleTrgmSimilarity: Float - - """ - Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. - """ - searchScore: Float } """A `CheckConstraint` edge in the connection.""" @@ -6990,23 +7580,6 @@ input CheckConstraintFilter { """Filter by the object’s `table` relation.""" table: TableFilter - - """TRGM search on the `name` column.""" - trgmName: TrgmSearchInput - - """TRGM search on the `type` column.""" - trgmType: TrgmSearchInput - - """TRGM search on the `module` column.""" - trgmModule: TrgmSearchInput - - """ - Composite full-text search. Provide a search string and it will be dispatched - to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - simultaneously. Rows matching ANY algorithm are returned. All matching score - fields are populated. - """ - fullTextSearch: String } """ @@ -7181,29 +7754,6 @@ input StringFilter { """Greater than or equal to the specified value (case-insensitive).""" greaterThanOrEqualToInsensitive: String - - """ - Fuzzy matches using pg_trgm trigram similarity. Tolerates typos and misspellings. - """ - similarTo: TrgmSearchInput - - """ - Fuzzy matches using pg_trgm word_similarity. Finds the best matching substring within the column value. - """ - wordSimilarTo: TrgmSearchInput -} - -""" -Input for pg_trgm fuzzy text matching. Provide a search value and optional similarity threshold. -""" -input TrgmSearchInput { - """The text to fuzzy-match against. Typos and misspellings are tolerated.""" - value: String! - - """ - Minimum similarity threshold (0.0 to 1.0). Higher = stricter matching. Default is 0.3. - """ - threshold: Float } """ @@ -7666,6 +8216,24 @@ input DatabaseFilter { """`defaultPrivileges` exist.""" defaultPrivilegesExist: Boolean + """Filter by the object’s `enums` relation.""" + enums: DatabaseToManyEnumFilter + + """`enums` exist.""" + enumsExist: Boolean + + """Filter by the object’s `embeddingChunks` relation.""" + embeddingChunks: DatabaseToManyEmbeddingChunkFilter + + """`embeddingChunks` exist.""" + embeddingChunksExist: Boolean + + """Filter by the object’s `databaseTransfers` relation.""" + databaseTransfers: DatabaseToManyDatabaseTransferFilter + + """`databaseTransfers` exist.""" + databaseTransfersExist: Boolean + """Filter by the object’s `apis` relation.""" apis: DatabaseToManyApiFilter @@ -7846,12 +8414,6 @@ input DatabaseFilter { """`usersModules` exist.""" usersModulesExist: Boolean - """Filter by the object’s `uuidModules` relation.""" - uuidModules: DatabaseToManyUuidModuleFilter - - """`uuidModules` exist.""" - uuidModulesExist: Boolean - """Filter by the object’s `hierarchyModule` relation.""" hierarchyModule: HierarchyModuleFilter @@ -7876,28 +8438,17 @@ input DatabaseFilter { """`relationProvisions` exist.""" relationProvisionsExist: Boolean + """Filter by the object’s `blueprints` relation.""" + blueprints: DatabaseToManyBlueprintFilter + + """`blueprints` exist.""" + blueprintsExist: Boolean + """Filter by the object’s `databaseProvisionModules` relation.""" databaseProvisionModules: DatabaseToManyDatabaseProvisionModuleFilter """`databaseProvisionModules` exist.""" databaseProvisionModulesExist: Boolean - - """TRGM search on the `schema_hash` column.""" - trgmSchemaHash: TrgmSearchInput - - """TRGM search on the `name` column.""" - trgmName: TrgmSearchInput - - """TRGM search on the `label` column.""" - trgmLabel: TrgmSearchInput - - """ - Composite full-text search. Provide a search string and it will be dispatched - to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - simultaneously. Rows matching ANY algorithm are returned. All matching score - fields are populated. - """ - fullTextSearch: String } """ @@ -7908,10 +8459,10 @@ input UserFilter { id: UUIDFilter """Filter by the object’s `username` field.""" - username: StringFilter + username: StringTrgmFilter """Filter by the object’s `displayName` field.""" - displayName: StringFilter + displayName: StringTrgmFilter """Filter by the object’s `profilePicture` field.""" profilePicture: ConstructiveInternalTypeImageFilter @@ -7952,18 +8503,36 @@ input UserFilter { """A related `appMembershipByActorId` exists.""" appMembershipByActorIdExists: Boolean + """Filter by the object’s `appAdminGrantsByActorId` relation.""" + appAdminGrantsByActorId: UserToManyAppAdminGrantFilter + + """`appAdminGrantsByActorId` exist.""" + appAdminGrantsByActorIdExist: Boolean + """Filter by the object’s `appAdminGrantsByGrantorId` relation.""" appAdminGrantsByGrantorId: UserToManyAppAdminGrantFilter """`appAdminGrantsByGrantorId` exist.""" appAdminGrantsByGrantorIdExist: Boolean + """Filter by the object’s `appOwnerGrantsByActorId` relation.""" + appOwnerGrantsByActorId: UserToManyAppOwnerGrantFilter + + """`appOwnerGrantsByActorId` exist.""" + appOwnerGrantsByActorIdExist: Boolean + """Filter by the object’s `appOwnerGrantsByGrantorId` relation.""" appOwnerGrantsByGrantorId: UserToManyAppOwnerGrantFilter """`appOwnerGrantsByGrantorId` exist.""" appOwnerGrantsByGrantorIdExist: Boolean + """Filter by the object’s `appGrantsByActorId` relation.""" + appGrantsByActorId: UserToManyAppGrantFilter + + """`appGrantsByActorId` exist.""" + appGrantsByActorIdExist: Boolean + """Filter by the object’s `appGrantsByGrantorId` relation.""" appGrantsByGrantorId: UserToManyAppGrantFilter @@ -8000,6 +8569,12 @@ input UserFilter { """`orgMembersByEntityId` exist.""" orgMembersByEntityIdExist: Boolean + """Filter by the object’s `orgAdminGrantsByActorId` relation.""" + orgAdminGrantsByActorId: UserToManyOrgAdminGrantFilter + + """`orgAdminGrantsByActorId` exist.""" + orgAdminGrantsByActorIdExist: Boolean + """Filter by the object’s `orgAdminGrantsByEntityId` relation.""" orgAdminGrantsByEntityId: UserToManyOrgAdminGrantFilter @@ -8012,6 +8587,12 @@ input UserFilter { """`orgAdminGrantsByGrantorId` exist.""" orgAdminGrantsByGrantorIdExist: Boolean + """Filter by the object’s `orgOwnerGrantsByActorId` relation.""" + orgOwnerGrantsByActorId: UserToManyOrgOwnerGrantFilter + + """`orgOwnerGrantsByActorId` exist.""" + orgOwnerGrantsByActorIdExist: Boolean + """Filter by the object’s `orgOwnerGrantsByEntityId` relation.""" orgOwnerGrantsByEntityId: UserToManyOrgOwnerGrantFilter @@ -8024,6 +8605,12 @@ input UserFilter { """`orgOwnerGrantsByGrantorId` exist.""" orgOwnerGrantsByGrantorIdExist: Boolean + """Filter by the object’s `orgGrantsByActorId` relation.""" + orgGrantsByActorId: UserToManyOrgGrantFilter + + """`orgGrantsByActorId` exist.""" + orgGrantsByActorIdExist: Boolean + """Filter by the object’s `orgGrantsByEntityId` relation.""" orgGrantsByEntityId: UserToManyOrgGrantFilter @@ -8078,6 +8665,12 @@ input UserFilter { """`childOrgChartEdgeGrants` exist.""" childOrgChartEdgeGrantsExist: Boolean + """Filter by the object’s `orgPermissionDefaultsByEntityId` relation.""" + orgPermissionDefaultsByEntityId: UserToManyOrgPermissionDefaultFilter + + """`orgPermissionDefaultsByEntityId` exist.""" + orgPermissionDefaultsByEntityIdExist: Boolean + """Filter by the object’s `appLimitsByActorId` relation.""" appLimitsByActorId: UserToManyAppLimitFilter @@ -8108,6 +8701,36 @@ input UserFilter { """`appAchievementsByActorId` exist.""" appAchievementsByActorIdExist: Boolean + """Filter by the object’s `ownedAppLevels` relation.""" + ownedAppLevels: UserToManyAppLevelFilter + + """`ownedAppLevels` exist.""" + ownedAppLevelsExist: Boolean + + """Filter by the object’s `ownedEmails` relation.""" + ownedEmails: UserToManyEmailFilter + + """`ownedEmails` exist.""" + ownedEmailsExist: Boolean + + """Filter by the object’s `ownedPhoneNumbers` relation.""" + ownedPhoneNumbers: UserToManyPhoneNumberFilter + + """`ownedPhoneNumbers` exist.""" + ownedPhoneNumbersExist: Boolean + + """Filter by the object’s `ownedCryptoAddresses` relation.""" + ownedCryptoAddresses: UserToManyCryptoAddressFilter + + """`ownedCryptoAddresses` exist.""" + ownedCryptoAddressesExist: Boolean + + """Filter by the object’s `ownedConnectedAccounts` relation.""" + ownedConnectedAccounts: UserToManyConnectedAccountFilter + + """`ownedConnectedAccounts` exist.""" + ownedConnectedAccountsExist: Boolean + """Filter by the object’s `invitesBySenderId` relation.""" invitesBySenderId: UserToManyInviteFilter @@ -8132,12 +8755,24 @@ input UserFilter { """`orgInvitesByEntityId` exist.""" orgInvitesByEntityIdExist: Boolean + """Filter by the object’s `orgInvitesByReceiverId` relation.""" + orgInvitesByReceiverId: UserToManyOrgInviteFilter + + """`orgInvitesByReceiverId` exist.""" + orgInvitesByReceiverIdExist: Boolean + """Filter by the object’s `orgInvitesBySenderId` relation.""" orgInvitesBySenderId: UserToManyOrgInviteFilter """`orgInvitesBySenderId` exist.""" orgInvitesBySenderIdExist: Boolean + """Filter by the object’s `orgClaimedInvitesByEntityId` relation.""" + orgClaimedInvitesByEntityId: UserToManyOrgClaimedInviteFilter + + """`orgClaimedInvitesByEntityId` exist.""" + orgClaimedInvitesByEntityIdExist: Boolean + """Filter by the object’s `orgClaimedInvitesByReceiverId` relation.""" orgClaimedInvitesByReceiverId: UserToManyOrgClaimedInviteFilter @@ -8150,6 +8785,12 @@ input UserFilter { """`orgClaimedInvitesBySenderId` exist.""" orgClaimedInvitesBySenderIdExist: Boolean + """Filter by the object’s `auditLogsByActorId` relation.""" + auditLogsByActorId: UserToManyAuditLogFilter + + """`auditLogsByActorId` exist.""" + auditLogsByActorIdExist: Boolean + """TSV search on the `search_tsv` column.""" tsvSearchTsv: String @@ -8165,6 +8806,161 @@ input UserFilter { fullTextSearch: String } +""" +A filter to be used against String fields with pg_trgm support. All fields are combined with a logical ‘and.’ +""" +input StringTrgmFilter { + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean + + """Equal to the specified value.""" + equalTo: String + + """Not equal to the specified value.""" + notEqualTo: String + + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: String + + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: String + + """Included in the specified list.""" + in: [String!] + + """Not included in the specified list.""" + notIn: [String!] + + """Less than the specified value.""" + lessThan: String + + """Less than or equal to the specified value.""" + lessThanOrEqualTo: String + + """Greater than the specified value.""" + greaterThan: String + + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: String + + """Contains the specified string (case-sensitive).""" + includes: String + + """Does not contain the specified string (case-sensitive).""" + notIncludes: String + + """Contains the specified string (case-insensitive).""" + includesInsensitive: String + + """Does not contain the specified string (case-insensitive).""" + notIncludesInsensitive: String + + """Starts with the specified string (case-sensitive).""" + startsWith: String + + """Does not start with the specified string (case-sensitive).""" + notStartsWith: String + + """Starts with the specified string (case-insensitive).""" + startsWithInsensitive: String + + """Does not start with the specified string (case-insensitive).""" + notStartsWithInsensitive: String + + """Ends with the specified string (case-sensitive).""" + endsWith: String + + """Does not end with the specified string (case-sensitive).""" + notEndsWith: String + + """Ends with the specified string (case-insensitive).""" + endsWithInsensitive: String + + """Does not end with the specified string (case-insensitive).""" + notEndsWithInsensitive: String + + """ + Matches the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. + """ + like: String + + """ + Does not match the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. + """ + notLike: String + + """ + Matches the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. + """ + likeInsensitive: String + + """ + Does not match the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. + """ + notLikeInsensitive: String + + """Equal to the specified value (case-insensitive).""" + equalToInsensitive: String + + """Not equal to the specified value (case-insensitive).""" + notEqualToInsensitive: String + + """ + Not equal to the specified value, treating null like an ordinary value (case-insensitive). + """ + distinctFromInsensitive: String + + """ + Equal to the specified value, treating null like an ordinary value (case-insensitive). + """ + notDistinctFromInsensitive: String + + """Included in the specified list (case-insensitive).""" + inInsensitive: [String!] + + """Not included in the specified list (case-insensitive).""" + notInInsensitive: [String!] + + """Less than the specified value (case-insensitive).""" + lessThanInsensitive: String + + """Less than or equal to the specified value (case-insensitive).""" + lessThanOrEqualToInsensitive: String + + """Greater than the specified value (case-insensitive).""" + greaterThanInsensitive: String + + """Greater than or equal to the specified value (case-insensitive).""" + greaterThanOrEqualToInsensitive: String + + """ + Fuzzy matches using pg_trgm trigram similarity. Tolerates typos and misspellings. + """ + similarTo: TrgmSearchInput + + """ + Fuzzy matches using pg_trgm word_similarity. Finds the best matching substring within the column value. + """ + wordSimilarTo: TrgmSearchInput +} + +""" +Input for pg_trgm fuzzy text matching. Provide a search value and optional similarity threshold. +""" +input TrgmSearchInput { + """The text to fuzzy-match against. Typos and misspellings are tolerated.""" + value: String! + + """ + Minimum similarity threshold (0.0 to 1.0). Higher = stricter matching. Default is 0.3. + """ + threshold: Float +} + """ A filter to be used against ConstructiveInternalTypeImage fields. All fields are combined with a logical ‘and.’ """ @@ -9026,17 +9822,6 @@ input OrgChartEdgeFilter { """A related `parent` exists.""" parentExists: Boolean - - """TRGM search on the `position_title` column.""" - trgmPositionTitle: TrgmSearchInput - - """ - Composite full-text search. Provide a search string and it will be dispatched - to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - simultaneously. Rows matching ANY algorithm are returned. All matching score - fields are populated. - """ - fullTextSearch: String } """ @@ -9102,22 +9887,54 @@ input OrgChartEdgeGrantFilter { """Filter by the object’s `grantor` relation.""" grantor: UserFilter + """A related `grantor` exists.""" + grantorExists: Boolean + """Filter by the object’s `parent` relation.""" parent: UserFilter """A related `parent` exists.""" parentExists: Boolean +} + +""" +A filter to be used against many `OrgPermissionDefault` object types. All fields are combined with a logical ‘and.’ +""" +input UserToManyOrgPermissionDefaultFilter { + """Filters to entities where at least one related entity matches.""" + some: OrgPermissionDefaultFilter - """TRGM search on the `position_title` column.""" - trgmPositionTitle: TrgmSearchInput + """Filters to entities where every related entity matches.""" + every: OrgPermissionDefaultFilter - """ - Composite full-text search. Provide a search string and it will be dispatched - to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - simultaneously. Rows matching ANY algorithm are returned. All matching score - fields are populated. - """ - fullTextSearch: String + """Filters to entities where no related entity matches.""" + none: OrgPermissionDefaultFilter +} + +""" +A filter to be used against `OrgPermissionDefault` object types. All fields are combined with a logical ‘and.’ +""" +input OrgPermissionDefaultFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `permissions` field.""" + permissions: BitStringFilter + + """Filter by the object’s `entityId` field.""" + entityId: UUIDFilter + + """Checks for all expressions in this list.""" + and: [OrgPermissionDefaultFilter!] + + """Checks for any expressions in this list.""" + or: [OrgPermissionDefaultFilter!] + + """Negates the expression.""" + not: OrgPermissionDefaultFilter + + """Filter by the object’s `entity` relation.""" + entity: UserFilter } """ @@ -9317,49 +10134,92 @@ input AppAchievementFilter { } """ -A filter to be used against many `Invite` object types. All fields are combined with a logical ‘and.’ +A filter to be used against many `AppLevel` object types. All fields are combined with a logical ‘and.’ """ -input UserToManyInviteFilter { +input UserToManyAppLevelFilter { """Filters to entities where at least one related entity matches.""" - some: InviteFilter + some: AppLevelFilter """Filters to entities where every related entity matches.""" - every: InviteFilter + every: AppLevelFilter """Filters to entities where no related entity matches.""" - none: InviteFilter + none: AppLevelFilter } """ -A filter to be used against `Invite` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `AppLevel` object types. All fields are combined with a logical ‘and.’ """ -input InviteFilter { +input AppLevelFilter { """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `email` field.""" - email: ConstructiveInternalTypeEmailFilter + """Filter by the object’s `name` field.""" + name: StringFilter - """Filter by the object’s `senderId` field.""" - senderId: UUIDFilter + """Filter by the object’s `description` field.""" + description: StringFilter - """Filter by the object’s `inviteToken` field.""" - inviteToken: StringFilter + """Filter by the object’s `image` field.""" + image: ConstructiveInternalTypeImageFilter - """Filter by the object’s `inviteValid` field.""" - inviteValid: BooleanFilter + """Filter by the object’s `ownerId` field.""" + ownerId: UUIDFilter - """Filter by the object’s `inviteLimit` field.""" - inviteLimit: IntFilter + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter - """Filter by the object’s `inviteCount` field.""" - inviteCount: IntFilter + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter - """Filter by the object’s `multiple` field.""" - multiple: BooleanFilter + """Checks for all expressions in this list.""" + and: [AppLevelFilter!] - """Filter by the object’s `expiresAt` field.""" - expiresAt: DatetimeFilter + """Checks for any expressions in this list.""" + or: [AppLevelFilter!] + + """Negates the expression.""" + not: AppLevelFilter + + """Filter by the object’s `owner` relation.""" + owner: UserFilter + + """A related `owner` exists.""" + ownerExists: Boolean +} + +""" +A filter to be used against many `Email` object types. All fields are combined with a logical ‘and.’ +""" +input UserToManyEmailFilter { + """Filters to entities where at least one related entity matches.""" + some: EmailFilter + + """Filters to entities where every related entity matches.""" + every: EmailFilter + + """Filters to entities where no related entity matches.""" + none: EmailFilter +} + +""" +A filter to be used against `Email` object types. All fields are combined with a logical ‘and.’ +""" +input EmailFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `ownerId` field.""" + ownerId: UUIDFilter + + """Filter by the object’s `email` field.""" + email: ConstructiveInternalTypeEmailFilter + + """Filter by the object’s `isVerified` field.""" + isVerified: BooleanFilter + + """Filter by the object’s `isPrimary` field.""" + isPrimary: BooleanFilter """Filter by the object’s `createdAt` field.""" createdAt: DatetimeFilter @@ -9368,27 +10228,16 @@ input InviteFilter { updatedAt: DatetimeFilter """Checks for all expressions in this list.""" - and: [InviteFilter!] + and: [EmailFilter!] """Checks for any expressions in this list.""" - or: [InviteFilter!] + or: [EmailFilter!] """Negates the expression.""" - not: InviteFilter - - """Filter by the object’s `sender` relation.""" - sender: UserFilter - - """TRGM search on the `invite_token` column.""" - trgmInviteToken: TrgmSearchInput + not: EmailFilter - """ - Composite full-text search. Provide a search string and it will be dispatched - to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - simultaneously. Rows matching ANY algorithm are returned. All matching score - fields are populated. - """ - fullTextSearch: String + """Filter by the object’s `owner` relation.""" + owner: UserFilter } """ @@ -9525,6 +10374,232 @@ input ConstructiveInternalTypeEmailFilter { scalar ConstructiveInternalTypeEmail +""" +A filter to be used against many `PhoneNumber` object types. All fields are combined with a logical ‘and.’ +""" +input UserToManyPhoneNumberFilter { + """Filters to entities where at least one related entity matches.""" + some: PhoneNumberFilter + + """Filters to entities where every related entity matches.""" + every: PhoneNumberFilter + + """Filters to entities where no related entity matches.""" + none: PhoneNumberFilter +} + +""" +A filter to be used against `PhoneNumber` object types. All fields are combined with a logical ‘and.’ +""" +input PhoneNumberFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `ownerId` field.""" + ownerId: UUIDFilter + + """Filter by the object’s `cc` field.""" + cc: StringFilter + + """Filter by the object’s `number` field.""" + number: StringFilter + + """Filter by the object’s `isVerified` field.""" + isVerified: BooleanFilter + + """Filter by the object’s `isPrimary` field.""" + isPrimary: BooleanFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """Checks for all expressions in this list.""" + and: [PhoneNumberFilter!] + + """Checks for any expressions in this list.""" + or: [PhoneNumberFilter!] + + """Negates the expression.""" + not: PhoneNumberFilter + + """Filter by the object’s `owner` relation.""" + owner: UserFilter +} + +""" +A filter to be used against many `CryptoAddress` object types. All fields are combined with a logical ‘and.’ +""" +input UserToManyCryptoAddressFilter { + """Filters to entities where at least one related entity matches.""" + some: CryptoAddressFilter + + """Filters to entities where every related entity matches.""" + every: CryptoAddressFilter + + """Filters to entities where no related entity matches.""" + none: CryptoAddressFilter +} + +""" +A filter to be used against `CryptoAddress` object types. All fields are combined with a logical ‘and.’ +""" +input CryptoAddressFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `ownerId` field.""" + ownerId: UUIDFilter + + """Filter by the object’s `address` field.""" + address: StringFilter + + """Filter by the object’s `isVerified` field.""" + isVerified: BooleanFilter + + """Filter by the object’s `isPrimary` field.""" + isPrimary: BooleanFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """Checks for all expressions in this list.""" + and: [CryptoAddressFilter!] + + """Checks for any expressions in this list.""" + or: [CryptoAddressFilter!] + + """Negates the expression.""" + not: CryptoAddressFilter + + """Filter by the object’s `owner` relation.""" + owner: UserFilter +} + +""" +A filter to be used against many `ConnectedAccount` object types. All fields are combined with a logical ‘and.’ +""" +input UserToManyConnectedAccountFilter { + """Filters to entities where at least one related entity matches.""" + some: ConnectedAccountFilter + + """Filters to entities where every related entity matches.""" + every: ConnectedAccountFilter + + """Filters to entities where no related entity matches.""" + none: ConnectedAccountFilter +} + +""" +A filter to be used against `ConnectedAccount` object types. All fields are combined with a logical ‘and.’ +""" +input ConnectedAccountFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `ownerId` field.""" + ownerId: UUIDFilter + + """Filter by the object’s `service` field.""" + service: StringFilter + + """Filter by the object’s `identifier` field.""" + identifier: StringFilter + + """Filter by the object’s `details` field.""" + details: JSONFilter + + """Filter by the object’s `isVerified` field.""" + isVerified: BooleanFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """Checks for all expressions in this list.""" + and: [ConnectedAccountFilter!] + + """Checks for any expressions in this list.""" + or: [ConnectedAccountFilter!] + + """Negates the expression.""" + not: ConnectedAccountFilter + + """Filter by the object’s `owner` relation.""" + owner: UserFilter +} + +""" +A filter to be used against many `Invite` object types. All fields are combined with a logical ‘and.’ +""" +input UserToManyInviteFilter { + """Filters to entities where at least one related entity matches.""" + some: InviteFilter + + """Filters to entities where every related entity matches.""" + every: InviteFilter + + """Filters to entities where no related entity matches.""" + none: InviteFilter +} + +""" +A filter to be used against `Invite` object types. All fields are combined with a logical ‘and.’ +""" +input InviteFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `email` field.""" + email: ConstructiveInternalTypeEmailFilter + + """Filter by the object’s `senderId` field.""" + senderId: UUIDFilter + + """Filter by the object’s `inviteToken` field.""" + inviteToken: StringFilter + + """Filter by the object’s `inviteValid` field.""" + inviteValid: BooleanFilter + + """Filter by the object’s `inviteLimit` field.""" + inviteLimit: IntFilter + + """Filter by the object’s `inviteCount` field.""" + inviteCount: IntFilter + + """Filter by the object’s `multiple` field.""" + multiple: BooleanFilter + + """Filter by the object’s `expiresAt` field.""" + expiresAt: DatetimeFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """Checks for all expressions in this list.""" + and: [InviteFilter!] + + """Checks for any expressions in this list.""" + or: [InviteFilter!] + + """Negates the expression.""" + not: InviteFilter + + """Filter by the object’s `sender` relation.""" + sender: UserFilter +} + """ A filter to be used against many `ClaimedInvite` object types. All fields are combined with a logical ‘and.’ """ @@ -9657,17 +10732,6 @@ input OrgInviteFilter { """Filter by the object’s `sender` relation.""" sender: UserFilter - - """TRGM search on the `invite_token` column.""" - trgmInviteToken: TrgmSearchInput - - """ - Composite full-text search. Provide a search string and it will be dispatched - to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - simultaneously. Rows matching ANY algorithm are returned. All matching score - fields are populated. - """ - fullTextSearch: String } """ @@ -9732,143 +10796,375 @@ input OrgClaimedInviteFilter { } """ -A filter to be used against many `Schema` object types. All fields are combined with a logical ‘and.’ +A filter to be used against many `AuditLog` object types. All fields are combined with a logical ‘and.’ """ -input DatabaseToManySchemaFilter { +input UserToManyAuditLogFilter { """Filters to entities where at least one related entity matches.""" - some: SchemaFilter + some: AuditLogFilter """Filters to entities where every related entity matches.""" - every: SchemaFilter + every: AuditLogFilter """Filters to entities where no related entity matches.""" - none: SchemaFilter + none: AuditLogFilter } """ -A filter to be used against `Schema` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `AuditLog` object types. All fields are combined with a logical ‘and.’ """ -input SchemaFilter { +input AuditLogFilter { """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter - - """Filter by the object’s `name` field.""" - name: StringFilter - - """Filter by the object’s `schemaName` field.""" - schemaName: StringFilter - - """Filter by the object’s `label` field.""" - label: StringFilter - - """Filter by the object’s `description` field.""" - description: StringFilter - - """Filter by the object’s `smartTags` field.""" - smartTags: JSONFilter + """Filter by the object’s `event` field.""" + event: StringFilter - """Filter by the object’s `category` field.""" - category: ObjectCategoryFilter + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter - """Filter by the object’s `module` field.""" - module: StringFilter + """Filter by the object’s `origin` field.""" + origin: ConstructiveInternalTypeOriginFilter - """Filter by the object’s `scope` field.""" - scope: IntFilter + """Filter by the object’s `userAgent` field.""" + userAgent: StringFilter - """Filter by the object’s `tags` field.""" - tags: StringListFilter + """Filter by the object’s `ipAddress` field.""" + ipAddress: InternetAddressFilter - """Filter by the object’s `isPublic` field.""" - isPublic: BooleanFilter + """Filter by the object’s `success` field.""" + success: BooleanFilter """Filter by the object’s `createdAt` field.""" createdAt: DatetimeFilter - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter - """Checks for all expressions in this list.""" - and: [SchemaFilter!] + and: [AuditLogFilter!] """Checks for any expressions in this list.""" - or: [SchemaFilter!] + or: [AuditLogFilter!] """Negates the expression.""" - not: SchemaFilter + not: AuditLogFilter - """Filter by the object’s `database` relation.""" - database: DatabaseFilter + """Filter by the object’s `actor` relation.""" + actor: UserFilter - """Filter by the object’s `tables` relation.""" - tables: SchemaToManyTableFilter + """A related `actor` exists.""" + actorExists: Boolean +} - """`tables` exist.""" - tablesExist: Boolean +""" +A filter to be used against ConstructiveInternalTypeOrigin fields. All fields are combined with a logical ‘and.’ +""" +input ConstructiveInternalTypeOriginFilter { + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean - """Filter by the object’s `schemaGrants` relation.""" - schemaGrants: SchemaToManySchemaGrantFilter + """Equal to the specified value.""" + equalTo: ConstructiveInternalTypeOrigin - """`schemaGrants` exist.""" - schemaGrantsExist: Boolean + """Not equal to the specified value.""" + notEqualTo: ConstructiveInternalTypeOrigin - """Filter by the object’s `views` relation.""" - views: SchemaToManyViewFilter + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: ConstructiveInternalTypeOrigin - """`views` exist.""" - viewsExist: Boolean + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: ConstructiveInternalTypeOrigin - """Filter by the object’s `defaultPrivileges` relation.""" - defaultPrivileges: SchemaToManyDefaultPrivilegeFilter + """Included in the specified list.""" + in: [ConstructiveInternalTypeOrigin!] - """`defaultPrivileges` exist.""" - defaultPrivilegesExist: Boolean + """Not included in the specified list.""" + notIn: [ConstructiveInternalTypeOrigin!] - """Filter by the object’s `apiSchemas` relation.""" - apiSchemas: SchemaToManyApiSchemaFilter + """Less than the specified value.""" + lessThan: ConstructiveInternalTypeOrigin - """`apiSchemas` exist.""" - apiSchemasExist: Boolean + """Less than or equal to the specified value.""" + lessThanOrEqualTo: ConstructiveInternalTypeOrigin - """ - Filter by the object’s `tableTemplateModulesByPrivateSchemaId` relation. - """ - tableTemplateModulesByPrivateSchemaId: SchemaToManyTableTemplateModuleFilter + """Greater than the specified value.""" + greaterThan: ConstructiveInternalTypeOrigin - """`tableTemplateModulesByPrivateSchemaId` exist.""" - tableTemplateModulesByPrivateSchemaIdExist: Boolean + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: ConstructiveInternalTypeOrigin - """Filter by the object’s `tableTemplateModules` relation.""" - tableTemplateModules: SchemaToManyTableTemplateModuleFilter + """Contains the specified string (case-sensitive).""" + includes: ConstructiveInternalTypeOrigin - """`tableTemplateModules` exist.""" - tableTemplateModulesExist: Boolean + """Does not contain the specified string (case-sensitive).""" + notIncludes: ConstructiveInternalTypeOrigin - """TRGM search on the `name` column.""" - trgmName: TrgmSearchInput + """Contains the specified string (case-insensitive).""" + includesInsensitive: ConstructiveInternalTypeOrigin - """TRGM search on the `schema_name` column.""" - trgmSchemaName: TrgmSearchInput + """Does not contain the specified string (case-insensitive).""" + notIncludesInsensitive: ConstructiveInternalTypeOrigin - """TRGM search on the `label` column.""" - trgmLabel: TrgmSearchInput + """Starts with the specified string (case-sensitive).""" + startsWith: ConstructiveInternalTypeOrigin - """TRGM search on the `description` column.""" - trgmDescription: TrgmSearchInput + """Does not start with the specified string (case-sensitive).""" + notStartsWith: ConstructiveInternalTypeOrigin - """TRGM search on the `module` column.""" - trgmModule: TrgmSearchInput + """Starts with the specified string (case-insensitive).""" + startsWithInsensitive: ConstructiveInternalTypeOrigin - """ - Composite full-text search. Provide a search string and it will be dispatched - to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - simultaneously. Rows matching ANY algorithm are returned. All matching score - fields are populated. - """ - fullTextSearch: String + """Does not start with the specified string (case-insensitive).""" + notStartsWithInsensitive: ConstructiveInternalTypeOrigin + + """Ends with the specified string (case-sensitive).""" + endsWith: ConstructiveInternalTypeOrigin + + """Does not end with the specified string (case-sensitive).""" + notEndsWith: ConstructiveInternalTypeOrigin + + """Ends with the specified string (case-insensitive).""" + endsWithInsensitive: ConstructiveInternalTypeOrigin + + """Does not end with the specified string (case-insensitive).""" + notEndsWithInsensitive: ConstructiveInternalTypeOrigin + + """ + Matches the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. + """ + like: ConstructiveInternalTypeOrigin + + """ + Does not match the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. + """ + notLike: ConstructiveInternalTypeOrigin + + """ + Matches the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. + """ + likeInsensitive: ConstructiveInternalTypeOrigin + + """ + Does not match the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. + """ + notLikeInsensitive: ConstructiveInternalTypeOrigin + + """Equal to the specified value (case-insensitive).""" + equalToInsensitive: String + + """Not equal to the specified value (case-insensitive).""" + notEqualToInsensitive: String + + """ + Not equal to the specified value, treating null like an ordinary value (case-insensitive). + """ + distinctFromInsensitive: String + + """ + Equal to the specified value, treating null like an ordinary value (case-insensitive). + """ + notDistinctFromInsensitive: String + + """Included in the specified list (case-insensitive).""" + inInsensitive: [String!] + + """Not included in the specified list (case-insensitive).""" + notInInsensitive: [String!] + + """Less than the specified value (case-insensitive).""" + lessThanInsensitive: String + + """Less than or equal to the specified value (case-insensitive).""" + lessThanOrEqualToInsensitive: String + + """Greater than the specified value (case-insensitive).""" + greaterThanInsensitive: String + + """Greater than or equal to the specified value (case-insensitive).""" + greaterThanOrEqualToInsensitive: String +} + +scalar ConstructiveInternalTypeOrigin + +""" +A filter to be used against InternetAddress fields. All fields are combined with a logical ‘and.’ +""" +input InternetAddressFilter { + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean + + """Equal to the specified value.""" + equalTo: InternetAddress + + """Not equal to the specified value.""" + notEqualTo: InternetAddress + + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: InternetAddress + + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: InternetAddress + + """Included in the specified list.""" + in: [InternetAddress!] + + """Not included in the specified list.""" + notIn: [InternetAddress!] + + """Less than the specified value.""" + lessThan: InternetAddress + + """Less than or equal to the specified value.""" + lessThanOrEqualTo: InternetAddress + + """Greater than the specified value.""" + greaterThan: InternetAddress + + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: InternetAddress + + """Contains the specified internet address.""" + contains: InternetAddress + + """Contains or equal to the specified internet address.""" + containsOrEqualTo: InternetAddress + + """Contained by the specified internet address.""" + containedBy: InternetAddress + + """Contained by or equal to the specified internet address.""" + containedByOrEqualTo: InternetAddress + + """Contains or contained by the specified internet address.""" + containsOrContainedBy: InternetAddress +} + +""" +A filter to be used against many `Schema` object types. All fields are combined with a logical ‘and.’ +""" +input DatabaseToManySchemaFilter { + """Filters to entities where at least one related entity matches.""" + some: SchemaFilter + + """Filters to entities where every related entity matches.""" + every: SchemaFilter + + """Filters to entities where no related entity matches.""" + none: SchemaFilter +} + +""" +A filter to be used against `Schema` object types. All fields are combined with a logical ‘and.’ +""" +input SchemaFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Filter by the object’s `schemaName` field.""" + schemaName: StringFilter + + """Filter by the object’s `label` field.""" + label: StringFilter + + """Filter by the object’s `description` field.""" + description: StringFilter + + """Filter by the object’s `smartTags` field.""" + smartTags: JSONFilter + + """Filter by the object’s `category` field.""" + category: ObjectCategoryFilter + + """Filter by the object’s `module` field.""" + module: StringFilter + + """Filter by the object’s `scope` field.""" + scope: IntFilter + + """Filter by the object’s `tags` field.""" + tags: StringListFilter + + """Filter by the object’s `isPublic` field.""" + isPublic: BooleanFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """Checks for all expressions in this list.""" + and: [SchemaFilter!] + + """Checks for any expressions in this list.""" + or: [SchemaFilter!] + + """Negates the expression.""" + not: SchemaFilter + + """Filter by the object’s `database` relation.""" + database: DatabaseFilter + + """Filter by the object’s `tables` relation.""" + tables: SchemaToManyTableFilter + + """`tables` exist.""" + tablesExist: Boolean + + """Filter by the object’s `schemaGrants` relation.""" + schemaGrants: SchemaToManySchemaGrantFilter + + """`schemaGrants` exist.""" + schemaGrantsExist: Boolean + + """Filter by the object’s `views` relation.""" + views: SchemaToManyViewFilter + + """`views` exist.""" + viewsExist: Boolean + + """Filter by the object’s `defaultPrivileges` relation.""" + defaultPrivileges: SchemaToManyDefaultPrivilegeFilter + + """`defaultPrivileges` exist.""" + defaultPrivilegesExist: Boolean + + """Filter by the object’s `enums` relation.""" + enums: SchemaToManyEnumFilter + + """`enums` exist.""" + enumsExist: Boolean + + """Filter by the object’s `apiSchemas` relation.""" + apiSchemas: SchemaToManyApiSchemaFilter + + """`apiSchemas` exist.""" + apiSchemasExist: Boolean + + """ + Filter by the object’s `tableTemplateModulesByPrivateSchemaId` relation. + """ + tableTemplateModulesByPrivateSchemaId: SchemaToManyTableTemplateModuleFilter + + """`tableTemplateModulesByPrivateSchemaId` exist.""" + tableTemplateModulesByPrivateSchemaIdExist: Boolean + + """Filter by the object’s `tableTemplateModules` relation.""" + tableTemplateModules: SchemaToManyTableTemplateModuleFilter + + """`tableTemplateModules` exist.""" + tableTemplateModulesExist: Boolean } """ @@ -10039,6 +11335,18 @@ input TableFilter { """`viewTables` exist.""" viewTablesExist: Boolean + """Filter by the object’s `embeddingChunksByChunksTableId` relation.""" + embeddingChunksByChunksTableId: TableToManyEmbeddingChunkFilter + + """`embeddingChunksByChunksTableId` exist.""" + embeddingChunksByChunksTableIdExist: Boolean + + """Filter by the object’s `embeddingChunks` relation.""" + embeddingChunks: TableToManyEmbeddingChunkFilter + + """`embeddingChunks` exist.""" + embeddingChunksExist: Boolean + """Filter by the object’s `tableTemplateModulesByOwnerTableId` relation.""" tableTemplateModulesByOwnerTableId: TableToManyTableTemplateModuleFilter @@ -10068,32 +11376,6 @@ input TableFilter { """`relationProvisionsByTargetTableId` exist.""" relationProvisionsByTargetTableIdExist: Boolean - - """TRGM search on the `name` column.""" - trgmName: TrgmSearchInput - - """TRGM search on the `label` column.""" - trgmLabel: TrgmSearchInput - - """TRGM search on the `description` column.""" - trgmDescription: TrgmSearchInput - - """TRGM search on the `module` column.""" - trgmModule: TrgmSearchInput - - """TRGM search on the `plural_name` column.""" - trgmPluralName: TrgmSearchInput - - """TRGM search on the `singular_name` column.""" - trgmSingularName: TrgmSearchInput - - """ - Composite full-text search. Provide a search string and it will be dispatched - to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - simultaneously. Rows matching ANY algorithm are returned. All matching score - fields are populated. - """ - fullTextSearch: String } """ @@ -10152,6 +11434,9 @@ input FieldFilter { """Filter by the object’s `isRequired` field.""" isRequired: BooleanFilter + """Filter by the object’s `apiRequired` field.""" + apiRequired: BooleanFilter + """Filter by the object’s `defaultValue` field.""" defaultValue: StringFilter @@ -10214,32 +11499,6 @@ input FieldFilter { """Filter by the object’s `table` relation.""" table: TableFilter - - """TRGM search on the `name` column.""" - trgmName: TrgmSearchInput - - """TRGM search on the `label` column.""" - trgmLabel: TrgmSearchInput - - """TRGM search on the `description` column.""" - trgmDescription: TrgmSearchInput - - """TRGM search on the `default_value` column.""" - trgmDefaultValue: TrgmSearchInput - - """TRGM search on the `regexp` column.""" - trgmRegexp: TrgmSearchInput - - """TRGM search on the `module` column.""" - trgmModule: TrgmSearchInput - - """ - Composite full-text search. Provide a search string and it will be dispatched - to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - simultaneously. Rows matching ANY algorithm are returned. All matching score - fields are populated. - """ - fullTextSearch: String } """ @@ -10373,32 +11632,6 @@ input ForeignKeyConstraintFilter { """Filter by the object’s `table` relation.""" table: TableFilter - - """TRGM search on the `name` column.""" - trgmName: TrgmSearchInput - - """TRGM search on the `description` column.""" - trgmDescription: TrgmSearchInput - - """TRGM search on the `type` column.""" - trgmType: TrgmSearchInput - - """TRGM search on the `delete_action` column.""" - trgmDeleteAction: TrgmSearchInput - - """TRGM search on the `update_action` column.""" - trgmUpdateAction: TrgmSearchInput - - """TRGM search on the `module` column.""" - trgmModule: TrgmSearchInput - - """ - Composite full-text search. Provide a search string and it will be dispatched - to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - simultaneously. Rows matching ANY algorithm are returned. All matching score - fields are populated. - """ - fullTextSearch: String } """ @@ -10551,23 +11784,6 @@ input IndexFilter { """Filter by the object’s `table` relation.""" table: TableFilter - - """TRGM search on the `name` column.""" - trgmName: TrgmSearchInput - - """TRGM search on the `access_method` column.""" - trgmAccessMethod: TrgmSearchInput - - """TRGM search on the `module` column.""" - trgmModule: TrgmSearchInput - - """ - Composite full-text search. Provide a search string and it will be dispatched - to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - simultaneously. Rows matching ANY algorithm are returned. All matching score - fields are populated. - """ - fullTextSearch: String } """ @@ -10653,29 +11869,6 @@ input PolicyFilter { """Filter by the object’s `table` relation.""" table: TableFilter - - """TRGM search on the `name` column.""" - trgmName: TrgmSearchInput - - """TRGM search on the `grantee_name` column.""" - trgmGranteeName: TrgmSearchInput - - """TRGM search on the `privilege` column.""" - trgmPrivilege: TrgmSearchInput - - """TRGM search on the `policy_type` column.""" - trgmPolicyType: TrgmSearchInput - - """TRGM search on the `module` column.""" - trgmModule: TrgmSearchInput - - """ - Composite full-text search. Provide a search string and it will be dispatched - to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - simultaneously. Rows matching ANY algorithm are returned. All matching score - fields are populated. - """ - fullTextSearch: String } """ @@ -10749,23 +11942,6 @@ input PrimaryKeyConstraintFilter { """Filter by the object’s `table` relation.""" table: TableFilter - - """TRGM search on the `name` column.""" - trgmName: TrgmSearchInput - - """TRGM search on the `type` column.""" - trgmType: TrgmSearchInput - - """TRGM search on the `module` column.""" - trgmModule: TrgmSearchInput - - """ - Composite full-text search. Provide a search string and it will be dispatched - to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - simultaneously. Rows matching ANY algorithm are returned. All matching score - fields are populated. - """ - fullTextSearch: String } """ @@ -10827,20 +12003,6 @@ input TableGrantFilter { """Filter by the object’s `table` relation.""" table: TableFilter - - """TRGM search on the `privilege` column.""" - trgmPrivilege: TrgmSearchInput - - """TRGM search on the `grantee_name` column.""" - trgmGranteeName: TrgmSearchInput - - """ - Composite full-text search. Provide a search string and it will be dispatched - to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - simultaneously. Rows matching ANY algorithm are returned. All matching score - fields are populated. - """ - fullTextSearch: String } """ @@ -10914,26 +12076,6 @@ input TriggerFilter { """Filter by the object’s `table` relation.""" table: TableFilter - - """TRGM search on the `name` column.""" - trgmName: TrgmSearchInput - - """TRGM search on the `event` column.""" - trgmEvent: TrgmSearchInput - - """TRGM search on the `function_name` column.""" - trgmFunctionName: TrgmSearchInput - - """TRGM search on the `module` column.""" - trgmModule: TrgmSearchInput - - """ - Composite full-text search. Provide a search string and it will be dispatched - to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - simultaneously. Rows matching ANY algorithm are returned. All matching score - fields are populated. - """ - fullTextSearch: String } """ @@ -11010,26 +12152,6 @@ input UniqueConstraintFilter { """Filter by the object’s `table` relation.""" table: TableFilter - - """TRGM search on the `name` column.""" - trgmName: TrgmSearchInput - - """TRGM search on the `description` column.""" - trgmDescription: TrgmSearchInput - - """TRGM search on the `type` column.""" - trgmType: TrgmSearchInput - - """TRGM search on the `module` column.""" - trgmModule: TrgmSearchInput - - """ - Composite full-text search. Provide a search string and it will be dispatched - to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - simultaneously. Rows matching ANY algorithm are returned. All matching score - fields are populated. - """ - fullTextSearch: String } """ @@ -11136,26 +12258,6 @@ input ViewFilter { """`viewRules` exist.""" viewRulesExist: Boolean - - """TRGM search on the `name` column.""" - trgmName: TrgmSearchInput - - """TRGM search on the `view_type` column.""" - trgmViewType: TrgmSearchInput - - """TRGM search on the `filter_type` column.""" - trgmFilterType: TrgmSearchInput - - """TRGM search on the `module` column.""" - trgmModule: TrgmSearchInput - - """ - Composite full-text search. Provide a search string and it will be dispatched - to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - simultaneously. Rows matching ANY algorithm are returned. All matching score - fields are populated. - """ - fullTextSearch: String } """ @@ -11257,20 +12359,6 @@ input ViewGrantFilter { """Filter by the object’s `view` relation.""" view: ViewFilter - - """TRGM search on the `grantee_name` column.""" - trgmGranteeName: TrgmSearchInput - - """TRGM search on the `privilege` column.""" - trgmPrivilege: TrgmSearchInput - - """ - Composite full-text search. Provide a search string and it will be dispatched - to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - simultaneously. Rows matching ANY algorithm are returned. All matching score - fields are populated. - """ - fullTextSearch: String } """ @@ -11323,23 +12411,6 @@ input ViewRuleFilter { """Filter by the object’s `view` relation.""" view: ViewFilter - - """TRGM search on the `name` column.""" - trgmName: TrgmSearchInput - - """TRGM search on the `event` column.""" - trgmEvent: TrgmSearchInput - - """TRGM search on the `action` column.""" - trgmAction: TrgmSearchInput - - """ - Composite full-text search. Provide a search string and it will be dispatched - to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - simultaneously. Rows matching ANY algorithm are returned. All matching score - fields are populated. - """ - fullTextSearch: String } """ @@ -11356,6 +12427,112 @@ input TableToManyViewTableFilter { none: ViewTableFilter } +""" +A filter to be used against many `EmbeddingChunk` object types. All fields are combined with a logical ‘and.’ +""" +input TableToManyEmbeddingChunkFilter { + """Filters to entities where at least one related entity matches.""" + some: EmbeddingChunkFilter + + """Filters to entities where every related entity matches.""" + every: EmbeddingChunkFilter + + """Filters to entities where no related entity matches.""" + none: EmbeddingChunkFilter +} + +""" +A filter to be used against `EmbeddingChunk` object types. All fields are combined with a logical ‘and.’ +""" +input EmbeddingChunkFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `tableId` field.""" + tableId: UUIDFilter + + """Filter by the object’s `embeddingFieldId` field.""" + embeddingFieldId: UUIDFilter + + """Filter by the object’s `chunksTableId` field.""" + chunksTableId: UUIDFilter + + """Filter by the object’s `chunksTableName` field.""" + chunksTableName: StringFilter + + """Filter by the object’s `contentFieldName` field.""" + contentFieldName: StringFilter + + """Filter by the object’s `dimensions` field.""" + dimensions: IntFilter + + """Filter by the object’s `metric` field.""" + metric: StringFilter + + """Filter by the object’s `chunkSize` field.""" + chunkSize: IntFilter + + """Filter by the object’s `chunkOverlap` field.""" + chunkOverlap: IntFilter + + """Filter by the object’s `chunkStrategy` field.""" + chunkStrategy: StringFilter + + """Filter by the object’s `metadataFields` field.""" + metadataFields: JSONFilter + + """Filter by the object’s `enqueueChunkingJob` field.""" + enqueueChunkingJob: BooleanFilter + + """Filter by the object’s `chunkingTaskName` field.""" + chunkingTaskName: StringFilter + + """Filter by the object’s `parentFkFieldId` field.""" + parentFkFieldId: UUIDFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """Checks for all expressions in this list.""" + and: [EmbeddingChunkFilter!] + + """Checks for any expressions in this list.""" + or: [EmbeddingChunkFilter!] + + """Negates the expression.""" + not: EmbeddingChunkFilter + + """Filter by the object’s `chunksTable` relation.""" + chunksTable: TableFilter + + """A related `chunksTable` exists.""" + chunksTableExists: Boolean + + """Filter by the object’s `database` relation.""" + database: DatabaseFilter + + """Filter by the object’s `embeddingField` relation.""" + embeddingField: FieldFilter + + """A related `embeddingField` exists.""" + embeddingFieldExists: Boolean + + """Filter by the object’s `parentFkField` relation.""" + parentFkField: FieldFilter + + """A related `parentFkField` exists.""" + parentFkFieldExists: Boolean + + """Filter by the object’s `table` relation.""" + table: TableFilter +} + """ A filter to be used against many `TableTemplateModule` object types. All fields are combined with a logical ‘and.’ """ @@ -11424,20 +12601,6 @@ input TableTemplateModuleFilter { """Filter by the object’s `table` relation.""" table: TableFilter - - """TRGM search on the `table_name` column.""" - trgmTableName: TrgmSearchInput - - """TRGM search on the `node_type` column.""" - trgmNodeType: TrgmSearchInput - - """ - Composite full-text search. Provide a search string and it will be dispatched - to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - simultaneously. Rows matching ANY algorithm are returned. All matching score - fields are populated. - """ - fullTextSearch: String } """ @@ -11483,13 +12646,13 @@ input SecureTableProvisionFilter { nodeData: JSONFilter """Filter by the object’s `fields` field.""" - fields: JSONFilter + fields: JSONListFilter """Filter by the object’s `grantRoles` field.""" grantRoles: StringListFilter """Filter by the object’s `grantPrivileges` field.""" - grantPrivileges: JSONFilter + grantPrivileges: JSONListFilter """Filter by the object’s `policyType` field.""" policyType: StringFilter @@ -11529,29 +12692,69 @@ input SecureTableProvisionFilter { """Filter by the object’s `table` relation.""" table: TableFilter +} - """TRGM search on the `table_name` column.""" - trgmTableName: TrgmSearchInput - - """TRGM search on the `node_type` column.""" - trgmNodeType: TrgmSearchInput - - """TRGM search on the `policy_type` column.""" - trgmPolicyType: TrgmSearchInput +""" +A filter to be used against JSON List fields. All fields are combined with a logical ‘and.’ +""" +input JSONListFilter { + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean - """TRGM search on the `policy_role` column.""" - trgmPolicyRole: TrgmSearchInput + """Equal to the specified value.""" + equalTo: [JSON] - """TRGM search on the `policy_name` column.""" - trgmPolicyName: TrgmSearchInput + """Not equal to the specified value.""" + notEqualTo: [JSON] """ - Composite full-text search. Provide a search string and it will be dispatched - to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - simultaneously. Rows matching ANY algorithm are returned. All matching score - fields are populated. + Not equal to the specified value, treating null like an ordinary value. """ - fullTextSearch: String + distinctFrom: [JSON] + + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: [JSON] + + """Less than the specified value.""" + lessThan: [JSON] + + """Less than or equal to the specified value.""" + lessThanOrEqualTo: [JSON] + + """Greater than the specified value.""" + greaterThan: [JSON] + + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: [JSON] + + """Contains the specified list of values.""" + contains: [JSON] + + """Contained by the specified list of values.""" + containedBy: [JSON] + + """Overlaps the specified list of values.""" + overlaps: [JSON] + + """Any array item is equal to the specified value.""" + anyEqualTo: JSON + + """Any array item is not equal to the specified value.""" + anyNotEqualTo: JSON + + """Any array item is less than the specified value.""" + anyLessThan: JSON + + """Any array item is less than or equal to the specified value.""" + anyLessThanOrEqualTo: JSON + + """Any array item is greater than the specified value.""" + anyGreaterThan: JSON + + """Any array item is greater than or equal to the specified value.""" + anyGreaterThanOrEqualTo: JSON } """ @@ -11596,6 +12799,9 @@ input RelationProvisionFilter { """Filter by the object’s `isRequired` field.""" isRequired: BooleanFilter + """Filter by the object’s `apiRequired` field.""" + apiRequired: BooleanFilter + """Filter by the object’s `junctionTableId` field.""" junctionTableId: UUIDFilter @@ -11614,6 +12820,12 @@ input RelationProvisionFilter { """Filter by the object’s `useCompositeKey` field.""" useCompositeKey: BooleanFilter + """Filter by the object’s `createIndex` field.""" + createIndex: BooleanFilter + + """Filter by the object’s `exposeInApi` field.""" + exposeInApi: BooleanFilter + """Filter by the object’s `nodeType` field.""" nodeType: StringFilter @@ -11624,7 +12836,7 @@ input RelationProvisionFilter { grantRoles: StringListFilter """Filter by the object’s `grantPrivileges` field.""" - grantPrivileges: JSONFilter + grantPrivileges: JSONListFilter """Filter by the object’s `policyType` field.""" policyType: StringFilter @@ -11673,44 +12885,6 @@ input RelationProvisionFilter { """Filter by the object’s `targetTable` relation.""" targetTable: TableFilter - - """TRGM search on the `relation_type` column.""" - trgmRelationType: TrgmSearchInput - - """TRGM search on the `field_name` column.""" - trgmFieldName: TrgmSearchInput - - """TRGM search on the `delete_action` column.""" - trgmDeleteAction: TrgmSearchInput - - """TRGM search on the `junction_table_name` column.""" - trgmJunctionTableName: TrgmSearchInput - - """TRGM search on the `source_field_name` column.""" - trgmSourceFieldName: TrgmSearchInput - - """TRGM search on the `target_field_name` column.""" - trgmTargetFieldName: TrgmSearchInput - - """TRGM search on the `node_type` column.""" - trgmNodeType: TrgmSearchInput - - """TRGM search on the `policy_type` column.""" - trgmPolicyType: TrgmSearchInput - - """TRGM search on the `policy_role` column.""" - trgmPolicyRole: TrgmSearchInput - - """TRGM search on the `policy_name` column.""" - trgmPolicyName: TrgmSearchInput - - """ - Composite full-text search. Provide a search string and it will be dispatched - to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - simultaneously. Rows matching ANY algorithm are returned. All matching score - fields are populated. - """ - fullTextSearch: String } """ @@ -11763,17 +12937,6 @@ input SchemaGrantFilter { """Filter by the object’s `schema` relation.""" schema: SchemaFilter - - """TRGM search on the `grantee_name` column.""" - trgmGranteeName: TrgmSearchInput - - """ - Composite full-text search. Provide a search string and it will be dispatched - to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - simultaneously. Rows matching ANY algorithm are returned. All matching score - fields are populated. - """ - fullTextSearch: String } """ @@ -11843,23 +13006,76 @@ input DefaultPrivilegeFilter { """Filter by the object’s `schema` relation.""" schema: SchemaFilter +} + +""" +A filter to be used against many `Enum` object types. All fields are combined with a logical ‘and.’ +""" +input SchemaToManyEnumFilter { + """Filters to entities where at least one related entity matches.""" + some: EnumFilter - """TRGM search on the `object_type` column.""" - trgmObjectType: TrgmSearchInput + """Filters to entities where every related entity matches.""" + every: EnumFilter - """TRGM search on the `privilege` column.""" - trgmPrivilege: TrgmSearchInput + """Filters to entities where no related entity matches.""" + none: EnumFilter +} - """TRGM search on the `grantee_name` column.""" - trgmGranteeName: TrgmSearchInput +""" +A filter to be used against `Enum` object types. All fields are combined with a logical ‘and.’ +""" +input EnumFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter - """ - Composite full-text search. Provide a search string and it will be dispatched - to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - simultaneously. Rows matching ANY algorithm are returned. All matching score - fields are populated. - """ - fullTextSearch: String + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `schemaId` field.""" + schemaId: UUIDFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Filter by the object’s `label` field.""" + label: StringFilter + + """Filter by the object’s `description` field.""" + description: StringFilter + + """Filter by the object’s `values` field.""" + values: StringListFilter + + """Filter by the object’s `smartTags` field.""" + smartTags: JSONFilter + + """Filter by the object’s `category` field.""" + category: ObjectCategoryFilter + + """Filter by the object’s `module` field.""" + module: StringFilter + + """Filter by the object’s `scope` field.""" + scope: IntFilter + + """Filter by the object’s `tags` field.""" + tags: StringListFilter + + """Checks for all expressions in this list.""" + and: [EnumFilter!] + + """Checks for any expressions in this list.""" + or: [EnumFilter!] + + """Negates the expression.""" + not: EnumFilter + + """Filter by the object’s `database` relation.""" + database: DatabaseFilter + + """Filter by the object’s `schema` relation.""" + schema: SchemaFilter } """ @@ -11965,26 +13181,6 @@ input ApiFilter { """`domains` exist.""" domainsExist: Boolean - - """TRGM search on the `name` column.""" - trgmName: TrgmSearchInput - - """TRGM search on the `dbname` column.""" - trgmDbname: TrgmSearchInput - - """TRGM search on the `role_name` column.""" - trgmRoleName: TrgmSearchInput - - """TRGM search on the `anon_role` column.""" - trgmAnonRole: TrgmSearchInput - - """ - Composite full-text search. Provide a search string and it will be dispatched - to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - simultaneously. Rows matching ANY algorithm are returned. All matching score - fields are populated. - """ - fullTextSearch: String } """ @@ -12031,17 +13227,6 @@ input ApiModuleFilter { """Filter by the object’s `database` relation.""" database: DatabaseFilter - - """TRGM search on the `name` column.""" - trgmName: TrgmSearchInput - - """ - Composite full-text search. Provide a search string and it will be dispatched - to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - simultaneously. Rows matching ANY algorithm are returned. All matching score - fields are populated. - """ - fullTextSearch: String } """ @@ -12325,23 +13510,6 @@ input SiteFilter { """`siteThemes` exist.""" siteThemesExist: Boolean - - """TRGM search on the `title` column.""" - trgmTitle: TrgmSearchInput - - """TRGM search on the `description` column.""" - trgmDescription: TrgmSearchInput - - """TRGM search on the `dbname` column.""" - trgmDbname: TrgmSearchInput - - """ - Composite full-text search. Provide a search string and it will be dispatched - to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - simultaneously. Rows matching ANY algorithm are returned. All matching score - fields are populated. - """ - fullTextSearch: String } """ @@ -12523,23 +13691,6 @@ input AppFilter { """Filter by the object’s `database` relation.""" database: DatabaseFilter - - """TRGM search on the `name` column.""" - trgmName: TrgmSearchInput - - """TRGM search on the `app_store_id` column.""" - trgmAppStoreId: TrgmSearchInput - - """TRGM search on the `app_id_prefix` column.""" - trgmAppIdPrefix: TrgmSearchInput - - """ - Composite full-text search. Provide a search string and it will be dispatched - to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - simultaneously. Rows matching ANY algorithm are returned. All matching score - fields are populated. - """ - fullTextSearch: String } """ @@ -12740,20 +13891,6 @@ input SiteMetadatumFilter { """Filter by the object’s `site` relation.""" site: SiteFilter - - """TRGM search on the `title` column.""" - trgmTitle: TrgmSearchInput - - """TRGM search on the `description` column.""" - trgmDescription: TrgmSearchInput - - """ - Composite full-text search. Provide a search string and it will be dispatched - to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - simultaneously. Rows matching ANY algorithm are returned. All matching score - fields are populated. - """ - fullTextSearch: String } """ @@ -12800,17 +13937,6 @@ input SiteModuleFilter { """Filter by the object’s `site` relation.""" site: SiteFilter - - """TRGM search on the `name` column.""" - trgmName: TrgmSearchInput - - """ - Composite full-text search. Provide a search string and it will be dispatched - to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - simultaneously. Rows matching ANY algorithm are returned. All matching score - fields are populated. - """ - fullTextSearch: String } """ @@ -13060,20 +14186,6 @@ input TriggerFunctionFilter { """Filter by the object’s `database` relation.""" database: DatabaseFilter - - """TRGM search on the `name` column.""" - trgmName: TrgmSearchInput - - """TRGM search on the `code` column.""" - trgmCode: TrgmSearchInput - - """ - Composite full-text search. Provide a search string and it will be dispatched - to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - simultaneously. Rows matching ANY algorithm are returned. All matching score - fields are populated. - """ - fullTextSearch: String } """ @@ -13160,6 +14272,107 @@ input DatabaseToManyDefaultPrivilegeFilter { none: DefaultPrivilegeFilter } +""" +A filter to be used against many `Enum` object types. All fields are combined with a logical ‘and.’ +""" +input DatabaseToManyEnumFilter { + """Filters to entities where at least one related entity matches.""" + some: EnumFilter + + """Filters to entities where every related entity matches.""" + every: EnumFilter + + """Filters to entities where no related entity matches.""" + none: EnumFilter +} + +""" +A filter to be used against many `EmbeddingChunk` object types. All fields are combined with a logical ‘and.’ +""" +input DatabaseToManyEmbeddingChunkFilter { + """Filters to entities where at least one related entity matches.""" + some: EmbeddingChunkFilter + + """Filters to entities where every related entity matches.""" + every: EmbeddingChunkFilter + + """Filters to entities where no related entity matches.""" + none: EmbeddingChunkFilter +} + +""" +A filter to be used against many `DatabaseTransfer` object types. All fields are combined with a logical ‘and.’ +""" +input DatabaseToManyDatabaseTransferFilter { + """Filters to entities where at least one related entity matches.""" + some: DatabaseTransferFilter + + """Filters to entities where every related entity matches.""" + every: DatabaseTransferFilter + + """Filters to entities where no related entity matches.""" + none: DatabaseTransferFilter +} + +""" +A filter to be used against `DatabaseTransfer` object types. All fields are combined with a logical ‘and.’ +""" +input DatabaseTransferFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `targetOwnerId` field.""" + targetOwnerId: UUIDFilter + + """Filter by the object’s `sourceApproved` field.""" + sourceApproved: BooleanFilter + + """Filter by the object’s `targetApproved` field.""" + targetApproved: BooleanFilter + + """Filter by the object’s `sourceApprovedAt` field.""" + sourceApprovedAt: DatetimeFilter + + """Filter by the object’s `targetApprovedAt` field.""" + targetApprovedAt: DatetimeFilter + + """Filter by the object’s `status` field.""" + status: StringFilter + + """Filter by the object’s `initiatedBy` field.""" + initiatedBy: UUIDFilter + + """Filter by the object’s `notes` field.""" + notes: StringFilter + + """Filter by the object’s `expiresAt` field.""" + expiresAt: DatetimeFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """Filter by the object’s `completedAt` field.""" + completedAt: DatetimeFilter + + """Checks for all expressions in this list.""" + and: [DatabaseTransferFilter!] + + """Checks for any expressions in this list.""" + or: [DatabaseTransferFilter!] + + """Negates the expression.""" + not: DatabaseTransferFilter + + """Filter by the object’s `database` relation.""" + database: DatabaseFilter +} + """ A filter to be used against many `Api` object types. All fields are combined with a logical ‘and.’ """ @@ -13348,17 +14561,6 @@ input ConnectedAccountsModuleFilter { """Filter by the object’s `table` relation.""" table: TableFilter - - """TRGM search on the `table_name` column.""" - trgmTableName: TrgmSearchInput - - """ - Composite full-text search. Provide a search string and it will be dispatched - to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - simultaneously. Rows matching ANY algorithm are returned. All matching score - fields are populated. - """ - fullTextSearch: String } """ @@ -13426,20 +14628,6 @@ input CryptoAddressesModuleFilter { """Filter by the object’s `table` relation.""" table: TableFilter - - """TRGM search on the `table_name` column.""" - trgmTableName: TrgmSearchInput - - """TRGM search on the `crypto_network` column.""" - trgmCryptoNetwork: TrgmSearchInput - - """ - Composite full-text search. Provide a search string and it will be dispatched - to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - simultaneously. Rows matching ANY algorithm are returned. All matching score - fields are populated. - """ - fullTextSearch: String } """ @@ -13528,32 +14716,6 @@ input CryptoAuthModuleFilter { """Filter by the object’s `usersTable` relation.""" usersTable: TableFilter - - """TRGM search on the `user_field` column.""" - trgmUserField: TrgmSearchInput - - """TRGM search on the `crypto_network` column.""" - trgmCryptoNetwork: TrgmSearchInput - - """TRGM search on the `sign_in_request_challenge` column.""" - trgmSignInRequestChallenge: TrgmSearchInput - - """TRGM search on the `sign_in_record_failure` column.""" - trgmSignInRecordFailure: TrgmSearchInput - - """TRGM search on the `sign_up_with_key` column.""" - trgmSignUpWithKey: TrgmSearchInput - - """TRGM search on the `sign_in_with_challenge` column.""" - trgmSignInWithChallenge: TrgmSearchInput - - """ - Composite full-text search. Provide a search string and it will be dispatched - to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - simultaneously. Rows matching ANY algorithm are returned. All matching score - fields are populated. - """ - fullTextSearch: String } """ @@ -13670,17 +14832,6 @@ input DenormalizedTableFieldFilter { """Filter by the object’s `table` relation.""" table: TableFilter - - """TRGM search on the `func_name` column.""" - trgmFuncName: TrgmSearchInput - - """ - Composite full-text search. Provide a search string and it will be dispatched - to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - simultaneously. Rows matching ANY algorithm are returned. All matching score - fields are populated. - """ - fullTextSearch: String } """ @@ -13745,17 +14896,6 @@ input EmailsModuleFilter { """Filter by the object’s `table` relation.""" table: TableFilter - - """TRGM search on the `table_name` column.""" - trgmTableName: TrgmSearchInput - - """ - Composite full-text search. Provide a search string and it will be dispatched - to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - simultaneously. Rows matching ANY algorithm are returned. All matching score - fields are populated. - """ - fullTextSearch: String } """ @@ -13808,17 +14948,6 @@ input EncryptedSecretsModuleFilter { """Filter by the object’s `table` relation.""" table: TableFilter - - """TRGM search on the `table_name` column.""" - trgmTableName: TrgmSearchInput - - """ - Composite full-text search. Provide a search string and it will be dispatched - to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - simultaneously. Rows matching ANY algorithm are returned. All matching score - fields are populated. - """ - fullTextSearch: String } """ @@ -13886,17 +15015,6 @@ input FieldModuleFilter { """Filter by the object’s `table` relation.""" table: TableFilter - - """TRGM search on the `node_type` column.""" - trgmNodeType: TrgmSearchInput - - """ - Composite full-text search. Provide a search string and it will be dispatched - to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - simultaneously. Rows matching ANY algorithm are returned. All matching score - fields are populated. - """ - fullTextSearch: String } """ @@ -13994,26 +15112,6 @@ input InvitesModuleFilter { """Filter by the object’s `usersTable` relation.""" usersTable: TableFilter - - """TRGM search on the `invites_table_name` column.""" - trgmInvitesTableName: TrgmSearchInput - - """TRGM search on the `claimed_invites_table_name` column.""" - trgmClaimedInvitesTableName: TrgmSearchInput - - """TRGM search on the `submit_invite_code_function` column.""" - trgmSubmitInviteCodeFunction: TrgmSearchInput - - """TRGM search on the `prefix` column.""" - trgmPrefix: TrgmSearchInput - - """ - Composite full-text search. Provide a search string and it will be dispatched - to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - simultaneously. Rows matching ANY algorithm are returned. All matching score - fields are populated. - """ - fullTextSearch: String } """ @@ -14150,59 +15248,6 @@ input LevelsModuleFilter { """Filter by the object’s `stepsTable` relation.""" stepsTable: TableFilter - - """TRGM search on the `steps_table_name` column.""" - trgmStepsTableName: TrgmSearchInput - - """TRGM search on the `achievements_table_name` column.""" - trgmAchievementsTableName: TrgmSearchInput - - """TRGM search on the `levels_table_name` column.""" - trgmLevelsTableName: TrgmSearchInput - - """TRGM search on the `level_requirements_table_name` column.""" - trgmLevelRequirementsTableName: TrgmSearchInput - - """TRGM search on the `completed_step` column.""" - trgmCompletedStep: TrgmSearchInput - - """TRGM search on the `incompleted_step` column.""" - trgmIncompletedStep: TrgmSearchInput - - """TRGM search on the `tg_achievement` column.""" - trgmTgAchievement: TrgmSearchInput - - """TRGM search on the `tg_achievement_toggle` column.""" - trgmTgAchievementToggle: TrgmSearchInput - - """TRGM search on the `tg_achievement_toggle_boolean` column.""" - trgmTgAchievementToggleBoolean: TrgmSearchInput - - """TRGM search on the `tg_achievement_boolean` column.""" - trgmTgAchievementBoolean: TrgmSearchInput - - """TRGM search on the `upsert_achievement` column.""" - trgmUpsertAchievement: TrgmSearchInput - - """TRGM search on the `tg_update_achievements` column.""" - trgmTgUpdateAchievements: TrgmSearchInput - - """TRGM search on the `steps_required` column.""" - trgmStepsRequired: TrgmSearchInput - - """TRGM search on the `level_achieved` column.""" - trgmLevelAchieved: TrgmSearchInput - - """TRGM search on the `prefix` column.""" - trgmPrefix: TrgmSearchInput - - """ - Composite full-text search. Provide a search string and it will be dispatched - to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - simultaneously. Rows matching ANY algorithm are returned. All matching score - fields are populated. - """ - fullTextSearch: String } """ @@ -14309,41 +15354,6 @@ input LimitsModuleFilter { """Filter by the object’s `table` relation.""" table: TableFilter - - """TRGM search on the `table_name` column.""" - trgmTableName: TrgmSearchInput - - """TRGM search on the `default_table_name` column.""" - trgmDefaultTableName: TrgmSearchInput - - """TRGM search on the `limit_increment_function` column.""" - trgmLimitIncrementFunction: TrgmSearchInput - - """TRGM search on the `limit_decrement_function` column.""" - trgmLimitDecrementFunction: TrgmSearchInput - - """TRGM search on the `limit_increment_trigger` column.""" - trgmLimitIncrementTrigger: TrgmSearchInput - - """TRGM search on the `limit_decrement_trigger` column.""" - trgmLimitDecrementTrigger: TrgmSearchInput - - """TRGM search on the `limit_update_trigger` column.""" - trgmLimitUpdateTrigger: TrgmSearchInput - - """TRGM search on the `limit_check_function` column.""" - trgmLimitCheckFunction: TrgmSearchInput - - """TRGM search on the `prefix` column.""" - trgmPrefix: TrgmSearchInput - - """ - Composite full-text search. Provide a search string and it will be dispatched - to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - simultaneously. Rows matching ANY algorithm are returned. All matching score - fields are populated. - """ - fullTextSearch: String } """ @@ -14396,17 +15406,6 @@ input MembershipTypesModuleFilter { """Filter by the object’s `table` relation.""" table: TableFilter - - """TRGM search on the `table_name` column.""" - trgmTableName: TrgmSearchInput - - """ - Composite full-text search. Provide a search string and it will be dispatched - to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - simultaneously. Rows matching ANY algorithm are returned. All matching score - fields are populated. - """ - fullTextSearch: String } """ @@ -14579,50 +15578,6 @@ input MembershipsModuleFilter { """Filter by the object’s `sprtTable` relation.""" sprtTable: TableFilter - - """TRGM search on the `memberships_table_name` column.""" - trgmMembershipsTableName: TrgmSearchInput - - """TRGM search on the `members_table_name` column.""" - trgmMembersTableName: TrgmSearchInput - - """TRGM search on the `membership_defaults_table_name` column.""" - trgmMembershipDefaultsTableName: TrgmSearchInput - - """TRGM search on the `grants_table_name` column.""" - trgmGrantsTableName: TrgmSearchInput - - """TRGM search on the `admin_grants_table_name` column.""" - trgmAdminGrantsTableName: TrgmSearchInput - - """TRGM search on the `owner_grants_table_name` column.""" - trgmOwnerGrantsTableName: TrgmSearchInput - - """TRGM search on the `prefix` column.""" - trgmPrefix: TrgmSearchInput - - """TRGM search on the `actor_mask_check` column.""" - trgmActorMaskCheck: TrgmSearchInput - - """TRGM search on the `actor_perm_check` column.""" - trgmActorPermCheck: TrgmSearchInput - - """TRGM search on the `entity_ids_by_mask` column.""" - trgmEntityIdsByMask: TrgmSearchInput - - """TRGM search on the `entity_ids_by_perm` column.""" - trgmEntityIdsByPerm: TrgmSearchInput - - """TRGM search on the `entity_ids_function` column.""" - trgmEntityIdsFunction: TrgmSearchInput - - """ - Composite full-text search. Provide a search string and it will be dispatched - to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - simultaneously. Rows matching ANY algorithm are returned. All matching score - fields are populated. - """ - fullTextSearch: String } """ @@ -14726,35 +15681,6 @@ input PermissionsModuleFilter { """Filter by the object’s `table` relation.""" table: TableFilter - - """TRGM search on the `table_name` column.""" - trgmTableName: TrgmSearchInput - - """TRGM search on the `default_table_name` column.""" - trgmDefaultTableName: TrgmSearchInput - - """TRGM search on the `prefix` column.""" - trgmPrefix: TrgmSearchInput - - """TRGM search on the `get_padded_mask` column.""" - trgmGetPaddedMask: TrgmSearchInput - - """TRGM search on the `get_mask` column.""" - trgmGetMask: TrgmSearchInput - - """TRGM search on the `get_by_mask` column.""" - trgmGetByMask: TrgmSearchInput - - """TRGM search on the `get_mask_by_name` column.""" - trgmGetMaskByName: TrgmSearchInput - - """ - Composite full-text search. Provide a search string and it will be dispatched - to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - simultaneously. Rows matching ANY algorithm are returned. All matching score - fields are populated. - """ - fullTextSearch: String } """ @@ -14819,17 +15745,6 @@ input PhoneNumbersModuleFilter { """Filter by the object’s `table` relation.""" table: TableFilter - - """TRGM search on the `table_name` column.""" - trgmTableName: TrgmSearchInput - - """ - Composite full-text search. Provide a search string and it will be dispatched - to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - simultaneously. Rows matching ANY algorithm are returned. All matching score - fields are populated. - """ - fullTextSearch: String } """ @@ -14948,29 +15863,6 @@ input ProfilesModuleFilter { """Filter by the object’s `table` relation.""" table: TableFilter - - """TRGM search on the `table_name` column.""" - trgmTableName: TrgmSearchInput - - """TRGM search on the `profile_permissions_table_name` column.""" - trgmProfilePermissionsTableName: TrgmSearchInput - - """TRGM search on the `profile_grants_table_name` column.""" - trgmProfileGrantsTableName: TrgmSearchInput - - """TRGM search on the `profile_definition_grants_table_name` column.""" - trgmProfileDefinitionGrantsTableName: TrgmSearchInput - - """TRGM search on the `prefix` column.""" - trgmPrefix: TrgmSearchInput - - """ - Composite full-text search. Provide a search string and it will be dispatched - to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - simultaneously. Rows matching ANY algorithm are returned. All matching score - fields are populated. - """ - fullTextSearch: String } """ @@ -15036,26 +15928,6 @@ input RlsModuleFilter { """Filter by the object’s `usersTable` relation.""" usersTable: TableFilter - - """TRGM search on the `authenticate` column.""" - trgmAuthenticate: TrgmSearchInput - - """TRGM search on the `authenticate_strict` column.""" - trgmAuthenticateStrict: TrgmSearchInput - - """TRGM search on the `current_role` column.""" - trgmCurrentRole: TrgmSearchInput - - """TRGM search on the `current_role_id` column.""" - trgmCurrentRoleId: TrgmSearchInput - - """ - Composite full-text search. Provide a search string and it will be dispatched - to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - simultaneously. Rows matching ANY algorithm are returned. All matching score - fields are populated. - """ - fullTextSearch: String } """ @@ -15108,17 +15980,6 @@ input SecretsModuleFilter { """Filter by the object’s `table` relation.""" table: TableFilter - - """TRGM search on the `table_name` column.""" - trgmTableName: TrgmSearchInput - - """ - Composite full-text search. Provide a search string and it will be dispatched - to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - simultaneously. Rows matching ANY algorithm are returned. All matching score - fields are populated. - """ - fullTextSearch: String } """ @@ -15202,23 +16063,6 @@ input SessionsModuleFilter { """Filter by the object’s `usersTable` relation.""" usersTable: TableFilter - - """TRGM search on the `sessions_table` column.""" - trgmSessionsTable: TrgmSearchInput - - """TRGM search on the `session_credentials_table` column.""" - trgmSessionCredentialsTable: TrgmSearchInput - - """TRGM search on the `auth_settings_table` column.""" - trgmAuthSettingsTable: TrgmSearchInput - - """ - Composite full-text search. Provide a search string and it will be dispatched - to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - simultaneously. Rows matching ANY algorithm are returned. All matching score - fields are populated. - """ - fullTextSearch: String } """ @@ -15418,62 +16262,6 @@ input UserAuthModuleFilter { """Filter by the object’s `usersTable` relation.""" usersTable: TableFilter - - """TRGM search on the `audits_table_name` column.""" - trgmAuditsTableName: TrgmSearchInput - - """TRGM search on the `sign_in_function` column.""" - trgmSignInFunction: TrgmSearchInput - - """TRGM search on the `sign_up_function` column.""" - trgmSignUpFunction: TrgmSearchInput - - """TRGM search on the `sign_out_function` column.""" - trgmSignOutFunction: TrgmSearchInput - - """TRGM search on the `set_password_function` column.""" - trgmSetPasswordFunction: TrgmSearchInput - - """TRGM search on the `reset_password_function` column.""" - trgmResetPasswordFunction: TrgmSearchInput - - """TRGM search on the `forgot_password_function` column.""" - trgmForgotPasswordFunction: TrgmSearchInput - - """TRGM search on the `send_verification_email_function` column.""" - trgmSendVerificationEmailFunction: TrgmSearchInput - - """TRGM search on the `verify_email_function` column.""" - trgmVerifyEmailFunction: TrgmSearchInput - - """TRGM search on the `verify_password_function` column.""" - trgmVerifyPasswordFunction: TrgmSearchInput - - """TRGM search on the `check_password_function` column.""" - trgmCheckPasswordFunction: TrgmSearchInput - - """TRGM search on the `send_account_deletion_email_function` column.""" - trgmSendAccountDeletionEmailFunction: TrgmSearchInput - - """TRGM search on the `delete_account_function` column.""" - trgmDeleteAccountFunction: TrgmSearchInput - - """TRGM search on the `sign_in_one_time_token_function` column.""" - trgmSignInOneTimeTokenFunction: TrgmSearchInput - - """TRGM search on the `one_time_token_function` column.""" - trgmOneTimeTokenFunction: TrgmSearchInput - - """TRGM search on the `extend_token_expires` column.""" - trgmExtendTokenExpires: TrgmSearchInput - - """ - Composite full-text search. Provide a search string and it will be dispatched - to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - simultaneously. Rows matching ANY algorithm are returned. All matching score - fields are populated. - """ - fullTextSearch: String } """ @@ -15535,83 +16323,6 @@ input UsersModuleFilter { """Filter by the object’s `typeTable` relation.""" typeTable: TableFilter - - """TRGM search on the `table_name` column.""" - trgmTableName: TrgmSearchInput - - """TRGM search on the `type_table_name` column.""" - trgmTypeTableName: TrgmSearchInput - - """ - Composite full-text search. Provide a search string and it will be dispatched - to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - simultaneously. Rows matching ANY algorithm are returned. All matching score - fields are populated. - """ - fullTextSearch: String -} - -""" -A filter to be used against many `UuidModule` object types. All fields are combined with a logical ‘and.’ -""" -input DatabaseToManyUuidModuleFilter { - """Filters to entities where at least one related entity matches.""" - some: UuidModuleFilter - - """Filters to entities where every related entity matches.""" - every: UuidModuleFilter - - """Filters to entities where no related entity matches.""" - none: UuidModuleFilter -} - -""" -A filter to be used against `UuidModule` object types. All fields are combined with a logical ‘and.’ -""" -input UuidModuleFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter - - """Filter by the object’s `schemaId` field.""" - schemaId: UUIDFilter - - """Filter by the object’s `uuidFunction` field.""" - uuidFunction: StringFilter - - """Filter by the object’s `uuidSeed` field.""" - uuidSeed: StringFilter - - """Checks for all expressions in this list.""" - and: [UuidModuleFilter!] - - """Checks for any expressions in this list.""" - or: [UuidModuleFilter!] - - """Negates the expression.""" - not: UuidModuleFilter - - """Filter by the object’s `database` relation.""" - database: DatabaseFilter - - """Filter by the object’s `schema` relation.""" - schema: SchemaFilter - - """TRGM search on the `uuid_function` column.""" - trgmUuidFunction: TrgmSearchInput - - """TRGM search on the `uuid_seed` column.""" - trgmUuidSeed: TrgmSearchInput - - """ - Composite full-text search. Provide a search string and it will be dispatched - to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - simultaneously. Rows matching ANY algorithm are returned. All matching score - fields are populated. - """ - fullTextSearch: String } """ @@ -15710,44 +16421,6 @@ input HierarchyModuleFilter { """Filter by the object’s `usersTable` relation.""" usersTable: TableFilter - - """TRGM search on the `chart_edges_table_name` column.""" - trgmChartEdgesTableName: TrgmSearchInput - - """TRGM search on the `hierarchy_sprt_table_name` column.""" - trgmHierarchySprtTableName: TrgmSearchInput - - """TRGM search on the `chart_edge_grants_table_name` column.""" - trgmChartEdgeGrantsTableName: TrgmSearchInput - - """TRGM search on the `prefix` column.""" - trgmPrefix: TrgmSearchInput - - """TRGM search on the `private_schema_name` column.""" - trgmPrivateSchemaName: TrgmSearchInput - - """TRGM search on the `sprt_table_name` column.""" - trgmSprtTableName: TrgmSearchInput - - """TRGM search on the `rebuild_hierarchy_function` column.""" - trgmRebuildHierarchyFunction: TrgmSearchInput - - """TRGM search on the `get_subordinates_function` column.""" - trgmGetSubordinatesFunction: TrgmSearchInput - - """TRGM search on the `get_managers_function` column.""" - trgmGetManagersFunction: TrgmSearchInput - - """TRGM search on the `is_manager_of_function` column.""" - trgmIsManagerOfFunction: TrgmSearchInput - - """ - Composite full-text search. Provide a search string and it will be dispatched - to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - simultaneously. Rows matching ANY algorithm are returned. All matching score - fields are populated. - """ - fullTextSearch: String } """ @@ -15792,6 +16465,214 @@ input DatabaseToManyRelationProvisionFilter { none: RelationProvisionFilter } +""" +A filter to be used against many `Blueprint` object types. All fields are combined with a logical ‘and.’ +""" +input DatabaseToManyBlueprintFilter { + """Filters to entities where at least one related entity matches.""" + some: BlueprintFilter + + """Filters to entities where every related entity matches.""" + every: BlueprintFilter + + """Filters to entities where no related entity matches.""" + none: BlueprintFilter +} + +""" +A filter to be used against `Blueprint` object types. All fields are combined with a logical ‘and.’ +""" +input BlueprintFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `ownerId` field.""" + ownerId: UUIDFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Filter by the object’s `displayName` field.""" + displayName: StringFilter + + """Filter by the object’s `description` field.""" + description: StringFilter + + """Filter by the object’s `definition` field.""" + definition: JSONFilter + + """Filter by the object’s `templateId` field.""" + templateId: UUIDFilter + + """Filter by the object’s `status` field.""" + status: StringFilter + + """Filter by the object’s `constructedAt` field.""" + constructedAt: DatetimeFilter + + """Filter by the object’s `errorDetails` field.""" + errorDetails: StringFilter + + """Filter by the object’s `refMap` field.""" + refMap: JSONFilter + + """Filter by the object’s `constructedDefinition` field.""" + constructedDefinition: JSONFilter + + """Filter by the object’s `definitionHash` field.""" + definitionHash: UUIDFilter + + """Filter by the object’s `tableHashes` field.""" + tableHashes: JSONFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """Checks for all expressions in this list.""" + and: [BlueprintFilter!] + + """Checks for any expressions in this list.""" + or: [BlueprintFilter!] + + """Negates the expression.""" + not: BlueprintFilter + + """Filter by the object’s `database` relation.""" + database: DatabaseFilter + + """Filter by the object’s `template` relation.""" + template: BlueprintTemplateFilter + + """A related `template` exists.""" + templateExists: Boolean +} + +""" +A filter to be used against `BlueprintTemplate` object types. All fields are combined with a logical ‘and.’ +""" +input BlueprintTemplateFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Filter by the object’s `version` field.""" + version: StringFilter + + """Filter by the object’s `displayName` field.""" + displayName: StringFilter + + """Filter by the object’s `description` field.""" + description: StringFilter + + """Filter by the object’s `ownerId` field.""" + ownerId: UUIDFilter + + """Filter by the object’s `visibility` field.""" + visibility: StringFilter + + """Filter by the object’s `categories` field.""" + categories: StringListFilter + + """Filter by the object’s `tags` field.""" + tags: StringListFilter + + """Filter by the object’s `definition` field.""" + definition: JSONFilter + + """Filter by the object’s `definitionSchemaVersion` field.""" + definitionSchemaVersion: StringFilter + + """Filter by the object’s `source` field.""" + source: StringFilter + + """Filter by the object’s `complexity` field.""" + complexity: StringFilter + + """Filter by the object’s `copyCount` field.""" + copyCount: IntFilter + + """Filter by the object’s `forkCount` field.""" + forkCount: IntFilter + + """Filter by the object’s `forkedFromId` field.""" + forkedFromId: UUIDFilter + + """Filter by the object’s `definitionHash` field.""" + definitionHash: UUIDFilter + + """Filter by the object’s `tableHashes` field.""" + tableHashes: JSONFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """Checks for all expressions in this list.""" + and: [BlueprintTemplateFilter!] + + """Checks for any expressions in this list.""" + or: [BlueprintTemplateFilter!] + + """Negates the expression.""" + not: BlueprintTemplateFilter + + """Filter by the object’s `forkedFrom` relation.""" + forkedFrom: BlueprintTemplateFilter + + """A related `forkedFrom` exists.""" + forkedFromExists: Boolean + + """Filter by the object’s `blueprintTemplatesByForkedFromId` relation.""" + blueprintTemplatesByForkedFromId: BlueprintTemplateToManyBlueprintTemplateFilter + + """`blueprintTemplatesByForkedFromId` exist.""" + blueprintTemplatesByForkedFromIdExist: Boolean + + """Filter by the object’s `blueprintsByTemplateId` relation.""" + blueprintsByTemplateId: BlueprintTemplateToManyBlueprintFilter + + """`blueprintsByTemplateId` exist.""" + blueprintsByTemplateIdExist: Boolean +} + +""" +A filter to be used against many `BlueprintTemplate` object types. All fields are combined with a logical ‘and.’ +""" +input BlueprintTemplateToManyBlueprintTemplateFilter { + """Filters to entities where at least one related entity matches.""" + some: BlueprintTemplateFilter + + """Filters to entities where every related entity matches.""" + every: BlueprintTemplateFilter + + """Filters to entities where no related entity matches.""" + none: BlueprintTemplateFilter +} + +""" +A filter to be used against many `Blueprint` object types. All fields are combined with a logical ‘and.’ +""" +input BlueprintTemplateToManyBlueprintFilter { + """Filters to entities where at least one related entity matches.""" + some: BlueprintFilter + + """Filters to entities where every related entity matches.""" + every: BlueprintFilter + + """Filters to entities where no related entity matches.""" + none: BlueprintFilter +} + """ A filter to be used against many `DatabaseProvisionModule` object types. All fields are combined with a logical ‘and.’ """ @@ -15866,29 +16747,6 @@ input DatabaseProvisionModuleFilter { """A related `database` exists.""" databaseExists: Boolean - - """TRGM search on the `database_name` column.""" - trgmDatabaseName: TrgmSearchInput - - """TRGM search on the `subdomain` column.""" - trgmSubdomain: TrgmSearchInput - - """TRGM search on the `domain` column.""" - trgmDomain: TrgmSearchInput - - """TRGM search on the `status` column.""" - trgmStatus: TrgmSearchInput - - """TRGM search on the `error_message` column.""" - trgmErrorMessage: TrgmSearchInput - - """ - Composite full-text search. Provide a search string and it will be dispatched - to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - simultaneously. Rows matching ANY algorithm are returned. All matching score - fields are populated. - """ - fullTextSearch: String } """Methods to use when ordering `CheckConstraint`.""" @@ -15908,14 +16766,6 @@ enum CheckConstraintOrderBy { CREATED_AT_DESC UPDATED_AT_ASC UPDATED_AT_DESC - NAME_TRGM_SIMILARITY_ASC - NAME_TRGM_SIMILARITY_DESC - TYPE_TRGM_SIMILARITY_ASC - TYPE_TRGM_SIMILARITY_DESC - MODULE_TRGM_SIMILARITY_ASC - MODULE_TRGM_SIMILARITY_DESC - SEARCH_SCORE_ASC - SEARCH_SCORE_DESC } """A connection to a list of `Field` values.""" @@ -15944,6 +16794,7 @@ type Field { description: String smartTags: JSON isRequired: Boolean! + apiRequired: Boolean! defaultValue: String defaultValueAst: JSON isHidden: Boolean! @@ -15966,41 +16817,6 @@ type Field { """Reads a single `Table` that is related to this `Field`.""" table: Table - - """ - TRGM similarity when searching `name`. Returns null when no trgm search filter is active. - """ - nameTrgmSimilarity: Float - - """ - TRGM similarity when searching `label`. Returns null when no trgm search filter is active. - """ - labelTrgmSimilarity: Float - - """ - TRGM similarity when searching `description`. Returns null when no trgm search filter is active. - """ - descriptionTrgmSimilarity: Float - - """ - TRGM similarity when searching `defaultValue`. Returns null when no trgm search filter is active. - """ - defaultValueTrgmSimilarity: Float - - """ - TRGM similarity when searching `regexp`. Returns null when no trgm search filter is active. - """ - regexpTrgmSimilarity: Float - - """ - TRGM similarity when searching `module`. Returns null when no trgm search filter is active. - """ - moduleTrgmSimilarity: Float - - """ - Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. - """ - searchScore: Float } """A `Field` edge in the connection.""" @@ -16029,20 +16845,6 @@ enum FieldOrderBy { CREATED_AT_DESC UPDATED_AT_ASC UPDATED_AT_DESC - NAME_TRGM_SIMILARITY_ASC - NAME_TRGM_SIMILARITY_DESC - LABEL_TRGM_SIMILARITY_ASC - LABEL_TRGM_SIMILARITY_DESC - DESCRIPTION_TRGM_SIMILARITY_ASC - DESCRIPTION_TRGM_SIMILARITY_DESC - DEFAULT_VALUE_TRGM_SIMILARITY_ASC - DEFAULT_VALUE_TRGM_SIMILARITY_DESC - REGEXP_TRGM_SIMILARITY_ASC - REGEXP_TRGM_SIMILARITY_DESC - MODULE_TRGM_SIMILARITY_ASC - MODULE_TRGM_SIMILARITY_DESC - SEARCH_SCORE_ASC - SEARCH_SCORE_DESC } """A connection to a list of `ForeignKeyConstraint` values.""" @@ -16094,41 +16896,6 @@ type ForeignKeyConstraint { """Reads a single `Table` that is related to this `ForeignKeyConstraint`.""" table: Table - - """ - TRGM similarity when searching `name`. Returns null when no trgm search filter is active. - """ - nameTrgmSimilarity: Float - - """ - TRGM similarity when searching `description`. Returns null when no trgm search filter is active. - """ - descriptionTrgmSimilarity: Float - - """ - TRGM similarity when searching `type`. Returns null when no trgm search filter is active. - """ - typeTrgmSimilarity: Float - - """ - TRGM similarity when searching `deleteAction`. Returns null when no trgm search filter is active. - """ - deleteActionTrgmSimilarity: Float - - """ - TRGM similarity when searching `updateAction`. Returns null when no trgm search filter is active. - """ - updateActionTrgmSimilarity: Float - - """ - TRGM similarity when searching `module`. Returns null when no trgm search filter is active. - """ - moduleTrgmSimilarity: Float - - """ - Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. - """ - searchScore: Float } """A `ForeignKeyConstraint` edge in the connection.""" @@ -16157,20 +16924,6 @@ enum ForeignKeyConstraintOrderBy { CREATED_AT_DESC UPDATED_AT_ASC UPDATED_AT_DESC - NAME_TRGM_SIMILARITY_ASC - NAME_TRGM_SIMILARITY_DESC - DESCRIPTION_TRGM_SIMILARITY_ASC - DESCRIPTION_TRGM_SIMILARITY_DESC - TYPE_TRGM_SIMILARITY_ASC - TYPE_TRGM_SIMILARITY_DESC - DELETE_ACTION_TRGM_SIMILARITY_ASC - DELETE_ACTION_TRGM_SIMILARITY_DESC - UPDATE_ACTION_TRGM_SIMILARITY_ASC - UPDATE_ACTION_TRGM_SIMILARITY_DESC - MODULE_TRGM_SIMILARITY_ASC - MODULE_TRGM_SIMILARITY_DESC - SEARCH_SCORE_ASC - SEARCH_SCORE_DESC } """A connection to a list of `FullTextSearch` values.""" @@ -16277,26 +17030,6 @@ type Index { """Reads a single `Table` that is related to this `Index`.""" table: Table - - """ - TRGM similarity when searching `name`. Returns null when no trgm search filter is active. - """ - nameTrgmSimilarity: Float - - """ - TRGM similarity when searching `accessMethod`. Returns null when no trgm search filter is active. - """ - accessMethodTrgmSimilarity: Float - - """ - TRGM similarity when searching `module`. Returns null when no trgm search filter is active. - """ - moduleTrgmSimilarity: Float - - """ - Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. - """ - searchScore: Float } """A `Index` edge in the connection.""" @@ -16325,14 +17058,6 @@ enum IndexOrderBy { CREATED_AT_DESC UPDATED_AT_ASC UPDATED_AT_DESC - NAME_TRGM_SIMILARITY_ASC - NAME_TRGM_SIMILARITY_DESC - ACCESS_METHOD_TRGM_SIMILARITY_ASC - ACCESS_METHOD_TRGM_SIMILARITY_DESC - MODULE_TRGM_SIMILARITY_ASC - MODULE_TRGM_SIMILARITY_DESC - SEARCH_SCORE_ASC - SEARCH_SCORE_DESC } """A connection to a list of `Policy` values.""" @@ -16376,36 +17101,6 @@ type Policy { """Reads a single `Table` that is related to this `Policy`.""" table: Table - - """ - TRGM similarity when searching `name`. Returns null when no trgm search filter is active. - """ - nameTrgmSimilarity: Float - - """ - TRGM similarity when searching `granteeName`. Returns null when no trgm search filter is active. - """ - granteeNameTrgmSimilarity: Float - - """ - TRGM similarity when searching `privilege`. Returns null when no trgm search filter is active. - """ - privilegeTrgmSimilarity: Float - - """ - TRGM similarity when searching `policyType`. Returns null when no trgm search filter is active. - """ - policyTypeTrgmSimilarity: Float - - """ - TRGM similarity when searching `module`. Returns null when no trgm search filter is active. - """ - moduleTrgmSimilarity: Float - - """ - Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. - """ - searchScore: Float } """A `Policy` edge in the connection.""" @@ -16434,18 +17129,6 @@ enum PolicyOrderBy { CREATED_AT_DESC UPDATED_AT_ASC UPDATED_AT_DESC - NAME_TRGM_SIMILARITY_ASC - NAME_TRGM_SIMILARITY_DESC - GRANTEE_NAME_TRGM_SIMILARITY_ASC - GRANTEE_NAME_TRGM_SIMILARITY_DESC - PRIVILEGE_TRGM_SIMILARITY_ASC - PRIVILEGE_TRGM_SIMILARITY_DESC - POLICY_TYPE_TRGM_SIMILARITY_ASC - POLICY_TYPE_TRGM_SIMILARITY_DESC - MODULE_TRGM_SIMILARITY_ASC - MODULE_TRGM_SIMILARITY_DESC - SEARCH_SCORE_ASC - SEARCH_SCORE_DESC } """A connection to a list of `PrimaryKeyConstraint` values.""" @@ -16489,26 +17172,6 @@ type PrimaryKeyConstraint { """Reads a single `Table` that is related to this `PrimaryKeyConstraint`.""" table: Table - - """ - TRGM similarity when searching `name`. Returns null when no trgm search filter is active. - """ - nameTrgmSimilarity: Float - - """ - TRGM similarity when searching `type`. Returns null when no trgm search filter is active. - """ - typeTrgmSimilarity: Float - - """ - TRGM similarity when searching `module`. Returns null when no trgm search filter is active. - """ - moduleTrgmSimilarity: Float - - """ - Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. - """ - searchScore: Float } """A `PrimaryKeyConstraint` edge in the connection.""" @@ -16537,14 +17200,6 @@ enum PrimaryKeyConstraintOrderBy { CREATED_AT_DESC UPDATED_AT_ASC UPDATED_AT_DESC - NAME_TRGM_SIMILARITY_ASC - NAME_TRGM_SIMILARITY_DESC - TYPE_TRGM_SIMILARITY_ASC - TYPE_TRGM_SIMILARITY_DESC - MODULE_TRGM_SIMILARITY_ASC - MODULE_TRGM_SIMILARITY_DESC - SEARCH_SCORE_ASC - SEARCH_SCORE_DESC } """A connection to a list of `TableGrant` values.""" @@ -16580,21 +17235,6 @@ type TableGrant { """Reads a single `Table` that is related to this `TableGrant`.""" table: Table - - """ - TRGM similarity when searching `privilege`. Returns null when no trgm search filter is active. - """ - privilegeTrgmSimilarity: Float - - """ - TRGM similarity when searching `granteeName`. Returns null when no trgm search filter is active. - """ - granteeNameTrgmSimilarity: Float - - """ - Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. - """ - searchScore: Float } """A `TableGrant` edge in the connection.""" @@ -16621,12 +17261,6 @@ enum TableGrantOrderBy { CREATED_AT_DESC UPDATED_AT_ASC UPDATED_AT_DESC - PRIVILEGE_TRGM_SIMILARITY_ASC - PRIVILEGE_TRGM_SIMILARITY_DESC - GRANTEE_NAME_TRGM_SIMILARITY_ASC - GRANTEE_NAME_TRGM_SIMILARITY_DESC - SEARCH_SCORE_ASC - SEARCH_SCORE_DESC } """A connection to a list of `Trigger` values.""" @@ -16666,31 +17300,6 @@ type Trigger { """Reads a single `Table` that is related to this `Trigger`.""" table: Table - - """ - TRGM similarity when searching `name`. Returns null when no trgm search filter is active. - """ - nameTrgmSimilarity: Float - - """ - TRGM similarity when searching `event`. Returns null when no trgm search filter is active. - """ - eventTrgmSimilarity: Float - - """ - TRGM similarity when searching `functionName`. Returns null when no trgm search filter is active. - """ - functionNameTrgmSimilarity: Float - - """ - TRGM similarity when searching `module`. Returns null when no trgm search filter is active. - """ - moduleTrgmSimilarity: Float - - """ - Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. - """ - searchScore: Float } """A `Trigger` edge in the connection.""" @@ -16719,16 +17328,6 @@ enum TriggerOrderBy { CREATED_AT_DESC UPDATED_AT_ASC UPDATED_AT_DESC - NAME_TRGM_SIMILARITY_ASC - NAME_TRGM_SIMILARITY_DESC - EVENT_TRGM_SIMILARITY_ASC - EVENT_TRGM_SIMILARITY_DESC - FUNCTION_NAME_TRGM_SIMILARITY_ASC - FUNCTION_NAME_TRGM_SIMILARITY_DESC - MODULE_TRGM_SIMILARITY_ASC - MODULE_TRGM_SIMILARITY_DESC - SEARCH_SCORE_ASC - SEARCH_SCORE_DESC } """A connection to a list of `UniqueConstraint` values.""" @@ -16771,31 +17370,6 @@ type UniqueConstraint { """Reads a single `Table` that is related to this `UniqueConstraint`.""" table: Table - - """ - TRGM similarity when searching `name`. Returns null when no trgm search filter is active. - """ - nameTrgmSimilarity: Float - - """ - TRGM similarity when searching `description`. Returns null when no trgm search filter is active. - """ - descriptionTrgmSimilarity: Float - - """ - TRGM similarity when searching `type`. Returns null when no trgm search filter is active. - """ - typeTrgmSimilarity: Float - - """ - TRGM similarity when searching `module`. Returns null when no trgm search filter is active. - """ - moduleTrgmSimilarity: Float - - """ - Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. - """ - searchScore: Float } """A `UniqueConstraint` edge in the connection.""" @@ -16824,16 +17398,6 @@ enum UniqueConstraintOrderBy { CREATED_AT_DESC UPDATED_AT_ASC UPDATED_AT_DESC - NAME_TRGM_SIMILARITY_ASC - NAME_TRGM_SIMILARITY_DESC - DESCRIPTION_TRGM_SIMILARITY_ASC - DESCRIPTION_TRGM_SIMILARITY_DESC - TYPE_TRGM_SIMILARITY_ASC - TYPE_TRGM_SIMILARITY_DESC - MODULE_TRGM_SIMILARITY_ASC - MODULE_TRGM_SIMILARITY_DESC - SEARCH_SCORE_ASC - SEARCH_SCORE_DESC } """A connection to a list of `View` values.""" @@ -16966,31 +17530,6 @@ type View { """The method to use when ordering `ViewRule`.""" orderBy: [ViewRuleOrderBy!] = [PRIMARY_KEY_ASC] ): ViewRuleConnection! - - """ - TRGM similarity when searching `name`. Returns null when no trgm search filter is active. - """ - nameTrgmSimilarity: Float - - """ - TRGM similarity when searching `viewType`. Returns null when no trgm search filter is active. - """ - viewTypeTrgmSimilarity: Float - - """ - TRGM similarity when searching `filterType`. Returns null when no trgm search filter is active. - """ - filterTypeTrgmSimilarity: Float - - """ - TRGM similarity when searching `module`. Returns null when no trgm search filter is active. - """ - moduleTrgmSimilarity: Float - - """ - Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. - """ - searchScore: Float } """A connection to a list of `ViewTable` values.""" @@ -17079,21 +17618,6 @@ type ViewGrant { """Reads a single `View` that is related to this `ViewGrant`.""" view: View - - """ - TRGM similarity when searching `granteeName`. Returns null when no trgm search filter is active. - """ - granteeNameTrgmSimilarity: Float - - """ - TRGM similarity when searching `privilege`. Returns null when no trgm search filter is active. - """ - privilegeTrgmSimilarity: Float - - """ - Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. - """ - searchScore: Float } """A `ViewGrant` edge in the connection.""" @@ -17122,12 +17646,6 @@ enum ViewGrantOrderBy { PRIVILEGE_DESC IS_GRANT_ASC IS_GRANT_DESC - GRANTEE_NAME_TRGM_SIMILARITY_ASC - GRANTEE_NAME_TRGM_SIMILARITY_DESC - PRIVILEGE_TRGM_SIMILARITY_ASC - PRIVILEGE_TRGM_SIMILARITY_DESC - SEARCH_SCORE_ASC - SEARCH_SCORE_DESC } """A connection to a list of `ViewRule` values.""" @@ -17165,26 +17683,6 @@ type ViewRule { """Reads a single `View` that is related to this `ViewRule`.""" view: View - - """ - TRGM similarity when searching `name`. Returns null when no trgm search filter is active. - """ - nameTrgmSimilarity: Float - - """ - TRGM similarity when searching `event`. Returns null when no trgm search filter is active. - """ - eventTrgmSimilarity: Float - - """ - TRGM similarity when searching `action`. Returns null when no trgm search filter is active. - """ - actionTrgmSimilarity: Float - - """ - Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. - """ - searchScore: Float } """A `ViewRule` edge in the connection.""" @@ -17209,14 +17707,6 @@ enum ViewRuleOrderBy { VIEW_ID_DESC NAME_ASC NAME_DESC - NAME_TRGM_SIMILARITY_ASC - NAME_TRGM_SIMILARITY_DESC - EVENT_TRGM_SIMILARITY_ASC - EVENT_TRGM_SIMILARITY_DESC - ACTION_TRGM_SIMILARITY_ASC - ACTION_TRGM_SIMILARITY_DESC - SEARCH_SCORE_ASC - SEARCH_SCORE_DESC } """A `View` edge in the connection.""" @@ -17243,16 +17733,87 @@ enum ViewOrderBy { NAME_DESC TABLE_ID_ASC TABLE_ID_DESC - NAME_TRGM_SIMILARITY_ASC - NAME_TRGM_SIMILARITY_DESC - VIEW_TYPE_TRGM_SIMILARITY_ASC - VIEW_TYPE_TRGM_SIMILARITY_DESC - FILTER_TYPE_TRGM_SIMILARITY_ASC - FILTER_TYPE_TRGM_SIMILARITY_DESC - MODULE_TRGM_SIMILARITY_ASC - MODULE_TRGM_SIMILARITY_DESC - SEARCH_SCORE_ASC - SEARCH_SCORE_DESC +} + +"""A connection to a list of `EmbeddingChunk` values.""" +type EmbeddingChunkConnection { + """A list of `EmbeddingChunk` objects.""" + nodes: [EmbeddingChunk]! + + """ + A list of edges which contains the `EmbeddingChunk` and cursor to aid in pagination. + """ + edges: [EmbeddingChunkEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `EmbeddingChunk` you could get from the connection.""" + totalCount: Int! +} + +type EmbeddingChunk { + id: UUID! + databaseId: UUID! + tableId: UUID! + embeddingFieldId: UUID + chunksTableId: UUID + chunksTableName: String + contentFieldName: String! + dimensions: Int! + metric: String! + chunkSize: Int! + chunkOverlap: Int! + chunkStrategy: String! + metadataFields: JSON + enqueueChunkingJob: Boolean! + chunkingTaskName: String! + parentFkFieldId: UUID + createdAt: Datetime + updatedAt: Datetime + + """Reads a single `Table` that is related to this `EmbeddingChunk`.""" + chunksTable: Table + + """Reads a single `Database` that is related to this `EmbeddingChunk`.""" + database: Database + + """Reads a single `Field` that is related to this `EmbeddingChunk`.""" + embeddingField: Field + + """Reads a single `Field` that is related to this `EmbeddingChunk`.""" + parentFkField: Field + + """Reads a single `Table` that is related to this `EmbeddingChunk`.""" + table: Table +} + +"""A `EmbeddingChunk` edge in the connection.""" +type EmbeddingChunkEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `EmbeddingChunk` at the end of the edge.""" + node: EmbeddingChunk +} + +"""Methods to use when ordering `EmbeddingChunk`.""" +enum EmbeddingChunkOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + TABLE_ID_ASC + TABLE_ID_DESC + CHUNKS_TABLE_ID_ASC + CHUNKS_TABLE_ID_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC } """A connection to a list of `TableTemplateModule` values.""" @@ -17301,21 +17862,6 @@ type TableTemplateModule { """Reads a single `Table` that is related to this `TableTemplateModule`.""" table: Table - - """ - TRGM similarity when searching `tableName`. Returns null when no trgm search filter is active. - """ - tableNameTrgmSimilarity: Float - - """ - TRGM similarity when searching `nodeType`. Returns null when no trgm search filter is active. - """ - nodeTypeTrgmSimilarity: Float - - """ - Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. - """ - searchScore: Float } """A `TableTemplateModule` edge in the connection.""" @@ -17346,12 +17892,6 @@ enum TableTemplateModuleOrderBy { OWNER_TABLE_ID_DESC NODE_TYPE_ASC NODE_TYPE_DESC - TABLE_NAME_TRGM_SIMILARITY_ASC - TABLE_NAME_TRGM_SIMILARITY_DESC - NODE_TYPE_TRGM_SIMILARITY_ASC - NODE_TYPE_TRGM_SIMILARITY_DESC - SEARCH_SCORE_ASC - SEARCH_SCORE_DESC } """A connection to a list of `SecureTableProvision` values.""" @@ -17409,14 +17949,14 @@ type SecureTableProvision { useRls: Boolean! """ - Configuration passed to the generator function for field creation (only used when node_type is set). Known keys include: field_name (text, default 'id') for DataId, owner_field_name (text, default 'owner_id') for DataDirectOwner/DataOwnershipInEntity, entity_field_name (text, default 'entity_id') for DataEntityMembership/DataOwnershipInEntity, include_id (boolean, default true) for most node_types, include_user_fk (boolean, default true) to add FK to users table. Defaults to '{}'. + Configuration passed to the generator function for field creation (only used when node_type is set). Known keys include: field_name (text, default 'id') for DataId, owner_field_name (text, default 'owner_id') for DataDirectOwner/DataOwnershipInEntity, entity_field_name (text, default 'entity_id') for DataEntityMembership/DataOwnershipInEntity, include_id (boolean, default true) for most node_types, include_user_fk (boolean, default true) to add FK to users table, create_index (boolean, default true) to create btree indexes on FK fields for join and cascade performance. Defaults to '{}'. """ nodeData: JSON! """ - JSON array of field definition objects to create on the target table. Each object has keys: "name" (text, required), "type" (text, required), "default" (text, optional), "is_required" (boolean, optional, defaults to false), "min" (float, optional), "max" (float, optional), "regexp" (text, optional). min/max generate CHECK constraints: for text/citext they constrain character_length, for integer/float types they constrain the value. regexp generates a CHECK (col ~ pattern) constraint for text/citext. Fields are created via metaschema.create_field() after any node_type generator runs, and their IDs are appended to out_fields. Example: [{"name":"username","type":"citext","max":256,"regexp":"^[a-z0-9_]+$"},{"name":"score","type":"integer","min":0,"max":100}]. Defaults to '[]' (no additional fields). + PostgreSQL array of jsonb field definition objects to create on the target table. Each object has keys: "name" (text, required), "type" (text, required), "default" (text, optional), "is_required" (boolean, optional, defaults to false), "min" (float, optional), "max" (float, optional), "regexp" (text, optional), "index" (boolean, optional, defaults to false — creates a btree index on the field). min/max generate CHECK constraints: for text/citext they constrain character_length, for integer/float types they constrain the value. regexp generates a CHECK (col ~ pattern) constraint for text/citext. Fields are created via metaschema.create_field() after any node_type generator runs, and their IDs are appended to out_fields. Example: ARRAY['{"name":"username","type":"citext","max":256,"regexp":"^[a-z0-9_]+$"}'::jsonb, '{"name":"score","type":"integer","min":0,"max":100}'::jsonb]. Defaults to '{}' (no additional fields). """ - fields: JSON! + fields: [JSON]! """ Database roles to grant privileges to. Supports multiple roles, e.g. ARRAY['authenticated', 'admin']. Each role receives all privileges defined in grant_privileges. Defaults to ARRAY['authenticated']. @@ -17424,9 +17964,9 @@ type SecureTableProvision { grantRoles: [String]! """ - Array of [privilege, columns] tuples defining table grants. Examples: [["select","*"],["insert","*"]] for full access, or [["update",["name","bio"]]] for column-level grants. "*" means all columns; an array means column-level grant. Defaults to '[]' (no grants). The trigger validates this is a proper jsonb array. + PostgreSQL array of jsonb [privilege, columns] tuples defining table grants. Examples: ARRAY['["select","*"]'::jsonb, '["insert","*"]'::jsonb] for full access, or ARRAY['["update",["name","bio"]]'::jsonb] for column-level grants. "*" means all columns; an array means column-level grant. Defaults to '{}' (no grants). Type safety is enforced by PostgreSQL at INSERT time. """ - grantPrivileges: JSON! + grantPrivileges: [JSON]! """ Policy generator type, e.g. 'AuthzEntityMembership', 'AuthzMembership', 'AuthzAllowAll'. NULL means no policy is created. When set, the trigger automatically enables RLS on the target table. @@ -17475,36 +18015,6 @@ type SecureTableProvision { """Reads a single `Table` that is related to this `SecureTableProvision`.""" table: Table - - """ - TRGM similarity when searching `tableName`. Returns null when no trgm search filter is active. - """ - tableNameTrgmSimilarity: Float - - """ - TRGM similarity when searching `nodeType`. Returns null when no trgm search filter is active. - """ - nodeTypeTrgmSimilarity: Float - - """ - TRGM similarity when searching `policyType`. Returns null when no trgm search filter is active. - """ - policyTypeTrgmSimilarity: Float - - """ - TRGM similarity when searching `policyRole`. Returns null when no trgm search filter is active. - """ - policyRoleTrgmSimilarity: Float - - """ - TRGM similarity when searching `policyName`. Returns null when no trgm search filter is active. - """ - policyNameTrgmSimilarity: Float - - """ - Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. - """ - searchScore: Float } """A `SecureTableProvision` edge in the connection.""" @@ -17529,18 +18039,6 @@ enum SecureTableProvisionOrderBy { TABLE_ID_DESC NODE_TYPE_ASC NODE_TYPE_DESC - TABLE_NAME_TRGM_SIMILARITY_ASC - TABLE_NAME_TRGM_SIMILARITY_DESC - NODE_TYPE_TRGM_SIMILARITY_ASC - NODE_TYPE_TRGM_SIMILARITY_DESC - POLICY_TYPE_TRGM_SIMILARITY_ASC - POLICY_TYPE_TRGM_SIMILARITY_DESC - POLICY_ROLE_TRGM_SIMILARITY_ASC - POLICY_ROLE_TRGM_SIMILARITY_DESC - POLICY_NAME_TRGM_SIMILARITY_ASC - POLICY_NAME_TRGM_SIMILARITY_DESC - SEARCH_SCORE_ASC - SEARCH_SCORE_DESC } """A connection to a list of `RelationProvision` values.""" @@ -17632,6 +18130,14 @@ type RelationProvision { """ isRequired: Boolean! + """ + Whether the FK field should be required at the API level even though it is nullable at the database level. Defaults to false. + When true and is_required is false, the field is created as nullable (allowing SET NULL cascade) but a @requiredInput smart tag is added so PostGraphile treats it as non-null in create/update input types. + When is_required is true, api_required is ignored (the field is already required at both levels). + Ignored for RelationManyToMany (junction FK fields are always required). + """ + apiRequired: Boolean! + """ For RelationManyToMany: an existing junction table to use. Defaults to uuid_nil(). - When uuid_nil(): the trigger creates a new junction table via secure_table_provision using junction_table_name. @@ -17669,6 +18175,28 @@ type RelationProvision { """ useCompositeKey: Boolean! + """ + Whether to create a btree index on FK fields created by this relation. Defaults to true. + PostgreSQL does not automatically index foreign key columns (only the referenced PK side is indexed). + Without indexes on FK columns, JOINs, CASCADE deletes, and RLS policy lookups perform sequential scans. + - RelationBelongsTo: creates an index on the FK field on the source table. + - RelationHasMany: creates an index on the FK field on the target table. + - RelationHasOne: skipped — the unique constraint already creates an implicit index. + - RelationManyToMany: creates indexes on both FK fields on the junction table. + Set to false only for very small tables or write-heavy tables where index maintenance cost outweighs read performance. + """ + createIndex: Boolean! + + """ + For RelationManyToMany: whether to expose the M:N shortcut fields in the GraphQL API. Defaults to true. + When true, sets @behavior +manyToMany on the junction table smart_tags so PostGraphile generates + clean M:N connection fields (e.g., event.contacts instead of event.contactEventsByEventId). + When false (or toggled off via UPDATE), the behavior tag is removed and the M:N fields disappear from GraphQL. + Toggling is supported: UPDATE expose_in_api to true/false and the smart tag is added/removed automatically. + Ignored for RelationBelongsTo/RelationHasOne/RelationHasMany. + """ + exposeInApi: Boolean! + """ For RelationManyToMany: which generator to invoke for field creation on the junction table. Forwarded to secure_table_provision as-is. The trigger does not interpret or validate this value. Examples: DataId (creates UUID primary key), DataDirectOwner (creates owner_id field), DataEntityMembership (creates entity_id field), DataOwnershipInEntity (creates both owner_id and entity_id), DataTimestamps, DataPeoplestamps, DataPublishable, DataSoftDelete. @@ -17694,9 +18222,9 @@ type RelationProvision { grantRoles: [String]! """ - For RelationManyToMany: privilege grants for the junction table. Forwarded to secure_table_provision as-is. Format: array of [privilege, columns] tuples. Examples: [["select","*"],["insert","*"]] for full access, or [["update",["name","bio"]]] for column-level grants. "*" means all columns. Defaults to select/insert/delete for all columns. Ignored for RelationBelongsTo/RelationHasOne. + For RelationManyToMany: privilege grants for the junction table. Forwarded to secure_table_provision as-is. Format: PostgreSQL array of jsonb [privilege, columns] tuples. Examples: ARRAY['["select","*"]'::jsonb, '["insert","*"]'::jsonb] for full access, or ARRAY['["update",["name","bio"]]'::jsonb] for column-level grants. "*" means all columns. Defaults to select/insert/delete for all columns. Ignored for RelationBelongsTo/RelationHasOne. """ - grantPrivileges: JSON! + grantPrivileges: [JSON]! """ For RelationManyToMany: RLS policy type for the junction table. Forwarded to secure_table_provision as-is. The trigger does not interpret or validate this value. @@ -17764,61 +18292,6 @@ type RelationProvision { """Reads a single `Table` that is related to this `RelationProvision`.""" targetTable: Table - - """ - TRGM similarity when searching `relationType`. Returns null when no trgm search filter is active. - """ - relationTypeTrgmSimilarity: Float - - """ - TRGM similarity when searching `fieldName`. Returns null when no trgm search filter is active. - """ - fieldNameTrgmSimilarity: Float - - """ - TRGM similarity when searching `deleteAction`. Returns null when no trgm search filter is active. - """ - deleteActionTrgmSimilarity: Float - - """ - TRGM similarity when searching `junctionTableName`. Returns null when no trgm search filter is active. - """ - junctionTableNameTrgmSimilarity: Float - - """ - TRGM similarity when searching `sourceFieldName`. Returns null when no trgm search filter is active. - """ - sourceFieldNameTrgmSimilarity: Float - - """ - TRGM similarity when searching `targetFieldName`. Returns null when no trgm search filter is active. - """ - targetFieldNameTrgmSimilarity: Float - - """ - TRGM similarity when searching `nodeType`. Returns null when no trgm search filter is active. - """ - nodeTypeTrgmSimilarity: Float - - """ - TRGM similarity when searching `policyType`. Returns null when no trgm search filter is active. - """ - policyTypeTrgmSimilarity: Float - - """ - TRGM similarity when searching `policyRole`. Returns null when no trgm search filter is active. - """ - policyRoleTrgmSimilarity: Float - - """ - TRGM similarity when searching `policyName`. Returns null when no trgm search filter is active. - """ - policyNameTrgmSimilarity: Float - - """ - Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. - """ - searchScore: Float } """A `RelationProvision` edge in the connection.""" @@ -17845,28 +18318,6 @@ enum RelationProvisionOrderBy { SOURCE_TABLE_ID_DESC TARGET_TABLE_ID_ASC TARGET_TABLE_ID_DESC - RELATION_TYPE_TRGM_SIMILARITY_ASC - RELATION_TYPE_TRGM_SIMILARITY_DESC - FIELD_NAME_TRGM_SIMILARITY_ASC - FIELD_NAME_TRGM_SIMILARITY_DESC - DELETE_ACTION_TRGM_SIMILARITY_ASC - DELETE_ACTION_TRGM_SIMILARITY_DESC - JUNCTION_TABLE_NAME_TRGM_SIMILARITY_ASC - JUNCTION_TABLE_NAME_TRGM_SIMILARITY_DESC - SOURCE_FIELD_NAME_TRGM_SIMILARITY_ASC - SOURCE_FIELD_NAME_TRGM_SIMILARITY_DESC - TARGET_FIELD_NAME_TRGM_SIMILARITY_ASC - TARGET_FIELD_NAME_TRGM_SIMILARITY_DESC - NODE_TYPE_TRGM_SIMILARITY_ASC - NODE_TYPE_TRGM_SIMILARITY_DESC - POLICY_TYPE_TRGM_SIMILARITY_ASC - POLICY_TYPE_TRGM_SIMILARITY_DESC - POLICY_ROLE_TRGM_SIMILARITY_ASC - POLICY_ROLE_TRGM_SIMILARITY_DESC - POLICY_NAME_TRGM_SIMILARITY_ASC - POLICY_NAME_TRGM_SIMILARITY_DESC - SEARCH_SCORE_ASC - SEARCH_SCORE_DESC } """A `Table` edge in the connection.""" @@ -17895,20 +18346,6 @@ enum TableOrderBy { CREATED_AT_DESC UPDATED_AT_ASC UPDATED_AT_DESC - NAME_TRGM_SIMILARITY_ASC - NAME_TRGM_SIMILARITY_DESC - LABEL_TRGM_SIMILARITY_ASC - LABEL_TRGM_SIMILARITY_DESC - DESCRIPTION_TRGM_SIMILARITY_ASC - DESCRIPTION_TRGM_SIMILARITY_DESC - MODULE_TRGM_SIMILARITY_ASC - MODULE_TRGM_SIMILARITY_DESC - PLURAL_NAME_TRGM_SIMILARITY_ASC - PLURAL_NAME_TRGM_SIMILARITY_DESC - SINGULAR_NAME_TRGM_SIMILARITY_ASC - SINGULAR_NAME_TRGM_SIMILARITY_DESC - SEARCH_SCORE_ASC - SEARCH_SCORE_DESC } """A connection to a list of `SchemaGrant` values.""" @@ -17941,16 +18378,6 @@ type SchemaGrant { """Reads a single `Schema` that is related to this `SchemaGrant`.""" schema: Schema - - """ - TRGM similarity when searching `granteeName`. Returns null when no trgm search filter is active. - """ - granteeNameTrgmSimilarity: Float - - """ - Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. - """ - searchScore: Float } """A `SchemaGrant` edge in the connection.""" @@ -17977,10 +18404,6 @@ enum SchemaGrantOrderBy { CREATED_AT_DESC UPDATED_AT_ASC UPDATED_AT_DESC - GRANTEE_NAME_TRGM_SIMILARITY_ASC - GRANTEE_NAME_TRGM_SIMILARITY_DESC - SEARCH_SCORE_ASC - SEARCH_SCORE_DESC } """A connection to a list of `DefaultPrivilege` values.""" @@ -18016,26 +18439,6 @@ type DefaultPrivilege { """Reads a single `Schema` that is related to this `DefaultPrivilege`.""" schema: Schema - - """ - TRGM similarity when searching `objectType`. Returns null when no trgm search filter is active. - """ - objectTypeTrgmSimilarity: Float - - """ - TRGM similarity when searching `privilege`. Returns null when no trgm search filter is active. - """ - privilegeTrgmSimilarity: Float - - """ - TRGM similarity when searching `granteeName`. Returns null when no trgm search filter is active. - """ - granteeNameTrgmSimilarity: Float - - """ - Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. - """ - searchScore: Float } """A `DefaultPrivilege` edge in the connection.""" @@ -18066,14 +18469,68 @@ enum DefaultPrivilegeOrderBy { GRANTEE_NAME_DESC IS_GRANT_ASC IS_GRANT_DESC - OBJECT_TYPE_TRGM_SIMILARITY_ASC - OBJECT_TYPE_TRGM_SIMILARITY_DESC - PRIVILEGE_TRGM_SIMILARITY_ASC - PRIVILEGE_TRGM_SIMILARITY_DESC - GRANTEE_NAME_TRGM_SIMILARITY_ASC - GRANTEE_NAME_TRGM_SIMILARITY_DESC - SEARCH_SCORE_ASC - SEARCH_SCORE_DESC +} + +"""A connection to a list of `Enum` values.""" +type EnumConnection { + """A list of `Enum` objects.""" + nodes: [Enum]! + + """ + A list of edges which contains the `Enum` and cursor to aid in pagination. + """ + edges: [EnumEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `Enum` you could get from the connection.""" + totalCount: Int! +} + +type Enum { + id: UUID! + databaseId: UUID! + schemaId: UUID! + name: String! + label: String + description: String + values: [String]! + smartTags: JSON + category: ObjectCategory! + module: String + scope: Int + tags: [String]! + + """Reads a single `Database` that is related to this `Enum`.""" + database: Database + + """Reads a single `Schema` that is related to this `Enum`.""" + schema: Schema +} + +"""A `Enum` edge in the connection.""" +type EnumEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `Enum` at the end of the edge.""" + node: Enum +} + +"""Methods to use when ordering `Enum`.""" +enum EnumOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + SCHEMA_ID_ASC + SCHEMA_ID_DESC + NAME_ASC + NAME_DESC } """A connection to a list of `ApiSchema` values.""" @@ -18233,31 +18690,6 @@ type Api { """The method to use when ordering `Domain`.""" orderBy: [DomainOrderBy!] = [PRIMARY_KEY_ASC] ): DomainConnection! - - """ - TRGM similarity when searching `name`. Returns null when no trgm search filter is active. - """ - nameTrgmSimilarity: Float - - """ - TRGM similarity when searching `dbname`. Returns null when no trgm search filter is active. - """ - dbnameTrgmSimilarity: Float - - """ - TRGM similarity when searching `roleName`. Returns null when no trgm search filter is active. - """ - roleNameTrgmSimilarity: Float - - """ - TRGM similarity when searching `anonRole`. Returns null when no trgm search filter is active. - """ - anonRoleTrgmSimilarity: Float - - """ - Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. - """ - searchScore: Float } """A connection to a list of `ApiModule` values.""" @@ -18301,16 +18733,6 @@ type ApiModule { """Reads a single `Database` that is related to this `ApiModule`.""" database: Database - - """ - TRGM similarity when searching `name`. Returns null when no trgm search filter is active. - """ - nameTrgmSimilarity: Float - - """ - Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. - """ - searchScore: Float } """A `ApiModule` edge in the connection.""" @@ -18335,10 +18757,6 @@ enum ApiModuleOrderBy { API_ID_DESC NAME_ASC NAME_DESC - NAME_TRGM_SIMILARITY_ASC - NAME_TRGM_SIMILARITY_DESC - SEARCH_SCORE_ASC - SEARCH_SCORE_DESC } """Methods to use when ordering `ApiSchema`.""" @@ -18557,26 +18975,6 @@ type Site { """The method to use when ordering `SiteTheme`.""" orderBy: [SiteThemeOrderBy!] = [PRIMARY_KEY_ASC] ): SiteThemeConnection! - - """ - TRGM similarity when searching `title`. Returns null when no trgm search filter is active. - """ - titleTrgmSimilarity: Float - - """ - TRGM similarity when searching `description`. Returns null when no trgm search filter is active. - """ - descriptionTrgmSimilarity: Float - - """ - TRGM similarity when searching `dbname`. Returns null when no trgm search filter is active. - """ - dbnameTrgmSimilarity: Float - - """ - Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. - """ - searchScore: Float } """ @@ -18617,26 +19015,6 @@ type App { """Reads a single `Database` that is related to this `App`.""" database: Database - - """ - TRGM similarity when searching `name`. Returns null when no trgm search filter is active. - """ - nameTrgmSimilarity: Float - - """ - TRGM similarity when searching `appStoreId`. Returns null when no trgm search filter is active. - """ - appStoreIdTrgmSimilarity: Float - - """ - TRGM similarity when searching `appIdPrefix`. Returns null when no trgm search filter is active. - """ - appIdPrefixTrgmSimilarity: Float - - """ - Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. - """ - searchScore: Float } """Methods to use when ordering `Domain`.""" @@ -18702,21 +19080,6 @@ type SiteMetadatum { """Reads a single `Site` that is related to this `SiteMetadatum`.""" site: Site - - """ - TRGM similarity when searching `title`. Returns null when no trgm search filter is active. - """ - titleTrgmSimilarity: Float - - """ - TRGM similarity when searching `description`. Returns null when no trgm search filter is active. - """ - descriptionTrgmSimilarity: Float - - """ - Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. - """ - searchScore: Float } """A `SiteMetadatum` edge in the connection.""" @@ -18739,12 +19102,6 @@ enum SiteMetadatumOrderBy { DATABASE_ID_DESC SITE_ID_ASC SITE_ID_DESC - TITLE_TRGM_SIMILARITY_ASC - TITLE_TRGM_SIMILARITY_DESC - DESCRIPTION_TRGM_SIMILARITY_ASC - DESCRIPTION_TRGM_SIMILARITY_DESC - SEARCH_SCORE_ASC - SEARCH_SCORE_DESC } """A connection to a list of `SiteModule` values.""" @@ -18788,16 +19145,6 @@ type SiteModule { """Reads a single `Site` that is related to this `SiteModule`.""" site: Site - - """ - TRGM similarity when searching `name`. Returns null when no trgm search filter is active. - """ - nameTrgmSimilarity: Float - - """ - Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. - """ - searchScore: Float } """A `SiteModule` edge in the connection.""" @@ -18820,10 +19167,6 @@ enum SiteModuleOrderBy { DATABASE_ID_DESC SITE_ID_ASC SITE_ID_DESC - NAME_TRGM_SIMILARITY_ASC - NAME_TRGM_SIMILARITY_DESC - SEARCH_SCORE_ASC - SEARCH_SCORE_DESC } """A connection to a list of `SiteTheme` values.""" @@ -18934,18 +19277,6 @@ enum SchemaOrderBy { CREATED_AT_DESC UPDATED_AT_ASC UPDATED_AT_DESC - NAME_TRGM_SIMILARITY_ASC - NAME_TRGM_SIMILARITY_DESC - SCHEMA_NAME_TRGM_SIMILARITY_ASC - SCHEMA_NAME_TRGM_SIMILARITY_DESC - LABEL_TRGM_SIMILARITY_ASC - LABEL_TRGM_SIMILARITY_DESC - DESCRIPTION_TRGM_SIMILARITY_ASC - DESCRIPTION_TRGM_SIMILARITY_DESC - MODULE_TRGM_SIMILARITY_ASC - MODULE_TRGM_SIMILARITY_DESC - SEARCH_SCORE_ASC - SEARCH_SCORE_DESC } """A connection to a list of `TriggerFunction` values.""" @@ -18977,21 +19308,6 @@ type TriggerFunction { """Reads a single `Database` that is related to this `TriggerFunction`.""" database: Database - - """ - TRGM similarity when searching `name`. Returns null when no trgm search filter is active. - """ - nameTrgmSimilarity: Float - - """ - TRGM similarity when searching `code`. Returns null when no trgm search filter is active. - """ - codeTrgmSimilarity: Float - - """ - Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. - """ - searchScore: Float } """A `TriggerFunction` edge in the connection.""" @@ -19018,12 +19334,69 @@ enum TriggerFunctionOrderBy { CREATED_AT_DESC UPDATED_AT_ASC UPDATED_AT_DESC - NAME_TRGM_SIMILARITY_ASC - NAME_TRGM_SIMILARITY_DESC - CODE_TRGM_SIMILARITY_ASC - CODE_TRGM_SIMILARITY_DESC - SEARCH_SCORE_ASC - SEARCH_SCORE_DESC +} + +"""A connection to a list of `DatabaseTransfer` values.""" +type DatabaseTransferConnection { + """A list of `DatabaseTransfer` objects.""" + nodes: [DatabaseTransfer]! + + """ + A list of edges which contains the `DatabaseTransfer` and cursor to aid in pagination. + """ + edges: [DatabaseTransferEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `DatabaseTransfer` you could get from the connection. + """ + totalCount: Int! +} + +type DatabaseTransfer { + id: UUID! + databaseId: UUID! + targetOwnerId: UUID! + sourceApproved: Boolean! + targetApproved: Boolean! + sourceApprovedAt: Datetime + targetApprovedAt: Datetime + status: String! + initiatedBy: UUID! + notes: String + expiresAt: Datetime! + createdAt: Datetime! + updatedAt: Datetime! + completedAt: Datetime + + """Reads a single `Database` that is related to this `DatabaseTransfer`.""" + database: Database +} + +"""A `DatabaseTransfer` edge in the connection.""" +type DatabaseTransferEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `DatabaseTransfer` at the end of the edge.""" + node: DatabaseTransfer +} + +"""Methods to use when ordering `DatabaseTransfer`.""" +enum DatabaseTransferOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + TARGET_OWNER_ID_ASC + TARGET_OWNER_ID_DESC + STATUS_ASC + STATUS_DESC } """A connection to a list of `Api` values.""" @@ -19063,16 +19436,6 @@ enum ApiOrderBy { DATABASE_ID_DESC NAME_ASC NAME_DESC - NAME_TRGM_SIMILARITY_ASC - NAME_TRGM_SIMILARITY_DESC - DBNAME_TRGM_SIMILARITY_ASC - DBNAME_TRGM_SIMILARITY_DESC - ROLE_NAME_TRGM_SIMILARITY_ASC - ROLE_NAME_TRGM_SIMILARITY_DESC - ANON_ROLE_TRGM_SIMILARITY_ASC - ANON_ROLE_TRGM_SIMILARITY_DESC - SEARCH_SCORE_ASC - SEARCH_SCORE_DESC } """A connection to a list of `Site` values.""" @@ -19110,14 +19473,6 @@ enum SiteOrderBy { ID_DESC DATABASE_ID_ASC DATABASE_ID_DESC - TITLE_TRGM_SIMILARITY_ASC - TITLE_TRGM_SIMILARITY_DESC - DESCRIPTION_TRGM_SIMILARITY_ASC - DESCRIPTION_TRGM_SIMILARITY_DESC - DBNAME_TRGM_SIMILARITY_ASC - DBNAME_TRGM_SIMILARITY_DESC - SEARCH_SCORE_ASC - SEARCH_SCORE_DESC } """A connection to a list of `App` values.""" @@ -19157,14 +19512,6 @@ enum AppOrderBy { DATABASE_ID_DESC SITE_ID_ASC SITE_ID_DESC - NAME_TRGM_SIMILARITY_ASC - NAME_TRGM_SIMILARITY_DESC - APP_STORE_ID_TRGM_SIMILARITY_ASC - APP_STORE_ID_TRGM_SIMILARITY_DESC - APP_ID_PREFIX_TRGM_SIMILARITY_ASC - APP_ID_PREFIX_TRGM_SIMILARITY_DESC - SEARCH_SCORE_ASC - SEARCH_SCORE_DESC } """A connection to a list of `ConnectedAccountsModule` values.""" @@ -19219,16 +19566,6 @@ type ConnectedAccountsModule { Reads a single `Table` that is related to this `ConnectedAccountsModule`. """ table: Table - - """ - TRGM similarity when searching `tableName`. Returns null when no trgm search filter is active. - """ - tableNameTrgmSimilarity: Float - - """ - Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. - """ - searchScore: Float } """A `ConnectedAccountsModule` edge in the connection.""" @@ -19249,10 +19586,6 @@ enum ConnectedAccountsModuleOrderBy { ID_DESC DATABASE_ID_ASC DATABASE_ID_DESC - TABLE_NAME_TRGM_SIMILARITY_ASC - TABLE_NAME_TRGM_SIMILARITY_DESC - SEARCH_SCORE_ASC - SEARCH_SCORE_DESC } """A connection to a list of `CryptoAddressesModule` values.""" @@ -19308,21 +19641,6 @@ type CryptoAddressesModule { Reads a single `Table` that is related to this `CryptoAddressesModule`. """ table: Table - - """ - TRGM similarity when searching `tableName`. Returns null when no trgm search filter is active. - """ - tableNameTrgmSimilarity: Float - - """ - TRGM similarity when searching `cryptoNetwork`. Returns null when no trgm search filter is active. - """ - cryptoNetworkTrgmSimilarity: Float - - """ - Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. - """ - searchScore: Float } """A `CryptoAddressesModule` edge in the connection.""" @@ -19343,12 +19661,6 @@ enum CryptoAddressesModuleOrderBy { ID_DESC DATABASE_ID_ASC DATABASE_ID_DESC - TABLE_NAME_TRGM_SIMILARITY_ASC - TABLE_NAME_TRGM_SIMILARITY_DESC - CRYPTO_NETWORK_TRGM_SIMILARITY_ASC - CRYPTO_NETWORK_TRGM_SIMILARITY_DESC - SEARCH_SCORE_ASC - SEARCH_SCORE_DESC } """A connection to a list of `CryptoAuthModule` values.""" @@ -19403,41 +19715,6 @@ type CryptoAuthModule { """Reads a single `Table` that is related to this `CryptoAuthModule`.""" usersTable: Table - - """ - TRGM similarity when searching `userField`. Returns null when no trgm search filter is active. - """ - userFieldTrgmSimilarity: Float - - """ - TRGM similarity when searching `cryptoNetwork`. Returns null when no trgm search filter is active. - """ - cryptoNetworkTrgmSimilarity: Float - - """ - TRGM similarity when searching `signInRequestChallenge`. Returns null when no trgm search filter is active. - """ - signInRequestChallengeTrgmSimilarity: Float - - """ - TRGM similarity when searching `signInRecordFailure`. Returns null when no trgm search filter is active. - """ - signInRecordFailureTrgmSimilarity: Float - - """ - TRGM similarity when searching `signUpWithKey`. Returns null when no trgm search filter is active. - """ - signUpWithKeyTrgmSimilarity: Float - - """ - TRGM similarity when searching `signInWithChallenge`. Returns null when no trgm search filter is active. - """ - signInWithChallengeTrgmSimilarity: Float - - """ - Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. - """ - searchScore: Float } """A `CryptoAuthModule` edge in the connection.""" @@ -19458,20 +19735,6 @@ enum CryptoAuthModuleOrderBy { ID_DESC DATABASE_ID_ASC DATABASE_ID_DESC - USER_FIELD_TRGM_SIMILARITY_ASC - USER_FIELD_TRGM_SIMILARITY_DESC - CRYPTO_NETWORK_TRGM_SIMILARITY_ASC - CRYPTO_NETWORK_TRGM_SIMILARITY_DESC - SIGN_IN_REQUEST_CHALLENGE_TRGM_SIMILARITY_ASC - SIGN_IN_REQUEST_CHALLENGE_TRGM_SIMILARITY_DESC - SIGN_IN_RECORD_FAILURE_TRGM_SIMILARITY_ASC - SIGN_IN_RECORD_FAILURE_TRGM_SIMILARITY_DESC - SIGN_UP_WITH_KEY_TRGM_SIMILARITY_ASC - SIGN_UP_WITH_KEY_TRGM_SIMILARITY_DESC - SIGN_IN_WITH_CHALLENGE_TRGM_SIMILARITY_ASC - SIGN_IN_WITH_CHALLENGE_TRGM_SIMILARITY_DESC - SEARCH_SCORE_ASC - SEARCH_SCORE_DESC } """A connection to a list of `DefaultIdsModule` values.""" @@ -19578,16 +19841,6 @@ type DenormalizedTableField { Reads a single `Table` that is related to this `DenormalizedTableField`. """ table: Table - - """ - TRGM similarity when searching `funcName`. Returns null when no trgm search filter is active. - """ - funcNameTrgmSimilarity: Float - - """ - Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. - """ - searchScore: Float } """A `DenormalizedTableField` edge in the connection.""" @@ -19608,10 +19861,6 @@ enum DenormalizedTableFieldOrderBy { ID_DESC DATABASE_ID_ASC DATABASE_ID_DESC - FUNC_NAME_TRGM_SIMILARITY_ASC - FUNC_NAME_TRGM_SIMILARITY_DESC - SEARCH_SCORE_ASC - SEARCH_SCORE_DESC } """A connection to a list of `EmailsModule` values.""" @@ -19654,16 +19903,6 @@ type EmailsModule { """Reads a single `Table` that is related to this `EmailsModule`.""" table: Table - - """ - TRGM similarity when searching `tableName`. Returns null when no trgm search filter is active. - """ - tableNameTrgmSimilarity: Float - - """ - Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. - """ - searchScore: Float } """A `EmailsModule` edge in the connection.""" @@ -19684,10 +19923,6 @@ enum EmailsModuleOrderBy { ID_DESC DATABASE_ID_ASC DATABASE_ID_DESC - TABLE_NAME_TRGM_SIMILARITY_ASC - TABLE_NAME_TRGM_SIMILARITY_DESC - SEARCH_SCORE_ASC - SEARCH_SCORE_DESC } """A connection to a list of `EncryptedSecretsModule` values.""" @@ -19730,16 +19965,6 @@ type EncryptedSecretsModule { Reads a single `Table` that is related to this `EncryptedSecretsModule`. """ table: Table - - """ - TRGM similarity when searching `tableName`. Returns null when no trgm search filter is active. - """ - tableNameTrgmSimilarity: Float - - """ - Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. - """ - searchScore: Float } """A `EncryptedSecretsModule` edge in the connection.""" @@ -19760,10 +19985,6 @@ enum EncryptedSecretsModuleOrderBy { ID_DESC DATABASE_ID_ASC DATABASE_ID_DESC - TABLE_NAME_TRGM_SIMILARITY_ASC - TABLE_NAME_TRGM_SIMILARITY_DESC - SEARCH_SCORE_ASC - SEARCH_SCORE_DESC } """A connection to a list of `FieldModule` values.""" @@ -19805,16 +20026,6 @@ type FieldModule { """Reads a single `Table` that is related to this `FieldModule`.""" table: Table - - """ - TRGM similarity when searching `nodeType`. Returns null when no trgm search filter is active. - """ - nodeTypeTrgmSimilarity: Float - - """ - Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. - """ - searchScore: Float } """A `FieldModule` edge in the connection.""" @@ -19837,10 +20048,6 @@ enum FieldModuleOrderBy { DATABASE_ID_DESC NODE_TYPE_ASC NODE_TYPE_DESC - NODE_TYPE_TRGM_SIMILARITY_ASC - NODE_TYPE_TRGM_SIMILARITY_DESC - SEARCH_SCORE_ASC - SEARCH_SCORE_DESC } """A connection to a list of `InvitesModule` values.""" @@ -19899,31 +20106,6 @@ type InvitesModule { """Reads a single `Table` that is related to this `InvitesModule`.""" usersTable: Table - - """ - TRGM similarity when searching `invitesTableName`. Returns null when no trgm search filter is active. - """ - invitesTableNameTrgmSimilarity: Float - - """ - TRGM similarity when searching `claimedInvitesTableName`. Returns null when no trgm search filter is active. - """ - claimedInvitesTableNameTrgmSimilarity: Float - - """ - TRGM similarity when searching `submitInviteCodeFunction`. Returns null when no trgm search filter is active. - """ - submitInviteCodeFunctionTrgmSimilarity: Float - - """ - TRGM similarity when searching `prefix`. Returns null when no trgm search filter is active. - """ - prefixTrgmSimilarity: Float - - """ - Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. - """ - searchScore: Float } """A `InvitesModule` edge in the connection.""" @@ -19944,16 +20126,6 @@ enum InvitesModuleOrderBy { ID_DESC DATABASE_ID_ASC DATABASE_ID_DESC - INVITES_TABLE_NAME_TRGM_SIMILARITY_ASC - INVITES_TABLE_NAME_TRGM_SIMILARITY_DESC - CLAIMED_INVITES_TABLE_NAME_TRGM_SIMILARITY_ASC - CLAIMED_INVITES_TABLE_NAME_TRGM_SIMILARITY_DESC - SUBMIT_INVITE_CODE_FUNCTION_TRGM_SIMILARITY_ASC - SUBMIT_INVITE_CODE_FUNCTION_TRGM_SIMILARITY_DESC - PREFIX_TRGM_SIMILARITY_ASC - PREFIX_TRGM_SIMILARITY_DESC - SEARCH_SCORE_ASC - SEARCH_SCORE_DESC } """A connection to a list of `LevelsModule` values.""" @@ -20027,86 +20199,6 @@ type LevelsModule { """Reads a single `Table` that is related to this `LevelsModule`.""" stepsTable: Table - - """ - TRGM similarity when searching `stepsTableName`. Returns null when no trgm search filter is active. - """ - stepsTableNameTrgmSimilarity: Float - - """ - TRGM similarity when searching `achievementsTableName`. Returns null when no trgm search filter is active. - """ - achievementsTableNameTrgmSimilarity: Float - - """ - TRGM similarity when searching `levelsTableName`. Returns null when no trgm search filter is active. - """ - levelsTableNameTrgmSimilarity: Float - - """ - TRGM similarity when searching `levelRequirementsTableName`. Returns null when no trgm search filter is active. - """ - levelRequirementsTableNameTrgmSimilarity: Float - - """ - TRGM similarity when searching `completedStep`. Returns null when no trgm search filter is active. - """ - completedStepTrgmSimilarity: Float - - """ - TRGM similarity when searching `incompletedStep`. Returns null when no trgm search filter is active. - """ - incompletedStepTrgmSimilarity: Float - - """ - TRGM similarity when searching `tgAchievement`. Returns null when no trgm search filter is active. - """ - tgAchievementTrgmSimilarity: Float - - """ - TRGM similarity when searching `tgAchievementToggle`. Returns null when no trgm search filter is active. - """ - tgAchievementToggleTrgmSimilarity: Float - - """ - TRGM similarity when searching `tgAchievementToggleBoolean`. Returns null when no trgm search filter is active. - """ - tgAchievementToggleBooleanTrgmSimilarity: Float - - """ - TRGM similarity when searching `tgAchievementBoolean`. Returns null when no trgm search filter is active. - """ - tgAchievementBooleanTrgmSimilarity: Float - - """ - TRGM similarity when searching `upsertAchievement`. Returns null when no trgm search filter is active. - """ - upsertAchievementTrgmSimilarity: Float - - """ - TRGM similarity when searching `tgUpdateAchievements`. Returns null when no trgm search filter is active. - """ - tgUpdateAchievementsTrgmSimilarity: Float - - """ - TRGM similarity when searching `stepsRequired`. Returns null when no trgm search filter is active. - """ - stepsRequiredTrgmSimilarity: Float - - """ - TRGM similarity when searching `levelAchieved`. Returns null when no trgm search filter is active. - """ - levelAchievedTrgmSimilarity: Float - - """ - TRGM similarity when searching `prefix`. Returns null when no trgm search filter is active. - """ - prefixTrgmSimilarity: Float - - """ - Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. - """ - searchScore: Float } """A `LevelsModule` edge in the connection.""" @@ -20127,38 +20219,6 @@ enum LevelsModuleOrderBy { ID_DESC DATABASE_ID_ASC DATABASE_ID_DESC - STEPS_TABLE_NAME_TRGM_SIMILARITY_ASC - STEPS_TABLE_NAME_TRGM_SIMILARITY_DESC - ACHIEVEMENTS_TABLE_NAME_TRGM_SIMILARITY_ASC - ACHIEVEMENTS_TABLE_NAME_TRGM_SIMILARITY_DESC - LEVELS_TABLE_NAME_TRGM_SIMILARITY_ASC - LEVELS_TABLE_NAME_TRGM_SIMILARITY_DESC - LEVEL_REQUIREMENTS_TABLE_NAME_TRGM_SIMILARITY_ASC - LEVEL_REQUIREMENTS_TABLE_NAME_TRGM_SIMILARITY_DESC - COMPLETED_STEP_TRGM_SIMILARITY_ASC - COMPLETED_STEP_TRGM_SIMILARITY_DESC - INCOMPLETED_STEP_TRGM_SIMILARITY_ASC - INCOMPLETED_STEP_TRGM_SIMILARITY_DESC - TG_ACHIEVEMENT_TRGM_SIMILARITY_ASC - TG_ACHIEVEMENT_TRGM_SIMILARITY_DESC - TG_ACHIEVEMENT_TOGGLE_TRGM_SIMILARITY_ASC - TG_ACHIEVEMENT_TOGGLE_TRGM_SIMILARITY_DESC - TG_ACHIEVEMENT_TOGGLE_BOOLEAN_TRGM_SIMILARITY_ASC - TG_ACHIEVEMENT_TOGGLE_BOOLEAN_TRGM_SIMILARITY_DESC - TG_ACHIEVEMENT_BOOLEAN_TRGM_SIMILARITY_ASC - TG_ACHIEVEMENT_BOOLEAN_TRGM_SIMILARITY_DESC - UPSERT_ACHIEVEMENT_TRGM_SIMILARITY_ASC - UPSERT_ACHIEVEMENT_TRGM_SIMILARITY_DESC - TG_UPDATE_ACHIEVEMENTS_TRGM_SIMILARITY_ASC - TG_UPDATE_ACHIEVEMENTS_TRGM_SIMILARITY_DESC - STEPS_REQUIRED_TRGM_SIMILARITY_ASC - STEPS_REQUIRED_TRGM_SIMILARITY_DESC - LEVEL_ACHIEVED_TRGM_SIMILARITY_ASC - LEVEL_ACHIEVED_TRGM_SIMILARITY_DESC - PREFIX_TRGM_SIMILARITY_ASC - PREFIX_TRGM_SIMILARITY_DESC - SEARCH_SCORE_ASC - SEARCH_SCORE_DESC } """A connection to a list of `LimitsModule` values.""" @@ -20218,56 +20278,6 @@ type LimitsModule { """Reads a single `Table` that is related to this `LimitsModule`.""" table: Table - - """ - TRGM similarity when searching `tableName`. Returns null when no trgm search filter is active. - """ - tableNameTrgmSimilarity: Float - - """ - TRGM similarity when searching `defaultTableName`. Returns null when no trgm search filter is active. - """ - defaultTableNameTrgmSimilarity: Float - - """ - TRGM similarity when searching `limitIncrementFunction`. Returns null when no trgm search filter is active. - """ - limitIncrementFunctionTrgmSimilarity: Float - - """ - TRGM similarity when searching `limitDecrementFunction`. Returns null when no trgm search filter is active. - """ - limitDecrementFunctionTrgmSimilarity: Float - - """ - TRGM similarity when searching `limitIncrementTrigger`. Returns null when no trgm search filter is active. - """ - limitIncrementTriggerTrgmSimilarity: Float - - """ - TRGM similarity when searching `limitDecrementTrigger`. Returns null when no trgm search filter is active. - """ - limitDecrementTriggerTrgmSimilarity: Float - - """ - TRGM similarity when searching `limitUpdateTrigger`. Returns null when no trgm search filter is active. - """ - limitUpdateTriggerTrgmSimilarity: Float - - """ - TRGM similarity when searching `limitCheckFunction`. Returns null when no trgm search filter is active. - """ - limitCheckFunctionTrgmSimilarity: Float - - """ - TRGM similarity when searching `prefix`. Returns null when no trgm search filter is active. - """ - prefixTrgmSimilarity: Float - - """ - Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. - """ - searchScore: Float } """A `LimitsModule` edge in the connection.""" @@ -20288,26 +20298,6 @@ enum LimitsModuleOrderBy { ID_DESC DATABASE_ID_ASC DATABASE_ID_DESC - TABLE_NAME_TRGM_SIMILARITY_ASC - TABLE_NAME_TRGM_SIMILARITY_DESC - DEFAULT_TABLE_NAME_TRGM_SIMILARITY_ASC - DEFAULT_TABLE_NAME_TRGM_SIMILARITY_DESC - LIMIT_INCREMENT_FUNCTION_TRGM_SIMILARITY_ASC - LIMIT_INCREMENT_FUNCTION_TRGM_SIMILARITY_DESC - LIMIT_DECREMENT_FUNCTION_TRGM_SIMILARITY_ASC - LIMIT_DECREMENT_FUNCTION_TRGM_SIMILARITY_DESC - LIMIT_INCREMENT_TRIGGER_TRGM_SIMILARITY_ASC - LIMIT_INCREMENT_TRIGGER_TRGM_SIMILARITY_DESC - LIMIT_DECREMENT_TRIGGER_TRGM_SIMILARITY_ASC - LIMIT_DECREMENT_TRIGGER_TRGM_SIMILARITY_DESC - LIMIT_UPDATE_TRIGGER_TRGM_SIMILARITY_ASC - LIMIT_UPDATE_TRIGGER_TRGM_SIMILARITY_DESC - LIMIT_CHECK_FUNCTION_TRGM_SIMILARITY_ASC - LIMIT_CHECK_FUNCTION_TRGM_SIMILARITY_DESC - PREFIX_TRGM_SIMILARITY_ASC - PREFIX_TRGM_SIMILARITY_DESC - SEARCH_SCORE_ASC - SEARCH_SCORE_DESC } """A connection to a list of `MembershipTypesModule` values.""" @@ -20350,16 +20340,6 @@ type MembershipTypesModule { Reads a single `Table` that is related to this `MembershipTypesModule`. """ table: Table - - """ - TRGM similarity when searching `tableName`. Returns null when no trgm search filter is active. - """ - tableNameTrgmSimilarity: Float - - """ - Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. - """ - searchScore: Float } """A `MembershipTypesModule` edge in the connection.""" @@ -20380,10 +20360,6 @@ enum MembershipTypesModuleOrderBy { ID_DESC DATABASE_ID_ASC DATABASE_ID_DESC - TABLE_NAME_TRGM_SIMILARITY_ASC - TABLE_NAME_TRGM_SIMILARITY_DESC - SEARCH_SCORE_ASC - SEARCH_SCORE_DESC } """A connection to a list of `MembershipsModule` values.""" @@ -20482,71 +20458,6 @@ type MembershipsModule { """Reads a single `Table` that is related to this `MembershipsModule`.""" sprtTable: Table - - """ - TRGM similarity when searching `membershipsTableName`. Returns null when no trgm search filter is active. - """ - membershipsTableNameTrgmSimilarity: Float - - """ - TRGM similarity when searching `membersTableName`. Returns null when no trgm search filter is active. - """ - membersTableNameTrgmSimilarity: Float - - """ - TRGM similarity when searching `membershipDefaultsTableName`. Returns null when no trgm search filter is active. - """ - membershipDefaultsTableNameTrgmSimilarity: Float - - """ - TRGM similarity when searching `grantsTableName`. Returns null when no trgm search filter is active. - """ - grantsTableNameTrgmSimilarity: Float - - """ - TRGM similarity when searching `adminGrantsTableName`. Returns null when no trgm search filter is active. - """ - adminGrantsTableNameTrgmSimilarity: Float - - """ - TRGM similarity when searching `ownerGrantsTableName`. Returns null when no trgm search filter is active. - """ - ownerGrantsTableNameTrgmSimilarity: Float - - """ - TRGM similarity when searching `prefix`. Returns null when no trgm search filter is active. - """ - prefixTrgmSimilarity: Float - - """ - TRGM similarity when searching `actorMaskCheck`. Returns null when no trgm search filter is active. - """ - actorMaskCheckTrgmSimilarity: Float - - """ - TRGM similarity when searching `actorPermCheck`. Returns null when no trgm search filter is active. - """ - actorPermCheckTrgmSimilarity: Float - - """ - TRGM similarity when searching `entityIdsByMask`. Returns null when no trgm search filter is active. - """ - entityIdsByMaskTrgmSimilarity: Float - - """ - TRGM similarity when searching `entityIdsByPerm`. Returns null when no trgm search filter is active. - """ - entityIdsByPermTrgmSimilarity: Float - - """ - TRGM similarity when searching `entityIdsFunction`. Returns null when no trgm search filter is active. - """ - entityIdsFunctionTrgmSimilarity: Float - - """ - Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. - """ - searchScore: Float } """A `MembershipsModule` edge in the connection.""" @@ -20567,32 +20478,6 @@ enum MembershipsModuleOrderBy { ID_DESC DATABASE_ID_ASC DATABASE_ID_DESC - MEMBERSHIPS_TABLE_NAME_TRGM_SIMILARITY_ASC - MEMBERSHIPS_TABLE_NAME_TRGM_SIMILARITY_DESC - MEMBERS_TABLE_NAME_TRGM_SIMILARITY_ASC - MEMBERS_TABLE_NAME_TRGM_SIMILARITY_DESC - MEMBERSHIP_DEFAULTS_TABLE_NAME_TRGM_SIMILARITY_ASC - MEMBERSHIP_DEFAULTS_TABLE_NAME_TRGM_SIMILARITY_DESC - GRANTS_TABLE_NAME_TRGM_SIMILARITY_ASC - GRANTS_TABLE_NAME_TRGM_SIMILARITY_DESC - ADMIN_GRANTS_TABLE_NAME_TRGM_SIMILARITY_ASC - ADMIN_GRANTS_TABLE_NAME_TRGM_SIMILARITY_DESC - OWNER_GRANTS_TABLE_NAME_TRGM_SIMILARITY_ASC - OWNER_GRANTS_TABLE_NAME_TRGM_SIMILARITY_DESC - PREFIX_TRGM_SIMILARITY_ASC - PREFIX_TRGM_SIMILARITY_DESC - ACTOR_MASK_CHECK_TRGM_SIMILARITY_ASC - ACTOR_MASK_CHECK_TRGM_SIMILARITY_DESC - ACTOR_PERM_CHECK_TRGM_SIMILARITY_ASC - ACTOR_PERM_CHECK_TRGM_SIMILARITY_DESC - ENTITY_IDS_BY_MASK_TRGM_SIMILARITY_ASC - ENTITY_IDS_BY_MASK_TRGM_SIMILARITY_DESC - ENTITY_IDS_BY_PERM_TRGM_SIMILARITY_ASC - ENTITY_IDS_BY_PERM_TRGM_SIMILARITY_DESC - ENTITY_IDS_FUNCTION_TRGM_SIMILARITY_ASC - ENTITY_IDS_FUNCTION_TRGM_SIMILARITY_DESC - SEARCH_SCORE_ASC - SEARCH_SCORE_DESC } """A connection to a list of `PermissionsModule` values.""" @@ -20653,46 +20538,6 @@ type PermissionsModule { """Reads a single `Table` that is related to this `PermissionsModule`.""" table: Table - - """ - TRGM similarity when searching `tableName`. Returns null when no trgm search filter is active. - """ - tableNameTrgmSimilarity: Float - - """ - TRGM similarity when searching `defaultTableName`. Returns null when no trgm search filter is active. - """ - defaultTableNameTrgmSimilarity: Float - - """ - TRGM similarity when searching `prefix`. Returns null when no trgm search filter is active. - """ - prefixTrgmSimilarity: Float - - """ - TRGM similarity when searching `getPaddedMask`. Returns null when no trgm search filter is active. - """ - getPaddedMaskTrgmSimilarity: Float - - """ - TRGM similarity when searching `getMask`. Returns null when no trgm search filter is active. - """ - getMaskTrgmSimilarity: Float - - """ - TRGM similarity when searching `getByMask`. Returns null when no trgm search filter is active. - """ - getByMaskTrgmSimilarity: Float - - """ - TRGM similarity when searching `getMaskByName`. Returns null when no trgm search filter is active. - """ - getMaskByNameTrgmSimilarity: Float - - """ - Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. - """ - searchScore: Float } """A `PermissionsModule` edge in the connection.""" @@ -20713,22 +20558,6 @@ enum PermissionsModuleOrderBy { ID_DESC DATABASE_ID_ASC DATABASE_ID_DESC - TABLE_NAME_TRGM_SIMILARITY_ASC - TABLE_NAME_TRGM_SIMILARITY_DESC - DEFAULT_TABLE_NAME_TRGM_SIMILARITY_ASC - DEFAULT_TABLE_NAME_TRGM_SIMILARITY_DESC - PREFIX_TRGM_SIMILARITY_ASC - PREFIX_TRGM_SIMILARITY_DESC - GET_PADDED_MASK_TRGM_SIMILARITY_ASC - GET_PADDED_MASK_TRGM_SIMILARITY_DESC - GET_MASK_TRGM_SIMILARITY_ASC - GET_MASK_TRGM_SIMILARITY_DESC - GET_BY_MASK_TRGM_SIMILARITY_ASC - GET_BY_MASK_TRGM_SIMILARITY_DESC - GET_MASK_BY_NAME_TRGM_SIMILARITY_ASC - GET_MASK_BY_NAME_TRGM_SIMILARITY_DESC - SEARCH_SCORE_ASC - SEARCH_SCORE_DESC } """A connection to a list of `PhoneNumbersModule` values.""" @@ -20775,16 +20604,6 @@ type PhoneNumbersModule { """Reads a single `Table` that is related to this `PhoneNumbersModule`.""" table: Table - - """ - TRGM similarity when searching `tableName`. Returns null when no trgm search filter is active. - """ - tableNameTrgmSimilarity: Float - - """ - Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. - """ - searchScore: Float } """A `PhoneNumbersModule` edge in the connection.""" @@ -20805,10 +20624,6 @@ enum PhoneNumbersModuleOrderBy { ID_DESC DATABASE_ID_ASC DATABASE_ID_DESC - TABLE_NAME_TRGM_SIMILARITY_ASC - TABLE_NAME_TRGM_SIMILARITY_DESC - SEARCH_SCORE_ASC - SEARCH_SCORE_DESC } """A connection to a list of `ProfilesModule` values.""" @@ -20880,36 +20695,6 @@ type ProfilesModule { """Reads a single `Table` that is related to this `ProfilesModule`.""" table: Table - - """ - TRGM similarity when searching `tableName`. Returns null when no trgm search filter is active. - """ - tableNameTrgmSimilarity: Float - - """ - TRGM similarity when searching `profilePermissionsTableName`. Returns null when no trgm search filter is active. - """ - profilePermissionsTableNameTrgmSimilarity: Float - - """ - TRGM similarity when searching `profileGrantsTableName`. Returns null when no trgm search filter is active. - """ - profileGrantsTableNameTrgmSimilarity: Float - - """ - TRGM similarity when searching `profileDefinitionGrantsTableName`. Returns null when no trgm search filter is active. - """ - profileDefinitionGrantsTableNameTrgmSimilarity: Float - - """ - TRGM similarity when searching `prefix`. Returns null when no trgm search filter is active. - """ - prefixTrgmSimilarity: Float - - """ - Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. - """ - searchScore: Float } """A `ProfilesModule` edge in the connection.""" @@ -20932,18 +20717,6 @@ enum ProfilesModuleOrderBy { DATABASE_ID_DESC MEMBERSHIP_TYPE_ASC MEMBERSHIP_TYPE_DESC - TABLE_NAME_TRGM_SIMILARITY_ASC - TABLE_NAME_TRGM_SIMILARITY_DESC - PROFILE_PERMISSIONS_TABLE_NAME_TRGM_SIMILARITY_ASC - PROFILE_PERMISSIONS_TABLE_NAME_TRGM_SIMILARITY_DESC - PROFILE_GRANTS_TABLE_NAME_TRGM_SIMILARITY_ASC - PROFILE_GRANTS_TABLE_NAME_TRGM_SIMILARITY_DESC - PROFILE_DEFINITION_GRANTS_TABLE_NAME_TRGM_SIMILARITY_ASC - PROFILE_DEFINITION_GRANTS_TABLE_NAME_TRGM_SIMILARITY_DESC - PREFIX_TRGM_SIMILARITY_ASC - PREFIX_TRGM_SIMILARITY_DESC - SEARCH_SCORE_ASC - SEARCH_SCORE_DESC } type RlsModule { @@ -20976,31 +20749,6 @@ type RlsModule { """Reads a single `Table` that is related to this `RlsModule`.""" usersTable: Table - - """ - TRGM similarity when searching `authenticate`. Returns null when no trgm search filter is active. - """ - authenticateTrgmSimilarity: Float - - """ - TRGM similarity when searching `authenticateStrict`. Returns null when no trgm search filter is active. - """ - authenticateStrictTrgmSimilarity: Float - - """ - TRGM similarity when searching `currentRole`. Returns null when no trgm search filter is active. - """ - currentRoleTrgmSimilarity: Float - - """ - TRGM similarity when searching `currentRoleId`. Returns null when no trgm search filter is active. - """ - currentRoleIdTrgmSimilarity: Float - - """ - Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. - """ - searchScore: Float } """A connection to a list of `SecretsModule` values.""" @@ -21035,16 +20783,6 @@ type SecretsModule { """Reads a single `Table` that is related to this `SecretsModule`.""" table: Table - - """ - TRGM similarity when searching `tableName`. Returns null when no trgm search filter is active. - """ - tableNameTrgmSimilarity: Float - - """ - Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. - """ - searchScore: Float } """A `SecretsModule` edge in the connection.""" @@ -21065,10 +20803,6 @@ enum SecretsModuleOrderBy { ID_DESC DATABASE_ID_ASC DATABASE_ID_DESC - TABLE_NAME_TRGM_SIMILARITY_ASC - TABLE_NAME_TRGM_SIMILARITY_DESC - SEARCH_SCORE_ASC - SEARCH_SCORE_DESC } """A connection to a list of `SessionsModule` values.""" @@ -21118,26 +20852,6 @@ type SessionsModule { """Reads a single `Table` that is related to this `SessionsModule`.""" usersTable: Table - - """ - TRGM similarity when searching `sessionsTable`. Returns null when no trgm search filter is active. - """ - sessionsTableTrgmSimilarity: Float - - """ - TRGM similarity when searching `sessionCredentialsTable`. Returns null when no trgm search filter is active. - """ - sessionCredentialsTableTrgmSimilarity: Float - - """ - TRGM similarity when searching `authSettingsTable`. Returns null when no trgm search filter is active. - """ - authSettingsTableTrgmSimilarity: Float - - """ - Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. - """ - searchScore: Float } """ @@ -21185,14 +20899,6 @@ enum SessionsModuleOrderBy { ID_DESC DATABASE_ID_ASC DATABASE_ID_DESC - SESSIONS_TABLE_TRGM_SIMILARITY_ASC - SESSIONS_TABLE_TRGM_SIMILARITY_DESC - SESSION_CREDENTIALS_TABLE_TRGM_SIMILARITY_ASC - SESSION_CREDENTIALS_TABLE_TRGM_SIMILARITY_DESC - AUTH_SETTINGS_TABLE_TRGM_SIMILARITY_ASC - AUTH_SETTINGS_TABLE_TRGM_SIMILARITY_DESC - SEARCH_SCORE_ASC - SEARCH_SCORE_DESC } """A connection to a list of `UserAuthModule` values.""" @@ -21263,91 +20969,6 @@ type UserAuthModule { """Reads a single `Table` that is related to this `UserAuthModule`.""" usersTable: Table - - """ - TRGM similarity when searching `auditsTableName`. Returns null when no trgm search filter is active. - """ - auditsTableNameTrgmSimilarity: Float - - """ - TRGM similarity when searching `signInFunction`. Returns null when no trgm search filter is active. - """ - signInFunctionTrgmSimilarity: Float - - """ - TRGM similarity when searching `signUpFunction`. Returns null when no trgm search filter is active. - """ - signUpFunctionTrgmSimilarity: Float - - """ - TRGM similarity when searching `signOutFunction`. Returns null when no trgm search filter is active. - """ - signOutFunctionTrgmSimilarity: Float - - """ - TRGM similarity when searching `setPasswordFunction`. Returns null when no trgm search filter is active. - """ - setPasswordFunctionTrgmSimilarity: Float - - """ - TRGM similarity when searching `resetPasswordFunction`. Returns null when no trgm search filter is active. - """ - resetPasswordFunctionTrgmSimilarity: Float - - """ - TRGM similarity when searching `forgotPasswordFunction`. Returns null when no trgm search filter is active. - """ - forgotPasswordFunctionTrgmSimilarity: Float - - """ - TRGM similarity when searching `sendVerificationEmailFunction`. Returns null when no trgm search filter is active. - """ - sendVerificationEmailFunctionTrgmSimilarity: Float - - """ - TRGM similarity when searching `verifyEmailFunction`. Returns null when no trgm search filter is active. - """ - verifyEmailFunctionTrgmSimilarity: Float - - """ - TRGM similarity when searching `verifyPasswordFunction`. Returns null when no trgm search filter is active. - """ - verifyPasswordFunctionTrgmSimilarity: Float - - """ - TRGM similarity when searching `checkPasswordFunction`. Returns null when no trgm search filter is active. - """ - checkPasswordFunctionTrgmSimilarity: Float - - """ - TRGM similarity when searching `sendAccountDeletionEmailFunction`. Returns null when no trgm search filter is active. - """ - sendAccountDeletionEmailFunctionTrgmSimilarity: Float - - """ - TRGM similarity when searching `deleteAccountFunction`. Returns null when no trgm search filter is active. - """ - deleteAccountFunctionTrgmSimilarity: Float - - """ - TRGM similarity when searching `signInOneTimeTokenFunction`. Returns null when no trgm search filter is active. - """ - signInOneTimeTokenFunctionTrgmSimilarity: Float - - """ - TRGM similarity when searching `oneTimeTokenFunction`. Returns null when no trgm search filter is active. - """ - oneTimeTokenFunctionTrgmSimilarity: Float - - """ - TRGM similarity when searching `extendTokenExpires`. Returns null when no trgm search filter is active. - """ - extendTokenExpiresTrgmSimilarity: Float - - """ - Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. - """ - searchScore: Float } """A `UserAuthModule` edge in the connection.""" @@ -21368,40 +20989,6 @@ enum UserAuthModuleOrderBy { ID_DESC DATABASE_ID_ASC DATABASE_ID_DESC - AUDITS_TABLE_NAME_TRGM_SIMILARITY_ASC - AUDITS_TABLE_NAME_TRGM_SIMILARITY_DESC - SIGN_IN_FUNCTION_TRGM_SIMILARITY_ASC - SIGN_IN_FUNCTION_TRGM_SIMILARITY_DESC - SIGN_UP_FUNCTION_TRGM_SIMILARITY_ASC - SIGN_UP_FUNCTION_TRGM_SIMILARITY_DESC - SIGN_OUT_FUNCTION_TRGM_SIMILARITY_ASC - SIGN_OUT_FUNCTION_TRGM_SIMILARITY_DESC - SET_PASSWORD_FUNCTION_TRGM_SIMILARITY_ASC - SET_PASSWORD_FUNCTION_TRGM_SIMILARITY_DESC - RESET_PASSWORD_FUNCTION_TRGM_SIMILARITY_ASC - RESET_PASSWORD_FUNCTION_TRGM_SIMILARITY_DESC - FORGOT_PASSWORD_FUNCTION_TRGM_SIMILARITY_ASC - FORGOT_PASSWORD_FUNCTION_TRGM_SIMILARITY_DESC - SEND_VERIFICATION_EMAIL_FUNCTION_TRGM_SIMILARITY_ASC - SEND_VERIFICATION_EMAIL_FUNCTION_TRGM_SIMILARITY_DESC - VERIFY_EMAIL_FUNCTION_TRGM_SIMILARITY_ASC - VERIFY_EMAIL_FUNCTION_TRGM_SIMILARITY_DESC - VERIFY_PASSWORD_FUNCTION_TRGM_SIMILARITY_ASC - VERIFY_PASSWORD_FUNCTION_TRGM_SIMILARITY_DESC - CHECK_PASSWORD_FUNCTION_TRGM_SIMILARITY_ASC - CHECK_PASSWORD_FUNCTION_TRGM_SIMILARITY_DESC - SEND_ACCOUNT_DELETION_EMAIL_FUNCTION_TRGM_SIMILARITY_ASC - SEND_ACCOUNT_DELETION_EMAIL_FUNCTION_TRGM_SIMILARITY_DESC - DELETE_ACCOUNT_FUNCTION_TRGM_SIMILARITY_ASC - DELETE_ACCOUNT_FUNCTION_TRGM_SIMILARITY_DESC - SIGN_IN_ONE_TIME_TOKEN_FUNCTION_TRGM_SIMILARITY_ASC - SIGN_IN_ONE_TIME_TOKEN_FUNCTION_TRGM_SIMILARITY_DESC - ONE_TIME_TOKEN_FUNCTION_TRGM_SIMILARITY_ASC - ONE_TIME_TOKEN_FUNCTION_TRGM_SIMILARITY_DESC - EXTEND_TOKEN_EXPIRES_TRGM_SIMILARITY_ASC - EXTEND_TOKEN_EXPIRES_TRGM_SIMILARITY_DESC - SEARCH_SCORE_ASC - SEARCH_SCORE_DESC } """A connection to a list of `UsersModule` values.""" @@ -21441,21 +21028,6 @@ type UsersModule { """Reads a single `Table` that is related to this `UsersModule`.""" typeTable: Table - - """ - TRGM similarity when searching `tableName`. Returns null when no trgm search filter is active. - """ - tableNameTrgmSimilarity: Float - - """ - TRGM similarity when searching `typeTableName`. Returns null when no trgm search filter is active. - """ - typeTableNameTrgmSimilarity: Float - - """ - Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. - """ - searchScore: Float } """A `UsersModule` edge in the connection.""" @@ -21476,84 +21048,6 @@ enum UsersModuleOrderBy { ID_DESC DATABASE_ID_ASC DATABASE_ID_DESC - TABLE_NAME_TRGM_SIMILARITY_ASC - TABLE_NAME_TRGM_SIMILARITY_DESC - TYPE_TABLE_NAME_TRGM_SIMILARITY_ASC - TYPE_TABLE_NAME_TRGM_SIMILARITY_DESC - SEARCH_SCORE_ASC - SEARCH_SCORE_DESC -} - -"""A connection to a list of `UuidModule` values.""" -type UuidModuleConnection { - """A list of `UuidModule` objects.""" - nodes: [UuidModule]! - - """ - A list of edges which contains the `UuidModule` and cursor to aid in pagination. - """ - edges: [UuidModuleEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `UuidModule` you could get from the connection.""" - totalCount: Int! -} - -type UuidModule { - id: UUID! - databaseId: UUID! - schemaId: UUID! - uuidFunction: String! - uuidSeed: String! - - """Reads a single `Database` that is related to this `UuidModule`.""" - database: Database - - """Reads a single `Schema` that is related to this `UuidModule`.""" - schema: Schema - - """ - TRGM similarity when searching `uuidFunction`. Returns null when no trgm search filter is active. - """ - uuidFunctionTrgmSimilarity: Float - - """ - TRGM similarity when searching `uuidSeed`. Returns null when no trgm search filter is active. - """ - uuidSeedTrgmSimilarity: Float - - """ - Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. - """ - searchScore: Float -} - -"""A `UuidModule` edge in the connection.""" -type UuidModuleEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `UuidModule` at the end of the edge.""" - node: UuidModule -} - -"""Methods to use when ordering `UuidModule`.""" -enum UuidModuleOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - UUID_FUNCTION_TRGM_SIMILARITY_ASC - UUID_FUNCTION_TRGM_SIMILARITY_DESC - UUID_SEED_TRGM_SIMILARITY_ASC - UUID_SEED_TRGM_SIMILARITY_DESC - SEARCH_SCORE_ASC - SEARCH_SCORE_DESC } type HierarchyModule { @@ -21601,61 +21095,340 @@ type HierarchyModule { """Reads a single `Table` that is related to this `HierarchyModule`.""" usersTable: Table +} + +"""A connection to a list of `Blueprint` values.""" +type BlueprintConnection { + """A list of `Blueprint` objects.""" + nodes: [Blueprint]! """ - TRGM similarity when searching `chartEdgesTableName`. Returns null when no trgm search filter is active. + A list of edges which contains the `Blueprint` and cursor to aid in pagination. """ - chartEdgesTableNameTrgmSimilarity: Float + edges: [BlueprintEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `Blueprint` you could get from the connection.""" + totalCount: Int! +} + +""" +An owned, executable blueprint scoped to a specific database. Created by copying from a blueprint_template via copy_template_to_blueprint() or built from scratch. The owner can customize the definition before executing it with construct_blueprint(). Each blueprint tracks its execution status (draft/constructed/failed) and stores the ref_map of created table IDs after construction. +""" +type Blueprint { + """Unique identifier for this blueprint.""" + id: UUID! + + """The user who owns this blueprint.""" + ownerId: UUID! """ - TRGM similarity when searching `hierarchySprtTableName`. Returns null when no trgm search filter is active. + The database this blueprint is scoped to. Tables created by construct_blueprint() are provisioned in this database. """ - hierarchySprtTableNameTrgmSimilarity: Float + databaseId: UUID! + + """Machine-readable name for the blueprint. Must be unique per database.""" + name: String! + + """Human-readable display name for the blueprint.""" + displayName: String! + + """Optional description of the blueprint.""" + description: String """ - TRGM similarity when searching `chartEdgeGrantsTableName`. Returns null when no trgm search filter is active. + The blueprint definition as a JSONB document. Same format as blueprint_template.definition: contains tables[] (with nodes[], fields[], grants[], policies[] using $type) and relations[] (using $type). This is a mutable copy that the owner can customize before executing. """ - chartEdgeGrantsTableNameTrgmSimilarity: Float + definition: JSON! """ - TRGM similarity when searching `prefix`. Returns null when no trgm search filter is active. + If this blueprint was created by copying a template, the ID of the source template. NULL if built from scratch. """ - prefixTrgmSimilarity: Float + templateId: UUID """ - TRGM similarity when searching `privateSchemaName`. Returns null when no trgm search filter is active. + Execution state of the blueprint. draft: not yet executed (definition can still be modified). constructed: successfully executed via construct_blueprint(). failed: execution failed (see error_details). Defaults to draft. """ - privateSchemaNameTrgmSimilarity: Float + status: String! """ - TRGM similarity when searching `sprtTableName`. Returns null when no trgm search filter is active. + Timestamp when construct_blueprint() successfully completed. NULL until constructed. """ - sprtTableNameTrgmSimilarity: Float + constructedAt: Datetime """ - TRGM similarity when searching `rebuildHierarchyFunction`. Returns null when no trgm search filter is active. + Error message from the most recent failed construct_blueprint() attempt. NULL unless status is failed. """ - rebuildHierarchyFunctionTrgmSimilarity: Float + errorDetails: String """ - TRGM similarity when searching `getSubordinatesFunction`. Returns null when no trgm search filter is active. + Mapping of ref names to created table UUIDs, populated by construct_blueprint() after successful execution. Format: {"products": "uuid", "categories": "uuid", ...}. Defaults to empty object. """ - getSubordinatesFunctionTrgmSimilarity: Float + refMap: JSON! """ - TRGM similarity when searching `getManagersFunction`. Returns null when no trgm search filter is active. + Immutable snapshot of the definition at construct-time. Preserved so the exact definition that was executed is recorded even if the user later modifies the definition for re-execution. NULL until constructed. """ - getManagersFunctionTrgmSimilarity: Float + constructedDefinition: JSON """ - TRGM similarity when searching `isManagerOfFunction`. Returns null when no trgm search filter is active. + UUIDv5 Merkle root hash of the definition. Computed automatically via trigger from the ordered table_hashes. Used for content-addressable deduplication and provenance tracking. Backend-computed — clients should never set this directly. """ - isManagerOfFunctionTrgmSimilarity: Float + definitionHash: UUID """ - Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. + JSONB map of table ref names to their individual UUIDv5 content hashes. Each table hash is computed from the canonical jsonb::text of the table entry. Enables structural comparison at the table level across blueprints and templates. Backend-computed via trigger. """ - searchScore: Float + tableHashes: JSON + + """Timestamp when this blueprint was created.""" + createdAt: Datetime! + + """Timestamp when this blueprint was last modified.""" + updatedAt: Datetime! + + """Reads a single `Database` that is related to this `Blueprint`.""" + database: Database + + """ + Reads a single `BlueprintTemplate` that is related to this `Blueprint`. + """ + template: BlueprintTemplate +} + +""" +A shareable, versioned schema recipe for the blueprint marketplace. Templates define arrays of secure_table_provision + relation_provision inputs that together describe a complete domain schema (e.g. e-commerce, telemedicine, habit tracker). Templates are never executed directly — they are copied into a blueprint first via copy_template_to_blueprint(). Can be private (owner-only) or public (marketplace-visible). +""" +type BlueprintTemplate { + """Unique identifier for this template.""" + id: UUID! + + """ + Machine-readable name for the template (e.g. e_commerce_basic). Must be unique per owner + version. + """ + name: String! + + """Semantic version string. Defaults to 1.0.0.""" + version: String! + + """Human-readable display name for the template (e.g. E-Commerce Basic).""" + displayName: String! + + """Optional description of what the template provisions.""" + description: String + + """The user who created or published this template.""" + ownerId: UUID! + + """ + Access control for the template. private: only the owner can see and copy. public: anyone can browse and copy from the marketplace. Defaults to private. + """ + visibility: String! + + """ + Domain categories for marketplace browsing (e.g. e-commerce, healthcare, social). Defaults to empty array. + """ + categories: [String]! + + """ + Freeform tags for search and discovery (e.g. products, orders, payments). Defaults to empty array. + """ + tags: [String]! + + """ + The blueprint definition as a JSONB document. Contains tables[] (each with nodes[] for data behaviors via string shorthand or {"$type": "...", "data": {...}} objects, fields[], grants[], and policies[] using {"$type": "...", "data": {...}}), and relations[] (using $type for relation_type with junction config in data). This is the core payload that gets copied into a blueprint for execution. + """ + definition: JSON! + + """ + Version of the definition format schema. Used for forward-compatible parsing. Defaults to 1. + """ + definitionSchemaVersion: String! + + """ + Provenance of the template. user: manually created by a human. system: official curated template from the Constructive team. agent: AI-generated. Defaults to user. + """ + source: String! + + """ + Complexity indicator for marketplace filtering. simple: 3-5 tables. moderate: 6-12 tables. complex: 13+ tables. NULL if not categorized. + """ + complexity: String + + """ + Denormalized count of how many blueprints have been created from this template via copy_template_to_blueprint(). Incremented automatically. Defaults to 0. + """ + copyCount: Int! + + """ + Denormalized count of how many derivative templates have been forked from this template. Defaults to 0. + """ + forkCount: Int! + + """ + If this template was forked from another template, the ID of the parent. NULL for original templates. + """ + forkedFromId: UUID + + """ + UUIDv5 Merkle root hash of the definition. Computed automatically via trigger from the ordered table_hashes. Used for content-addressable deduplication, provenance tracking, and cross-blueprint structural comparison. NULL columns are backend-computed — clients should never set this directly. + """ + definitionHash: UUID + + """ + JSONB map of table ref names to their individual UUIDv5 content hashes (e.g. {"products": "uuid", "categories": "uuid"}). Each table hash is computed from the canonical jsonb::text of the table entry. Enables structural comparison at the table level across different blueprints. Backend-computed via trigger. + """ + tableHashes: JSON + + """Timestamp when this template was created.""" + createdAt: Datetime! + + """Timestamp when this template was last modified.""" + updatedAt: Datetime! + + """ + Reads a single `BlueprintTemplate` that is related to this `BlueprintTemplate`. + """ + forkedFrom: BlueprintTemplate + + """Reads and enables pagination through a set of `BlueprintTemplate`.""" + blueprintTemplatesByForkedFromId( + """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: BlueprintTemplateFilter + + """The method to use when ordering `BlueprintTemplate`.""" + orderBy: [BlueprintTemplateOrderBy!] = [PRIMARY_KEY_ASC] + ): BlueprintTemplateConnection! + + """Reads and enables pagination through a set of `Blueprint`.""" + blueprintsByTemplateId( + """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: BlueprintFilter + + """The method to use when ordering `Blueprint`.""" + orderBy: [BlueprintOrderBy!] = [PRIMARY_KEY_ASC] + ): BlueprintConnection! +} + +"""A connection to a list of `BlueprintTemplate` values.""" +type BlueprintTemplateConnection { + """A list of `BlueprintTemplate` objects.""" + nodes: [BlueprintTemplate]! + + """ + A list of edges which contains the `BlueprintTemplate` and cursor to aid in pagination. + """ + edges: [BlueprintTemplateEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `BlueprintTemplate` you could get from the connection. + """ + totalCount: Int! +} + +"""A `BlueprintTemplate` edge in the connection.""" +type BlueprintTemplateEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `BlueprintTemplate` at the end of the edge.""" + node: BlueprintTemplate +} + +"""Methods to use when ordering `BlueprintTemplate`.""" +enum BlueprintTemplateOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + NAME_ASC + NAME_DESC + VERSION_ASC + VERSION_DESC + OWNER_ID_ASC + OWNER_ID_DESC + VISIBILITY_ASC + VISIBILITY_DESC + FORKED_FROM_ID_ASC + FORKED_FROM_ID_DESC + DEFINITION_HASH_ASC + DEFINITION_HASH_DESC +} + +"""Methods to use when ordering `Blueprint`.""" +enum BlueprintOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + OWNER_ID_ASC + OWNER_ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + NAME_ASC + NAME_DESC + TEMPLATE_ID_ASC + TEMPLATE_ID_DESC + STATUS_ASC + STATUS_DESC + DEFINITION_HASH_ASC + DEFINITION_HASH_DESC +} + +"""A `Blueprint` edge in the connection.""" +type BlueprintEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `Blueprint` at the end of the edge.""" + node: Blueprint } """A connection to a list of `DatabaseProvisionModule` values.""" @@ -21722,36 +21495,6 @@ type DatabaseProvisionModule { Reads a single `Database` that is related to this `DatabaseProvisionModule`. """ database: Database - - """ - TRGM similarity when searching `databaseName`. Returns null when no trgm search filter is active. - """ - databaseNameTrgmSimilarity: Float - - """ - TRGM similarity when searching `subdomain`. Returns null when no trgm search filter is active. - """ - subdomainTrgmSimilarity: Float - - """ - TRGM similarity when searching `domain`. Returns null when no trgm search filter is active. - """ - domainTrgmSimilarity: Float - - """ - TRGM similarity when searching `status`. Returns null when no trgm search filter is active. - """ - statusTrgmSimilarity: Float - - """ - TRGM similarity when searching `errorMessage`. Returns null when no trgm search filter is active. - """ - errorMessageTrgmSimilarity: Float - - """ - Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. - """ - searchScore: Float } """A `DatabaseProvisionModule` edge in the connection.""" @@ -21776,18 +21519,6 @@ enum DatabaseProvisionModuleOrderBy { STATUS_DESC DATABASE_ID_ASC DATABASE_ID_DESC - DATABASE_NAME_TRGM_SIMILARITY_ASC - DATABASE_NAME_TRGM_SIMILARITY_DESC - SUBDOMAIN_TRGM_SIMILARITY_ASC - SUBDOMAIN_TRGM_SIMILARITY_DESC - DOMAIN_TRGM_SIMILARITY_ASC - DOMAIN_TRGM_SIMILARITY_DESC - STATUS_TRGM_SIMILARITY_ASC - STATUS_TRGM_SIMILARITY_DESC - ERROR_MESSAGE_TRGM_SIMILARITY_ASC - ERROR_MESSAGE_TRGM_SIMILARITY_DESC - SEARCH_SCORE_ASC - SEARCH_SCORE_DESC } """A `Database` edge in the connection.""" @@ -21814,14 +21545,6 @@ enum DatabaseOrderBy { CREATED_AT_DESC UPDATED_AT_ASC UPDATED_AT_DESC - SCHEMA_HASH_TRGM_SIMILARITY_ASC - SCHEMA_HASH_TRGM_SIMILARITY_DESC - NAME_TRGM_SIMILARITY_ASC - NAME_TRGM_SIMILARITY_DESC - LABEL_TRGM_SIMILARITY_ASC - LABEL_TRGM_SIMILARITY_DESC - SEARCH_SCORE_ASC - SEARCH_SCORE_DESC } """ @@ -21928,6 +21651,8 @@ enum AppAdminGrantOrderBy { PRIMARY_KEY_DESC ID_ASC ID_DESC + ACTOR_ID_ASC + ACTOR_ID_DESC GRANTOR_ID_ASC GRANTOR_ID_DESC CREATED_AT_ASC @@ -21989,6 +21714,8 @@ enum AppOwnerGrantOrderBy { PRIMARY_KEY_DESC ID_ASC ID_DESC + ACTOR_ID_ASC + ACTOR_ID_DESC GRANTOR_ID_ASC GRANTOR_ID_DESC CREATED_AT_ASC @@ -22055,6 +21782,8 @@ enum AppGrantOrderBy { PRIMARY_KEY_DESC ID_ASC ID_DESC + ACTOR_ID_ASC + ACTOR_ID_DESC GRANTOR_ID_ASC GRANTOR_ID_DESC CREATED_AT_ASC @@ -22322,6 +22051,8 @@ enum OrgAdminGrantOrderBy { PRIMARY_KEY_DESC ID_ASC ID_DESC + ACTOR_ID_ASC + ACTOR_ID_DESC ENTITY_ID_ASC ENTITY_ID_DESC GRANTOR_ID_ASC @@ -22391,6 +22122,8 @@ enum OrgOwnerGrantOrderBy { PRIMARY_KEY_DESC ID_ASC ID_DESC + ACTOR_ID_ASC + ACTOR_ID_DESC ENTITY_ID_ASC ENTITY_ID_DESC GRANTOR_ID_ASC @@ -22465,6 +22198,8 @@ enum OrgGrantOrderBy { PRIMARY_KEY_DESC ID_ASC ID_DESC + ACTOR_ID_ASC + ACTOR_ID_DESC ENTITY_ID_ASC ENTITY_ID_DESC GRANTOR_ID_ASC @@ -22525,16 +22260,6 @@ type OrgChartEdge { """Reads a single `User` that is related to this `OrgChartEdge`.""" parent: User - - """ - TRGM similarity when searching `positionTitle`. Returns null when no trgm search filter is active. - """ - positionTitleTrgmSimilarity: Float - - """ - Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. - """ - searchScore: Float } """A `OrgChartEdge` edge in the connection.""" @@ -22563,10 +22288,6 @@ enum OrgChartEdgeOrderBy { CHILD_ID_DESC PARENT_ID_ASC PARENT_ID_DESC - POSITION_TITLE_TRGM_SIMILARITY_ASC - POSITION_TITLE_TRGM_SIMILARITY_DESC - SEARCH_SCORE_ASC - SEARCH_SCORE_DESC } """A connection to a list of `OrgChartEdgeGrant` values.""" @@ -22603,8 +22324,10 @@ type OrgChartEdgeGrant { """User ID of the manager being assigned; NULL for top-level positions""" parentId: UUID - """User ID of the admin who performed this grant or revocation""" - grantorId: UUID! + """ + User ID of the admin who performed this grant or revocation; NULL if grantor was deleted + """ + grantorId: UUID """TRUE to add/update the edge, FALSE to remove it""" isGrant: Boolean! @@ -22629,16 +22352,6 @@ type OrgChartEdgeGrant { """Reads a single `User` that is related to this `OrgChartEdgeGrant`.""" parent: User - - """ - TRGM similarity when searching `positionTitle`. Returns null when no trgm search filter is active. - """ - positionTitleTrgmSimilarity: Float - - """ - Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. - """ - searchScore: Float } """A `OrgChartEdgeGrant` edge in the connection.""" @@ -22665,10 +22378,61 @@ enum OrgChartEdgeGrantOrderBy { PARENT_ID_DESC GRANTOR_ID_ASC GRANTOR_ID_DESC - POSITION_TITLE_TRGM_SIMILARITY_ASC - POSITION_TITLE_TRGM_SIMILARITY_DESC - SEARCH_SCORE_ASC - SEARCH_SCORE_DESC +} + +"""A connection to a list of `OrgPermissionDefault` values.""" +type OrgPermissionDefaultConnection { + """A list of `OrgPermissionDefault` objects.""" + nodes: [OrgPermissionDefault]! + + """ + A list of edges which contains the `OrgPermissionDefault` and cursor to aid in pagination. + """ + edges: [OrgPermissionDefaultEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `OrgPermissionDefault` you could get from the connection. + """ + totalCount: Int! +} + +""" +Stores the default permission bitmask assigned to new members upon joining +""" +type OrgPermissionDefault { + id: UUID! + + """Default permission bitmask applied to new members""" + permissions: BitString! + + """References the entity these default permissions apply to""" + entityId: UUID! + + """Reads a single `User` that is related to this `OrgPermissionDefault`.""" + entity: User +} + +"""A `OrgPermissionDefault` edge in the connection.""" +type OrgPermissionDefaultEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `OrgPermissionDefault` at the end of the edge.""" + node: OrgPermissionDefault +} + +"""Methods to use when ordering `OrgPermissionDefault`.""" +enum OrgPermissionDefaultOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + ENTITY_ID_ASC + ENTITY_ID_DESC } """A connection to a list of `AppLimit` values.""" @@ -22919,6 +22683,343 @@ enum AppAchievementOrderBy { UPDATED_AT_DESC } +"""A connection to a list of `AppLevel` values.""" +type AppLevelConnection { + """A list of `AppLevel` objects.""" + nodes: [AppLevel]! + + """ + A list of edges which contains the `AppLevel` and cursor to aid in pagination. + """ + edges: [AppLevelEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `AppLevel` you could get from the connection.""" + totalCount: Int! +} + +""" +Defines available levels that users can achieve by completing requirements +""" +type AppLevel { + id: UUID! + + """Unique name of the level""" + name: String! + + """Human-readable description of what this level represents""" + description: String + + """Badge or icon image associated with this level""" + image: ConstructiveInternalTypeImage + + """Optional owner (actor) who created or manages this level""" + ownerId: UUID + createdAt: Datetime + updatedAt: Datetime + + """Reads a single `User` that is related to this `AppLevel`.""" + owner: User +} + +"""A `AppLevel` edge in the connection.""" +type AppLevelEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `AppLevel` at the end of the edge.""" + node: AppLevel +} + +"""Methods to use when ordering `AppLevel`.""" +enum AppLevelOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + NAME_ASC + NAME_DESC + OWNER_ID_ASC + OWNER_ID_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC +} + +"""A connection to a list of `Email` values.""" +type EmailConnection { + """A list of `Email` objects.""" + nodes: [Email]! + + """ + A list of edges which contains the `Email` and cursor to aid in pagination. + """ + edges: [EmailEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `Email` you could get from the connection.""" + totalCount: Int! +} + +"""User email addresses with verification and primary-email management""" +type Email { + id: UUID! + ownerId: UUID! + + """The email address""" + email: ConstructiveInternalTypeEmail! + + """Whether the email address has been verified via confirmation link""" + isVerified: Boolean! + + """Whether this is the user's primary email address""" + isPrimary: Boolean! + createdAt: Datetime + updatedAt: Datetime + + """Reads a single `User` that is related to this `Email`.""" + owner: User +} + +"""A `Email` edge in the connection.""" +type EmailEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `Email` at the end of the edge.""" + node: Email +} + +"""Methods to use when ordering `Email`.""" +enum EmailOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + OWNER_ID_ASC + OWNER_ID_DESC + EMAIL_ASC + EMAIL_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC +} + +"""A connection to a list of `PhoneNumber` values.""" +type PhoneNumberConnection { + """A list of `PhoneNumber` objects.""" + nodes: [PhoneNumber]! + + """ + A list of edges which contains the `PhoneNumber` and cursor to aid in pagination. + """ + edges: [PhoneNumberEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `PhoneNumber` you could get from the connection.""" + totalCount: Int! +} + +""" +User phone numbers with country code, verification, and primary-number management +""" +type PhoneNumber { + id: UUID! + ownerId: UUID! + + """Country calling code (e.g. +1, +44)""" + cc: String! + + """The phone number without country code""" + number: String! + + """Whether the phone number has been verified via SMS code""" + isVerified: Boolean! + + """Whether this is the user's primary phone number""" + isPrimary: Boolean! + createdAt: Datetime + updatedAt: Datetime + + """Reads a single `User` that is related to this `PhoneNumber`.""" + owner: User +} + +"""A `PhoneNumber` edge in the connection.""" +type PhoneNumberEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `PhoneNumber` at the end of the edge.""" + node: PhoneNumber +} + +"""Methods to use when ordering `PhoneNumber`.""" +enum PhoneNumberOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + OWNER_ID_ASC + OWNER_ID_DESC + NUMBER_ASC + NUMBER_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC +} + +"""A connection to a list of `CryptoAddress` values.""" +type CryptoAddressConnection { + """A list of `CryptoAddress` objects.""" + nodes: [CryptoAddress]! + + """ + A list of edges which contains the `CryptoAddress` and cursor to aid in pagination. + """ + edges: [CryptoAddressEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `CryptoAddress` you could get from the connection.""" + totalCount: Int! +} + +""" +Cryptocurrency wallet addresses owned by users, with network-specific validation and verification +""" +type CryptoAddress { + id: UUID! + ownerId: UUID! + + """ + The cryptocurrency wallet address, validated against network-specific patterns + """ + address: String! + + """Whether ownership of this address has been cryptographically verified""" + isVerified: Boolean! + + """Whether this is the user's primary cryptocurrency address""" + isPrimary: Boolean! + createdAt: Datetime + updatedAt: Datetime + + """Reads a single `User` that is related to this `CryptoAddress`.""" + owner: User +} + +"""A `CryptoAddress` edge in the connection.""" +type CryptoAddressEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `CryptoAddress` at the end of the edge.""" + node: CryptoAddress +} + +"""Methods to use when ordering `CryptoAddress`.""" +enum CryptoAddressOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + OWNER_ID_ASC + OWNER_ID_DESC + ADDRESS_ASC + ADDRESS_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC +} + +"""A connection to a list of `ConnectedAccount` values.""" +type ConnectedAccountConnection { + """A list of `ConnectedAccount` objects.""" + nodes: [ConnectedAccount]! + + """ + A list of edges which contains the `ConnectedAccount` and cursor to aid in pagination. + """ + edges: [ConnectedAccountEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `ConnectedAccount` you could get from the connection. + """ + totalCount: Int! +} + +""" +OAuth and social login connections linking external service accounts to users +""" +type ConnectedAccount { + id: UUID! + ownerId: UUID! + + """The service used, e.g. `twitter` or `github`.""" + service: String! + + """A unique identifier for the user within the service""" + identifier: String! + + """Additional profile details extracted from this login method""" + details: JSON! + + """Whether this connected account has been verified""" + isVerified: Boolean! + createdAt: Datetime + updatedAt: Datetime + + """Reads a single `User` that is related to this `ConnectedAccount`.""" + owner: User +} + +"""A `ConnectedAccount` edge in the connection.""" +type ConnectedAccountEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `ConnectedAccount` at the end of the edge.""" + node: ConnectedAccount +} + +"""Methods to use when ordering `ConnectedAccount`.""" +enum ConnectedAccountOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + OWNER_ID_ASC + OWNER_ID_DESC + SERVICE_ASC + SERVICE_DESC + IDENTIFIER_ASC + IDENTIFIER_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC +} + """A connection to a list of `Invite` values.""" type InviteConnection { """A list of `Invite` objects.""" @@ -22973,16 +23074,6 @@ type Invite { """Reads a single `User` that is related to this `Invite`.""" sender: User - - """ - TRGM similarity when searching `inviteToken`. Returns null when no trgm search filter is active. - """ - inviteTokenTrgmSimilarity: Float - - """ - Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. - """ - searchScore: Float } """A `Invite` edge in the connection.""" @@ -23015,10 +23106,6 @@ enum InviteOrderBy { CREATED_AT_DESC UPDATED_AT_ASC UPDATED_AT_DESC - INVITE_TOKEN_TRGM_SIMILARITY_ASC - INVITE_TOKEN_TRGM_SIMILARITY_DESC - SEARCH_SCORE_ASC - SEARCH_SCORE_DESC } """A connection to a list of `ClaimedInvite` values.""" @@ -23152,16 +23239,6 @@ type OrgInvite { """Reads a single `User` that is related to this `OrgInvite`.""" sender: User - - """ - TRGM similarity when searching `inviteToken`. Returns null when no trgm search filter is active. - """ - inviteTokenTrgmSimilarity: Float - - """ - Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. - """ - searchScore: Float } """A `OrgInvite` edge in the connection.""" @@ -23184,6 +23261,8 @@ enum OrgInviteOrderBy { EMAIL_DESC SENDER_ID_ASC SENDER_ID_DESC + RECEIVER_ID_ASC + RECEIVER_ID_DESC INVITE_TOKEN_ASC INVITE_TOKEN_DESC INVITE_VALID_ASC @@ -23196,10 +23275,6 @@ enum OrgInviteOrderBy { UPDATED_AT_DESC ENTITY_ID_ASC ENTITY_ID_DESC - INVITE_TOKEN_TRGM_SIMILARITY_ASC - INVITE_TOKEN_TRGM_SIMILARITY_DESC - SEARCH_SCORE_ASC - SEARCH_SCORE_DESC } """A connection to a list of `OrgClaimedInvite` values.""" @@ -23273,6 +23348,80 @@ enum OrgClaimedInviteOrderBy { CREATED_AT_DESC UPDATED_AT_ASC UPDATED_AT_DESC + ENTITY_ID_ASC + ENTITY_ID_DESC +} + +"""A connection to a list of `AuditLog` values.""" +type AuditLogConnection { + """A list of `AuditLog` objects.""" + nodes: [AuditLog]! + + """ + A list of edges which contains the `AuditLog` and cursor to aid in pagination. + """ + edges: [AuditLogEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `AuditLog` you could get from the connection.""" + totalCount: Int! +} + +""" +Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) +""" +type AuditLog { + id: UUID! + + """ + Type of authentication event (e.g. sign_in, sign_up, password_change, verify_email) + """ + event: String! + + """User who performed the authentication action; NULL if user was deleted""" + actorId: UUID + + """Request origin (domain) where the auth event occurred""" + origin: ConstructiveInternalTypeOrigin + + """Browser or client user-agent string from the request""" + userAgent: String + + """IP address of the client that initiated the auth event""" + ipAddress: InternetAddress + + """Whether the authentication attempt succeeded""" + success: Boolean! + + """Timestamp when the audit event was recorded""" + createdAt: Datetime! + + """Reads a single `User` that is related to this `AuditLog`.""" + actor: User +} + +"""A `AuditLog` edge in the connection.""" +type AuditLogEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `AuditLog` at the end of the edge.""" + node: AuditLog +} + +"""Methods to use when ordering `AuditLog`.""" +enum AuditLogOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + EVENT_ASC + EVENT_DESC + ACTOR_ID_ASC + ACTOR_ID_DESC } """A connection to a list of `Ref` values.""" @@ -23302,16 +23451,6 @@ type Ref { databaseId: UUID! storeId: UUID! commitId: UUID - - """ - TRGM similarity when searching `name`. Returns null when no trgm search filter is active. - """ - nameTrgmSimilarity: Float - - """ - Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. - """ - searchScore: Float } """A `Ref` edge in the connection.""" @@ -23350,17 +23489,6 @@ input RefFilter { """Negates the expression.""" not: RefFilter - - """TRGM search on the `name` column.""" - trgmName: TrgmSearchInput - - """ - Composite full-text search. Provide a search string and it will be dispatched - to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - simultaneously. Rows matching ANY algorithm are returned. All matching score - fields are populated. - """ - fullTextSearch: String } """Methods to use when ordering `Ref`.""" @@ -23374,10 +23502,6 @@ enum RefOrderBy { DATABASE_ID_DESC STORE_ID_ASC STORE_ID_DESC - NAME_TRGM_SIMILARITY_ASC - NAME_TRGM_SIMILARITY_DESC - SEARCH_SCORE_ASC - SEARCH_SCORE_DESC } """A connection to a list of `Store` values.""" @@ -23411,16 +23535,6 @@ type Store { """The current head tree_id for this store.""" hash: UUID createdAt: Datetime - - """ - TRGM similarity when searching `name`. Returns null when no trgm search filter is active. - """ - nameTrgmSimilarity: Float - - """ - Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. - """ - searchScore: Float } """A `Store` edge in the connection.""" @@ -23459,17 +23573,6 @@ input StoreFilter { """Negates the expression.""" not: StoreFilter - - """TRGM search on the `name` column.""" - trgmName: TrgmSearchInput - - """ - Composite full-text search. Provide a search string and it will be dispatched - to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - simultaneously. Rows matching ANY algorithm are returned. All matching score - fields are populated. - """ - fullTextSearch: String } """Methods to use when ordering `Store`.""" @@ -23481,10 +23584,6 @@ enum StoreOrderBy { ID_DESC DATABASE_ID_ASC DATABASE_ID_DESC - NAME_TRGM_SIMILARITY_ASC - NAME_TRGM_SIMILARITY_DESC - SEARCH_SCORE_ASC - SEARCH_SCORE_DESC } """A connection to a list of `AppPermissionDefault` values.""" @@ -23554,134 +23653,6 @@ enum AppPermissionDefaultOrderBy { ID_DESC } -"""A connection to a list of `CryptoAddress` values.""" -type CryptoAddressConnection { - """A list of `CryptoAddress` objects.""" - nodes: [CryptoAddress]! - - """ - A list of edges which contains the `CryptoAddress` and cursor to aid in pagination. - """ - edges: [CryptoAddressEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `CryptoAddress` you could get from the connection.""" - totalCount: Int! -} - -""" -Cryptocurrency wallet addresses owned by users, with network-specific validation and verification -""" -type CryptoAddress { - id: UUID! - ownerId: UUID! - - """ - The cryptocurrency wallet address, validated against network-specific patterns - """ - address: String! - - """Whether ownership of this address has been cryptographically verified""" - isVerified: Boolean! - - """Whether this is the user's primary cryptocurrency address""" - isPrimary: Boolean! - createdAt: Datetime - updatedAt: Datetime - - """Reads a single `User` that is related to this `CryptoAddress`.""" - owner: User - - """ - TRGM similarity when searching `address`. Returns null when no trgm search filter is active. - """ - addressTrgmSimilarity: Float - - """ - Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. - """ - searchScore: Float -} - -"""A `CryptoAddress` edge in the connection.""" -type CryptoAddressEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `CryptoAddress` at the end of the edge.""" - node: CryptoAddress -} - -""" -A filter to be used against `CryptoAddress` object types. All fields are combined with a logical ‘and.’ -""" -input CryptoAddressFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `ownerId` field.""" - ownerId: UUIDFilter - - """Filter by the object’s `address` field.""" - address: StringFilter - - """Filter by the object’s `isVerified` field.""" - isVerified: BooleanFilter - - """Filter by the object’s `isPrimary` field.""" - isPrimary: BooleanFilter - - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter - - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter - - """Checks for all expressions in this list.""" - and: [CryptoAddressFilter!] - - """Checks for any expressions in this list.""" - or: [CryptoAddressFilter!] - - """Negates the expression.""" - not: CryptoAddressFilter - - """Filter by the object’s `owner` relation.""" - owner: UserFilter - - """TRGM search on the `address` column.""" - trgmAddress: TrgmSearchInput - - """ - Composite full-text search. Provide a search string and it will be dispatched - to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - simultaneously. Rows matching ANY algorithm are returned. All matching score - fields are populated. - """ - fullTextSearch: String -} - -"""Methods to use when ordering `CryptoAddress`.""" -enum CryptoAddressOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - ADDRESS_ASC - ADDRESS_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC - ADDRESS_TRGM_SIMILARITY_ASC - ADDRESS_TRGM_SIMILARITY_DESC - SEARCH_SCORE_ASC - SEARCH_SCORE_DESC -} - """A connection to a list of `RoleType` values.""" type RoleTypeConnection { """A list of `RoleType` objects.""" @@ -23719,227 +23690,6 @@ enum RoleTypeOrderBy { NAME_DESC } -"""A connection to a list of `OrgPermissionDefault` values.""" -type OrgPermissionDefaultConnection { - """A list of `OrgPermissionDefault` objects.""" - nodes: [OrgPermissionDefault]! - - """ - A list of edges which contains the `OrgPermissionDefault` and cursor to aid in pagination. - """ - edges: [OrgPermissionDefaultEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `OrgPermissionDefault` you could get from the connection. - """ - totalCount: Int! -} - -""" -Stores the default permission bitmask assigned to new members upon joining -""" -type OrgPermissionDefault { - id: UUID! - - """Default permission bitmask applied to new members""" - permissions: BitString! - - """References the entity these default permissions apply to""" - entityId: UUID! - - """Reads a single `User` that is related to this `OrgPermissionDefault`.""" - entity: User -} - -"""A `OrgPermissionDefault` edge in the connection.""" -type OrgPermissionDefaultEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `OrgPermissionDefault` at the end of the edge.""" - node: OrgPermissionDefault -} - -""" -A filter to be used against `OrgPermissionDefault` object types. All fields are combined with a logical ‘and.’ -""" -input OrgPermissionDefaultFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `permissions` field.""" - permissions: BitStringFilter - - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter - - """Checks for all expressions in this list.""" - and: [OrgPermissionDefaultFilter!] - - """Checks for any expressions in this list.""" - or: [OrgPermissionDefaultFilter!] - - """Negates the expression.""" - not: OrgPermissionDefaultFilter - - """Filter by the object’s `entity` relation.""" - entity: UserFilter -} - -"""Methods to use when ordering `OrgPermissionDefault`.""" -enum OrgPermissionDefaultOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC -} - -"""A connection to a list of `PhoneNumber` values.""" -type PhoneNumberConnection { - """A list of `PhoneNumber` objects.""" - nodes: [PhoneNumber]! - - """ - A list of edges which contains the `PhoneNumber` and cursor to aid in pagination. - """ - edges: [PhoneNumberEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `PhoneNumber` you could get from the connection.""" - totalCount: Int! -} - -""" -User phone numbers with country code, verification, and primary-number management -""" -type PhoneNumber { - id: UUID! - ownerId: UUID! - - """Country calling code (e.g. +1, +44)""" - cc: String! - - """The phone number without country code""" - number: String! - - """Whether the phone number has been verified via SMS code""" - isVerified: Boolean! - - """Whether this is the user's primary phone number""" - isPrimary: Boolean! - createdAt: Datetime - updatedAt: Datetime - - """Reads a single `User` that is related to this `PhoneNumber`.""" - owner: User - - """ - TRGM similarity when searching `cc`. Returns null when no trgm search filter is active. - """ - ccTrgmSimilarity: Float - - """ - TRGM similarity when searching `number`. Returns null when no trgm search filter is active. - """ - numberTrgmSimilarity: Float - - """ - Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. - """ - searchScore: Float -} - -"""A `PhoneNumber` edge in the connection.""" -type PhoneNumberEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `PhoneNumber` at the end of the edge.""" - node: PhoneNumber -} - -""" -A filter to be used against `PhoneNumber` object types. All fields are combined with a logical ‘and.’ -""" -input PhoneNumberFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `ownerId` field.""" - ownerId: UUIDFilter - - """Filter by the object’s `cc` field.""" - cc: StringFilter - - """Filter by the object’s `number` field.""" - number: StringFilter - - """Filter by the object’s `isVerified` field.""" - isVerified: BooleanFilter - - """Filter by the object’s `isPrimary` field.""" - isPrimary: BooleanFilter - - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter - - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter - - """Checks for all expressions in this list.""" - and: [PhoneNumberFilter!] - - """Checks for any expressions in this list.""" - or: [PhoneNumberFilter!] - - """Negates the expression.""" - not: PhoneNumberFilter - - """Filter by the object’s `owner` relation.""" - owner: UserFilter - - """TRGM search on the `cc` column.""" - trgmCc: TrgmSearchInput - - """TRGM search on the `number` column.""" - trgmNumber: TrgmSearchInput - - """ - Composite full-text search. Provide a search string and it will be dispatched - to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - simultaneously. Rows matching ANY algorithm are returned. All matching score - fields are populated. - """ - fullTextSearch: String -} - -"""Methods to use when ordering `PhoneNumber`.""" -enum PhoneNumberOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - NUMBER_ASC - NUMBER_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC - CC_TRGM_SIMILARITY_ASC - CC_TRGM_SIMILARITY_DESC - NUMBER_TRGM_SIMILARITY_ASC - NUMBER_TRGM_SIMILARITY_DESC - SEARCH_SCORE_ASC - SEARCH_SCORE_DESC -} - """A connection to a list of `AppLimitDefault` values.""" type AppLimitDefaultConnection { """A list of `AppLimitDefault` objects.""" @@ -24090,192 +23840,46 @@ enum OrgLimitDefaultOrderBy { NAME_DESC } -"""A connection to a list of `ConnectedAccount` values.""" -type ConnectedAccountConnection { - """A list of `ConnectedAccount` objects.""" - nodes: [ConnectedAccount]! +"""A connection to a list of `NodeTypeRegistry` values.""" +type NodeTypeRegistryConnection { + """A list of `NodeTypeRegistry` objects.""" + nodes: [NodeTypeRegistry]! """ - A list of edges which contains the `ConnectedAccount` and cursor to aid in pagination. + A list of edges which contains the `NodeTypeRegistry` and cursor to aid in pagination. """ - edges: [ConnectedAccountEdge]! + edges: [NodeTypeRegistryEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `ConnectedAccount` you could get from the connection. + The count of *all* `NodeTypeRegistry` you could get from the connection. """ totalCount: Int! } """ -OAuth and social login connections linking external service accounts to users +Registry of high-level semantic AST node types using domain-prefixed naming. These IR nodes compile to multiple targets (Postgres RLS, egress, ingress, etc.). """ -type ConnectedAccount { - id: UUID! - ownerId: UUID! - - """The service used, e.g. `twitter` or `github`.""" - service: String! - - """A unique identifier for the user within the service""" - identifier: String! - - """Additional profile details extracted from this login method""" - details: JSON! - - """Whether this connected account has been verified""" - isVerified: Boolean! - createdAt: Datetime - updatedAt: Datetime - - """Reads a single `User` that is related to this `ConnectedAccount`.""" - owner: User - +type NodeTypeRegistry { """ - TRGM similarity when searching `service`. Returns null when no trgm search filter is active. + PascalCase domain-prefixed node type name (e.g., AuthzDirectOwner, DataTimestamps, FieldImmutable) """ - serviceTrgmSimilarity: Float + name: String! """ - TRGM similarity when searching `identifier`. Returns null when no trgm search filter is active. + snake_case slug for use in code and configuration (e.g., authz_direct_owner, data_timestamps) """ - identifierTrgmSimilarity: Float + slug: String! """ - Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. + Node type category: authz (authorization semantics), data (table-level behaviors), field (column-level behaviors), view (view query types), relation (relational structure between tables) """ - searchScore: Float -} + category: String! -"""A `ConnectedAccount` edge in the connection.""" -type ConnectedAccountEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `ConnectedAccount` at the end of the edge.""" - node: ConnectedAccount -} - -""" -A filter to be used against `ConnectedAccount` object types. All fields are combined with a logical ‘and.’ -""" -input ConnectedAccountFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `ownerId` field.""" - ownerId: UUIDFilter - - """Filter by the object’s `service` field.""" - service: StringFilter - - """Filter by the object’s `identifier` field.""" - identifier: StringFilter - - """Filter by the object’s `details` field.""" - details: JSONFilter - - """Filter by the object’s `isVerified` field.""" - isVerified: BooleanFilter - - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter - - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter - - """Checks for all expressions in this list.""" - and: [ConnectedAccountFilter!] - - """Checks for any expressions in this list.""" - or: [ConnectedAccountFilter!] - - """Negates the expression.""" - not: ConnectedAccountFilter - - """Filter by the object’s `owner` relation.""" - owner: UserFilter - - """TRGM search on the `service` column.""" - trgmService: TrgmSearchInput - - """TRGM search on the `identifier` column.""" - trgmIdentifier: TrgmSearchInput - - """ - Composite full-text search. Provide a search string and it will be dispatched - to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - simultaneously. Rows matching ANY algorithm are returned. All matching score - fields are populated. - """ - fullTextSearch: String -} - -"""Methods to use when ordering `ConnectedAccount`.""" -enum ConnectedAccountOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - SERVICE_ASC - SERVICE_DESC - IDENTIFIER_ASC - IDENTIFIER_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC - SERVICE_TRGM_SIMILARITY_ASC - SERVICE_TRGM_SIMILARITY_DESC - IDENTIFIER_TRGM_SIMILARITY_ASC - IDENTIFIER_TRGM_SIMILARITY_DESC - SEARCH_SCORE_ASC - SEARCH_SCORE_DESC -} - -"""A connection to a list of `NodeTypeRegistry` values.""" -type NodeTypeRegistryConnection { - """A list of `NodeTypeRegistry` objects.""" - nodes: [NodeTypeRegistry]! - - """ - A list of edges which contains the `NodeTypeRegistry` and cursor to aid in pagination. - """ - edges: [NodeTypeRegistryEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `NodeTypeRegistry` you could get from the connection. - """ - totalCount: Int! -} - -""" -Registry of high-level semantic AST node types using domain-prefixed naming. These IR nodes compile to multiple targets (Postgres RLS, egress, ingress, etc.). -""" -type NodeTypeRegistry { - """ - PascalCase domain-prefixed node type name (e.g., AuthzDirectOwner, DataTimestamps, FieldImmutable) - """ - name: String! - - """ - snake_case slug for use in code and configuration (e.g., authz_direct_owner, data_timestamps) - """ - slug: String! - - """ - Node type category: authz (authorization semantics), data (table-level behaviors), field (column-level behaviors), view (view query types), relation (relational structure between tables) - """ - category: String! - - """Human-readable display name for UI""" - displayName: String + """Human-readable display name for UI""" + displayName: String """Description of what this node type does""" description: String @@ -24289,36 +23893,6 @@ type NodeTypeRegistry { tags: [String]! createdAt: Datetime! updatedAt: Datetime! - - """ - TRGM similarity when searching `name`. Returns null when no trgm search filter is active. - """ - nameTrgmSimilarity: Float - - """ - TRGM similarity when searching `slug`. Returns null when no trgm search filter is active. - """ - slugTrgmSimilarity: Float - - """ - TRGM similarity when searching `category`. Returns null when no trgm search filter is active. - """ - categoryTrgmSimilarity: Float - - """ - TRGM similarity when searching `displayName`. Returns null when no trgm search filter is active. - """ - displayNameTrgmSimilarity: Float - - """ - TRGM similarity when searching `description`. Returns null when no trgm search filter is active. - """ - descriptionTrgmSimilarity: Float - - """ - Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. - """ - searchScore: Float } """A `NodeTypeRegistry` edge in the connection.""" @@ -24369,29 +23943,6 @@ input NodeTypeRegistryFilter { """Negates the expression.""" not: NodeTypeRegistryFilter - - """TRGM search on the `name` column.""" - trgmName: TrgmSearchInput - - """TRGM search on the `slug` column.""" - trgmSlug: TrgmSearchInput - - """TRGM search on the `category` column.""" - trgmCategory: TrgmSearchInput - - """TRGM search on the `display_name` column.""" - trgmDisplayName: TrgmSearchInput - - """TRGM search on the `description` column.""" - trgmDescription: TrgmSearchInput - - """ - Composite full-text search. Provide a search string and it will be dispatched - to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - simultaneously. Rows matching ANY algorithm are returned. All matching score - fields are populated. - """ - fullTextSearch: String } """Methods to use when ordering `NodeTypeRegistry`.""" @@ -24405,18 +23956,6 @@ enum NodeTypeRegistryOrderBy { SLUG_DESC CATEGORY_ASC CATEGORY_DESC - NAME_TRGM_SIMILARITY_ASC - NAME_TRGM_SIMILARITY_DESC - SLUG_TRGM_SIMILARITY_ASC - SLUG_TRGM_SIMILARITY_DESC - CATEGORY_TRGM_SIMILARITY_ASC - CATEGORY_TRGM_SIMILARITY_DESC - DISPLAY_NAME_TRGM_SIMILARITY_ASC - DISPLAY_NAME_TRGM_SIMILARITY_DESC - DESCRIPTION_TRGM_SIMILARITY_ASC - DESCRIPTION_TRGM_SIMILARITY_DESC - SEARCH_SCORE_ASC - SEARCH_SCORE_DESC } """A connection to a list of `MembershipType` values.""" @@ -24455,21 +23994,6 @@ type MembershipType { Short prefix used to namespace tables and functions for this membership scope """ prefix: String! - - """ - TRGM similarity when searching `description`. Returns null when no trgm search filter is active. - """ - descriptionTrgmSimilarity: Float - - """ - TRGM similarity when searching `prefix`. Returns null when no trgm search filter is active. - """ - prefixTrgmSimilarity: Float - - """ - Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. - """ - searchScore: Float } """A `MembershipType` edge in the connection.""" @@ -24505,20 +24029,6 @@ input MembershipTypeFilter { """Negates the expression.""" not: MembershipTypeFilter - - """TRGM search on the `description` column.""" - trgmDescription: TrgmSearchInput - - """TRGM search on the `prefix` column.""" - trgmPrefix: TrgmSearchInput - - """ - Composite full-text search. Provide a search string and it will be dispatched - to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - simultaneously. Rows matching ANY algorithm are returned. All matching score - fields are populated. - """ - fullTextSearch: String } """Methods to use when ordering `MembershipType`.""" @@ -24530,12 +24040,6 @@ enum MembershipTypeOrderBy { ID_DESC NAME_ASC NAME_DESC - DESCRIPTION_TRGM_SIMILARITY_ASC - DESCRIPTION_TRGM_SIMILARITY_DESC - PREFIX_TRGM_SIMILARITY_ASC - PREFIX_TRGM_SIMILARITY_DESC - SEARCH_SCORE_ASC - SEARCH_SCORE_DESC } """ @@ -24627,16 +24131,6 @@ type Commit { """The root of the tree""" treeId: UUID date: Datetime! - - """ - TRGM similarity when searching `message`. Returns null when no trgm search filter is active. - """ - messageTrgmSimilarity: Float - - """ - Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. - """ - searchScore: Float } """A `Commit` edge in the connection.""" @@ -24687,17 +24181,6 @@ input CommitFilter { """Negates the expression.""" not: CommitFilter - - """TRGM search on the `message` column.""" - trgmMessage: TrgmSearchInput - - """ - Composite full-text search. Provide a search string and it will be dispatched - to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - simultaneously. Rows matching ANY algorithm are returned. All matching score - fields are populated. - """ - fullTextSearch: String } """Methods to use when ordering `Commit`.""" @@ -24709,10 +24192,6 @@ enum CommitOrderBy { ID_DESC DATABASE_ID_ASC DATABASE_ID_DESC - MESSAGE_TRGM_SIMILARITY_ASC - MESSAGE_TRGM_SIMILARITY_DESC - SEARCH_SCORE_ASC - SEARCH_SCORE_DESC } """ @@ -24742,17 +24221,6 @@ input AppPermissionFilter { """Negates the expression.""" not: AppPermissionFilter - - """TRGM search on the `description` column.""" - trgmDescription: TrgmSearchInput - - """ - Composite full-text search. Provide a search string and it will be dispatched - to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - simultaneously. Rows matching ANY algorithm are returned. All matching score - fields are populated. - """ - fullTextSearch: String } """Methods to use when ordering `AppPermission`.""" @@ -24766,10 +24234,6 @@ enum AppPermissionOrderBy { NAME_DESC BITNUM_ASC BITNUM_DESC - DESCRIPTION_TRGM_SIMILARITY_ASC - DESCRIPTION_TRGM_SIMILARITY_DESC - SEARCH_SCORE_ASC - SEARCH_SCORE_DESC } """ @@ -24799,17 +24263,6 @@ input OrgPermissionFilter { """Negates the expression.""" not: OrgPermissionFilter - - """TRGM search on the `description` column.""" - trgmDescription: TrgmSearchInput - - """ - Composite full-text search. Provide a search string and it will be dispatched - to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - simultaneously. Rows matching ANY algorithm are returned. All matching score - fields are populated. - """ - fullTextSearch: String } """Methods to use when ordering `OrgPermission`.""" @@ -24823,10 +24276,6 @@ enum OrgPermissionOrderBy { NAME_DESC BITNUM_ASC BITNUM_DESC - DESCRIPTION_TRGM_SIMILARITY_ASC - DESCRIPTION_TRGM_SIMILARITY_DESC - SEARCH_SCORE_ASC - SEARCH_SCORE_DESC } """A connection to a list of `AppMembershipDefault` values.""" @@ -24961,16 +24410,6 @@ enum RlsModuleOrderBy { ID_DESC DATABASE_ID_ASC DATABASE_ID_DESC - AUTHENTICATE_TRGM_SIMILARITY_ASC - AUTHENTICATE_TRGM_SIMILARITY_DESC - AUTHENTICATE_STRICT_TRGM_SIMILARITY_ASC - AUTHENTICATE_STRICT_TRGM_SIMILARITY_DESC - CURRENT_ROLE_TRGM_SIMILARITY_ASC - CURRENT_ROLE_TRGM_SIMILARITY_DESC - CURRENT_ROLE_ID_TRGM_SIMILARITY_ASC - CURRENT_ROLE_ID_TRGM_SIMILARITY_DESC - SEARCH_SCORE_ASC - SEARCH_SCORE_DESC } """A connection to a list of `OrgMembershipDefault` values.""" @@ -25056,17 +24495,6 @@ input AppLevelRequirementFilter { """Negates the expression.""" not: AppLevelRequirementFilter - - """TRGM search on the `description` column.""" - trgmDescription: TrgmSearchInput - - """ - Composite full-text search. Provide a search string and it will be dispatched - to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - simultaneously. Rows matching ANY algorithm are returned. All matching score - fields are populated. - """ - fullTextSearch: String } """Methods to use when ordering `AppLevelRequirement`.""" @@ -25086,468 +24514,6 @@ enum AppLevelRequirementOrderBy { CREATED_AT_DESC UPDATED_AT_ASC UPDATED_AT_DESC - DESCRIPTION_TRGM_SIMILARITY_ASC - DESCRIPTION_TRGM_SIMILARITY_DESC - SEARCH_SCORE_ASC - SEARCH_SCORE_DESC -} - -"""A connection to a list of `AuditLog` values.""" -type AuditLogConnection { - """A list of `AuditLog` objects.""" - nodes: [AuditLog]! - - """ - A list of edges which contains the `AuditLog` and cursor to aid in pagination. - """ - edges: [AuditLogEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `AuditLog` you could get from the connection.""" - totalCount: Int! -} - -""" -Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) -""" -type AuditLog { - id: UUID! - - """ - Type of authentication event (e.g. sign_in, sign_up, password_change, verify_email) - """ - event: String! - - """User who performed the authentication action""" - actorId: UUID! - - """Request origin (domain) where the auth event occurred""" - origin: ConstructiveInternalTypeOrigin - - """Browser or client user-agent string from the request""" - userAgent: String - - """IP address of the client that initiated the auth event""" - ipAddress: InternetAddress - - """Whether the authentication attempt succeeded""" - success: Boolean! - - """Timestamp when the audit event was recorded""" - createdAt: Datetime! - - """Reads a single `User` that is related to this `AuditLog`.""" - actor: User - - """ - TRGM similarity when searching `userAgent`. Returns null when no trgm search filter is active. - """ - userAgentTrgmSimilarity: Float - - """ - Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. - """ - searchScore: Float -} - -scalar ConstructiveInternalTypeOrigin - -"""A `AuditLog` edge in the connection.""" -type AuditLogEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `AuditLog` at the end of the edge.""" - node: AuditLog -} - -""" -A filter to be used against `AuditLog` object types. All fields are combined with a logical ‘and.’ -""" -input AuditLogFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `event` field.""" - event: StringFilter - - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter - - """Filter by the object’s `origin` field.""" - origin: ConstructiveInternalTypeOriginFilter - - """Filter by the object’s `userAgent` field.""" - userAgent: StringFilter - - """Filter by the object’s `ipAddress` field.""" - ipAddress: InternetAddressFilter - - """Filter by the object’s `success` field.""" - success: BooleanFilter - - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter - - """Checks for all expressions in this list.""" - and: [AuditLogFilter!] - - """Checks for any expressions in this list.""" - or: [AuditLogFilter!] - - """Negates the expression.""" - not: AuditLogFilter - - """Filter by the object’s `actor` relation.""" - actor: UserFilter - - """TRGM search on the `user_agent` column.""" - trgmUserAgent: TrgmSearchInput - - """ - Composite full-text search. Provide a search string and it will be dispatched - to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - simultaneously. Rows matching ANY algorithm are returned. All matching score - fields are populated. - """ - fullTextSearch: String -} - -""" -A filter to be used against ConstructiveInternalTypeOrigin fields. All fields are combined with a logical ‘and.’ -""" -input ConstructiveInternalTypeOriginFilter { - """ - Is null (if `true` is specified) or is not null (if `false` is specified). - """ - isNull: Boolean - - """Equal to the specified value.""" - equalTo: ConstructiveInternalTypeOrigin - - """Not equal to the specified value.""" - notEqualTo: ConstructiveInternalTypeOrigin - - """ - Not equal to the specified value, treating null like an ordinary value. - """ - distinctFrom: ConstructiveInternalTypeOrigin - - """Equal to the specified value, treating null like an ordinary value.""" - notDistinctFrom: ConstructiveInternalTypeOrigin - - """Included in the specified list.""" - in: [ConstructiveInternalTypeOrigin!] - - """Not included in the specified list.""" - notIn: [ConstructiveInternalTypeOrigin!] - - """Less than the specified value.""" - lessThan: ConstructiveInternalTypeOrigin - - """Less than or equal to the specified value.""" - lessThanOrEqualTo: ConstructiveInternalTypeOrigin - - """Greater than the specified value.""" - greaterThan: ConstructiveInternalTypeOrigin - - """Greater than or equal to the specified value.""" - greaterThanOrEqualTo: ConstructiveInternalTypeOrigin - - """Contains the specified string (case-sensitive).""" - includes: ConstructiveInternalTypeOrigin - - """Does not contain the specified string (case-sensitive).""" - notIncludes: ConstructiveInternalTypeOrigin - - """Contains the specified string (case-insensitive).""" - includesInsensitive: ConstructiveInternalTypeOrigin - - """Does not contain the specified string (case-insensitive).""" - notIncludesInsensitive: ConstructiveInternalTypeOrigin - - """Starts with the specified string (case-sensitive).""" - startsWith: ConstructiveInternalTypeOrigin - - """Does not start with the specified string (case-sensitive).""" - notStartsWith: ConstructiveInternalTypeOrigin - - """Starts with the specified string (case-insensitive).""" - startsWithInsensitive: ConstructiveInternalTypeOrigin - - """Does not start with the specified string (case-insensitive).""" - notStartsWithInsensitive: ConstructiveInternalTypeOrigin - - """Ends with the specified string (case-sensitive).""" - endsWith: ConstructiveInternalTypeOrigin - - """Does not end with the specified string (case-sensitive).""" - notEndsWith: ConstructiveInternalTypeOrigin - - """Ends with the specified string (case-insensitive).""" - endsWithInsensitive: ConstructiveInternalTypeOrigin - - """Does not end with the specified string (case-insensitive).""" - notEndsWithInsensitive: ConstructiveInternalTypeOrigin - - """ - Matches the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. - """ - like: ConstructiveInternalTypeOrigin - - """ - Does not match the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. - """ - notLike: ConstructiveInternalTypeOrigin - - """ - Matches the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. - """ - likeInsensitive: ConstructiveInternalTypeOrigin - - """ - Does not match the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. - """ - notLikeInsensitive: ConstructiveInternalTypeOrigin - - """Equal to the specified value (case-insensitive).""" - equalToInsensitive: String - - """Not equal to the specified value (case-insensitive).""" - notEqualToInsensitive: String - - """ - Not equal to the specified value, treating null like an ordinary value (case-insensitive). - """ - distinctFromInsensitive: String - - """ - Equal to the specified value, treating null like an ordinary value (case-insensitive). - """ - notDistinctFromInsensitive: String - - """Included in the specified list (case-insensitive).""" - inInsensitive: [String!] - - """Not included in the specified list (case-insensitive).""" - notInInsensitive: [String!] - - """Less than the specified value (case-insensitive).""" - lessThanInsensitive: String - - """Less than or equal to the specified value (case-insensitive).""" - lessThanOrEqualToInsensitive: String - - """Greater than the specified value (case-insensitive).""" - greaterThanInsensitive: String - - """Greater than or equal to the specified value (case-insensitive).""" - greaterThanOrEqualToInsensitive: String -} - -""" -A filter to be used against InternetAddress fields. All fields are combined with a logical ‘and.’ -""" -input InternetAddressFilter { - """ - Is null (if `true` is specified) or is not null (if `false` is specified). - """ - isNull: Boolean - - """Equal to the specified value.""" - equalTo: InternetAddress - - """Not equal to the specified value.""" - notEqualTo: InternetAddress - - """ - Not equal to the specified value, treating null like an ordinary value. - """ - distinctFrom: InternetAddress - - """Equal to the specified value, treating null like an ordinary value.""" - notDistinctFrom: InternetAddress - - """Included in the specified list.""" - in: [InternetAddress!] - - """Not included in the specified list.""" - notIn: [InternetAddress!] - - """Less than the specified value.""" - lessThan: InternetAddress - - """Less than or equal to the specified value.""" - lessThanOrEqualTo: InternetAddress - - """Greater than the specified value.""" - greaterThan: InternetAddress - - """Greater than or equal to the specified value.""" - greaterThanOrEqualTo: InternetAddress - - """Contains the specified internet address.""" - contains: InternetAddress - - """Contains or equal to the specified internet address.""" - containsOrEqualTo: InternetAddress - - """Contained by the specified internet address.""" - containedBy: InternetAddress - - """Contained by or equal to the specified internet address.""" - containedByOrEqualTo: InternetAddress - - """Contains or contained by the specified internet address.""" - containsOrContainedBy: InternetAddress -} - -"""Methods to use when ordering `AuditLog`.""" -enum AuditLogOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - EVENT_ASC - EVENT_DESC - USER_AGENT_TRGM_SIMILARITY_ASC - USER_AGENT_TRGM_SIMILARITY_DESC - SEARCH_SCORE_ASC - SEARCH_SCORE_DESC -} - -"""A connection to a list of `AppLevel` values.""" -type AppLevelConnection { - """A list of `AppLevel` objects.""" - nodes: [AppLevel]! - - """ - A list of edges which contains the `AppLevel` and cursor to aid in pagination. - """ - edges: [AppLevelEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `AppLevel` you could get from the connection.""" - totalCount: Int! -} - -""" -Defines available levels that users can achieve by completing requirements -""" -type AppLevel { - id: UUID! - - """Unique name of the level""" - name: String! - - """Human-readable description of what this level represents""" - description: String - - """Badge or icon image associated with this level""" - image: ConstructiveInternalTypeImage - - """Optional owner (actor) who created or manages this level""" - ownerId: UUID - createdAt: Datetime - updatedAt: Datetime - - """Reads a single `User` that is related to this `AppLevel`.""" - owner: User - - """ - TRGM similarity when searching `description`. Returns null when no trgm search filter is active. - """ - descriptionTrgmSimilarity: Float - - """ - Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. - """ - searchScore: Float -} - -"""A `AppLevel` edge in the connection.""" -type AppLevelEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `AppLevel` at the end of the edge.""" - node: AppLevel -} - -""" -A filter to be used against `AppLevel` object types. All fields are combined with a logical ‘and.’ -""" -input AppLevelFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `name` field.""" - name: StringFilter - - """Filter by the object’s `description` field.""" - description: StringFilter - - """Filter by the object’s `image` field.""" - image: ConstructiveInternalTypeImageFilter - - """Filter by the object’s `ownerId` field.""" - ownerId: UUIDFilter - - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter - - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter - - """Checks for all expressions in this list.""" - and: [AppLevelFilter!] - - """Checks for any expressions in this list.""" - or: [AppLevelFilter!] - - """Negates the expression.""" - not: AppLevelFilter - - """Filter by the object’s `owner` relation.""" - owner: UserFilter - - """A related `owner` exists.""" - ownerExists: Boolean - - """TRGM search on the `description` column.""" - trgmDescription: TrgmSearchInput - - """ - Composite full-text search. Provide a search string and it will be dispatched - to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - simultaneously. Rows matching ANY algorithm are returned. All matching score - fields are populated. - """ - fullTextSearch: String -} - -"""Methods to use when ordering `AppLevel`.""" -enum AppLevelOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - NAME_ASC - NAME_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC - DESCRIPTION_TRGM_SIMILARITY_ASC - DESCRIPTION_TRGM_SIMILARITY_DESC - SEARCH_SCORE_ASC - SEARCH_SCORE_DESC } """A connection to a list of `SqlMigration` values.""" @@ -25581,41 +24547,6 @@ type SqlMigration { action: String actionId: UUID actorId: UUID - - """ - TRGM similarity when searching `name`. Returns null when no trgm search filter is active. - """ - nameTrgmSimilarity: Float - - """ - TRGM similarity when searching `deploy`. Returns null when no trgm search filter is active. - """ - deployTrgmSimilarity: Float - - """ - TRGM similarity when searching `content`. Returns null when no trgm search filter is active. - """ - contentTrgmSimilarity: Float - - """ - TRGM similarity when searching `revert`. Returns null when no trgm search filter is active. - """ - revertTrgmSimilarity: Float - - """ - TRGM similarity when searching `verify`. Returns null when no trgm search filter is active. - """ - verifyTrgmSimilarity: Float - - """ - TRGM similarity when searching `action`. Returns null when no trgm search filter is active. - """ - actionTrgmSimilarity: Float - - """ - Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. - """ - searchScore: Float } """A `SqlMigration` edge in the connection.""" @@ -25675,32 +24606,6 @@ input SqlMigrationFilter { """Negates the expression.""" not: SqlMigrationFilter - - """TRGM search on the `name` column.""" - trgmName: TrgmSearchInput - - """TRGM search on the `deploy` column.""" - trgmDeploy: TrgmSearchInput - - """TRGM search on the `content` column.""" - trgmContent: TrgmSearchInput - - """TRGM search on the `revert` column.""" - trgmRevert: TrgmSearchInput - - """TRGM search on the `verify` column.""" - trgmVerify: TrgmSearchInput - - """TRGM search on the `action` column.""" - trgmAction: TrgmSearchInput - - """ - Composite full-text search. Provide a search string and it will be dispatched - to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - simultaneously. Rows matching ANY algorithm are returned. All matching score - fields are populated. - """ - fullTextSearch: String } """Methods to use when ordering `SqlMigration`.""" @@ -25728,119 +24633,6 @@ enum SqlMigrationOrderBy { ACTION_ID_DESC ACTOR_ID_ASC ACTOR_ID_DESC - NAME_TRGM_SIMILARITY_ASC - NAME_TRGM_SIMILARITY_DESC - DEPLOY_TRGM_SIMILARITY_ASC - DEPLOY_TRGM_SIMILARITY_DESC - CONTENT_TRGM_SIMILARITY_ASC - CONTENT_TRGM_SIMILARITY_DESC - REVERT_TRGM_SIMILARITY_ASC - REVERT_TRGM_SIMILARITY_DESC - VERIFY_TRGM_SIMILARITY_ASC - VERIFY_TRGM_SIMILARITY_DESC - ACTION_TRGM_SIMILARITY_ASC - ACTION_TRGM_SIMILARITY_DESC - SEARCH_SCORE_ASC - SEARCH_SCORE_DESC -} - -"""A connection to a list of `Email` values.""" -type EmailConnection { - """A list of `Email` objects.""" - nodes: [Email]! - - """ - A list of edges which contains the `Email` and cursor to aid in pagination. - """ - edges: [EmailEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `Email` you could get from the connection.""" - totalCount: Int! -} - -"""User email addresses with verification and primary-email management""" -type Email { - id: UUID! - ownerId: UUID! - - """The email address""" - email: ConstructiveInternalTypeEmail! - - """Whether the email address has been verified via confirmation link""" - isVerified: Boolean! - - """Whether this is the user's primary email address""" - isPrimary: Boolean! - createdAt: Datetime - updatedAt: Datetime - - """Reads a single `User` that is related to this `Email`.""" - owner: User -} - -"""A `Email` edge in the connection.""" -type EmailEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `Email` at the end of the edge.""" - node: Email -} - -""" -A filter to be used against `Email` object types. All fields are combined with a logical ‘and.’ -""" -input EmailFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `ownerId` field.""" - ownerId: UUIDFilter - - """Filter by the object’s `email` field.""" - email: ConstructiveInternalTypeEmailFilter - - """Filter by the object’s `isVerified` field.""" - isVerified: BooleanFilter - - """Filter by the object’s `isPrimary` field.""" - isPrimary: BooleanFilter - - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter - - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter - - """Checks for all expressions in this list.""" - and: [EmailFilter!] - - """Checks for any expressions in this list.""" - or: [EmailFilter!] - - """Negates the expression.""" - not: EmailFilter - - """Filter by the object’s `owner` relation.""" - owner: UserFilter -} - -"""Methods to use when ordering `Email`.""" -enum EmailOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - EMAIL_ASC - EMAIL_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC } """A connection to a list of `User` values.""" @@ -25921,16 +24713,6 @@ type AstMigration { action: String actionId: UUID actorId: UUID - - """ - TRGM similarity when searching `action`. Returns null when no trgm search filter is active. - """ - actionTrgmSimilarity: Float - - """ - Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. - """ - searchScore: Float } """A `AstMigration` edge in the connection.""" @@ -25993,17 +24775,6 @@ input AstMigrationFilter { """Negates the expression.""" not: AstMigrationFilter - - """TRGM search on the `action` column.""" - trgmAction: TrgmSearchInput - - """ - Composite full-text search. Provide a search string and it will be dispatched - to all text-compatible search algorithms (tsvector, BM25, pg_trgm) - simultaneously. Rows matching ANY algorithm are returned. All matching score - fields are populated. - """ - fullTextSearch: String } """Methods to use when ordering `AstMigration`.""" @@ -26025,10 +24796,6 @@ enum AstMigrationOrderBy { ACTION_ID_DESC ACTOR_ID_ASC ACTOR_ID_DESC - ACTION_TRGM_SIMILARITY_ASC - ACTION_TRGM_SIMILARITY_DESC - SEARCH_SCORE_ASC - SEARCH_SCORE_DESC } """A connection to a list of `AppMembership` values.""" @@ -26119,28 +24886,6 @@ enum HierarchyModuleOrderBy { ID_DESC DATABASE_ID_ASC DATABASE_ID_DESC - CHART_EDGES_TABLE_NAME_TRGM_SIMILARITY_ASC - CHART_EDGES_TABLE_NAME_TRGM_SIMILARITY_DESC - HIERARCHY_SPRT_TABLE_NAME_TRGM_SIMILARITY_ASC - HIERARCHY_SPRT_TABLE_NAME_TRGM_SIMILARITY_DESC - CHART_EDGE_GRANTS_TABLE_NAME_TRGM_SIMILARITY_ASC - CHART_EDGE_GRANTS_TABLE_NAME_TRGM_SIMILARITY_DESC - PREFIX_TRGM_SIMILARITY_ASC - PREFIX_TRGM_SIMILARITY_DESC - PRIVATE_SCHEMA_NAME_TRGM_SIMILARITY_ASC - PRIVATE_SCHEMA_NAME_TRGM_SIMILARITY_DESC - SPRT_TABLE_NAME_TRGM_SIMILARITY_ASC - SPRT_TABLE_NAME_TRGM_SIMILARITY_DESC - REBUILD_HIERARCHY_FUNCTION_TRGM_SIMILARITY_ASC - REBUILD_HIERARCHY_FUNCTION_TRGM_SIMILARITY_DESC - GET_SUBORDINATES_FUNCTION_TRGM_SIMILARITY_ASC - GET_SUBORDINATES_FUNCTION_TRGM_SIMILARITY_DESC - GET_MANAGERS_FUNCTION_TRGM_SIMILARITY_ASC - GET_MANAGERS_FUNCTION_TRGM_SIMILARITY_DESC - IS_MANAGER_OF_FUNCTION_TRGM_SIMILARITY_ASC - IS_MANAGER_OF_FUNCTION_TRGM_SIMILARITY_DESC - SEARCH_SCORE_ASC - SEARCH_SCORE_DESC } """Root meta schema type""" @@ -26293,24 +25038,36 @@ type MetaQuery { The root mutation type which contains root level fields which mutate data. """ type Mutation { + sendAccountDeletionEmail( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: SendAccountDeletionEmailInput! + ): SendAccountDeletionEmailPayload signOut( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ input: SignOutInput! ): SignOutPayload - sendAccountDeletionEmail( + acceptDatabaseTransfer( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: SendAccountDeletionEmailInput! - ): SendAccountDeletionEmailPayload - checkPassword( + input: AcceptDatabaseTransferInput! + ): AcceptDatabaseTransferPayload + cancelDatabaseTransfer( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CheckPasswordInput! - ): CheckPasswordPayload + input: CancelDatabaseTransferInput! + ): CancelDatabaseTransferPayload + rejectDatabaseTransfer( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: RejectDatabaseTransferInput! + ): RejectDatabaseTransferPayload submitInviteCode( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. @@ -26323,18 +25080,12 @@ type Mutation { """ input: SubmitOrgInviteCodeInput! ): SubmitOrgInviteCodePayload - freezeObjects( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: FreezeObjectsInput! - ): FreezeObjectsPayload - initEmptyRepo( + checkPassword( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: InitEmptyRepoInput! - ): InitEmptyRepoPayload + input: CheckPasswordInput! + ): CheckPasswordPayload confirmDeleteAccount( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. @@ -26353,30 +25104,40 @@ type Mutation { """ input: VerifyEmailInput! ): VerifyEmailPayload - removeNodeAtPath( + freezeObjects( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: RemoveNodeAtPathInput! - ): RemoveNodeAtPathPayload - resetPassword( + input: FreezeObjectsInput! + ): FreezeObjectsPayload + initEmptyRepo( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: ResetPasswordInput! - ): ResetPasswordPayload - bootstrapUser( + input: InitEmptyRepoInput! + ): InitEmptyRepoPayload + + """ + Executes a draft blueprint definition. Four phases: (1) create tables with nodes[], fields, and policies[], (2) create relations between tables, (3) create indexes on table fields (supports BTREE, HNSW, GIN, GIST, BM25, etc.), (4) create full-text search configurations with weighted multi-field TSVector support. nodes[] entries can be strings or {$type, data} objects. Relations use $type for relation_type with junction config in data. Indexes reference table_ref + column name(s) and are resolved to field_ids. Full-text searches reference table_ref + tsvector field + source fields with weights/langs. Builds a ref_map of local ref names to created table UUIDs. Updates blueprint status to constructed (or failed with error_details). Returns the ref_map. + """ + constructBlueprint( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: BootstrapUserInput! - ): BootstrapUserPayload - setFieldOrder( + input: ConstructBlueprintInput! + ): ConstructBlueprintPayload + resetPassword( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: SetFieldOrderInput! - ): SetFieldOrderPayload + input: ResetPasswordInput! + ): ResetPasswordPayload + removeNodeAtPath( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: RemoveNodeAtPathInput! + ): RemoveNodeAtPathPayload setDataAtPath( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. @@ -26389,12 +25150,34 @@ type Mutation { """ input: SetPropsAndCommitInput! ): SetPropsAndCommitPayload + + """ + 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. + """ + copyTemplateToBlueprint( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CopyTemplateToBlueprintInput! + ): CopyTemplateToBlueprintPayload provisionDatabaseWithUser( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ input: ProvisionDatabaseWithUserInput! ): ProvisionDatabaseWithUserPayload + bootstrapUser( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: BootstrapUserInput! + ): BootstrapUserPayload + setFieldOrder( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: SetFieldOrderInput! + ): SetFieldOrderPayload insertNodeAtPath( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. @@ -26457,18 +25240,18 @@ type Mutation { """ input: OneTimeTokenInput! ): OneTimeTokenPayload - forgotPassword( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: ForgotPasswordInput! - ): ForgotPasswordPayload sendVerificationEmail( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ input: SendVerificationEmailInput! ): SendVerificationEmailPayload + forgotPassword( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: ForgotPasswordInput! + ): ForgotPasswordPayload verifyPassword( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. @@ -26506,6 +25289,14 @@ type Mutation { input: CreateApiSchemaInput! ): CreateApiSchemaPayload + """Creates a single `SiteTheme`.""" + createSiteTheme( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateSiteThemeInput! + ): CreateSiteThemePayload + """Creates a single `OrgMember`.""" createOrgMember( """ @@ -26546,22 +25337,6 @@ type Mutation { input: CreateSecretsModuleInput! ): CreateSecretsModulePayload - """Creates a single `UuidModule`.""" - createUuidModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateUuidModuleInput! - ): CreateUuidModulePayload - - """Creates a single `SiteTheme`.""" - createSiteTheme( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateSiteThemeInput! - ): CreateSiteThemePayload - """Creates a single `Store`.""" createStore( """ @@ -26746,6 +25521,14 @@ type Mutation { input: CreateCryptoAddressesModuleInput! ): CreateCryptoAddressesModulePayload + """Creates a single `ConnectedAccount`.""" + createConnectedAccount( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateConnectedAccountInput! + ): CreateConnectedAccountPayload + """Creates a single `PhoneNumber`.""" createPhoneNumber( """ @@ -26770,14 +25553,6 @@ type Mutation { input: CreateOrgLimitDefaultInput! ): CreateOrgLimitDefaultPayload - """Creates a single `ConnectedAccount`.""" - createConnectedAccount( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateConnectedAccountInput! - ): CreateConnectedAccountPayload - """Creates a single `TableGrant`.""" createTableGrant( """ @@ -27026,6 +25801,14 @@ type Mutation { input: CreateSqlMigrationInput! ): CreateSqlMigrationPayload + """Creates a single `DatabaseTransfer`.""" + createDatabaseTransfer( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateDatabaseTransferInput! + ): CreateDatabaseTransferPayload + """Creates a single `CryptoAuthModule`.""" createCryptoAuthModule( """ @@ -27058,6 +25841,14 @@ type Mutation { input: CreateEmailInput! ): CreateEmailPayload + """Creates a single `Enum`.""" + createEnum( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateEnumInput! + ): CreateEnumPayload + """Creates a single `View`.""" createView( """ @@ -27066,6 +25857,14 @@ type Mutation { input: CreateViewInput! ): CreateViewPayload + """Creates a single `Blueprint`.""" + createBlueprint( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateBlueprintInput! + ): CreateBlueprintPayload + """Creates a single `PermissionsModule`.""" createPermissionsModule( """ @@ -27074,6 +25873,14 @@ type Mutation { input: CreatePermissionsModuleInput! ): CreatePermissionsModulePayload + """Creates a single `EmbeddingChunk`.""" + createEmbeddingChunk( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateEmbeddingChunkInput! + ): CreateEmbeddingChunkPayload + """Creates a single `LimitsModule`.""" createLimitsModule( """ @@ -27090,14 +25897,6 @@ type Mutation { input: CreateProfilesModuleInput! ): CreateProfilesModulePayload - """Creates a single `SecureTableProvision`.""" - createSecureTableProvision( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateSecureTableProvisionInput! - ): CreateSecureTableProvisionPayload - """Creates a single `User`.""" createUser( """ @@ -27202,6 +26001,14 @@ type Mutation { input: CreateSiteInput! ): CreateSitePayload + """Creates a single `BlueprintTemplate`.""" + createBlueprintTemplate( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateBlueprintTemplateInput! + ): CreateBlueprintTemplatePayload + """Creates a single `HierarchyModule`.""" createHierarchyModule( """ @@ -27226,6 +26033,14 @@ type Mutation { input: CreateForeignKeyConstraintInput! ): CreateForeignKeyConstraintPayload + """Creates a single `SecureTableProvision`.""" + createSecureTableProvision( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateSecureTableProvisionInput! + ): CreateSecureTableProvisionPayload + """Creates a single `OrgInvite`.""" createOrgInvite( """ @@ -27258,14 +26073,6 @@ type Mutation { input: CreateUserAuthModuleInput! ): CreateUserAuthModulePayload - """Creates a single `RelationProvision`.""" - createRelationProvision( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateRelationProvisionInput! - ): CreateRelationProvisionPayload - """Creates a single `Field`.""" createField( """ @@ -27282,6 +26089,14 @@ type Mutation { input: CreateMembershipsModuleInput! ): CreateMembershipsModulePayload + """Creates a single `RelationProvision`.""" + createRelationProvision( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateRelationProvisionInput! + ): CreateRelationProvisionPayload + """Updates a single `DefaultIdsModule` using a unique key and a patch.""" updateDefaultIdsModule( """ @@ -27306,6 +26121,14 @@ type Mutation { input: UpdateApiSchemaInput! ): UpdateApiSchemaPayload + """Updates a single `SiteTheme` using a unique key and a patch.""" + updateSiteTheme( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateSiteThemeInput! + ): UpdateSiteThemePayload + """Updates a single `OrgMember` using a unique key and a patch.""" updateOrgMember( """ @@ -27350,22 +26173,6 @@ type Mutation { input: UpdateSecretsModuleInput! ): UpdateSecretsModulePayload - """Updates a single `UuidModule` using a unique key and a patch.""" - updateUuidModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateUuidModuleInput! - ): UpdateUuidModulePayload - - """Updates a single `SiteTheme` using a unique key and a patch.""" - updateSiteTheme( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateSiteThemeInput! - ): UpdateSiteThemePayload - """Updates a single `Store` using a unique key and a patch.""" updateStore( """ @@ -27558,6 +26365,14 @@ type Mutation { input: UpdateCryptoAddressesModuleInput! ): UpdateCryptoAddressesModulePayload + """Updates a single `ConnectedAccount` using a unique key and a patch.""" + updateConnectedAccount( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateConnectedAccountInput! + ): UpdateConnectedAccountPayload + """Updates a single `PhoneNumber` using a unique key and a patch.""" updatePhoneNumber( """ @@ -27582,14 +26397,6 @@ type Mutation { input: UpdateOrgLimitDefaultInput! ): UpdateOrgLimitDefaultPayload - """Updates a single `ConnectedAccount` using a unique key and a patch.""" - updateConnectedAccount( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateConnectedAccountInput! - ): UpdateConnectedAccountPayload - """Updates a single `TableGrant` using a unique key and a patch.""" updateTableGrant( """ @@ -27836,6 +26643,14 @@ type Mutation { input: UpdateAppLevelInput! ): UpdateAppLevelPayload + """Updates a single `DatabaseTransfer` using a unique key and a patch.""" + updateDatabaseTransfer( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateDatabaseTransferInput! + ): UpdateDatabaseTransferPayload + """Updates a single `CryptoAuthModule` using a unique key and a patch.""" updateCryptoAuthModule( """ @@ -27870,6 +26685,14 @@ type Mutation { input: UpdateEmailInput! ): UpdateEmailPayload + """Updates a single `Enum` using a unique key and a patch.""" + updateEnum( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateEnumInput! + ): UpdateEnumPayload + """Updates a single `View` using a unique key and a patch.""" updateView( """ @@ -27878,6 +26701,14 @@ type Mutation { input: UpdateViewInput! ): UpdateViewPayload + """Updates a single `Blueprint` using a unique key and a patch.""" + updateBlueprint( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateBlueprintInput! + ): UpdateBlueprintPayload + """Updates a single `PermissionsModule` using a unique key and a patch.""" updatePermissionsModule( """ @@ -27886,6 +26717,14 @@ type Mutation { input: UpdatePermissionsModuleInput! ): UpdatePermissionsModulePayload + """Updates a single `EmbeddingChunk` using a unique key and a patch.""" + updateEmbeddingChunk( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateEmbeddingChunkInput! + ): UpdateEmbeddingChunkPayload + """Updates a single `LimitsModule` using a unique key and a patch.""" updateLimitsModule( """ @@ -27902,16 +26741,6 @@ type Mutation { input: UpdateProfilesModuleInput! ): UpdateProfilesModulePayload - """ - Updates a single `SecureTableProvision` using a unique key and a patch. - """ - updateSecureTableProvision( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateSecureTableProvisionInput! - ): UpdateSecureTableProvisionPayload - """Updates a single `User` using a unique key and a patch.""" updateUser( """ @@ -28010,6 +26839,14 @@ type Mutation { input: UpdateSiteInput! ): UpdateSitePayload + """Updates a single `BlueprintTemplate` using a unique key and a patch.""" + updateBlueprintTemplate( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateBlueprintTemplateInput! + ): UpdateBlueprintTemplatePayload + """Updates a single `HierarchyModule` using a unique key and a patch.""" updateHierarchyModule( """ @@ -28036,6 +26873,16 @@ type Mutation { input: UpdateForeignKeyConstraintInput! ): UpdateForeignKeyConstraintPayload + """ + Updates a single `SecureTableProvision` using a unique key and a patch. + """ + updateSecureTableProvision( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateSecureTableProvisionInput! + ): UpdateSecureTableProvisionPayload + """Updates a single `OrgInvite` using a unique key and a patch.""" updateOrgInvite( """ @@ -28068,14 +26915,6 @@ type Mutation { input: UpdateUserAuthModuleInput! ): UpdateUserAuthModulePayload - """Updates a single `RelationProvision` using a unique key and a patch.""" - updateRelationProvision( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateRelationProvisionInput! - ): UpdateRelationProvisionPayload - """Updates a single `Field` using a unique key and a patch.""" updateField( """ @@ -28092,6 +26931,14 @@ type Mutation { input: UpdateMembershipsModuleInput! ): UpdateMembershipsModulePayload + """Updates a single `RelationProvision` using a unique key and a patch.""" + updateRelationProvision( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateRelationProvisionInput! + ): UpdateRelationProvisionPayload + """Deletes a single `DefaultIdsModule` using a unique key.""" deleteDefaultIdsModule( """ @@ -28116,6 +26963,14 @@ type Mutation { input: DeleteApiSchemaInput! ): DeleteApiSchemaPayload + """Deletes a single `SiteTheme` using a unique key.""" + deleteSiteTheme( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteSiteThemeInput! + ): DeleteSiteThemePayload + """Deletes a single `OrgMember` using a unique key.""" deleteOrgMember( """ @@ -28156,22 +27011,6 @@ type Mutation { input: DeleteSecretsModuleInput! ): DeleteSecretsModulePayload - """Deletes a single `UuidModule` using a unique key.""" - deleteUuidModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteUuidModuleInput! - ): DeleteUuidModulePayload - - """Deletes a single `SiteTheme` using a unique key.""" - deleteSiteTheme( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteSiteThemeInput! - ): DeleteSiteThemePayload - """Deletes a single `Store` using a unique key.""" deleteStore( """ @@ -28356,6 +27195,14 @@ type Mutation { input: DeleteCryptoAddressesModuleInput! ): DeleteCryptoAddressesModulePayload + """Deletes a single `ConnectedAccount` using a unique key.""" + deleteConnectedAccount( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteConnectedAccountInput! + ): DeleteConnectedAccountPayload + """Deletes a single `PhoneNumber` using a unique key.""" deletePhoneNumber( """ @@ -28380,14 +27227,6 @@ type Mutation { input: DeleteOrgLimitDefaultInput! ): DeleteOrgLimitDefaultPayload - """Deletes a single `ConnectedAccount` using a unique key.""" - deleteConnectedAccount( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteConnectedAccountInput! - ): DeleteConnectedAccountPayload - """Deletes a single `TableGrant` using a unique key.""" deleteTableGrant( """ @@ -28628,6 +27467,14 @@ type Mutation { input: DeleteAppLevelInput! ): DeleteAppLevelPayload + """Deletes a single `DatabaseTransfer` using a unique key.""" + deleteDatabaseTransfer( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteDatabaseTransferInput! + ): DeleteDatabaseTransferPayload + """Deletes a single `CryptoAuthModule` using a unique key.""" deleteCryptoAuthModule( """ @@ -28660,6 +27507,14 @@ type Mutation { input: DeleteEmailInput! ): DeleteEmailPayload + """Deletes a single `Enum` using a unique key.""" + deleteEnum( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteEnumInput! + ): DeleteEnumPayload + """Deletes a single `View` using a unique key.""" deleteView( """ @@ -28668,6 +27523,14 @@ type Mutation { input: DeleteViewInput! ): DeleteViewPayload + """Deletes a single `Blueprint` using a unique key.""" + deleteBlueprint( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteBlueprintInput! + ): DeleteBlueprintPayload + """Deletes a single `PermissionsModule` using a unique key.""" deletePermissionsModule( """ @@ -28676,6 +27539,14 @@ type Mutation { input: DeletePermissionsModuleInput! ): DeletePermissionsModulePayload + """Deletes a single `EmbeddingChunk` using a unique key.""" + deleteEmbeddingChunk( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteEmbeddingChunkInput! + ): DeleteEmbeddingChunkPayload + """Deletes a single `LimitsModule` using a unique key.""" deleteLimitsModule( """ @@ -28692,14 +27563,6 @@ type Mutation { input: DeleteProfilesModuleInput! ): DeleteProfilesModulePayload - """Deletes a single `SecureTableProvision` using a unique key.""" - deleteSecureTableProvision( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteSecureTableProvisionInput! - ): DeleteSecureTableProvisionPayload - """Deletes a single `User` using a unique key.""" deleteUser( """ @@ -28796,6 +27659,14 @@ type Mutation { input: DeleteSiteInput! ): DeleteSitePayload + """Deletes a single `BlueprintTemplate` using a unique key.""" + deleteBlueprintTemplate( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteBlueprintTemplateInput! + ): DeleteBlueprintTemplatePayload + """Deletes a single `HierarchyModule` using a unique key.""" deleteHierarchyModule( """ @@ -28820,6 +27691,14 @@ type Mutation { input: DeleteForeignKeyConstraintInput! ): DeleteForeignKeyConstraintPayload + """Deletes a single `SecureTableProvision` using a unique key.""" + deleteSecureTableProvision( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteSecureTableProvisionInput! + ): DeleteSecureTableProvisionPayload + """Deletes a single `OrgInvite` using a unique key.""" deleteOrgInvite( """ @@ -28852,14 +27731,6 @@ type Mutation { input: DeleteUserAuthModuleInput! ): DeleteUserAuthModulePayload - """Deletes a single `RelationProvision` using a unique key.""" - deleteRelationProvision( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteRelationProvisionInput! - ): DeleteRelationProvisionPayload - """Deletes a single `Field` using a unique key.""" deleteField( """ @@ -28875,6 +27746,38 @@ type Mutation { """ input: DeleteMembershipsModuleInput! ): DeleteMembershipsModulePayload + + """Deletes a single `RelationProvision` using a unique key.""" + deleteRelationProvision( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteRelationProvisionInput! + ): DeleteRelationProvisionPayload +} + +"""The output of our `sendAccountDeletionEmail` mutation.""" +type SendAccountDeletionEmailPayload { + """ + 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 + result: Boolean + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `sendAccountDeletionEmail` mutation.""" +input SendAccountDeletionEmailInput { + """ + 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 output of our `signOut` mutation.""" @@ -28900,8 +27803,8 @@ input SignOutInput { clientMutationId: String } -"""The output of our `sendAccountDeletionEmail` mutation.""" -type SendAccountDeletionEmailPayload { +"""The output of our `acceptDatabaseTransfer` mutation.""" +type AcceptDatabaseTransferPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. @@ -28915,22 +27818,24 @@ type SendAccountDeletionEmailPayload { query: Query } -"""All input for the `sendAccountDeletionEmail` mutation.""" -input SendAccountDeletionEmailInput { +"""All input for the `acceptDatabaseTransfer` mutation.""" +input AcceptDatabaseTransferInput { """ 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 + transferId: UUID } -"""The output of our `checkPassword` mutation.""" -type CheckPasswordPayload { +"""The output of our `cancelDatabaseTransfer` mutation.""" +type CancelDatabaseTransferPayload { """ 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 + result: Boolean """ Our root query field type. Allows us to run any query from our mutation payload. @@ -28938,18 +27843,18 @@ type CheckPasswordPayload { query: Query } -"""All input for the `checkPassword` mutation.""" -input CheckPasswordInput { +"""All input for the `cancelDatabaseTransfer` mutation.""" +input CancelDatabaseTransferInput { """ 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 - password: String + transferId: UUID } -"""The output of our `submitInviteCode` mutation.""" -type SubmitInviteCodePayload { +"""The output of our `rejectDatabaseTransfer` mutation.""" +type RejectDatabaseTransferPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. @@ -28963,18 +27868,18 @@ type SubmitInviteCodePayload { query: Query } -"""All input for the `submitInviteCode` mutation.""" -input SubmitInviteCodeInput { +"""All input for the `rejectDatabaseTransfer` mutation.""" +input RejectDatabaseTransferInput { """ 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 - token: String + transferId: UUID } -"""The output of our `submitOrgInviteCode` mutation.""" -type SubmitOrgInviteCodePayload { +"""The output of our `submitInviteCode` mutation.""" +type SubmitInviteCodePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. @@ -28988,8 +27893,8 @@ type SubmitOrgInviteCodePayload { query: Query } -"""All input for the `submitOrgInviteCode` mutation.""" -input SubmitOrgInviteCodeInput { +"""All input for the `submitInviteCode` mutation.""" +input SubmitInviteCodeInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -28998,13 +27903,14 @@ input SubmitOrgInviteCodeInput { token: String } -"""The output of our `freezeObjects` mutation.""" -type FreezeObjectsPayload { +"""The output of our `submitOrgInviteCode` mutation.""" +type SubmitOrgInviteCodePayload { """ 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 + result: Boolean """ Our root query field type. Allows us to run any query from our mutation payload. @@ -29012,19 +27918,18 @@ type FreezeObjectsPayload { query: Query } -"""All input for the `freezeObjects` mutation.""" -input FreezeObjectsInput { +"""All input for the `submitOrgInviteCode` mutation.""" +input SubmitOrgInviteCodeInput { """ 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 - databaseId: UUID - id: UUID + token: String } -"""The output of our `initEmptyRepo` mutation.""" -type InitEmptyRepoPayload { +"""The output of our `checkPassword` mutation.""" +type CheckPasswordPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. @@ -29037,15 +27942,14 @@ type InitEmptyRepoPayload { query: Query } -"""All input for the `initEmptyRepo` mutation.""" -input InitEmptyRepoInput { +"""All input for the `checkPassword` mutation.""" +input CheckPasswordInput { """ 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 - dbId: UUID - storeId: UUID + password: String } """The output of our `confirmDeleteAccount` mutation.""" @@ -29126,14 +28030,13 @@ input VerifyEmailInput { token: String } -"""The output of our `removeNodeAtPath` mutation.""" -type RemoveNodeAtPathPayload { +"""The output of our `freezeObjects` mutation.""" +type FreezeObjectsPayload { """ 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 - result: UUID """ Our root query field type. Allows us to run any query from our mutation payload. @@ -29141,26 +28044,24 @@ type RemoveNodeAtPathPayload { query: Query } -"""All input for the `removeNodeAtPath` mutation.""" -input RemoveNodeAtPathInput { +"""All input for the `freezeObjects` mutation.""" +input FreezeObjectsInput { """ 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 - dbId: UUID - root: UUID - path: [String] + databaseId: UUID + id: UUID } -"""The output of our `resetPassword` mutation.""" -type ResetPasswordPayload { +"""The output of our `initEmptyRepo` mutation.""" +type InitEmptyRepoPayload { """ 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 - result: Boolean """ Our root query field type. Allows us to run any query from our mutation payload. @@ -29168,26 +28069,25 @@ type ResetPasswordPayload { query: Query } -"""All input for the `resetPassword` mutation.""" -input ResetPasswordInput { +"""All input for the `initEmptyRepo` mutation.""" +input InitEmptyRepoInput { """ 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 - roleId: UUID - resetToken: String - newPassword: String + dbId: UUID + storeId: UUID } -"""The output of our `bootstrapUser` mutation.""" -type BootstrapUserPayload { +"""The output of our `constructBlueprint` mutation.""" +type ConstructBlueprintPayload { """ 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 - result: [BootstrapUserRecord] + result: JSON """ Our root query field type. Allows us to run any query from our mutation payload. @@ -29195,65 +28095,52 @@ type BootstrapUserPayload { query: Query } -type BootstrapUserRecord { - outUserId: UUID - outEmail: String - outUsername: String - outDisplayName: String - outIsAdmin: Boolean - outIsOwner: Boolean - outIsSudo: Boolean - outApiKey: String - - """ - TRGM similarity when searching `outEmail`. Returns null when no trgm search filter is active. - """ - outEmailTrgmSimilarity: Float - +"""All input for the `constructBlueprint` mutation.""" +input ConstructBlueprintInput { """ - TRGM similarity when searching `outUsername`. Returns null when no trgm search filter is active. - """ - outUsernameTrgmSimilarity: Float - - """ - TRGM similarity when searching `outDisplayName`. Returns null when no trgm search filter is active. + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - outDisplayNameTrgmSimilarity: Float + clientMutationId: String + blueprintId: UUID + schemaId: UUID +} +"""The output of our `resetPassword` mutation.""" +type ResetPasswordPayload { """ - TRGM similarity when searching `outApiKey`. Returns null when no trgm search filter is active. + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - outApiKeyTrgmSimilarity: Float + clientMutationId: String + result: Boolean """ - Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. + Our root query field type. Allows us to run any query from our mutation payload. """ - searchScore: Float + query: Query } -"""All input for the `bootstrapUser` mutation.""" -input BootstrapUserInput { +"""All input for the `resetPassword` mutation.""" +input ResetPasswordInput { """ 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 - targetDatabaseId: UUID - password: String - isAdmin: Boolean - isOwner: Boolean - username: String - displayName: String - returnApiKey: Boolean + roleId: UUID + resetToken: String + newPassword: String } -"""The output of our `setFieldOrder` mutation.""" -type SetFieldOrderPayload { +"""The output of our `removeNodeAtPath` mutation.""" +type RemoveNodeAtPathPayload { """ 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 + result: UUID """ Our root query field type. Allows us to run any query from our mutation payload. @@ -29261,14 +28148,16 @@ type SetFieldOrderPayload { query: Query } -"""All input for the `setFieldOrder` mutation.""" -input SetFieldOrderInput { +"""All input for the `removeNodeAtPath` mutation.""" +input RemoveNodeAtPathInput { """ 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 - fieldIds: [UUID] + dbId: UUID + root: UUID + path: [String] } """The output of our `setDataAtPath` mutation.""" @@ -29328,14 +28217,14 @@ input SetPropsAndCommitInput { data: JSON } -"""The output of our `provisionDatabaseWithUser` mutation.""" -type ProvisionDatabaseWithUserPayload { +"""The output of our `copyTemplateToBlueprint` mutation.""" +type CopyTemplateToBlueprintPayload { """ 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 - result: [ProvisionDatabaseWithUserRecord] + result: UUID """ Our root query field type. Allows us to run any query from our mutation payload. @@ -29343,19 +28232,38 @@ type ProvisionDatabaseWithUserPayload { query: Query } -type ProvisionDatabaseWithUserRecord { - outDatabaseId: UUID - outApiKey: String +"""All input for the `copyTemplateToBlueprint` mutation.""" +input CopyTemplateToBlueprintInput { + """ + 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 + templateId: UUID + databaseId: UUID + ownerId: UUID + nameOverride: String + displayNameOverride: String +} +"""The output of our `provisionDatabaseWithUser` mutation.""" +type ProvisionDatabaseWithUserPayload { """ - TRGM similarity when searching `outApiKey`. Returns null when no trgm search filter is active. + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - outApiKeyTrgmSimilarity: Float + clientMutationId: String + result: [ProvisionDatabaseWithUserRecord] """ - Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. + Our root query field type. Allows us to run any query from our mutation payload. """ - searchScore: Float + query: Query +} + +type ProvisionDatabaseWithUserRecord { + outDatabaseId: UUID + outApiKey: String } """All input for the `provisionDatabaseWithUser` mutation.""" @@ -29372,6 +28280,72 @@ input ProvisionDatabaseWithUserInput { pOptions: JSON } +"""The output of our `bootstrapUser` mutation.""" +type BootstrapUserPayload { + """ + 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 + result: [BootstrapUserRecord] + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +type BootstrapUserRecord { + outUserId: UUID + outEmail: String + outUsername: String + outDisplayName: String + outIsAdmin: Boolean + outIsOwner: Boolean + outIsSudo: Boolean + outApiKey: String +} + +"""All input for the `bootstrapUser` mutation.""" +input BootstrapUserInput { + """ + 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 + targetDatabaseId: UUID + password: String + isAdmin: Boolean + isOwner: Boolean + username: String + displayName: String + returnApiKey: Boolean +} + +"""The output of our `setFieldOrder` mutation.""" +type SetFieldOrderPayload { + """ + 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 + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `setFieldOrder` mutation.""" +input SetFieldOrderInput { + """ + 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 + fieldIds: [UUID] +} + """The output of our `insertNodeAtPath` mutation.""" type InsertNodeAtPathPayload { """ @@ -29515,16 +28489,6 @@ type SignInOneTimeTokenRecord { accessTokenExpiresAt: Datetime isVerified: Boolean totpEnabled: Boolean - - """ - TRGM similarity when searching `accessToken`. Returns null when no trgm search filter is active. - """ - accessTokenTrgmSimilarity: Float - - """ - Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. - """ - searchScore: Float } """All input for the `signInOneTimeToken` mutation.""" @@ -29622,16 +28586,6 @@ type SignInRecord { accessTokenExpiresAt: Datetime isVerified: Boolean totpEnabled: Boolean - - """ - TRGM similarity when searching `accessToken`. Returns null when no trgm search filter is active. - """ - accessTokenTrgmSimilarity: Float - - """ - Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. - """ - searchScore: Float } """All input for the `signIn` mutation.""" @@ -29670,16 +28624,6 @@ type SignUpRecord { accessTokenExpiresAt: Datetime isVerified: Boolean totpEnabled: Boolean - - """ - TRGM similarity when searching `accessToken`. Returns null when no trgm search filter is active. - """ - accessTokenTrgmSimilarity: Float - - """ - Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. - """ - searchScore: Float } """All input for the `signUp` mutation.""" @@ -29724,13 +28668,14 @@ input OneTimeTokenInput { rememberMe: Boolean } -"""The output of our `forgotPassword` mutation.""" -type ForgotPasswordPayload { +"""The output of our `sendVerificationEmail` mutation.""" +type SendVerificationEmailPayload { """ 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 + result: Boolean """ Our root query field type. Allows us to run any query from our mutation payload. @@ -29738,8 +28683,8 @@ type ForgotPasswordPayload { query: Query } -"""All input for the `forgotPassword` mutation.""" -input ForgotPasswordInput { +"""All input for the `sendVerificationEmail` mutation.""" +input SendVerificationEmailInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -29748,14 +28693,13 @@ input ForgotPasswordInput { email: ConstructiveInternalTypeEmail } -"""The output of our `sendVerificationEmail` mutation.""" -type SendVerificationEmailPayload { +"""The output of our `forgotPassword` mutation.""" +type ForgotPasswordPayload { """ 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 - result: Boolean """ Our root query field type. Allows us to run any query from our mutation payload. @@ -29763,8 +28707,8 @@ type SendVerificationEmailPayload { query: Query } -"""All input for the `sendVerificationEmail` mutation.""" -input SendVerificationEmailInput { +"""All input for the `forgotPassword` mutation.""" +input ForgotPasswordInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -29840,26 +28784,6 @@ type Session { csrfSecret: String createdAt: Datetime updatedAt: Datetime - - """ - TRGM similarity when searching `uagent`. Returns null when no trgm search filter is active. - """ - uagentTrgmSimilarity: Float - - """ - TRGM similarity when searching `fingerprintMode`. Returns null when no trgm search filter is active. - """ - fingerprintModeTrgmSimilarity: Float - - """ - TRGM similarity when searching `csrfSecret`. Returns null when no trgm search filter is active. - """ - csrfSecretTrgmSimilarity: Float - - """ - Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. - """ - searchScore: Float } """All input for the `verifyPassword` mutation.""" @@ -30031,6 +28955,58 @@ input ApiSchemaInput { apiId: UUID! } +"""The output of our create `SiteTheme` mutation.""" +type CreateSiteThemePayload { + """ + 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 `SiteTheme` that was created by this mutation.""" + siteTheme: SiteTheme + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `SiteTheme`. May be used by Relay 1.""" + siteThemeEdge( + """The method to use when ordering `SiteTheme`.""" + orderBy: [SiteThemeOrderBy!]! = [PRIMARY_KEY_ASC] + ): SiteThemeEdge +} + +"""All input for the create `SiteTheme` mutation.""" +input CreateSiteThemeInput { + """ + 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 `SiteTheme` to be created by this mutation.""" + siteTheme: SiteThemeInput! +} + +"""An input for mutations affecting `SiteTheme`""" +input SiteThemeInput { + """Unique identifier for this theme record""" + id: UUID + + """Reference to the metaschema database""" + databaseId: UUID! + + """Site this theme belongs to""" + siteId: UUID! + + """ + JSONB object containing theme tokens (colors, typography, spacing, etc.) + """ + theme: JSON! +} + """The output of our create `OrgMember` mutation.""" type CreateOrgMemberPayload { """ @@ -30259,102 +29235,6 @@ input SecretsModuleInput { tableName: String } -"""The output of our create `UuidModule` mutation.""" -type CreateUuidModulePayload { - """ - 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 `UuidModule` that was created by this mutation.""" - uuidModule: UuidModule - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `UuidModule`. May be used by Relay 1.""" - uuidModuleEdge( - """The method to use when ordering `UuidModule`.""" - orderBy: [UuidModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): UuidModuleEdge -} - -"""All input for the create `UuidModule` mutation.""" -input CreateUuidModuleInput { - """ - 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 `UuidModule` to be created by this mutation.""" - uuidModule: UuidModuleInput! -} - -"""An input for mutations affecting `UuidModule`""" -input UuidModuleInput { - id: UUID - databaseId: UUID! - schemaId: UUID - uuidFunction: String - uuidSeed: String! -} - -"""The output of our create `SiteTheme` mutation.""" -type CreateSiteThemePayload { - """ - 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 `SiteTheme` that was created by this mutation.""" - siteTheme: SiteTheme - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `SiteTheme`. May be used by Relay 1.""" - siteThemeEdge( - """The method to use when ordering `SiteTheme`.""" - orderBy: [SiteThemeOrderBy!]! = [PRIMARY_KEY_ASC] - ): SiteThemeEdge -} - -"""All input for the create `SiteTheme` mutation.""" -input CreateSiteThemeInput { - """ - 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 `SiteTheme` to be created by this mutation.""" - siteTheme: SiteThemeInput! -} - -"""An input for mutations affecting `SiteTheme`""" -input SiteThemeInput { - """Unique identifier for this theme record""" - id: UUID - - """Reference to the metaschema database""" - databaseId: UUID! - - """Site this theme belongs to""" - siteId: UUID! - - """ - JSONB object containing theme tokens (colors, typography, spacing, etc.) - """ - theme: JSON! -} - """The output of our create `Store` mutation.""" type CreateStorePayload { """ @@ -31466,6 +30346,61 @@ input CryptoAddressesModuleInput { cryptoNetwork: String } +"""The output of our create `ConnectedAccount` mutation.""" +type CreateConnectedAccountPayload { + """ + 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 `ConnectedAccount` that was created by this mutation.""" + connectedAccount: ConnectedAccount + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `ConnectedAccount`. May be used by Relay 1.""" + connectedAccountEdge( + """The method to use when ordering `ConnectedAccount`.""" + orderBy: [ConnectedAccountOrderBy!]! = [PRIMARY_KEY_ASC] + ): ConnectedAccountEdge +} + +"""All input for the create `ConnectedAccount` mutation.""" +input CreateConnectedAccountInput { + """ + 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 `ConnectedAccount` to be created by this mutation.""" + connectedAccount: ConnectedAccountInput! +} + +"""An input for mutations affecting `ConnectedAccount`""" +input ConnectedAccountInput { + id: UUID + ownerId: UUID + + """The service used, e.g. `twitter` or `github`.""" + service: String! + + """A unique identifier for the user within the service""" + identifier: String! + + """Additional profile details extracted from this login method""" + details: JSON! + + """Whether this connected account has been verified""" + isVerified: Boolean + createdAt: Datetime + updatedAt: Datetime +} + """The output of our create `PhoneNumber` mutation.""" type CreatePhoneNumberPayload { """ @@ -31613,61 +30548,6 @@ input OrgLimitDefaultInput { max: Int } -"""The output of our create `ConnectedAccount` mutation.""" -type CreateConnectedAccountPayload { - """ - 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 `ConnectedAccount` that was created by this mutation.""" - connectedAccount: ConnectedAccount - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `ConnectedAccount`. May be used by Relay 1.""" - connectedAccountEdge( - """The method to use when ordering `ConnectedAccount`.""" - orderBy: [ConnectedAccountOrderBy!]! = [PRIMARY_KEY_ASC] - ): ConnectedAccountEdge -} - -"""All input for the create `ConnectedAccount` mutation.""" -input CreateConnectedAccountInput { - """ - 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 `ConnectedAccount` to be created by this mutation.""" - connectedAccount: ConnectedAccountInput! -} - -"""An input for mutations affecting `ConnectedAccount`""" -input ConnectedAccountInput { - id: UUID - ownerId: UUID - - """The service used, e.g. `twitter` or `github`.""" - service: String! - - """A unique identifier for the user within the service""" - identifier: String! - - """Additional profile details extracted from this login method""" - details: JSON! - - """Whether this connected account has been verified""" - isVerified: Boolean - createdAt: Datetime - updatedAt: Datetime -} - """The output of our create `TableGrant` mutation.""" type CreateTableGrantPayload { """ @@ -31860,8 +30740,10 @@ input OrgChartEdgeGrantInput { """User ID of the manager being assigned; NULL for top-level positions""" parentId: UUID - """User ID of the admin who performed this grant or revocation""" - grantorId: UUID! + """ + User ID of the admin who performed this grant or revocation; NULL if grantor was deleted + """ + grantorId: UUID """TRUE to add/update the edge, FALSE to remove it""" isGrant: Boolean @@ -33212,7 +32094,7 @@ input AuditLogInput { """ event: String! - """User who performed the authentication action""" + """User who performed the authentication action; NULL if user was deleted""" actorId: UUID """Request origin (domain) where the auth event occurred""" @@ -33331,6 +32213,59 @@ input SqlMigrationInput { actorId: UUID } +"""The output of our create `DatabaseTransfer` mutation.""" +type CreateDatabaseTransferPayload { + """ + 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 `DatabaseTransfer` that was created by this mutation.""" + databaseTransfer: DatabaseTransfer + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `DatabaseTransfer`. May be used by Relay 1.""" + databaseTransferEdge( + """The method to use when ordering `DatabaseTransfer`.""" + orderBy: [DatabaseTransferOrderBy!]! = [PRIMARY_KEY_ASC] + ): DatabaseTransferEdge +} + +"""All input for the create `DatabaseTransfer` mutation.""" +input CreateDatabaseTransferInput { + """ + 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 `DatabaseTransfer` to be created by this mutation.""" + databaseTransfer: DatabaseTransferInput! +} + +"""An input for mutations affecting `DatabaseTransfer`""" +input DatabaseTransferInput { + id: UUID + databaseId: UUID! + targetOwnerId: UUID! + sourceApproved: Boolean + targetApproved: Boolean + sourceApprovedAt: Datetime + targetApprovedAt: Datetime + status: String + initiatedBy: UUID! + notes: String + expiresAt: Datetime + createdAt: Datetime + updatedAt: Datetime + completedAt: Datetime +} + """The output of our create `CryptoAuthModule` mutation.""" type CreateCryptoAuthModulePayload { """ @@ -33564,6 +32499,57 @@ input EmailInput { updatedAt: Datetime } +"""The output of our create `Enum` mutation.""" +type CreateEnumPayload { + """ + 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 `Enum` that was created by this mutation.""" + enum: Enum + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Enum`. May be used by Relay 1.""" + enumEdge( + """The method to use when ordering `Enum`.""" + orderBy: [EnumOrderBy!]! = [PRIMARY_KEY_ASC] + ): EnumEdge +} + +"""All input for the create `Enum` mutation.""" +input CreateEnumInput { + """ + 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 `Enum` to be created by this mutation.""" + enum: EnumInput! +} + +"""An input for mutations affecting `Enum`""" +input EnumInput { + id: UUID + databaseId: UUID! + schemaId: UUID! + name: String! + label: String + description: String + values: [String] + smartTags: JSON + category: ObjectCategory + module: String + scope: Int + tags: [String] +} + """The output of our create `View` mutation.""" type CreateViewPayload { """ @@ -33619,6 +32605,115 @@ input ViewInput { tags: [String] } +"""The output of our create `Blueprint` mutation.""" +type CreateBlueprintPayload { + """ + 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 `Blueprint` that was created by this mutation.""" + blueprint: Blueprint + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Blueprint`. May be used by Relay 1.""" + blueprintEdge( + """The method to use when ordering `Blueprint`.""" + orderBy: [BlueprintOrderBy!]! = [PRIMARY_KEY_ASC] + ): BlueprintEdge +} + +"""All input for the create `Blueprint` mutation.""" +input CreateBlueprintInput { + """ + 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 `Blueprint` to be created by this mutation.""" + blueprint: BlueprintInput! +} + +"""An input for mutations affecting `Blueprint`""" +input BlueprintInput { + """Unique identifier for this blueprint.""" + id: UUID + + """The user who owns this blueprint.""" + ownerId: UUID! + + """ + The database this blueprint is scoped to. Tables created by construct_blueprint() are provisioned in this database. + """ + databaseId: UUID! + + """Machine-readable name for the blueprint. Must be unique per database.""" + name: String! + + """Human-readable display name for the blueprint.""" + displayName: String! + + """Optional description of the blueprint.""" + description: String + + """ + The blueprint definition as a JSONB document. Same format as blueprint_template.definition: contains tables[] (with nodes[], fields[], grants[], policies[] using $type) and relations[] (using $type). This is a mutable copy that the owner can customize before executing. + """ + definition: JSON! + + """ + If this blueprint was created by copying a template, the ID of the source template. NULL if built from scratch. + """ + templateId: UUID + + """ + Execution state of the blueprint. draft: not yet executed (definition can still be modified). constructed: successfully executed via construct_blueprint(). failed: execution failed (see error_details). Defaults to draft. + """ + status: String + + """ + Timestamp when construct_blueprint() successfully completed. NULL until constructed. + """ + constructedAt: Datetime + + """ + Error message from the most recent failed construct_blueprint() attempt. NULL unless status is failed. + """ + errorDetails: String + + """ + Mapping of ref names to created table UUIDs, populated by construct_blueprint() after successful execution. Format: {"products": "uuid", "categories": "uuid", ...}. Defaults to empty object. + """ + refMap: JSON + + """ + Immutable snapshot of the definition at construct-time. Preserved so the exact definition that was executed is recorded even if the user later modifies the definition for re-execution. NULL until constructed. + """ + constructedDefinition: JSON + + """ + UUIDv5 Merkle root hash of the definition. Computed automatically via trigger from the ordered table_hashes. Used for content-addressable deduplication and provenance tracking. Backend-computed — clients should never set this directly. + """ + definitionHash: UUID + + """ + JSONB map of table ref names to their individual UUIDv5 content hashes. Each table hash is computed from the canonical jsonb::text of the table entry. Enables structural comparison at the table level across blueprints and templates. Backend-computed via trigger. + """ + tableHashes: JSON + + """Timestamp when this blueprint was created.""" + createdAt: Datetime + + """Timestamp when this blueprint was last modified.""" + updatedAt: Datetime +} + """The output of our create `PermissionsModule` mutation.""" type CreatePermissionsModulePayload { """ @@ -33675,6 +32770,63 @@ input PermissionsModuleInput { getMaskByName: String } +"""The output of our create `EmbeddingChunk` mutation.""" +type CreateEmbeddingChunkPayload { + """ + 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 `EmbeddingChunk` that was created by this mutation.""" + embeddingChunk: EmbeddingChunk + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `EmbeddingChunk`. May be used by Relay 1.""" + embeddingChunkEdge( + """The method to use when ordering `EmbeddingChunk`.""" + orderBy: [EmbeddingChunkOrderBy!]! = [PRIMARY_KEY_ASC] + ): EmbeddingChunkEdge +} + +"""All input for the create `EmbeddingChunk` mutation.""" +input CreateEmbeddingChunkInput { + """ + 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 `EmbeddingChunk` to be created by this mutation.""" + embeddingChunk: EmbeddingChunkInput! +} + +"""An input for mutations affecting `EmbeddingChunk`""" +input EmbeddingChunkInput { + id: UUID + databaseId: UUID + tableId: UUID! + embeddingFieldId: UUID + chunksTableId: UUID + chunksTableName: String + contentFieldName: String + dimensions: Int + metric: String + chunkSize: Int + chunkOverlap: Int + chunkStrategy: String + metadataFields: JSON + enqueueChunkingJob: Boolean + chunkingTaskName: String + parentFkFieldId: UUID + createdAt: Datetime + updatedAt: Datetime +} + """The output of our create `LimitsModule` mutation.""" type CreateLimitsModulePayload { """ @@ -33789,130 +32941,6 @@ input ProfilesModuleInput { prefix: String } -"""The output of our create `SecureTableProvision` mutation.""" -type CreateSecureTableProvisionPayload { - """ - 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 `SecureTableProvision` that was created by this mutation.""" - secureTableProvision: SecureTableProvision - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `SecureTableProvision`. May be used by Relay 1.""" - secureTableProvisionEdge( - """The method to use when ordering `SecureTableProvision`.""" - orderBy: [SecureTableProvisionOrderBy!]! = [PRIMARY_KEY_ASC] - ): SecureTableProvisionEdge -} - -"""All input for the create `SecureTableProvision` mutation.""" -input CreateSecureTableProvisionInput { - """ - 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 `SecureTableProvision` to be created by this mutation.""" - secureTableProvision: SecureTableProvisionInput! -} - -"""An input for mutations affecting `SecureTableProvision`""" -input SecureTableProvisionInput { - """Unique identifier for this provision row.""" - id: UUID - - """The database this provision belongs to. Required.""" - databaseId: UUID! - - """ - Target schema for the table. Defaults to uuid_nil(); the trigger resolves this to the app_public schema if not explicitly provided. - """ - schemaId: UUID - - """ - Target table to provision. Defaults to uuid_nil(); the trigger creates or resolves the table via table_name if not explicitly provided. - """ - tableId: UUID - - """ - Name of the target table. Used to create or look up the table when table_id is not provided. If omitted, it is backfilled from the resolved table. - """ - tableName: String - - """ - Which generator to invoke for field creation. One of: DataId, DataDirectOwner, DataEntityMembership, DataOwnershipInEntity, DataTimestamps, DataPeoplestamps, DataPublishable, DataSoftDelete. NULL means no field creation — the row only provisions grants and/or policies. - """ - nodeType: String - - """ - If true and Row Level Security is not yet enabled on the target table, enable it. Automatically set to true by the trigger when policy_type is provided. Defaults to true. - """ - useRls: Boolean - - """ - Configuration passed to the generator function for field creation (only used when node_type is set). Known keys include: field_name (text, default 'id') for DataId, owner_field_name (text, default 'owner_id') for DataDirectOwner/DataOwnershipInEntity, entity_field_name (text, default 'entity_id') for DataEntityMembership/DataOwnershipInEntity, include_id (boolean, default true) for most node_types, include_user_fk (boolean, default true) to add FK to users table. Defaults to '{}'. - """ - nodeData: JSON - - """ - JSON array of field definition objects to create on the target table. Each object has keys: "name" (text, required), "type" (text, required), "default" (text, optional), "is_required" (boolean, optional, defaults to false), "min" (float, optional), "max" (float, optional), "regexp" (text, optional). min/max generate CHECK constraints: for text/citext they constrain character_length, for integer/float types they constrain the value. regexp generates a CHECK (col ~ pattern) constraint for text/citext. Fields are created via metaschema.create_field() after any node_type generator runs, and their IDs are appended to out_fields. Example: [{"name":"username","type":"citext","max":256,"regexp":"^[a-z0-9_]+$"},{"name":"score","type":"integer","min":0,"max":100}]. Defaults to '[]' (no additional fields). - """ - fields: JSON - - """ - Database roles to grant privileges to. Supports multiple roles, e.g. ARRAY['authenticated', 'admin']. Each role receives all privileges defined in grant_privileges. Defaults to ARRAY['authenticated']. - """ - grantRoles: [String] - - """ - Array of [privilege, columns] tuples defining table grants. Examples: [["select","*"],["insert","*"]] for full access, or [["update",["name","bio"]]] for column-level grants. "*" means all columns; an array means column-level grant. Defaults to '[]' (no grants). The trigger validates this is a proper jsonb array. - """ - grantPrivileges: JSON - - """ - Policy generator type, e.g. 'AuthzEntityMembership', 'AuthzMembership', 'AuthzAllowAll'. NULL means no policy is created. When set, the trigger automatically enables RLS on the target table. - """ - policyType: String - - """ - Privileges the policy applies to, e.g. ARRAY['select','update']. NULL means privileges are derived from the grant_privileges verbs. - """ - policyPrivileges: [String] - - """ - Role the policy targets. NULL means it falls back to the first role in grant_roles. - """ - policyRole: String - - """ - Whether the policy is PERMISSIVE (true) or RESTRICTIVE (false). Defaults to true. - """ - policyPermissive: Boolean - - """ - Custom suffix for the generated policy name. When NULL and policy_type is set, the trigger auto-derives a suffix from policy_type by stripping the Authz prefix and underscoring the remainder (e.g. AuthzDirectOwner becomes direct_owner, producing policy names like auth_sel_direct_owner). When explicitly set, the value is passed through as-is to metaschema.create_policy name parameter. This ensures multiple policies on the same table do not collide (e.g. AuthzDirectOwner + AuthzPublishable each get unique names). - """ - policyName: String - - """ - Opaque configuration passed through to metaschema.create_policy(). Structure varies by policy_type and is not interpreted by this trigger. Defaults to '{}'. - """ - policyData: JSON - - """ - Output column populated by the trigger after field creation. Contains the UUIDs of the metaschema fields created on the target table by this provision row's generator. NULL when node_type is NULL or before the trigger runs. Callers should not set this directly. - """ - outFields: [UUID] -} - """The output of our create `User` mutation.""" type CreateUserPayload { """ @@ -34676,6 +33704,130 @@ input SiteInput { dbname: String } +"""The output of our create `BlueprintTemplate` mutation.""" +type CreateBlueprintTemplatePayload { + """ + 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 `BlueprintTemplate` that was created by this mutation.""" + blueprintTemplate: BlueprintTemplate + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `BlueprintTemplate`. May be used by Relay 1.""" + blueprintTemplateEdge( + """The method to use when ordering `BlueprintTemplate`.""" + orderBy: [BlueprintTemplateOrderBy!]! = [PRIMARY_KEY_ASC] + ): BlueprintTemplateEdge +} + +"""All input for the create `BlueprintTemplate` mutation.""" +input CreateBlueprintTemplateInput { + """ + 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 `BlueprintTemplate` to be created by this mutation.""" + blueprintTemplate: BlueprintTemplateInput! +} + +"""An input for mutations affecting `BlueprintTemplate`""" +input BlueprintTemplateInput { + """Unique identifier for this template.""" + id: UUID + + """ + Machine-readable name for the template (e.g. e_commerce_basic). Must be unique per owner + version. + """ + name: String! + + """Semantic version string. Defaults to 1.0.0.""" + version: String + + """Human-readable display name for the template (e.g. E-Commerce Basic).""" + displayName: String! + + """Optional description of what the template provisions.""" + description: String + + """The user who created or published this template.""" + ownerId: UUID! + + """ + Access control for the template. private: only the owner can see and copy. public: anyone can browse and copy from the marketplace. Defaults to private. + """ + visibility: String + + """ + Domain categories for marketplace browsing (e.g. e-commerce, healthcare, social). Defaults to empty array. + """ + categories: [String] + + """ + Freeform tags for search and discovery (e.g. products, orders, payments). Defaults to empty array. + """ + tags: [String] + + """ + The blueprint definition as a JSONB document. Contains tables[] (each with nodes[] for data behaviors via string shorthand or {"$type": "...", "data": {...}} objects, fields[], grants[], and policies[] using {"$type": "...", "data": {...}}), and relations[] (using $type for relation_type with junction config in data). This is the core payload that gets copied into a blueprint for execution. + """ + definition: JSON! + + """ + Version of the definition format schema. Used for forward-compatible parsing. Defaults to 1. + """ + definitionSchemaVersion: String + + """ + Provenance of the template. user: manually created by a human. system: official curated template from the Constructive team. agent: AI-generated. Defaults to user. + """ + source: String + + """ + Complexity indicator for marketplace filtering. simple: 3-5 tables. moderate: 6-12 tables. complex: 13+ tables. NULL if not categorized. + """ + complexity: String + + """ + Denormalized count of how many blueprints have been created from this template via copy_template_to_blueprint(). Incremented automatically. Defaults to 0. + """ + copyCount: Int + + """ + Denormalized count of how many derivative templates have been forked from this template. Defaults to 0. + """ + forkCount: Int + + """ + If this template was forked from another template, the ID of the parent. NULL for original templates. + """ + forkedFromId: UUID + + """ + UUIDv5 Merkle root hash of the definition. Computed automatically via trigger from the ordered table_hashes. Used for content-addressable deduplication, provenance tracking, and cross-blueprint structural comparison. NULL columns are backend-computed — clients should never set this directly. + """ + definitionHash: UUID + + """ + JSONB map of table ref names to their individual UUIDv5 content hashes (e.g. {"products": "uuid", "categories": "uuid"}). Each table hash is computed from the canonical jsonb::text of the table entry. Enables structural comparison at the table level across different blueprints. Backend-computed via trigger. + """ + tableHashes: JSON + + """Timestamp when this template was created.""" + createdAt: Datetime + + """Timestamp when this template was last modified.""" + updatedAt: Datetime +} + """The output of our create `HierarchyModule` mutation.""" type CreateHierarchyModulePayload { """ @@ -34861,6 +34013,130 @@ input ForeignKeyConstraintInput { updatedAt: Datetime } +"""The output of our create `SecureTableProvision` mutation.""" +type CreateSecureTableProvisionPayload { + """ + 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 `SecureTableProvision` that was created by this mutation.""" + secureTableProvision: SecureTableProvision + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `SecureTableProvision`. May be used by Relay 1.""" + secureTableProvisionEdge( + """The method to use when ordering `SecureTableProvision`.""" + orderBy: [SecureTableProvisionOrderBy!]! = [PRIMARY_KEY_ASC] + ): SecureTableProvisionEdge +} + +"""All input for the create `SecureTableProvision` mutation.""" +input CreateSecureTableProvisionInput { + """ + 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 `SecureTableProvision` to be created by this mutation.""" + secureTableProvision: SecureTableProvisionInput! +} + +"""An input for mutations affecting `SecureTableProvision`""" +input SecureTableProvisionInput { + """Unique identifier for this provision row.""" + id: UUID + + """The database this provision belongs to. Required.""" + databaseId: UUID! + + """ + Target schema for the table. Defaults to uuid_nil(); the trigger resolves this to the app_public schema if not explicitly provided. + """ + schemaId: UUID + + """ + Target table to provision. Defaults to uuid_nil(); the trigger creates or resolves the table via table_name if not explicitly provided. + """ + tableId: UUID + + """ + Name of the target table. Used to create or look up the table when table_id is not provided. If omitted, it is backfilled from the resolved table. + """ + tableName: String + + """ + Which generator to invoke for field creation. One of: DataId, DataDirectOwner, DataEntityMembership, DataOwnershipInEntity, DataTimestamps, DataPeoplestamps, DataPublishable, DataSoftDelete. NULL means no field creation — the row only provisions grants and/or policies. + """ + nodeType: String + + """ + If true and Row Level Security is not yet enabled on the target table, enable it. Automatically set to true by the trigger when policy_type is provided. Defaults to true. + """ + useRls: Boolean + + """ + Configuration passed to the generator function for field creation (only used when node_type is set). Known keys include: field_name (text, default 'id') for DataId, owner_field_name (text, default 'owner_id') for DataDirectOwner/DataOwnershipInEntity, entity_field_name (text, default 'entity_id') for DataEntityMembership/DataOwnershipInEntity, include_id (boolean, default true) for most node_types, include_user_fk (boolean, default true) to add FK to users table, create_index (boolean, default true) to create btree indexes on FK fields for join and cascade performance. Defaults to '{}'. + """ + nodeData: JSON + + """ + PostgreSQL array of jsonb field definition objects to create on the target table. Each object has keys: "name" (text, required), "type" (text, required), "default" (text, optional), "is_required" (boolean, optional, defaults to false), "min" (float, optional), "max" (float, optional), "regexp" (text, optional), "index" (boolean, optional, defaults to false — creates a btree index on the field). min/max generate CHECK constraints: for text/citext they constrain character_length, for integer/float types they constrain the value. regexp generates a CHECK (col ~ pattern) constraint for text/citext. Fields are created via metaschema.create_field() after any node_type generator runs, and their IDs are appended to out_fields. Example: ARRAY['{"name":"username","type":"citext","max":256,"regexp":"^[a-z0-9_]+$"}'::jsonb, '{"name":"score","type":"integer","min":0,"max":100}'::jsonb]. Defaults to '{}' (no additional fields). + """ + fields: [JSON] + + """ + Database roles to grant privileges to. Supports multiple roles, e.g. ARRAY['authenticated', 'admin']. Each role receives all privileges defined in grant_privileges. Defaults to ARRAY['authenticated']. + """ + grantRoles: [String] + + """ + PostgreSQL array of jsonb [privilege, columns] tuples defining table grants. Examples: ARRAY['["select","*"]'::jsonb, '["insert","*"]'::jsonb] for full access, or ARRAY['["update",["name","bio"]]'::jsonb] for column-level grants. "*" means all columns; an array means column-level grant. Defaults to '{}' (no grants). Type safety is enforced by PostgreSQL at INSERT time. + """ + grantPrivileges: [JSON] + + """ + Policy generator type, e.g. 'AuthzEntityMembership', 'AuthzMembership', 'AuthzAllowAll'. NULL means no policy is created. When set, the trigger automatically enables RLS on the target table. + """ + policyType: String + + """ + Privileges the policy applies to, e.g. ARRAY['select','update']. NULL means privileges are derived from the grant_privileges verbs. + """ + policyPrivileges: [String] + + """ + Role the policy targets. NULL means it falls back to the first role in grant_roles. + """ + policyRole: String + + """ + Whether the policy is PERMISSIVE (true) or RESTRICTIVE (false). Defaults to true. + """ + policyPermissive: Boolean + + """ + Custom suffix for the generated policy name. When NULL and policy_type is set, the trigger auto-derives a suffix from policy_type by stripping the Authz prefix and underscoring the remainder (e.g. AuthzDirectOwner becomes direct_owner, producing policy names like auth_sel_direct_owner). When explicitly set, the value is passed through as-is to metaschema.create_policy name parameter. This ensures multiple policies on the same table do not collide (e.g. AuthzDirectOwner + AuthzPublishable each get unique names). + """ + policyName: String + + """ + Opaque configuration passed through to metaschema.create_policy(). Structure varies by policy_type and is not interpreted by this trigger. Defaults to '{}'. + """ + policyData: JSON + + """ + Output column populated by the trigger after field creation. Contains the UUIDs of the metaschema fields created on the target table by this provision row's generator. NULL when node_type is NULL or before the trigger runs. Callers should not set this directly. + """ + outFields: [UUID] +} + """The output of our create `OrgInvite` mutation.""" type CreateOrgInvitePayload { """ @@ -35122,6 +34398,140 @@ input UserAuthModuleInput { extendTokenExpires: String } +"""The output of our create `Field` mutation.""" +type CreateFieldPayload { + """ + 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 `Field` that was created by this mutation.""" + field: Field + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Field`. May be used by Relay 1.""" + fieldEdge( + """The method to use when ordering `Field`.""" + orderBy: [FieldOrderBy!]! = [PRIMARY_KEY_ASC] + ): FieldEdge +} + +"""All input for the create `Field` mutation.""" +input CreateFieldInput { + """ + 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 `Field` to be created by this mutation.""" + field: FieldInput! +} + +"""An input for mutations affecting `Field`""" +input FieldInput { + id: UUID + databaseId: UUID + tableId: UUID! + name: String! + label: String + description: String + smartTags: JSON + isRequired: Boolean + apiRequired: Boolean + defaultValue: String + defaultValueAst: JSON + isHidden: Boolean + type: String! + fieldOrder: Int + regexp: String + chk: JSON + chkExpr: JSON + min: Float + max: Float + tags: [String] + category: ObjectCategory + module: String + scope: Int + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our create `MembershipsModule` mutation.""" +type CreateMembershipsModulePayload { + """ + 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 `MembershipsModule` that was created by this mutation.""" + membershipsModule: MembershipsModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `MembershipsModule`. May be used by Relay 1.""" + membershipsModuleEdge( + """The method to use when ordering `MembershipsModule`.""" + orderBy: [MembershipsModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): MembershipsModuleEdge +} + +"""All input for the create `MembershipsModule` mutation.""" +input CreateMembershipsModuleInput { + """ + 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 `MembershipsModule` to be created by this mutation.""" + membershipsModule: MembershipsModuleInput! +} + +"""An input for mutations affecting `MembershipsModule`""" +input MembershipsModuleInput { + id: UUID + databaseId: UUID! + schemaId: UUID + privateSchemaId: UUID + membershipsTableId: UUID + membershipsTableName: String + membersTableId: UUID + membersTableName: String + membershipDefaultsTableId: UUID + membershipDefaultsTableName: String + grantsTableId: UUID + grantsTableName: String + actorTableId: UUID + limitsTableId: UUID + defaultLimitsTableId: UUID + permissionsTableId: UUID + defaultPermissionsTableId: UUID + sprtTableId: UUID + adminGrantsTableId: UUID + adminGrantsTableName: String + ownerGrantsTableId: UUID + ownerGrantsTableName: String + membershipType: Int! + entityTableId: UUID + entityTableOwnerId: UUID + prefix: String + actorMaskCheck: String + actorPermCheck: String + entityIdsByMask: String + entityIdsByPerm: String + entityIdsFunction: String +} + """The output of our create `RelationProvision` mutation.""" type CreateRelationProvisionPayload { """ @@ -35218,6 +34628,14 @@ input RelationProvisionInput { """ isRequired: Boolean + """ + Whether the FK field should be required at the API level even though it is nullable at the database level. Defaults to false. + When true and is_required is false, the field is created as nullable (allowing SET NULL cascade) but a @requiredInput smart tag is added so PostGraphile treats it as non-null in create/update input types. + When is_required is true, api_required is ignored (the field is already required at both levels). + Ignored for RelationManyToMany (junction FK fields are always required). + """ + apiRequired: Boolean + """ For RelationManyToMany: an existing junction table to use. Defaults to uuid_nil(). - When uuid_nil(): the trigger creates a new junction table via secure_table_provision using junction_table_name. @@ -35255,6 +34673,28 @@ input RelationProvisionInput { """ useCompositeKey: Boolean + """ + Whether to create a btree index on FK fields created by this relation. Defaults to true. + PostgreSQL does not automatically index foreign key columns (only the referenced PK side is indexed). + Without indexes on FK columns, JOINs, CASCADE deletes, and RLS policy lookups perform sequential scans. + - RelationBelongsTo: creates an index on the FK field on the source table. + - RelationHasMany: creates an index on the FK field on the target table. + - RelationHasOne: skipped — the unique constraint already creates an implicit index. + - RelationManyToMany: creates indexes on both FK fields on the junction table. + Set to false only for very small tables or write-heavy tables where index maintenance cost outweighs read performance. + """ + createIndex: Boolean + + """ + For RelationManyToMany: whether to expose the M:N shortcut fields in the GraphQL API. Defaults to true. + When true, sets @behavior +manyToMany on the junction table smart_tags so PostGraphile generates + clean M:N connection fields (e.g., event.contacts instead of event.contactEventsByEventId). + When false (or toggled off via UPDATE), the behavior tag is removed and the M:N fields disappear from GraphQL. + Toggling is supported: UPDATE expose_in_api to true/false and the smart tag is added/removed automatically. + Ignored for RelationBelongsTo/RelationHasOne/RelationHasMany. + """ + exposeInApi: Boolean + """ For RelationManyToMany: which generator to invoke for field creation on the junction table. Forwarded to secure_table_provision as-is. The trigger does not interpret or validate this value. Examples: DataId (creates UUID primary key), DataDirectOwner (creates owner_id field), DataEntityMembership (creates entity_id field), DataOwnershipInEntity (creates both owner_id and entity_id), DataTimestamps, DataPeoplestamps, DataPublishable, DataSoftDelete. @@ -35280,9 +34720,9 @@ input RelationProvisionInput { grantRoles: [String] """ - For RelationManyToMany: privilege grants for the junction table. Forwarded to secure_table_provision as-is. Format: array of [privilege, columns] tuples. Examples: [["select","*"],["insert","*"]] for full access, or [["update",["name","bio"]]] for column-level grants. "*" means all columns. Defaults to select/insert/delete for all columns. Ignored for RelationBelongsTo/RelationHasOne. + For RelationManyToMany: privilege grants for the junction table. Forwarded to secure_table_provision as-is. Format: PostgreSQL array of jsonb [privilege, columns] tuples. Examples: ARRAY['["select","*"]'::jsonb, '["insert","*"]'::jsonb] for full access, or ARRAY['["update",["name","bio"]]'::jsonb] for column-level grants. "*" means all columns. Defaults to select/insert/delete for all columns. Ignored for RelationBelongsTo/RelationHasOne. """ - grantPrivileges: JSON + grantPrivileges: [JSON] """ For RelationManyToMany: RLS policy type for the junction table. Forwarded to secure_table_provision as-is. The trigger does not interpret or validate this value. @@ -35343,139 +34783,6 @@ input RelationProvisionInput { outTargetFieldId: UUID } -"""The output of our create `Field` mutation.""" -type CreateFieldPayload { - """ - 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 `Field` that was created by this mutation.""" - field: Field - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `Field`. May be used by Relay 1.""" - fieldEdge( - """The method to use when ordering `Field`.""" - orderBy: [FieldOrderBy!]! = [PRIMARY_KEY_ASC] - ): FieldEdge -} - -"""All input for the create `Field` mutation.""" -input CreateFieldInput { - """ - 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 `Field` to be created by this mutation.""" - field: FieldInput! -} - -"""An input for mutations affecting `Field`""" -input FieldInput { - id: UUID - databaseId: UUID - tableId: UUID! - name: String! - label: String - description: String - smartTags: JSON - isRequired: Boolean - defaultValue: String - defaultValueAst: JSON - isHidden: Boolean - type: String! - fieldOrder: Int - regexp: String - chk: JSON - chkExpr: JSON - min: Float - max: Float - tags: [String] - category: ObjectCategory - module: String - scope: Int - createdAt: Datetime - updatedAt: Datetime -} - -"""The output of our create `MembershipsModule` mutation.""" -type CreateMembershipsModulePayload { - """ - 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 `MembershipsModule` that was created by this mutation.""" - membershipsModule: MembershipsModule - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `MembershipsModule`. May be used by Relay 1.""" - membershipsModuleEdge( - """The method to use when ordering `MembershipsModule`.""" - orderBy: [MembershipsModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): MembershipsModuleEdge -} - -"""All input for the create `MembershipsModule` mutation.""" -input CreateMembershipsModuleInput { - """ - 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 `MembershipsModule` to be created by this mutation.""" - membershipsModule: MembershipsModuleInput! -} - -"""An input for mutations affecting `MembershipsModule`""" -input MembershipsModuleInput { - id: UUID - databaseId: UUID! - schemaId: UUID - privateSchemaId: UUID - membershipsTableId: UUID - membershipsTableName: String - membersTableId: UUID - membersTableName: String - membershipDefaultsTableId: UUID - membershipDefaultsTableName: String - grantsTableId: UUID - grantsTableName: String - actorTableId: UUID - limitsTableId: UUID - defaultLimitsTableId: UUID - permissionsTableId: UUID - defaultPermissionsTableId: UUID - sprtTableId: UUID - adminGrantsTableId: UUID - adminGrantsTableName: String - ownerGrantsTableId: UUID - ownerGrantsTableName: String - membershipType: Int! - entityTableId: UUID - entityTableOwnerId: UUID - prefix: String - actorMaskCheck: String - actorPermCheck: String - entityIdsByMask: String - entityIdsByPerm: String - entityIdsFunction: String -} - """The output of our update `DefaultIdsModule` mutation.""" type UpdateDefaultIdsModulePayload { """ @@ -35627,6 +34934,65 @@ input ApiSchemaPatch { apiId: UUID } +"""The output of our update `SiteTheme` mutation.""" +type UpdateSiteThemePayload { + """ + 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 `SiteTheme` that was updated by this mutation.""" + siteTheme: SiteTheme + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `SiteTheme`. May be used by Relay 1.""" + siteThemeEdge( + """The method to use when ordering `SiteTheme`.""" + orderBy: [SiteThemeOrderBy!]! = [PRIMARY_KEY_ASC] + ): SiteThemeEdge +} + +"""All input for the `updateSiteTheme` mutation.""" +input UpdateSiteThemeInput { + """ + 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 theme record""" + id: UUID! + + """ + An object where the defined keys will be set on the `SiteTheme` being updated. + """ + siteThemePatch: SiteThemePatch! +} + +""" +Represents an update to a `SiteTheme`. Fields that are set will be updated. +""" +input SiteThemePatch { + """Unique identifier for this theme record""" + id: UUID + + """Reference to the metaschema database""" + databaseId: UUID + + """Site this theme belongs to""" + siteId: UUID + + """ + JSONB object containing theme tokens (colors, typography, spacing, etc.) + """ + theme: JSON +} + """The output of our update `OrgMember` mutation.""" type UpdateOrgMemberPayload { """ @@ -35881,114 +35247,6 @@ input SecretsModulePatch { tableName: String } -"""The output of our update `UuidModule` mutation.""" -type UpdateUuidModulePayload { - """ - 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 `UuidModule` that was updated by this mutation.""" - uuidModule: UuidModule - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `UuidModule`. May be used by Relay 1.""" - uuidModuleEdge( - """The method to use when ordering `UuidModule`.""" - orderBy: [UuidModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): UuidModuleEdge -} - -"""All input for the `updateUuidModule` mutation.""" -input UpdateUuidModuleInput { - """ - 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 - id: UUID! - - """ - An object where the defined keys will be set on the `UuidModule` being updated. - """ - uuidModulePatch: UuidModulePatch! -} - -""" -Represents an update to a `UuidModule`. Fields that are set will be updated. -""" -input UuidModulePatch { - id: UUID - databaseId: UUID - schemaId: UUID - uuidFunction: String - uuidSeed: String -} - -"""The output of our update `SiteTheme` mutation.""" -type UpdateSiteThemePayload { - """ - 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 `SiteTheme` that was updated by this mutation.""" - siteTheme: SiteTheme - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `SiteTheme`. May be used by Relay 1.""" - siteThemeEdge( - """The method to use when ordering `SiteTheme`.""" - orderBy: [SiteThemeOrderBy!]! = [PRIMARY_KEY_ASC] - ): SiteThemeEdge -} - -"""All input for the `updateSiteTheme` mutation.""" -input UpdateSiteThemeInput { - """ - 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 theme record""" - id: UUID! - - """ - An object where the defined keys will be set on the `SiteTheme` being updated. - """ - siteThemePatch: SiteThemePatch! -} - -""" -Represents an update to a `SiteTheme`. Fields that are set will be updated. -""" -input SiteThemePatch { - """Unique identifier for this theme record""" - id: UUID - - """Reference to the metaschema database""" - databaseId: UUID - - """Site this theme belongs to""" - siteId: UUID - - """ - JSONB object containing theme tokens (colors, typography, spacing, etc.) - """ - theme: JSON -} - """The output of our update `Store` mutation.""" type UpdateStorePayload { """ @@ -37221,6 +36479,66 @@ input CryptoAddressesModulePatch { cryptoNetwork: String } +"""The output of our update `ConnectedAccount` mutation.""" +type UpdateConnectedAccountPayload { + """ + 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 `ConnectedAccount` that was updated by this mutation.""" + connectedAccount: ConnectedAccount + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `ConnectedAccount`. May be used by Relay 1.""" + connectedAccountEdge( + """The method to use when ordering `ConnectedAccount`.""" + orderBy: [ConnectedAccountOrderBy!]! = [PRIMARY_KEY_ASC] + ): ConnectedAccountEdge +} + +"""All input for the `updateConnectedAccount` mutation.""" +input UpdateConnectedAccountInput { + """ + 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 + id: UUID! + + """ + An object where the defined keys will be set on the `ConnectedAccount` being updated. + """ + connectedAccountPatch: ConnectedAccountPatch! +} + +""" +Represents an update to a `ConnectedAccount`. Fields that are set will be updated. +""" +input ConnectedAccountPatch { + id: UUID + ownerId: UUID + + """The service used, e.g. `twitter` or `github`.""" + service: String + + """A unique identifier for the user within the service""" + identifier: String + + """Additional profile details extracted from this login method""" + details: JSON + + """Whether this connected account has been verified""" + isVerified: Boolean + createdAt: Datetime + updatedAt: Datetime +} + """The output of our update `PhoneNumber` mutation.""" type UpdatePhoneNumberPayload { """ @@ -37383,66 +36701,6 @@ input OrgLimitDefaultPatch { max: Int } -"""The output of our update `ConnectedAccount` mutation.""" -type UpdateConnectedAccountPayload { - """ - 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 `ConnectedAccount` that was updated by this mutation.""" - connectedAccount: ConnectedAccount - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `ConnectedAccount`. May be used by Relay 1.""" - connectedAccountEdge( - """The method to use when ordering `ConnectedAccount`.""" - orderBy: [ConnectedAccountOrderBy!]! = [PRIMARY_KEY_ASC] - ): ConnectedAccountEdge -} - -"""All input for the `updateConnectedAccount` mutation.""" -input UpdateConnectedAccountInput { - """ - 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 - id: UUID! - - """ - An object where the defined keys will be set on the `ConnectedAccount` being updated. - """ - connectedAccountPatch: ConnectedAccountPatch! -} - -""" -Represents an update to a `ConnectedAccount`. Fields that are set will be updated. -""" -input ConnectedAccountPatch { - id: UUID - ownerId: UUID - - """The service used, e.g. `twitter` or `github`.""" - service: String - - """A unique identifier for the user within the service""" - identifier: String - - """Additional profile details extracted from this login method""" - details: JSON - - """Whether this connected account has been verified""" - isVerified: Boolean - createdAt: Datetime - updatedAt: Datetime -} - """The output of our update `TableGrant` mutation.""" type UpdateTableGrantPayload { """ @@ -37655,7 +36913,9 @@ input OrgChartEdgeGrantPatch { """User ID of the manager being assigned; NULL for top-level positions""" parentId: UUID - """User ID of the admin who performed this grant or revocation""" + """ + User ID of the admin who performed this grant or revocation; NULL if grantor was deleted + """ grantorId: UUID """TRUE to add/update the edge, FALSE to remove it""" @@ -39156,7 +38416,7 @@ input AuditLogPatch { """ event: String - """User who performed the authentication action""" + """User who performed the authentication action; NULL if user was deleted""" actorId: UUID """Request origin (domain) where the auth event occurred""" @@ -39237,6 +38497,64 @@ input AppLevelPatch { imageUpload: Upload } +"""The output of our update `DatabaseTransfer` mutation.""" +type UpdateDatabaseTransferPayload { + """ + 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 `DatabaseTransfer` that was updated by this mutation.""" + databaseTransfer: DatabaseTransfer + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `DatabaseTransfer`. May be used by Relay 1.""" + databaseTransferEdge( + """The method to use when ordering `DatabaseTransfer`.""" + orderBy: [DatabaseTransferOrderBy!]! = [PRIMARY_KEY_ASC] + ): DatabaseTransferEdge +} + +"""All input for the `updateDatabaseTransfer` mutation.""" +input UpdateDatabaseTransferInput { + """ + 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 + id: UUID! + + """ + An object where the defined keys will be set on the `DatabaseTransfer` being updated. + """ + databaseTransferPatch: DatabaseTransferPatch! +} + +""" +Represents an update to a `DatabaseTransfer`. Fields that are set will be updated. +""" +input DatabaseTransferPatch { + id: UUID + databaseId: UUID + targetOwnerId: UUID + sourceApproved: Boolean + targetApproved: Boolean + sourceApprovedAt: Datetime + targetApprovedAt: Datetime + status: String + initiatedBy: UUID + notes: String + expiresAt: Datetime + createdAt: Datetime + updatedAt: Datetime + completedAt: Datetime +} + """The output of our update `CryptoAuthModule` mutation.""" type UpdateCryptoAuthModulePayload { """ @@ -39490,6 +38808,60 @@ input EmailPatch { updatedAt: Datetime } +"""The output of our update `Enum` mutation.""" +type UpdateEnumPayload { + """ + 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 `Enum` that was updated by this mutation.""" + enum: Enum + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Enum`. May be used by Relay 1.""" + enumEdge( + """The method to use when ordering `Enum`.""" + orderBy: [EnumOrderBy!]! = [PRIMARY_KEY_ASC] + ): EnumEdge +} + +"""All input for the `updateEnum` mutation.""" +input UpdateEnumInput { + """ + 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 + id: UUID! + + """ + An object where the defined keys will be set on the `Enum` being updated. + """ + enumPatch: EnumPatch! +} + +"""Represents an update to a `Enum`. Fields that are set will be updated.""" +input EnumPatch { + id: UUID + databaseId: UUID + schemaId: UUID + name: String + label: String + description: String + values: [String] + smartTags: JSON + category: ObjectCategory + module: String + scope: Int + tags: [String] +} + """The output of our update `View` mutation.""" type UpdateViewPayload { """ @@ -39548,6 +38920,122 @@ input ViewPatch { tags: [String] } +"""The output of our update `Blueprint` mutation.""" +type UpdateBlueprintPayload { + """ + 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 `Blueprint` that was updated by this mutation.""" + blueprint: Blueprint + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Blueprint`. May be used by Relay 1.""" + blueprintEdge( + """The method to use when ordering `Blueprint`.""" + orderBy: [BlueprintOrderBy!]! = [PRIMARY_KEY_ASC] + ): BlueprintEdge +} + +"""All input for the `updateBlueprint` mutation.""" +input UpdateBlueprintInput { + """ + 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 blueprint.""" + id: UUID! + + """ + An object where the defined keys will be set on the `Blueprint` being updated. + """ + blueprintPatch: BlueprintPatch! +} + +""" +Represents an update to a `Blueprint`. Fields that are set will be updated. +""" +input BlueprintPatch { + """Unique identifier for this blueprint.""" + id: UUID + + """The user who owns this blueprint.""" + ownerId: UUID + + """ + The database this blueprint is scoped to. Tables created by construct_blueprint() are provisioned in this database. + """ + databaseId: UUID + + """Machine-readable name for the blueprint. Must be unique per database.""" + name: String + + """Human-readable display name for the blueprint.""" + displayName: String + + """Optional description of the blueprint.""" + description: String + + """ + The blueprint definition as a JSONB document. Same format as blueprint_template.definition: contains tables[] (with nodes[], fields[], grants[], policies[] using $type) and relations[] (using $type). This is a mutable copy that the owner can customize before executing. + """ + definition: JSON + + """ + If this blueprint was created by copying a template, the ID of the source template. NULL if built from scratch. + """ + templateId: UUID + + """ + Execution state of the blueprint. draft: not yet executed (definition can still be modified). constructed: successfully executed via construct_blueprint(). failed: execution failed (see error_details). Defaults to draft. + """ + status: String + + """ + Timestamp when construct_blueprint() successfully completed. NULL until constructed. + """ + constructedAt: Datetime + + """ + Error message from the most recent failed construct_blueprint() attempt. NULL unless status is failed. + """ + errorDetails: String + + """ + Mapping of ref names to created table UUIDs, populated by construct_blueprint() after successful execution. Format: {"products": "uuid", "categories": "uuid", ...}. Defaults to empty object. + """ + refMap: JSON + + """ + Immutable snapshot of the definition at construct-time. Preserved so the exact definition that was executed is recorded even if the user later modifies the definition for re-execution. NULL until constructed. + """ + constructedDefinition: JSON + + """ + UUIDv5 Merkle root hash of the definition. Computed automatically via trigger from the ordered table_hashes. Used for content-addressable deduplication and provenance tracking. Backend-computed — clients should never set this directly. + """ + definitionHash: UUID + + """ + JSONB map of table ref names to their individual UUIDv5 content hashes. Each table hash is computed from the canonical jsonb::text of the table entry. Enables structural comparison at the table level across blueprints and templates. Backend-computed via trigger. + """ + tableHashes: JSON + + """Timestamp when this blueprint was created.""" + createdAt: Datetime + + """Timestamp when this blueprint was last modified.""" + updatedAt: Datetime +} + """The output of our update `PermissionsModule` mutation.""" type UpdatePermissionsModulePayload { """ @@ -39609,6 +39097,68 @@ input PermissionsModulePatch { getMaskByName: String } +"""The output of our update `EmbeddingChunk` mutation.""" +type UpdateEmbeddingChunkPayload { + """ + 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 `EmbeddingChunk` that was updated by this mutation.""" + embeddingChunk: EmbeddingChunk + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `EmbeddingChunk`. May be used by Relay 1.""" + embeddingChunkEdge( + """The method to use when ordering `EmbeddingChunk`.""" + orderBy: [EmbeddingChunkOrderBy!]! = [PRIMARY_KEY_ASC] + ): EmbeddingChunkEdge +} + +"""All input for the `updateEmbeddingChunk` mutation.""" +input UpdateEmbeddingChunkInput { + """ + 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 + id: UUID! + + """ + An object where the defined keys will be set on the `EmbeddingChunk` being updated. + """ + embeddingChunkPatch: EmbeddingChunkPatch! +} + +""" +Represents an update to a `EmbeddingChunk`. Fields that are set will be updated. +""" +input EmbeddingChunkPatch { + id: UUID + databaseId: UUID + tableId: UUID + embeddingFieldId: UUID + chunksTableId: UUID + chunksTableName: String + contentFieldName: String + dimensions: Int + metric: String + chunkSize: Int + chunkOverlap: Int + chunkStrategy: String + metadataFields: JSON + enqueueChunkingJob: Boolean + chunkingTaskName: String + parentFkFieldId: UUID + createdAt: Datetime + updatedAt: Datetime +} + """The output of our update `LimitsModule` mutation.""" type UpdateLimitsModulePayload { """ @@ -39733,137 +39283,6 @@ input ProfilesModulePatch { prefix: String } -"""The output of our update `SecureTableProvision` mutation.""" -type UpdateSecureTableProvisionPayload { - """ - 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 `SecureTableProvision` that was updated by this mutation.""" - secureTableProvision: SecureTableProvision - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `SecureTableProvision`. May be used by Relay 1.""" - secureTableProvisionEdge( - """The method to use when ordering `SecureTableProvision`.""" - orderBy: [SecureTableProvisionOrderBy!]! = [PRIMARY_KEY_ASC] - ): SecureTableProvisionEdge -} - -"""All input for the `updateSecureTableProvision` mutation.""" -input UpdateSecureTableProvisionInput { - """ - 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 provision row.""" - id: UUID! - - """ - An object where the defined keys will be set on the `SecureTableProvision` being updated. - """ - secureTableProvisionPatch: SecureTableProvisionPatch! -} - -""" -Represents an update to a `SecureTableProvision`. Fields that are set will be updated. -""" -input SecureTableProvisionPatch { - """Unique identifier for this provision row.""" - id: UUID - - """The database this provision belongs to. Required.""" - databaseId: UUID - - """ - Target schema for the table. Defaults to uuid_nil(); the trigger resolves this to the app_public schema if not explicitly provided. - """ - schemaId: UUID - - """ - Target table to provision. Defaults to uuid_nil(); the trigger creates or resolves the table via table_name if not explicitly provided. - """ - tableId: UUID - - """ - Name of the target table. Used to create or look up the table when table_id is not provided. If omitted, it is backfilled from the resolved table. - """ - tableName: String - - """ - Which generator to invoke for field creation. One of: DataId, DataDirectOwner, DataEntityMembership, DataOwnershipInEntity, DataTimestamps, DataPeoplestamps, DataPublishable, DataSoftDelete. NULL means no field creation — the row only provisions grants and/or policies. - """ - nodeType: String - - """ - If true and Row Level Security is not yet enabled on the target table, enable it. Automatically set to true by the trigger when policy_type is provided. Defaults to true. - """ - useRls: Boolean - - """ - Configuration passed to the generator function for field creation (only used when node_type is set). Known keys include: field_name (text, default 'id') for DataId, owner_field_name (text, default 'owner_id') for DataDirectOwner/DataOwnershipInEntity, entity_field_name (text, default 'entity_id') for DataEntityMembership/DataOwnershipInEntity, include_id (boolean, default true) for most node_types, include_user_fk (boolean, default true) to add FK to users table. Defaults to '{}'. - """ - nodeData: JSON - - """ - JSON array of field definition objects to create on the target table. Each object has keys: "name" (text, required), "type" (text, required), "default" (text, optional), "is_required" (boolean, optional, defaults to false), "min" (float, optional), "max" (float, optional), "regexp" (text, optional). min/max generate CHECK constraints: for text/citext they constrain character_length, for integer/float types they constrain the value. regexp generates a CHECK (col ~ pattern) constraint for text/citext. Fields are created via metaschema.create_field() after any node_type generator runs, and their IDs are appended to out_fields. Example: [{"name":"username","type":"citext","max":256,"regexp":"^[a-z0-9_]+$"},{"name":"score","type":"integer","min":0,"max":100}]. Defaults to '[]' (no additional fields). - """ - fields: JSON - - """ - Database roles to grant privileges to. Supports multiple roles, e.g. ARRAY['authenticated', 'admin']. Each role receives all privileges defined in grant_privileges. Defaults to ARRAY['authenticated']. - """ - grantRoles: [String] - - """ - Array of [privilege, columns] tuples defining table grants. Examples: [["select","*"],["insert","*"]] for full access, or [["update",["name","bio"]]] for column-level grants. "*" means all columns; an array means column-level grant. Defaults to '[]' (no grants). The trigger validates this is a proper jsonb array. - """ - grantPrivileges: JSON - - """ - Policy generator type, e.g. 'AuthzEntityMembership', 'AuthzMembership', 'AuthzAllowAll'. NULL means no policy is created. When set, the trigger automatically enables RLS on the target table. - """ - policyType: String - - """ - Privileges the policy applies to, e.g. ARRAY['select','update']. NULL means privileges are derived from the grant_privileges verbs. - """ - policyPrivileges: [String] - - """ - Role the policy targets. NULL means it falls back to the first role in grant_roles. - """ - policyRole: String - - """ - Whether the policy is PERMISSIVE (true) or RESTRICTIVE (false). Defaults to true. - """ - policyPermissive: Boolean - - """ - Custom suffix for the generated policy name. When NULL and policy_type is set, the trigger auto-derives a suffix from policy_type by stripping the Authz prefix and underscoring the remainder (e.g. AuthzDirectOwner becomes direct_owner, producing policy names like auth_sel_direct_owner). When explicitly set, the value is passed through as-is to metaschema.create_policy name parameter. This ensures multiple policies on the same table do not collide (e.g. AuthzDirectOwner + AuthzPublishable each get unique names). - """ - policyName: String - - """ - Opaque configuration passed through to metaschema.create_policy(). Structure varies by policy_type and is not interpreted by this trigger. Defaults to '{}'. - """ - policyData: JSON - - """ - Output column populated by the trigger after field creation. Contains the UUIDs of the metaschema fields created on the target table by this provision row's generator. NULL when node_type is NULL or before the trigger runs. Callers should not set this directly. - """ - outFields: [UUID] -} - """The output of our update `User` mutation.""" type UpdateUserPayload { """ @@ -40657,6 +40076,137 @@ input SitePatch { logoUpload: Upload } +"""The output of our update `BlueprintTemplate` mutation.""" +type UpdateBlueprintTemplatePayload { + """ + 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 `BlueprintTemplate` that was updated by this mutation.""" + blueprintTemplate: BlueprintTemplate + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `BlueprintTemplate`. May be used by Relay 1.""" + blueprintTemplateEdge( + """The method to use when ordering `BlueprintTemplate`.""" + orderBy: [BlueprintTemplateOrderBy!]! = [PRIMARY_KEY_ASC] + ): BlueprintTemplateEdge +} + +"""All input for the `updateBlueprintTemplate` mutation.""" +input UpdateBlueprintTemplateInput { + """ + 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 template.""" + id: UUID! + + """ + An object where the defined keys will be set on the `BlueprintTemplate` being updated. + """ + blueprintTemplatePatch: BlueprintTemplatePatch! +} + +""" +Represents an update to a `BlueprintTemplate`. Fields that are set will be updated. +""" +input BlueprintTemplatePatch { + """Unique identifier for this template.""" + id: UUID + + """ + Machine-readable name for the template (e.g. e_commerce_basic). Must be unique per owner + version. + """ + name: String + + """Semantic version string. Defaults to 1.0.0.""" + version: String + + """Human-readable display name for the template (e.g. E-Commerce Basic).""" + displayName: String + + """Optional description of what the template provisions.""" + description: String + + """The user who created or published this template.""" + ownerId: UUID + + """ + Access control for the template. private: only the owner can see and copy. public: anyone can browse and copy from the marketplace. Defaults to private. + """ + visibility: String + + """ + Domain categories for marketplace browsing (e.g. e-commerce, healthcare, social). Defaults to empty array. + """ + categories: [String] + + """ + Freeform tags for search and discovery (e.g. products, orders, payments). Defaults to empty array. + """ + tags: [String] + + """ + The blueprint definition as a JSONB document. Contains tables[] (each with nodes[] for data behaviors via string shorthand or {"$type": "...", "data": {...}} objects, fields[], grants[], and policies[] using {"$type": "...", "data": {...}}), and relations[] (using $type for relation_type with junction config in data). This is the core payload that gets copied into a blueprint for execution. + """ + definition: JSON + + """ + Version of the definition format schema. Used for forward-compatible parsing. Defaults to 1. + """ + definitionSchemaVersion: String + + """ + Provenance of the template. user: manually created by a human. system: official curated template from the Constructive team. agent: AI-generated. Defaults to user. + """ + source: String + + """ + Complexity indicator for marketplace filtering. simple: 3-5 tables. moderate: 6-12 tables. complex: 13+ tables. NULL if not categorized. + """ + complexity: String + + """ + Denormalized count of how many blueprints have been created from this template via copy_template_to_blueprint(). Incremented automatically. Defaults to 0. + """ + copyCount: Int + + """ + Denormalized count of how many derivative templates have been forked from this template. Defaults to 0. + """ + forkCount: Int + + """ + If this template was forked from another template, the ID of the parent. NULL for original templates. + """ + forkedFromId: UUID + + """ + UUIDv5 Merkle root hash of the definition. Computed automatically via trigger from the ordered table_hashes. Used for content-addressable deduplication, provenance tracking, and cross-blueprint structural comparison. NULL columns are backend-computed — clients should never set this directly. + """ + definitionHash: UUID + + """ + JSONB map of table ref names to their individual UUIDv5 content hashes (e.g. {"products": "uuid", "categories": "uuid"}). Each table hash is computed from the canonical jsonb::text of the table entry. Enables structural comparison at the table level across different blueprints. Backend-computed via trigger. + """ + tableHashes: JSON + + """Timestamp when this template was created.""" + createdAt: Datetime + + """Timestamp when this template was last modified.""" + updatedAt: Datetime +} + """The output of our update `HierarchyModule` mutation.""" type UpdateHierarchyModulePayload { """ @@ -40857,6 +40407,137 @@ input ForeignKeyConstraintPatch { updatedAt: Datetime } +"""The output of our update `SecureTableProvision` mutation.""" +type UpdateSecureTableProvisionPayload { + """ + 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 `SecureTableProvision` that was updated by this mutation.""" + secureTableProvision: SecureTableProvision + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `SecureTableProvision`. May be used by Relay 1.""" + secureTableProvisionEdge( + """The method to use when ordering `SecureTableProvision`.""" + orderBy: [SecureTableProvisionOrderBy!]! = [PRIMARY_KEY_ASC] + ): SecureTableProvisionEdge +} + +"""All input for the `updateSecureTableProvision` mutation.""" +input UpdateSecureTableProvisionInput { + """ + 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 provision row.""" + id: UUID! + + """ + An object where the defined keys will be set on the `SecureTableProvision` being updated. + """ + secureTableProvisionPatch: SecureTableProvisionPatch! +} + +""" +Represents an update to a `SecureTableProvision`. Fields that are set will be updated. +""" +input SecureTableProvisionPatch { + """Unique identifier for this provision row.""" + id: UUID + + """The database this provision belongs to. Required.""" + databaseId: UUID + + """ + Target schema for the table. Defaults to uuid_nil(); the trigger resolves this to the app_public schema if not explicitly provided. + """ + schemaId: UUID + + """ + Target table to provision. Defaults to uuid_nil(); the trigger creates or resolves the table via table_name if not explicitly provided. + """ + tableId: UUID + + """ + Name of the target table. Used to create or look up the table when table_id is not provided. If omitted, it is backfilled from the resolved table. + """ + tableName: String + + """ + Which generator to invoke for field creation. One of: DataId, DataDirectOwner, DataEntityMembership, DataOwnershipInEntity, DataTimestamps, DataPeoplestamps, DataPublishable, DataSoftDelete. NULL means no field creation — the row only provisions grants and/or policies. + """ + nodeType: String + + """ + If true and Row Level Security is not yet enabled on the target table, enable it. Automatically set to true by the trigger when policy_type is provided. Defaults to true. + """ + useRls: Boolean + + """ + Configuration passed to the generator function for field creation (only used when node_type is set). Known keys include: field_name (text, default 'id') for DataId, owner_field_name (text, default 'owner_id') for DataDirectOwner/DataOwnershipInEntity, entity_field_name (text, default 'entity_id') for DataEntityMembership/DataOwnershipInEntity, include_id (boolean, default true) for most node_types, include_user_fk (boolean, default true) to add FK to users table, create_index (boolean, default true) to create btree indexes on FK fields for join and cascade performance. Defaults to '{}'. + """ + nodeData: JSON + + """ + PostgreSQL array of jsonb field definition objects to create on the target table. Each object has keys: "name" (text, required), "type" (text, required), "default" (text, optional), "is_required" (boolean, optional, defaults to false), "min" (float, optional), "max" (float, optional), "regexp" (text, optional), "index" (boolean, optional, defaults to false — creates a btree index on the field). min/max generate CHECK constraints: for text/citext they constrain character_length, for integer/float types they constrain the value. regexp generates a CHECK (col ~ pattern) constraint for text/citext. Fields are created via metaschema.create_field() after any node_type generator runs, and their IDs are appended to out_fields. Example: ARRAY['{"name":"username","type":"citext","max":256,"regexp":"^[a-z0-9_]+$"}'::jsonb, '{"name":"score","type":"integer","min":0,"max":100}'::jsonb]. Defaults to '{}' (no additional fields). + """ + fields: [JSON] + + """ + Database roles to grant privileges to. Supports multiple roles, e.g. ARRAY['authenticated', 'admin']. Each role receives all privileges defined in grant_privileges. Defaults to ARRAY['authenticated']. + """ + grantRoles: [String] + + """ + PostgreSQL array of jsonb [privilege, columns] tuples defining table grants. Examples: ARRAY['["select","*"]'::jsonb, '["insert","*"]'::jsonb] for full access, or ARRAY['["update",["name","bio"]]'::jsonb] for column-level grants. "*" means all columns; an array means column-level grant. Defaults to '{}' (no grants). Type safety is enforced by PostgreSQL at INSERT time. + """ + grantPrivileges: [JSON] + + """ + Policy generator type, e.g. 'AuthzEntityMembership', 'AuthzMembership', 'AuthzAllowAll'. NULL means no policy is created. When set, the trigger automatically enables RLS on the target table. + """ + policyType: String + + """ + Privileges the policy applies to, e.g. ARRAY['select','update']. NULL means privileges are derived from the grant_privileges verbs. + """ + policyPrivileges: [String] + + """ + Role the policy targets. NULL means it falls back to the first role in grant_roles. + """ + policyRole: String + + """ + Whether the policy is PERMISSIVE (true) or RESTRICTIVE (false). Defaults to true. + """ + policyPermissive: Boolean + + """ + Custom suffix for the generated policy name. When NULL and policy_type is set, the trigger auto-derives a suffix from policy_type by stripping the Authz prefix and underscoring the remainder (e.g. AuthzDirectOwner becomes direct_owner, producing policy names like auth_sel_direct_owner). When explicitly set, the value is passed through as-is to metaschema.create_policy name parameter. This ensures multiple policies on the same table do not collide (e.g. AuthzDirectOwner + AuthzPublishable each get unique names). + """ + policyName: String + + """ + Opaque configuration passed through to metaschema.create_policy(). Structure varies by policy_type and is not interpreted by this trigger. Defaults to '{}'. + """ + policyData: JSON + + """ + Output column populated by the trigger after field creation. Contains the UUIDs of the metaschema fields created on the target table by this provision row's generator. NULL when node_type is NULL or before the trigger runs. Callers should not set this directly. + """ + outFields: [UUID] +} + """The output of our update `OrgInvite` mutation.""" type UpdateOrgInvitePayload { """ @@ -41138,6 +40819,150 @@ input UserAuthModulePatch { extendTokenExpires: String } +"""The output of our update `Field` mutation.""" +type UpdateFieldPayload { + """ + 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 `Field` that was updated by this mutation.""" + field: Field + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Field`. May be used by Relay 1.""" + fieldEdge( + """The method to use when ordering `Field`.""" + orderBy: [FieldOrderBy!]! = [PRIMARY_KEY_ASC] + ): FieldEdge +} + +"""All input for the `updateField` mutation.""" +input UpdateFieldInput { + """ + 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 + id: UUID! + + """ + An object where the defined keys will be set on the `Field` being updated. + """ + fieldPatch: FieldPatch! +} + +""" +Represents an update to a `Field`. Fields that are set will be updated. +""" +input FieldPatch { + id: UUID + databaseId: UUID + tableId: UUID + name: String + label: String + description: String + smartTags: JSON + isRequired: Boolean + apiRequired: Boolean + defaultValue: String + defaultValueAst: JSON + isHidden: Boolean + type: String + fieldOrder: Int + regexp: String + chk: JSON + chkExpr: JSON + min: Float + max: Float + tags: [String] + category: ObjectCategory + module: String + scope: Int + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our update `MembershipsModule` mutation.""" +type UpdateMembershipsModulePayload { + """ + 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 `MembershipsModule` that was updated by this mutation.""" + membershipsModule: MembershipsModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `MembershipsModule`. May be used by Relay 1.""" + membershipsModuleEdge( + """The method to use when ordering `MembershipsModule`.""" + orderBy: [MembershipsModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): MembershipsModuleEdge +} + +"""All input for the `updateMembershipsModule` mutation.""" +input UpdateMembershipsModuleInput { + """ + 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 + id: UUID! + + """ + An object where the defined keys will be set on the `MembershipsModule` being updated. + """ + membershipsModulePatch: MembershipsModulePatch! +} + +""" +Represents an update to a `MembershipsModule`. Fields that are set will be updated. +""" +input MembershipsModulePatch { + id: UUID + databaseId: UUID + schemaId: UUID + privateSchemaId: UUID + membershipsTableId: UUID + membershipsTableName: String + membersTableId: UUID + membersTableName: String + membershipDefaultsTableId: UUID + membershipDefaultsTableName: String + grantsTableId: UUID + grantsTableName: String + actorTableId: UUID + limitsTableId: UUID + defaultLimitsTableId: UUID + permissionsTableId: UUID + defaultPermissionsTableId: UUID + sprtTableId: UUID + adminGrantsTableId: UUID + adminGrantsTableName: String + ownerGrantsTableId: UUID + ownerGrantsTableName: String + membershipType: Int + entityTableId: UUID + entityTableOwnerId: UUID + prefix: String + actorMaskCheck: String + actorPermCheck: String + entityIdsByMask: String + entityIdsByPerm: String + entityIdsFunction: String +} + """The output of our update `RelationProvision` mutation.""" type UpdateRelationProvisionPayload { """ @@ -41241,6 +41066,14 @@ input RelationProvisionPatch { """ isRequired: Boolean + """ + Whether the FK field should be required at the API level even though it is nullable at the database level. Defaults to false. + When true and is_required is false, the field is created as nullable (allowing SET NULL cascade) but a @requiredInput smart tag is added so PostGraphile treats it as non-null in create/update input types. + When is_required is true, api_required is ignored (the field is already required at both levels). + Ignored for RelationManyToMany (junction FK fields are always required). + """ + apiRequired: Boolean + """ For RelationManyToMany: an existing junction table to use. Defaults to uuid_nil(). - When uuid_nil(): the trigger creates a new junction table via secure_table_provision using junction_table_name. @@ -41278,6 +41111,28 @@ input RelationProvisionPatch { """ useCompositeKey: Boolean + """ + Whether to create a btree index on FK fields created by this relation. Defaults to true. + PostgreSQL does not automatically index foreign key columns (only the referenced PK side is indexed). + Without indexes on FK columns, JOINs, CASCADE deletes, and RLS policy lookups perform sequential scans. + - RelationBelongsTo: creates an index on the FK field on the source table. + - RelationHasMany: creates an index on the FK field on the target table. + - RelationHasOne: skipped — the unique constraint already creates an implicit index. + - RelationManyToMany: creates indexes on both FK fields on the junction table. + Set to false only for very small tables or write-heavy tables where index maintenance cost outweighs read performance. + """ + createIndex: Boolean + + """ + For RelationManyToMany: whether to expose the M:N shortcut fields in the GraphQL API. Defaults to true. + When true, sets @behavior +manyToMany on the junction table smart_tags so PostGraphile generates + clean M:N connection fields (e.g., event.contacts instead of event.contactEventsByEventId). + When false (or toggled off via UPDATE), the behavior tag is removed and the M:N fields disappear from GraphQL. + Toggling is supported: UPDATE expose_in_api to true/false and the smart tag is added/removed automatically. + Ignored for RelationBelongsTo/RelationHasOne/RelationHasMany. + """ + exposeInApi: Boolean + """ For RelationManyToMany: which generator to invoke for field creation on the junction table. Forwarded to secure_table_provision as-is. The trigger does not interpret or validate this value. Examples: DataId (creates UUID primary key), DataDirectOwner (creates owner_id field), DataEntityMembership (creates entity_id field), DataOwnershipInEntity (creates both owner_id and entity_id), DataTimestamps, DataPeoplestamps, DataPublishable, DataSoftDelete. @@ -41303,9 +41158,9 @@ input RelationProvisionPatch { grantRoles: [String] """ - For RelationManyToMany: privilege grants for the junction table. Forwarded to secure_table_provision as-is. Format: array of [privilege, columns] tuples. Examples: [["select","*"],["insert","*"]] for full access, or [["update",["name","bio"]]] for column-level grants. "*" means all columns. Defaults to select/insert/delete for all columns. Ignored for RelationBelongsTo/RelationHasOne. + For RelationManyToMany: privilege grants for the junction table. Forwarded to secure_table_provision as-is. Format: PostgreSQL array of jsonb [privilege, columns] tuples. Examples: ARRAY['["select","*"]'::jsonb, '["insert","*"]'::jsonb] for full access, or ARRAY['["update",["name","bio"]]'::jsonb] for column-level grants. "*" means all columns. Defaults to select/insert/delete for all columns. Ignored for RelationBelongsTo/RelationHasOne. """ - grantPrivileges: JSON + grantPrivileges: [JSON] """ For RelationManyToMany: RLS policy type for the junction table. Forwarded to secure_table_provision as-is. The trigger does not interpret or validate this value. @@ -41366,149 +41221,6 @@ input RelationProvisionPatch { outTargetFieldId: UUID } -"""The output of our update `Field` mutation.""" -type UpdateFieldPayload { - """ - 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 `Field` that was updated by this mutation.""" - field: Field - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `Field`. May be used by Relay 1.""" - fieldEdge( - """The method to use when ordering `Field`.""" - orderBy: [FieldOrderBy!]! = [PRIMARY_KEY_ASC] - ): FieldEdge -} - -"""All input for the `updateField` mutation.""" -input UpdateFieldInput { - """ - 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 - id: UUID! - - """ - An object where the defined keys will be set on the `Field` being updated. - """ - fieldPatch: FieldPatch! -} - -""" -Represents an update to a `Field`. Fields that are set will be updated. -""" -input FieldPatch { - id: UUID - databaseId: UUID - tableId: UUID - name: String - label: String - description: String - smartTags: JSON - isRequired: Boolean - defaultValue: String - defaultValueAst: JSON - isHidden: Boolean - type: String - fieldOrder: Int - regexp: String - chk: JSON - chkExpr: JSON - min: Float - max: Float - tags: [String] - category: ObjectCategory - module: String - scope: Int - createdAt: Datetime - updatedAt: Datetime -} - -"""The output of our update `MembershipsModule` mutation.""" -type UpdateMembershipsModulePayload { - """ - 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 `MembershipsModule` that was updated by this mutation.""" - membershipsModule: MembershipsModule - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `MembershipsModule`. May be used by Relay 1.""" - membershipsModuleEdge( - """The method to use when ordering `MembershipsModule`.""" - orderBy: [MembershipsModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): MembershipsModuleEdge -} - -"""All input for the `updateMembershipsModule` mutation.""" -input UpdateMembershipsModuleInput { - """ - 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 - id: UUID! - - """ - An object where the defined keys will be set on the `MembershipsModule` being updated. - """ - membershipsModulePatch: MembershipsModulePatch! -} - -""" -Represents an update to a `MembershipsModule`. Fields that are set will be updated. -""" -input MembershipsModulePatch { - id: UUID - databaseId: UUID - schemaId: UUID - privateSchemaId: UUID - membershipsTableId: UUID - membershipsTableName: String - membersTableId: UUID - membersTableName: String - membershipDefaultsTableId: UUID - membershipDefaultsTableName: String - grantsTableId: UUID - grantsTableName: String - actorTableId: UUID - limitsTableId: UUID - defaultLimitsTableId: UUID - permissionsTableId: UUID - defaultPermissionsTableId: UUID - sprtTableId: UUID - adminGrantsTableId: UUID - adminGrantsTableName: String - ownerGrantsTableId: UUID - ownerGrantsTableName: String - membershipType: Int - entityTableId: UUID - entityTableOwnerId: UUID - prefix: String - actorMaskCheck: String - actorPermCheck: String - entityIdsByMask: String - entityIdsByPerm: String - entityIdsFunction: String -} - """The output of our delete `DefaultIdsModule` mutation.""" type DeleteDefaultIdsModulePayload { """ @@ -41610,6 +41322,41 @@ input DeleteApiSchemaInput { id: UUID! } +"""The output of our delete `SiteTheme` mutation.""" +type DeleteSiteThemePayload { + """ + 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 `SiteTheme` that was deleted by this mutation.""" + siteTheme: SiteTheme + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `SiteTheme`. May be used by Relay 1.""" + siteThemeEdge( + """The method to use when ordering `SiteTheme`.""" + orderBy: [SiteThemeOrderBy!]! = [PRIMARY_KEY_ASC] + ): SiteThemeEdge +} + +"""All input for the `deleteSiteTheme` mutation.""" +input DeleteSiteThemeInput { + """ + 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 theme record""" + id: UUID! +} + """The output of our delete `OrgMember` mutation.""" type DeleteOrgMemberPayload { """ @@ -41778,74 +41525,6 @@ input DeleteSecretsModuleInput { id: UUID! } -"""The output of our delete `UuidModule` mutation.""" -type DeleteUuidModulePayload { - """ - 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 `UuidModule` that was deleted by this mutation.""" - uuidModule: UuidModule - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `UuidModule`. May be used by Relay 1.""" - uuidModuleEdge( - """The method to use when ordering `UuidModule`.""" - orderBy: [UuidModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): UuidModuleEdge -} - -"""All input for the `deleteUuidModule` mutation.""" -input DeleteUuidModuleInput { - """ - 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 - id: UUID! -} - -"""The output of our delete `SiteTheme` mutation.""" -type DeleteSiteThemePayload { - """ - 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 `SiteTheme` that was deleted by this mutation.""" - siteTheme: SiteTheme - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `SiteTheme`. May be used by Relay 1.""" - siteThemeEdge( - """The method to use when ordering `SiteTheme`.""" - orderBy: [SiteThemeOrderBy!]! = [PRIMARY_KEY_ASC] - ): SiteThemeEdge -} - -"""All input for the `deleteSiteTheme` mutation.""" -input DeleteSiteThemeInput { - """ - 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 theme record""" - id: UUID! -} - """The output of our delete `Store` mutation.""" type DeleteStorePayload { """ @@ -42613,6 +42292,39 @@ input DeleteCryptoAddressesModuleInput { id: UUID! } +"""The output of our delete `ConnectedAccount` mutation.""" +type DeleteConnectedAccountPayload { + """ + 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 `ConnectedAccount` that was deleted by this mutation.""" + connectedAccount: ConnectedAccount + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `ConnectedAccount`. May be used by Relay 1.""" + connectedAccountEdge( + """The method to use when ordering `ConnectedAccount`.""" + orderBy: [ConnectedAccountOrderBy!]! = [PRIMARY_KEY_ASC] + ): ConnectedAccountEdge +} + +"""All input for the `deleteConnectedAccount` mutation.""" +input DeleteConnectedAccountInput { + """ + 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 + id: UUID! +} + """The output of our delete `PhoneNumber` mutation.""" type DeletePhoneNumberPayload { """ @@ -42712,39 +42424,6 @@ input DeleteOrgLimitDefaultInput { id: UUID! } -"""The output of our delete `ConnectedAccount` mutation.""" -type DeleteConnectedAccountPayload { - """ - 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 `ConnectedAccount` that was deleted by this mutation.""" - connectedAccount: ConnectedAccount - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `ConnectedAccount`. May be used by Relay 1.""" - connectedAccountEdge( - """The method to use when ordering `ConnectedAccount`.""" - orderBy: [ConnectedAccountOrderBy!]! = [PRIMARY_KEY_ASC] - ): ConnectedAccountEdge -} - -"""All input for the `deleteConnectedAccount` mutation.""" -input DeleteConnectedAccountInput { - """ - 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 - id: UUID! -} - """The output of our delete `TableGrant` mutation.""" type DeleteTableGrantPayload { """ @@ -43753,6 +43432,39 @@ input DeleteAppLevelInput { id: UUID! } +"""The output of our delete `DatabaseTransfer` mutation.""" +type DeleteDatabaseTransferPayload { + """ + 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 `DatabaseTransfer` that was deleted by this mutation.""" + databaseTransfer: DatabaseTransfer + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `DatabaseTransfer`. May be used by Relay 1.""" + databaseTransferEdge( + """The method to use when ordering `DatabaseTransfer`.""" + orderBy: [DatabaseTransferOrderBy!]! = [PRIMARY_KEY_ASC] + ): DatabaseTransferEdge +} + +"""All input for the `deleteDatabaseTransfer` mutation.""" +input DeleteDatabaseTransferInput { + """ + 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 + id: UUID! +} + """The output of our delete `CryptoAuthModule` mutation.""" type DeleteCryptoAuthModulePayload { """ @@ -43885,6 +43597,39 @@ input DeleteEmailInput { id: UUID! } +"""The output of our delete `Enum` mutation.""" +type DeleteEnumPayload { + """ + 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 `Enum` that was deleted by this mutation.""" + enum: Enum + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Enum`. May be used by Relay 1.""" + enumEdge( + """The method to use when ordering `Enum`.""" + orderBy: [EnumOrderBy!]! = [PRIMARY_KEY_ASC] + ): EnumEdge +} + +"""All input for the `deleteEnum` mutation.""" +input DeleteEnumInput { + """ + 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 + id: UUID! +} + """The output of our delete `View` mutation.""" type DeleteViewPayload { """ @@ -43918,6 +43663,41 @@ input DeleteViewInput { id: UUID! } +"""The output of our delete `Blueprint` mutation.""" +type DeleteBlueprintPayload { + """ + 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 `Blueprint` that was deleted by this mutation.""" + blueprint: Blueprint + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Blueprint`. May be used by Relay 1.""" + blueprintEdge( + """The method to use when ordering `Blueprint`.""" + orderBy: [BlueprintOrderBy!]! = [PRIMARY_KEY_ASC] + ): BlueprintEdge +} + +"""All input for the `deleteBlueprint` mutation.""" +input DeleteBlueprintInput { + """ + 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 blueprint.""" + id: UUID! +} + """The output of our delete `PermissionsModule` mutation.""" type DeletePermissionsModulePayload { """ @@ -43951,31 +43731,31 @@ input DeletePermissionsModuleInput { id: UUID! } -"""The output of our delete `LimitsModule` mutation.""" -type DeleteLimitsModulePayload { +"""The output of our delete `EmbeddingChunk` mutation.""" +type DeleteEmbeddingChunkPayload { """ 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 `LimitsModule` that was deleted by this mutation.""" - limitsModule: LimitsModule + """The `EmbeddingChunk` that was deleted by this mutation.""" + embeddingChunk: EmbeddingChunk """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `LimitsModule`. May be used by Relay 1.""" - limitsModuleEdge( - """The method to use when ordering `LimitsModule`.""" - orderBy: [LimitsModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): LimitsModuleEdge + """An edge for our `EmbeddingChunk`. May be used by Relay 1.""" + embeddingChunkEdge( + """The method to use when ordering `EmbeddingChunk`.""" + orderBy: [EmbeddingChunkOrderBy!]! = [PRIMARY_KEY_ASC] + ): EmbeddingChunkEdge } -"""All input for the `deleteLimitsModule` mutation.""" -input DeleteLimitsModuleInput { +"""All input for the `deleteEmbeddingChunk` mutation.""" +input DeleteEmbeddingChunkInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -43984,31 +43764,31 @@ input DeleteLimitsModuleInput { id: UUID! } -"""The output of our delete `ProfilesModule` mutation.""" -type DeleteProfilesModulePayload { +"""The output of our delete `LimitsModule` mutation.""" +type DeleteLimitsModulePayload { """ 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 `ProfilesModule` that was deleted by this mutation.""" - profilesModule: ProfilesModule + """The `LimitsModule` that was deleted by this mutation.""" + limitsModule: LimitsModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `ProfilesModule`. May be used by Relay 1.""" - profilesModuleEdge( - """The method to use when ordering `ProfilesModule`.""" - orderBy: [ProfilesModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): ProfilesModuleEdge + """An edge for our `LimitsModule`. May be used by Relay 1.""" + limitsModuleEdge( + """The method to use when ordering `LimitsModule`.""" + orderBy: [LimitsModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): LimitsModuleEdge } -"""All input for the `deleteProfilesModule` mutation.""" -input DeleteProfilesModuleInput { +"""All input for the `deleteLimitsModule` mutation.""" +input DeleteLimitsModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -44017,38 +43797,36 @@ input DeleteProfilesModuleInput { id: UUID! } -"""The output of our delete `SecureTableProvision` mutation.""" -type DeleteSecureTableProvisionPayload { +"""The output of our delete `ProfilesModule` mutation.""" +type DeleteProfilesModulePayload { """ 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 `SecureTableProvision` that was deleted by this mutation.""" - secureTableProvision: SecureTableProvision + """The `ProfilesModule` that was deleted by this mutation.""" + profilesModule: ProfilesModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `SecureTableProvision`. May be used by Relay 1.""" - secureTableProvisionEdge( - """The method to use when ordering `SecureTableProvision`.""" - orderBy: [SecureTableProvisionOrderBy!]! = [PRIMARY_KEY_ASC] - ): SecureTableProvisionEdge + """An edge for our `ProfilesModule`. May be used by Relay 1.""" + profilesModuleEdge( + """The method to use when ordering `ProfilesModule`.""" + orderBy: [ProfilesModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): ProfilesModuleEdge } -"""All input for the `deleteSecureTableProvision` mutation.""" -input DeleteSecureTableProvisionInput { +"""All input for the `deleteProfilesModule` mutation.""" +input DeleteProfilesModuleInput { """ 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 provision row.""" id: UUID! } @@ -44452,6 +44230,41 @@ input DeleteSiteInput { id: UUID! } +"""The output of our delete `BlueprintTemplate` mutation.""" +type DeleteBlueprintTemplatePayload { + """ + 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 `BlueprintTemplate` that was deleted by this mutation.""" + blueprintTemplate: BlueprintTemplate + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `BlueprintTemplate`. May be used by Relay 1.""" + blueprintTemplateEdge( + """The method to use when ordering `BlueprintTemplate`.""" + orderBy: [BlueprintTemplateOrderBy!]! = [PRIMARY_KEY_ASC] + ): BlueprintTemplateEdge +} + +"""All input for the `deleteBlueprintTemplate` mutation.""" +input DeleteBlueprintTemplateInput { + """ + 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 template.""" + id: UUID! +} + """The output of our delete `HierarchyModule` mutation.""" type DeleteHierarchyModulePayload { """ @@ -44551,6 +44364,41 @@ input DeleteForeignKeyConstraintInput { id: UUID! } +"""The output of our delete `SecureTableProvision` mutation.""" +type DeleteSecureTableProvisionPayload { + """ + 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 `SecureTableProvision` that was deleted by this mutation.""" + secureTableProvision: SecureTableProvision + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `SecureTableProvision`. May be used by Relay 1.""" + secureTableProvisionEdge( + """The method to use when ordering `SecureTableProvision`.""" + orderBy: [SecureTableProvisionOrderBy!]! = [PRIMARY_KEY_ASC] + ): SecureTableProvisionEdge +} + +"""All input for the `deleteSecureTableProvision` mutation.""" +input DeleteSecureTableProvisionInput { + """ + 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 provision row.""" + id: UUID! +} + """The output of our delete `OrgInvite` mutation.""" type DeleteOrgInvitePayload { """ @@ -44683,41 +44531,6 @@ input DeleteUserAuthModuleInput { id: UUID! } -"""The output of our delete `RelationProvision` mutation.""" -type DeleteRelationProvisionPayload { - """ - 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 `RelationProvision` that was deleted by this mutation.""" - relationProvision: RelationProvision - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `RelationProvision`. May be used by Relay 1.""" - relationProvisionEdge( - """The method to use when ordering `RelationProvision`.""" - orderBy: [RelationProvisionOrderBy!]! = [PRIMARY_KEY_ASC] - ): RelationProvisionEdge -} - -"""All input for the `deleteRelationProvision` mutation.""" -input DeleteRelationProvisionInput { - """ - 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 relation provision row.""" - id: UUID! -} - """The output of our delete `Field` mutation.""" type DeleteFieldPayload { """ @@ -44782,4 +44595,39 @@ input DeleteMembershipsModuleInput { """ clientMutationId: String id: UUID! +} + +"""The output of our delete `RelationProvision` mutation.""" +type DeleteRelationProvisionPayload { + """ + 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 `RelationProvision` that was deleted by this mutation.""" + relationProvision: RelationProvision + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `RelationProvision`. May be used by Relay 1.""" + relationProvisionEdge( + """The method to use when ordering `RelationProvision`.""" + orderBy: [RelationProvisionOrderBy!]! = [PRIMARY_KEY_ASC] + ): RelationProvisionEdge +} + +"""All input for the `deleteRelationProvision` mutation.""" +input DeleteRelationProvisionInput { + """ + 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 relation provision row.""" + id: UUID! } \ No newline at end of file diff --git a/sdk/constructive-sdk/src/admin/orm/README.md b/sdk/constructive-sdk/src/admin/orm/README.md index 74e966fea..c52770a50 100644 --- a/sdk/constructive-sdk/src/admin/orm/README.md +++ b/sdk/constructive-sdk/src/admin/orm/README.md @@ -74,16 +74,16 @@ CRUD operations for OrgGetManagersRecord records. const items = await db.orgGetManagersRecord.findMany({ select: { userId: true, depth: true } }).execute(); // Get one by id -const item = await db.orgGetManagersRecord.findOne({ id: '', select: { userId: true, depth: true } }).execute(); +const item = await db.orgGetManagersRecord.findOne({ id: '', select: { userId: true, depth: true } }).execute(); // Create -const created = await db.orgGetManagersRecord.create({ data: { userId: '', depth: '' }, select: { id: true } }).execute(); +const created = await db.orgGetManagersRecord.create({ data: { userId: '', depth: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgGetManagersRecord.update({ where: { id: '' }, data: { userId: '' }, select: { id: true } }).execute(); +const updated = await db.orgGetManagersRecord.update({ where: { id: '' }, data: { userId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgGetManagersRecord.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgGetManagersRecord.delete({ where: { id: '' } }).execute(); ``` ### `db.orgGetSubordinatesRecord` @@ -104,16 +104,16 @@ CRUD operations for OrgGetSubordinatesRecord records. const items = await db.orgGetSubordinatesRecord.findMany({ select: { userId: true, depth: true } }).execute(); // Get one by id -const item = await db.orgGetSubordinatesRecord.findOne({ id: '', select: { userId: true, depth: true } }).execute(); +const item = await db.orgGetSubordinatesRecord.findOne({ id: '', select: { userId: true, depth: true } }).execute(); // Create -const created = await db.orgGetSubordinatesRecord.create({ data: { userId: '', depth: '' }, select: { id: true } }).execute(); +const created = await db.orgGetSubordinatesRecord.create({ data: { userId: '', depth: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgGetSubordinatesRecord.update({ where: { id: '' }, data: { userId: '' }, select: { id: true } }).execute(); +const updated = await db.orgGetSubordinatesRecord.update({ where: { id: '' }, data: { userId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgGetSubordinatesRecord.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgGetSubordinatesRecord.delete({ where: { id: '' } }).execute(); ``` ### `db.appPermission` @@ -129,26 +129,24 @@ CRUD operations for AppPermission records. | `bitnum` | Int | Yes | | `bitstr` | BitString | Yes | | `description` | String | Yes | -| `descriptionTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all appPermission records -const items = await db.appPermission.findMany({ select: { id: true, name: true, bitnum: true, bitstr: true, description: true, descriptionTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.appPermission.findMany({ select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); // Get one by id -const item = await db.appPermission.findOne({ id: '', select: { id: true, name: true, bitnum: true, bitstr: true, description: true, descriptionTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.appPermission.findOne({ id: '', select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); // Create -const created = await db.appPermission.create({ data: { name: '', bitnum: '', bitstr: '', description: '', descriptionTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.appPermission.create({ data: { name: '', bitnum: '', bitstr: '', description: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appPermission.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.appPermission.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appPermission.delete({ where: { id: '' } }).execute(); +const deleted = await db.appPermission.delete({ where: { id: '' } }).execute(); ``` ### `db.orgPermission` @@ -164,26 +162,24 @@ CRUD operations for OrgPermission records. | `bitnum` | Int | Yes | | `bitstr` | BitString | Yes | | `description` | String | Yes | -| `descriptionTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all orgPermission records -const items = await db.orgPermission.findMany({ select: { id: true, name: true, bitnum: true, bitstr: true, description: true, descriptionTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.orgPermission.findMany({ select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); // Get one by id -const item = await db.orgPermission.findOne({ id: '', select: { id: true, name: true, bitnum: true, bitstr: true, description: true, descriptionTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.orgPermission.findOne({ id: '', select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); // Create -const created = await db.orgPermission.create({ data: { name: '', bitnum: '', bitstr: '', description: '', descriptionTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.orgPermission.create({ data: { name: '', bitnum: '', bitstr: '', description: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgPermission.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.orgPermission.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgPermission.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgPermission.delete({ where: { id: '' } }).execute(); ``` ### `db.appLevelRequirement` @@ -202,26 +198,24 @@ CRUD operations for AppLevelRequirement records. | `priority` | Int | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `descriptionTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all appLevelRequirement records -const items = await db.appLevelRequirement.findMany({ select: { id: true, name: true, level: true, description: true, requiredCount: true, priority: true, createdAt: true, updatedAt: true, descriptionTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.appLevelRequirement.findMany({ select: { id: true, name: true, level: true, description: true, requiredCount: true, priority: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.appLevelRequirement.findOne({ id: '', select: { id: true, name: true, level: true, description: true, requiredCount: true, priority: true, createdAt: true, updatedAt: true, descriptionTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.appLevelRequirement.findOne({ id: '', select: { id: true, name: true, level: true, description: true, requiredCount: true, priority: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.appLevelRequirement.create({ data: { name: '', level: '', description: '', requiredCount: '', priority: '', descriptionTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.appLevelRequirement.create({ data: { name: '', level: '', description: '', requiredCount: '', priority: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appLevelRequirement.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.appLevelRequirement.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appLevelRequirement.delete({ where: { id: '' } }).execute(); +const deleted = await db.appLevelRequirement.delete({ where: { id: '' } }).execute(); ``` ### `db.orgMember` @@ -244,16 +238,16 @@ CRUD operations for OrgMember records. const items = await db.orgMember.findMany({ select: { id: true, isAdmin: true, actorId: true, entityId: true } }).execute(); // Get one by id -const item = await db.orgMember.findOne({ id: '', select: { id: true, isAdmin: true, actorId: true, entityId: true } }).execute(); +const item = await db.orgMember.findOne({ id: '', select: { id: true, isAdmin: true, actorId: true, entityId: true } }).execute(); // Create -const created = await db.orgMember.create({ data: { isAdmin: '', actorId: '', entityId: '' }, select: { id: true } }).execute(); +const created = await db.orgMember.create({ data: { isAdmin: '', actorId: '', entityId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgMember.update({ where: { id: '' }, data: { isAdmin: '' }, select: { id: true } }).execute(); +const updated = await db.orgMember.update({ where: { id: '' }, data: { isAdmin: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgMember.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgMember.delete({ where: { id: '' } }).execute(); ``` ### `db.appPermissionDefault` @@ -274,16 +268,16 @@ CRUD operations for AppPermissionDefault records. const items = await db.appPermissionDefault.findMany({ select: { id: true, permissions: true } }).execute(); // Get one by id -const item = await db.appPermissionDefault.findOne({ id: '', select: { id: true, permissions: true } }).execute(); +const item = await db.appPermissionDefault.findOne({ id: '', select: { id: true, permissions: true } }).execute(); // Create -const created = await db.appPermissionDefault.create({ data: { permissions: '' }, select: { id: true } }).execute(); +const created = await db.appPermissionDefault.create({ data: { permissions: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appPermissionDefault.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); +const updated = await db.appPermissionDefault.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appPermissionDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.appPermissionDefault.delete({ where: { id: '' } }).execute(); ``` ### `db.orgPermissionDefault` @@ -305,16 +299,16 @@ CRUD operations for OrgPermissionDefault records. const items = await db.orgPermissionDefault.findMany({ select: { id: true, permissions: true, entityId: true } }).execute(); // Get one by id -const item = await db.orgPermissionDefault.findOne({ id: '', select: { id: true, permissions: true, entityId: true } }).execute(); +const item = await db.orgPermissionDefault.findOne({ id: '', select: { id: true, permissions: true, entityId: true } }).execute(); // Create -const created = await db.orgPermissionDefault.create({ data: { permissions: '', entityId: '' }, select: { id: true } }).execute(); +const created = await db.orgPermissionDefault.create({ data: { permissions: '', entityId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgPermissionDefault.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); +const updated = await db.orgPermissionDefault.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgPermissionDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgPermissionDefault.delete({ where: { id: '' } }).execute(); ``` ### `db.appAdminGrant` @@ -339,16 +333,16 @@ CRUD operations for AppAdminGrant records. const items = await db.appAdminGrant.findMany({ select: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.appAdminGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.appAdminGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.appAdminGrant.create({ data: { isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute(); +const created = await db.appAdminGrant.create({ data: { isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appAdminGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); +const updated = await db.appAdminGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appAdminGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.appAdminGrant.delete({ where: { id: '' } }).execute(); ``` ### `db.appOwnerGrant` @@ -373,16 +367,16 @@ CRUD operations for AppOwnerGrant records. const items = await db.appOwnerGrant.findMany({ select: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.appOwnerGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.appOwnerGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.appOwnerGrant.create({ data: { isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute(); +const created = await db.appOwnerGrant.create({ data: { isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appOwnerGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); +const updated = await db.appOwnerGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appOwnerGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.appOwnerGrant.delete({ where: { id: '' } }).execute(); ``` ### `db.orgAdminGrant` @@ -408,16 +402,16 @@ CRUD operations for OrgAdminGrant records. const items = await db.orgAdminGrant.findMany({ select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.orgAdminGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.orgAdminGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.orgAdminGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); +const created = await db.orgAdminGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgAdminGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); +const updated = await db.orgAdminGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgAdminGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgAdminGrant.delete({ where: { id: '' } }).execute(); ``` ### `db.orgOwnerGrant` @@ -443,16 +437,16 @@ CRUD operations for OrgOwnerGrant records. const items = await db.orgOwnerGrant.findMany({ select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.orgOwnerGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.orgOwnerGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.orgOwnerGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); +const created = await db.orgOwnerGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgOwnerGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); +const updated = await db.orgOwnerGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgOwnerGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgOwnerGrant.delete({ where: { id: '' } }).execute(); ``` ### `db.appLimitDefault` @@ -474,16 +468,16 @@ CRUD operations for AppLimitDefault records. const items = await db.appLimitDefault.findMany({ select: { id: true, name: true, max: true } }).execute(); // Get one by id -const item = await db.appLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true } }).execute(); +const item = await db.appLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true } }).execute(); // Create -const created = await db.appLimitDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute(); +const created = await db.appLimitDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.appLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appLimitDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.appLimitDefault.delete({ where: { id: '' } }).execute(); ``` ### `db.orgLimitDefault` @@ -505,16 +499,16 @@ CRUD operations for OrgLimitDefault records. const items = await db.orgLimitDefault.findMany({ select: { id: true, name: true, max: true } }).execute(); // Get one by id -const item = await db.orgLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true } }).execute(); +const item = await db.orgLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true } }).execute(); // Create -const created = await db.orgLimitDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute(); +const created = await db.orgLimitDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.orgLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgLimitDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgLimitDefault.delete({ where: { id: '' } }).execute(); ``` ### `db.orgChartEdgeGrant` @@ -534,26 +528,24 @@ CRUD operations for OrgChartEdgeGrant records. | `positionTitle` | String | Yes | | `positionLevel` | Int | Yes | | `createdAt` | Datetime | No | -| `positionTitleTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all orgChartEdgeGrant records -const items = await db.orgChartEdgeGrant.findMany({ select: { id: true, entityId: true, childId: true, parentId: true, grantorId: true, isGrant: true, positionTitle: true, positionLevel: true, createdAt: true, positionTitleTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.orgChartEdgeGrant.findMany({ select: { id: true, entityId: true, childId: true, parentId: true, grantorId: true, isGrant: true, positionTitle: true, positionLevel: true, createdAt: true } }).execute(); // Get one by id -const item = await db.orgChartEdgeGrant.findOne({ id: '', select: { id: true, entityId: true, childId: true, parentId: true, grantorId: true, isGrant: true, positionTitle: true, positionLevel: true, createdAt: true, positionTitleTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.orgChartEdgeGrant.findOne({ id: '', select: { id: true, entityId: true, childId: true, parentId: true, grantorId: true, isGrant: true, positionTitle: true, positionLevel: true, createdAt: true } }).execute(); // Create -const created = await db.orgChartEdgeGrant.create({ data: { entityId: '', childId: '', parentId: '', grantorId: '', isGrant: '', positionTitle: '', positionLevel: '', positionTitleTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.orgChartEdgeGrant.create({ data: { entityId: '', childId: '', parentId: '', grantorId: '', isGrant: '', positionTitle: '', positionLevel: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgChartEdgeGrant.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); +const updated = await db.orgChartEdgeGrant.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgChartEdgeGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgChartEdgeGrant.delete({ where: { id: '' } }).execute(); ``` ### `db.membershipType` @@ -568,27 +560,24 @@ CRUD operations for MembershipType records. | `name` | String | Yes | | `description` | String | Yes | | `prefix` | String | Yes | -| `descriptionTrgmSimilarity` | Float | Yes | -| `prefixTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all membershipType records -const items = await db.membershipType.findMany({ select: { id: true, name: true, description: true, prefix: true, descriptionTrgmSimilarity: true, prefixTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.membershipType.findMany({ select: { id: true, name: true, description: true, prefix: true } }).execute(); // Get one by id -const item = await db.membershipType.findOne({ id: '', select: { id: true, name: true, description: true, prefix: true, descriptionTrgmSimilarity: true, prefixTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.membershipType.findOne({ id: '', select: { id: true, name: true, description: true, prefix: true } }).execute(); // Create -const created = await db.membershipType.create({ data: { name: '', description: '', prefix: '', descriptionTrgmSimilarity: '', prefixTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.membershipType.create({ data: { name: '', description: '', prefix: '' }, select: { id: true } }).execute(); // Update -const updated = await db.membershipType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.membershipType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.membershipType.delete({ where: { id: '' } }).execute(); +const deleted = await db.membershipType.delete({ where: { id: '' } }).execute(); ``` ### `db.appLimit` @@ -612,16 +601,16 @@ CRUD operations for AppLimit records. const items = await db.appLimit.findMany({ select: { id: true, name: true, actorId: true, num: true, max: true } }).execute(); // Get one by id -const item = await db.appLimit.findOne({ id: '', select: { id: true, name: true, actorId: true, num: true, max: true } }).execute(); +const item = await db.appLimit.findOne({ id: '', select: { id: true, name: true, actorId: true, num: true, max: true } }).execute(); // Create -const created = await db.appLimit.create({ data: { name: '', actorId: '', num: '', max: '' }, select: { id: true } }).execute(); +const created = await db.appLimit.create({ data: { name: '', actorId: '', num: '', max: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appLimit.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.appLimit.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appLimit.delete({ where: { id: '' } }).execute(); +const deleted = await db.appLimit.delete({ where: { id: '' } }).execute(); ``` ### `db.appAchievement` @@ -646,16 +635,16 @@ CRUD operations for AppAchievement records. const items = await db.appAchievement.findMany({ select: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.appAchievement.findOne({ id: '', select: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.appAchievement.findOne({ id: '', select: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.appAchievement.create({ data: { actorId: '', name: '', count: '' }, select: { id: true } }).execute(); +const created = await db.appAchievement.create({ data: { actorId: '', name: '', count: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appAchievement.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); +const updated = await db.appAchievement.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appAchievement.delete({ where: { id: '' } }).execute(); +const deleted = await db.appAchievement.delete({ where: { id: '' } }).execute(); ``` ### `db.appStep` @@ -680,16 +669,16 @@ CRUD operations for AppStep records. const items = await db.appStep.findMany({ select: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.appStep.findOne({ id: '', select: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.appStep.findOne({ id: '', select: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.appStep.create({ data: { actorId: '', name: '', count: '' }, select: { id: true } }).execute(); +const created = await db.appStep.create({ data: { actorId: '', name: '', count: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appStep.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); +const updated = await db.appStep.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appStep.delete({ where: { id: '' } }).execute(); +const deleted = await db.appStep.delete({ where: { id: '' } }).execute(); ``` ### `db.claimedInvite` @@ -714,16 +703,16 @@ CRUD operations for ClaimedInvite records. const items = await db.claimedInvite.findMany({ select: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.claimedInvite.findOne({ id: '', select: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.claimedInvite.findOne({ id: '', select: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.claimedInvite.create({ data: { data: '', senderId: '', receiverId: '' }, select: { id: true } }).execute(); +const created = await db.claimedInvite.create({ data: { data: '', senderId: '', receiverId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.claimedInvite.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); +const updated = await db.claimedInvite.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.claimedInvite.delete({ where: { id: '' } }).execute(); +const deleted = await db.claimedInvite.delete({ where: { id: '' } }).execute(); ``` ### `db.appGrant` @@ -749,16 +738,16 @@ CRUD operations for AppGrant records. const items = await db.appGrant.findMany({ select: { id: true, permissions: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.appGrant.findOne({ id: '', select: { id: true, permissions: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.appGrant.findOne({ id: '', select: { id: true, permissions: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.appGrant.create({ data: { permissions: '', isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute(); +const created = await db.appGrant.create({ data: { permissions: '', isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appGrant.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); +const updated = await db.appGrant.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.appGrant.delete({ where: { id: '' } }).execute(); ``` ### `db.appMembershipDefault` @@ -784,16 +773,16 @@ CRUD operations for AppMembershipDefault records. const items = await db.appMembershipDefault.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }).execute(); // Get one by id -const item = await db.appMembershipDefault.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }).execute(); +const item = await db.appMembershipDefault.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }).execute(); // Create -const created = await db.appMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isVerified: '' }, select: { id: true } }).execute(); +const created = await db.appMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isVerified: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); +const updated = await db.appMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appMembershipDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.appMembershipDefault.delete({ where: { id: '' } }).execute(); ``` ### `db.orgLimit` @@ -818,16 +807,16 @@ CRUD operations for OrgLimit records. const items = await db.orgLimit.findMany({ select: { id: true, name: true, actorId: true, num: true, max: true, entityId: true } }).execute(); // Get one by id -const item = await db.orgLimit.findOne({ id: '', select: { id: true, name: true, actorId: true, num: true, max: true, entityId: true } }).execute(); +const item = await db.orgLimit.findOne({ id: '', select: { id: true, name: true, actorId: true, num: true, max: true, entityId: true } }).execute(); // Create -const created = await db.orgLimit.create({ data: { name: '', actorId: '', num: '', max: '', entityId: '' }, select: { id: true } }).execute(); +const created = await db.orgLimit.create({ data: { name: '', actorId: '', num: '', max: '', entityId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgLimit.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.orgLimit.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgLimit.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgLimit.delete({ where: { id: '' } }).execute(); ``` ### `db.orgClaimedInvite` @@ -853,16 +842,16 @@ CRUD operations for OrgClaimedInvite records. const items = await db.orgClaimedInvite.findMany({ select: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true, entityId: true } }).execute(); // Get one by id -const item = await db.orgClaimedInvite.findOne({ id: '', select: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true, entityId: true } }).execute(); +const item = await db.orgClaimedInvite.findOne({ id: '', select: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true, entityId: true } }).execute(); // Create -const created = await db.orgClaimedInvite.create({ data: { data: '', senderId: '', receiverId: '', entityId: '' }, select: { id: true } }).execute(); +const created = await db.orgClaimedInvite.create({ data: { data: '', senderId: '', receiverId: '', entityId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgClaimedInvite.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); +const updated = await db.orgClaimedInvite.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgClaimedInvite.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgClaimedInvite.delete({ where: { id: '' } }).execute(); ``` ### `db.orgGrant` @@ -889,16 +878,16 @@ CRUD operations for OrgGrant records. const items = await db.orgGrant.findMany({ select: { id: true, permissions: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.orgGrant.findOne({ id: '', select: { id: true, permissions: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.orgGrant.findOne({ id: '', select: { id: true, permissions: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.orgGrant.create({ data: { permissions: '', isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); +const created = await db.orgGrant.create({ data: { permissions: '', isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgGrant.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); +const updated = await db.orgGrant.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgGrant.delete({ where: { id: '' } }).execute(); ``` ### `db.orgChartEdge` @@ -917,26 +906,24 @@ CRUD operations for OrgChartEdge records. | `parentId` | UUID | Yes | | `positionTitle` | String | Yes | | `positionLevel` | Int | Yes | -| `positionTitleTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all orgChartEdge records -const items = await db.orgChartEdge.findMany({ select: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true, positionTitleTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.orgChartEdge.findMany({ select: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true } }).execute(); // Get one by id -const item = await db.orgChartEdge.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true, positionTitleTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.orgChartEdge.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true } }).execute(); // Create -const created = await db.orgChartEdge.create({ data: { entityId: '', childId: '', parentId: '', positionTitle: '', positionLevel: '', positionTitleTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.orgChartEdge.create({ data: { entityId: '', childId: '', parentId: '', positionTitle: '', positionLevel: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgChartEdge.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); +const updated = await db.orgChartEdge.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgChartEdge.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgChartEdge.delete({ where: { id: '' } }).execute(); ``` ### `db.orgMembershipDefault` @@ -964,16 +951,16 @@ CRUD operations for OrgMembershipDefault records. const items = await db.orgMembershipDefault.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true, deleteMemberCascadeGroups: true, createGroupsCascadeMembers: true } }).execute(); // Get one by id -const item = await db.orgMembershipDefault.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true, deleteMemberCascadeGroups: true, createGroupsCascadeMembers: true } }).execute(); +const item = await db.orgMembershipDefault.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true, deleteMemberCascadeGroups: true, createGroupsCascadeMembers: true } }).execute(); // Create -const created = await db.orgMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', entityId: '', deleteMemberCascadeGroups: '', createGroupsCascadeMembers: '' }, select: { id: true } }).execute(); +const created = await db.orgMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', entityId: '', deleteMemberCascadeGroups: '', createGroupsCascadeMembers: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); +const updated = await db.orgMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgMembershipDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgMembershipDefault.delete({ where: { id: '' } }).execute(); ``` ### `db.appMembership` @@ -1008,16 +995,16 @@ CRUD operations for AppMembership records. const items = await db.appMembership.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }).execute(); // Get one by id -const item = await db.appMembership.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }).execute(); +const item = await db.appMembership.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }).execute(); // Create -const created = await db.appMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', profileId: '' }, select: { id: true } }).execute(); +const created = await db.appMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', profileId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); +const updated = await db.appMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appMembership.delete({ where: { id: '' } }).execute(); +const deleted = await db.appMembership.delete({ where: { id: '' } }).execute(); ``` ### `db.orgMembership` @@ -1052,16 +1039,16 @@ CRUD operations for OrgMembership records. const items = await db.orgMembership.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, profileId: true } }).execute(); // Get one by id -const item = await db.orgMembership.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, profileId: true } }).execute(); +const item = await db.orgMembership.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, profileId: true } }).execute(); // Create -const created = await db.orgMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '', profileId: '' }, select: { id: true } }).execute(); +const created = await db.orgMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '', profileId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); +const updated = await db.orgMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgMembership.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgMembership.delete({ where: { id: '' } }).execute(); ``` ### `db.invite` @@ -1084,26 +1071,24 @@ CRUD operations for Invite records. | `expiresAt` | Datetime | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `inviteTokenTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all invite records -const items = await db.invite.findMany({ select: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true, inviteTokenTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.invite.findMany({ select: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.invite.findOne({ id: '', select: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true, inviteTokenTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.invite.findOne({ id: '', select: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.invite.create({ data: { email: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '', inviteTokenTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.invite.create({ data: { email: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '' }, select: { id: true } }).execute(); // Update -const updated = await db.invite.update({ where: { id: '' }, data: { email: '' }, select: { id: true } }).execute(); +const updated = await db.invite.update({ where: { id: '' }, data: { email: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.invite.delete({ where: { id: '' } }).execute(); +const deleted = await db.invite.delete({ where: { id: '' } }).execute(); ``` ### `db.appLevel` @@ -1121,26 +1106,24 @@ CRUD operations for AppLevel records. | `ownerId` | UUID | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `descriptionTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all appLevel records -const items = await db.appLevel.findMany({ select: { id: true, name: true, description: true, image: true, ownerId: true, createdAt: true, updatedAt: true, descriptionTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.appLevel.findMany({ select: { id: true, name: true, description: true, image: true, ownerId: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.appLevel.findOne({ id: '', select: { id: true, name: true, description: true, image: true, ownerId: true, createdAt: true, updatedAt: true, descriptionTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.appLevel.findOne({ id: '', select: { id: true, name: true, description: true, image: true, ownerId: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.appLevel.create({ data: { name: '', description: '', image: '', ownerId: '', descriptionTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.appLevel.create({ data: { name: '', description: '', image: '', ownerId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appLevel.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.appLevel.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appLevel.delete({ where: { id: '' } }).execute(); +const deleted = await db.appLevel.delete({ where: { id: '' } }).execute(); ``` ### `db.orgInvite` @@ -1165,26 +1148,24 @@ CRUD operations for OrgInvite records. | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | | `entityId` | UUID | Yes | -| `inviteTokenTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all orgInvite records -const items = await db.orgInvite.findMany({ select: { id: true, email: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true, inviteTokenTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.orgInvite.findMany({ select: { id: true, email: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true } }).execute(); // Get one by id -const item = await db.orgInvite.findOne({ id: '', select: { id: true, email: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true, inviteTokenTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.orgInvite.findOne({ id: '', select: { id: true, email: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true } }).execute(); // Create -const created = await db.orgInvite.create({ data: { email: '', senderId: '', receiverId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '', entityId: '', inviteTokenTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.orgInvite.create({ data: { email: '', senderId: '', receiverId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '', entityId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgInvite.update({ where: { id: '' }, data: { email: '' }, select: { id: true } }).execute(); +const updated = await db.orgInvite.update({ where: { id: '' }, data: { email: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgInvite.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgInvite.delete({ where: { id: '' } }).execute(); ``` ## Custom Operations @@ -1201,7 +1182,7 @@ appPermissionsGetPaddedMask | `mask` | BitString | ```typescript -const result = await db.query.appPermissionsGetPaddedMask({ mask: '' }).execute(); +const result = await db.query.appPermissionsGetPaddedMask({ mask: '' }).execute(); ``` ### `db.query.orgPermissionsGetPaddedMask` @@ -1216,7 +1197,7 @@ orgPermissionsGetPaddedMask | `mask` | BitString | ```typescript -const result = await db.query.orgPermissionsGetPaddedMask({ mask: '' }).execute(); +const result = await db.query.orgPermissionsGetPaddedMask({ mask: '' }).execute(); ``` ### `db.query.orgIsManagerOf` @@ -1234,7 +1215,7 @@ orgIsManagerOf | `pMaxDepth` | Int | ```typescript -const result = await db.query.orgIsManagerOf({ pEntityId: '', pManagerId: '', pUserId: '', pMaxDepth: '' }).execute(); +const result = await db.query.orgIsManagerOf({ pEntityId: '', pManagerId: '', pUserId: '', pMaxDepth: '' }).execute(); ``` ### `db.query.appPermissionsGetMask` @@ -1249,7 +1230,7 @@ appPermissionsGetMask | `ids` | [UUID] | ```typescript -const result = await db.query.appPermissionsGetMask({ ids: '' }).execute(); +const result = await db.query.appPermissionsGetMask({ ids: '' }).execute(); ``` ### `db.query.orgPermissionsGetMask` @@ -1264,7 +1245,7 @@ orgPermissionsGetMask | `ids` | [UUID] | ```typescript -const result = await db.query.orgPermissionsGetMask({ ids: '' }).execute(); +const result = await db.query.orgPermissionsGetMask({ ids: '' }).execute(); ``` ### `db.query.stepsAchieved` @@ -1280,7 +1261,7 @@ stepsAchieved | `vroleId` | UUID | ```typescript -const result = await db.query.stepsAchieved({ vlevel: '', vroleId: '' }).execute(); +const result = await db.query.stepsAchieved({ vlevel: '', vroleId: '' }).execute(); ``` ### `db.query.appPermissionsGetMaskByNames` @@ -1295,7 +1276,7 @@ appPermissionsGetMaskByNames | `names` | [String] | ```typescript -const result = await db.query.appPermissionsGetMaskByNames({ names: '' }).execute(); +const result = await db.query.appPermissionsGetMaskByNames({ names: '' }).execute(); ``` ### `db.query.orgPermissionsGetMaskByNames` @@ -1310,7 +1291,7 @@ orgPermissionsGetMaskByNames | `names` | [String] | ```typescript -const result = await db.query.orgPermissionsGetMaskByNames({ names: '' }).execute(); +const result = await db.query.orgPermissionsGetMaskByNames({ names: '' }).execute(); ``` ### `db.query.appPermissionsGetByMask` @@ -1328,7 +1309,7 @@ Reads and enables pagination through a set of `AppPermission`. | `after` | Cursor | ```typescript -const result = await db.query.appPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute(); +const result = await db.query.appPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute(); ``` ### `db.query.orgPermissionsGetByMask` @@ -1346,7 +1327,7 @@ Reads and enables pagination through a set of `OrgPermission`. | `after` | Cursor | ```typescript -const result = await db.query.orgPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute(); +const result = await db.query.orgPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute(); ``` ### `db.query.stepsRequired` @@ -1365,7 +1346,7 @@ Reads and enables pagination through a set of `AppLevelRequirement`. | `after` | Cursor | ```typescript -const result = await db.query.stepsRequired({ vlevel: '', vroleId: '', first: '', offset: '', after: '' }).execute(); +const result = await db.query.stepsRequired({ vlevel: '', vroleId: '', first: '', offset: '', after: '' }).execute(); ``` ### `db.mutation.submitInviteCode` @@ -1380,7 +1361,7 @@ submitInviteCode | `input` | SubmitInviteCodeInput (required) | ```typescript -const result = await db.mutation.submitInviteCode({ input: '' }).execute(); +const result = await db.mutation.submitInviteCode({ input: { token: '' } }).execute(); ``` ### `db.mutation.submitOrgInviteCode` @@ -1395,7 +1376,7 @@ submitOrgInviteCode | `input` | SubmitOrgInviteCodeInput (required) | ```typescript -const result = await db.mutation.submitOrgInviteCode({ input: '' }).execute(); +const result = await db.mutation.submitOrgInviteCode({ input: { token: '' } }).execute(); ``` --- diff --git a/sdk/constructive-sdk/src/admin/orm/input-types.ts b/sdk/constructive-sdk/src/admin/orm/input-types.ts index f26ba6c58..9189f9381 100644 --- a/sdk/constructive-sdk/src/admin/orm/input-types.ts +++ b/sdk/constructive-sdk/src/admin/orm/input-types.ts @@ -253,10 +253,6 @@ export interface AppPermission { bitstr?: string | null; /** Human-readable description of what this permission allows */ description?: string | null; - /** TRGM similarity when searching `description`. Returns null when no trgm search filter is active. */ - descriptionTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } /** Defines available permissions as named bits within a bitmask, used by the RBAC system for access control */ export interface OrgPermission { @@ -269,10 +265,6 @@ export interface OrgPermission { bitstr?: string | null; /** Human-readable description of what this permission allows */ description?: string | null; - /** TRGM similarity when searching `description`. Returns null when no trgm search filter is active. */ - descriptionTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } /** Defines the specific requirements that must be met to achieve a level */ export interface AppLevelRequirement { @@ -289,10 +281,6 @@ export interface AppLevelRequirement { priority?: number | null; createdAt?: string | null; updatedAt?: string | null; - /** TRGM similarity when searching `description`. Returns null when no trgm search filter is active. */ - descriptionTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } /** Simplified view of active members in an entity, used for listing who belongs to an org or group */ export interface OrgMember { @@ -391,7 +379,7 @@ export interface OrgChartEdgeGrant { childId?: string | null; /** User ID of the manager being assigned; NULL for top-level positions */ parentId?: string | null; - /** User ID of the admin who performed this grant or revocation */ + /** User ID of the admin who performed this grant or revocation; NULL if grantor was deleted */ grantorId?: string | null; /** TRUE to add/update the edge, FALSE to remove it */ isGrant?: boolean | null; @@ -401,10 +389,6 @@ export interface OrgChartEdgeGrant { positionLevel?: number | null; /** Timestamp when this grant or revocation was recorded */ createdAt?: string | null; - /** TRGM similarity when searching `positionTitle`. Returns null when no trgm search filter is active. */ - positionTitleTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } /** Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) */ export interface MembershipType { @@ -416,12 +400,6 @@ export interface MembershipType { description?: string | null; /** Short prefix used to namespace tables and functions for this membership scope */ prefix?: string | null; - /** TRGM similarity when searching `description`. Returns null when no trgm search filter is active. */ - descriptionTrgmSimilarity?: number | null; - /** TRGM similarity when searching `prefix`. Returns null when no trgm search filter is active. */ - prefixTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } /** Tracks per-actor usage counts against configurable maximum limits */ export interface AppLimit { @@ -550,10 +528,6 @@ export interface OrgChartEdge { positionTitle?: string | null; /** Numeric seniority level for this position (higher = more senior) */ positionLevel?: number | null; - /** TRGM similarity when searching `positionTitle`. Returns null when no trgm search filter is active. */ - positionTitleTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } /** Default membership settings per entity, controlling initial approval and verification state for new members */ export interface OrgMembershipDefault { @@ -652,10 +626,6 @@ export interface Invite { expiresAt?: string | null; createdAt?: string | null; updatedAt?: string | null; - /** TRGM similarity when searching `inviteToken`. Returns null when no trgm search filter is active. */ - inviteTokenTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } /** Defines available levels that users can achieve by completing requirements */ export interface AppLevel { @@ -670,10 +640,6 @@ export interface AppLevel { ownerId?: string | null; createdAt?: string | null; updatedAt?: string | null; - /** TRGM similarity when searching `description`. Returns null when no trgm search filter is active. */ - descriptionTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } /** Invitation records sent to prospective members via email, with token-based redemption and expiration */ export interface OrgInvite { @@ -701,10 +667,6 @@ export interface OrgInvite { createdAt?: string | null; updatedAt?: string | null; entityId?: string | null; - /** TRGM similarity when searching `inviteToken`. Returns null when no trgm search filter is active. */ - inviteTokenTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } // ============ Relation Helper Types ============ export interface ConnectionResult { @@ -805,8 +767,6 @@ export type AppPermissionSelect = { bitnum?: boolean; bitstr?: boolean; description?: boolean; - descriptionTrgmSimilarity?: boolean; - searchScore?: boolean; }; export type OrgPermissionSelect = { id?: boolean; @@ -814,8 +774,6 @@ export type OrgPermissionSelect = { bitnum?: boolean; bitstr?: boolean; description?: boolean; - descriptionTrgmSimilarity?: boolean; - searchScore?: boolean; }; export type AppLevelRequirementSelect = { id?: boolean; @@ -826,8 +784,6 @@ export type AppLevelRequirementSelect = { priority?: boolean; createdAt?: boolean; updatedAt?: boolean; - descriptionTrgmSimilarity?: boolean; - searchScore?: boolean; }; export type OrgMemberSelect = { id?: boolean; @@ -898,17 +854,12 @@ export type OrgChartEdgeGrantSelect = { positionTitle?: boolean; positionLevel?: boolean; createdAt?: boolean; - positionTitleTrgmSimilarity?: boolean; - searchScore?: boolean; }; export type MembershipTypeSelect = { id?: boolean; name?: boolean; description?: boolean; prefix?: boolean; - descriptionTrgmSimilarity?: boolean; - prefixTrgmSimilarity?: boolean; - searchScore?: boolean; }; export type AppLimitSelect = { id?: boolean; @@ -995,8 +946,6 @@ export type OrgChartEdgeSelect = { parentId?: boolean; positionTitle?: boolean; positionLevel?: boolean; - positionTitleTrgmSimilarity?: boolean; - searchScore?: boolean; }; export type OrgMembershipDefaultSelect = { id?: boolean; @@ -1058,8 +1007,6 @@ export type InviteSelect = { expiresAt?: boolean; createdAt?: boolean; updatedAt?: boolean; - inviteTokenTrgmSimilarity?: boolean; - searchScore?: boolean; }; export type AppLevelSelect = { id?: boolean; @@ -1069,8 +1016,6 @@ export type AppLevelSelect = { ownerId?: boolean; createdAt?: boolean; updatedAt?: boolean; - descriptionTrgmSimilarity?: boolean; - searchScore?: boolean; }; export type OrgInviteSelect = { id?: boolean; @@ -1087,8 +1032,6 @@ export type OrgInviteSelect = { createdAt?: boolean; updatedAt?: boolean; entityId?: boolean; - inviteTokenTrgmSimilarity?: boolean; - searchScore?: boolean; }; // ============ Table Filter Types ============ export interface OrgGetManagersRecordFilter { @@ -1111,8 +1054,6 @@ export interface AppPermissionFilter { bitnum?: IntFilter; bitstr?: BitStringFilter; description?: StringFilter; - descriptionTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: AppPermissionFilter[]; or?: AppPermissionFilter[]; not?: AppPermissionFilter; @@ -1123,8 +1064,6 @@ export interface OrgPermissionFilter { bitnum?: IntFilter; bitstr?: BitStringFilter; description?: StringFilter; - descriptionTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: OrgPermissionFilter[]; or?: OrgPermissionFilter[]; not?: OrgPermissionFilter; @@ -1138,8 +1077,6 @@ export interface AppLevelRequirementFilter { priority?: IntFilter; createdAt?: DatetimeFilter; updatedAt?: DatetimeFilter; - descriptionTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: AppLevelRequirementFilter[]; or?: AppLevelRequirementFilter[]; not?: AppLevelRequirementFilter; @@ -1240,8 +1177,6 @@ export interface OrgChartEdgeGrantFilter { positionTitle?: StringFilter; positionLevel?: IntFilter; createdAt?: DatetimeFilter; - positionTitleTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: OrgChartEdgeGrantFilter[]; or?: OrgChartEdgeGrantFilter[]; not?: OrgChartEdgeGrantFilter; @@ -1251,9 +1186,6 @@ export interface MembershipTypeFilter { name?: StringFilter; description?: StringFilter; prefix?: StringFilter; - descriptionTrgmSimilarity?: FloatFilter; - prefixTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: MembershipTypeFilter[]; or?: MembershipTypeFilter[]; not?: MembershipTypeFilter; @@ -1370,8 +1302,6 @@ export interface OrgChartEdgeFilter { parentId?: UUIDFilter; positionTitle?: StringFilter; positionLevel?: IntFilter; - positionTitleTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: OrgChartEdgeFilter[]; or?: OrgChartEdgeFilter[]; not?: OrgChartEdgeFilter; @@ -1445,8 +1375,6 @@ export interface InviteFilter { expiresAt?: DatetimeFilter; createdAt?: DatetimeFilter; updatedAt?: DatetimeFilter; - inviteTokenTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: InviteFilter[]; or?: InviteFilter[]; not?: InviteFilter; @@ -1459,8 +1387,6 @@ export interface AppLevelFilter { ownerId?: UUIDFilter; createdAt?: DatetimeFilter; updatedAt?: DatetimeFilter; - descriptionTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: AppLevelFilter[]; or?: AppLevelFilter[]; not?: AppLevelFilter; @@ -1480,8 +1406,6 @@ export interface OrgInviteFilter { createdAt?: DatetimeFilter; updatedAt?: DatetimeFilter; entityId?: UUIDFilter; - inviteTokenTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: OrgInviteFilter[]; or?: OrgInviteFilter[]; not?: OrgInviteFilter; @@ -1512,11 +1436,7 @@ export type AppPermissionOrderBy = | 'NAME_ASC' | 'NAME_DESC' | 'BITNUM_ASC' - | 'BITNUM_DESC' - | 'DESCRIPTION_TRGM_SIMILARITY_ASC' - | 'DESCRIPTION_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'BITNUM_DESC'; export type OrgPermissionOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -1526,11 +1446,7 @@ export type OrgPermissionOrderBy = | 'NAME_ASC' | 'NAME_DESC' | 'BITNUM_ASC' - | 'BITNUM_DESC' - | 'DESCRIPTION_TRGM_SIMILARITY_ASC' - | 'DESCRIPTION_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'BITNUM_DESC'; export type AppLevelRequirementOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -1546,11 +1462,7 @@ export type AppLevelRequirementOrderBy = | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'DESCRIPTION_TRGM_SIMILARITY_ASC' - | 'DESCRIPTION_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'UPDATED_AT_DESC'; export type OrgMemberOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -1574,13 +1486,17 @@ export type OrgPermissionDefaultOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' - | 'ID_DESC'; + | 'ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC'; export type AppAdminGrantOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' | 'GRANTOR_ID_ASC' | 'GRANTOR_ID_DESC' | 'CREATED_AT_ASC' @@ -1593,6 +1509,8 @@ export type AppOwnerGrantOrderBy = | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' | 'GRANTOR_ID_ASC' | 'GRANTOR_ID_DESC' | 'CREATED_AT_ASC' @@ -1605,6 +1523,8 @@ export type OrgAdminGrantOrderBy = | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' | 'GRANTOR_ID_ASC' @@ -1619,6 +1539,8 @@ export type OrgOwnerGrantOrderBy = | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' | 'GRANTOR_ID_ASC' @@ -1656,11 +1578,7 @@ export type OrgChartEdgeGrantOrderBy = | 'PARENT_ID_ASC' | 'PARENT_ID_DESC' | 'GRANTOR_ID_ASC' - | 'GRANTOR_ID_DESC' - | 'POSITION_TITLE_TRGM_SIMILARITY_ASC' - | 'POSITION_TITLE_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'GRANTOR_ID_DESC'; export type MembershipTypeOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -1668,13 +1586,7 @@ export type MembershipTypeOrderBy = | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' - | 'NAME_DESC' - | 'DESCRIPTION_TRGM_SIMILARITY_ASC' - | 'DESCRIPTION_TRGM_SIMILARITY_DESC' - | 'PREFIX_TRGM_SIMILARITY_ASC' - | 'PREFIX_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'NAME_DESC'; export type AppLimitOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -1733,6 +1645,8 @@ export type AppGrantOrderBy = | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' | 'GRANTOR_ID_ASC' | 'GRANTOR_ID_DESC' | 'CREATED_AT_ASC' @@ -1778,13 +1692,17 @@ export type OrgClaimedInviteOrderBy = | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; + | 'UPDATED_AT_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC'; export type OrgGrantOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' | 'GRANTOR_ID_ASC' @@ -1808,11 +1726,7 @@ export type OrgChartEdgeOrderBy = | 'CHILD_ID_ASC' | 'CHILD_ID_DESC' | 'PARENT_ID_ASC' - | 'PARENT_ID_DESC' - | 'POSITION_TITLE_TRGM_SIMILARITY_ASC' - | 'POSITION_TITLE_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'PARENT_ID_DESC'; export type OrgMembershipDefaultOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -1894,11 +1808,7 @@ export type InviteOrderBy = | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'INVITE_TOKEN_TRGM_SIMILARITY_ASC' - | 'INVITE_TOKEN_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'UPDATED_AT_DESC'; export type AppLevelOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -1907,14 +1817,12 @@ export type AppLevelOrderBy = | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'DESCRIPTION_TRGM_SIMILARITY_ASC' - | 'DESCRIPTION_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'UPDATED_AT_DESC'; export type OrgInviteOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -1925,6 +1833,8 @@ export type OrgInviteOrderBy = | 'EMAIL_DESC' | 'SENDER_ID_ASC' | 'SENDER_ID_DESC' + | 'RECEIVER_ID_ASC' + | 'RECEIVER_ID_DESC' | 'INVITE_TOKEN_ASC' | 'INVITE_TOKEN_DESC' | 'INVITE_VALID_ASC' @@ -1936,11 +1846,7 @@ export type OrgInviteOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'INVITE_TOKEN_TRGM_SIMILARITY_ASC' - | 'INVITE_TOKEN_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'ENTITY_ID_DESC'; // ============ CRUD Input Types ============ export interface CreateOrgGetManagersRecordInput { clientMutationId?: string; @@ -2254,7 +2160,7 @@ export interface CreateOrgChartEdgeGrantInput { entityId: string; childId: string; parentId?: string; - grantorId: string; + grantorId?: string; isGrant?: boolean; positionTitle?: string; positionLevel?: number; diff --git a/sdk/constructive-sdk/src/auth/orm/README.md b/sdk/constructive-sdk/src/auth/orm/README.md index a9eb59719..ef3b0c06e 100644 --- a/sdk/constructive-sdk/src/auth/orm/README.md +++ b/sdk/constructive-sdk/src/auth/orm/README.md @@ -21,19 +21,19 @@ const db = createClient({ | Model | Operations | |-------|------------| -| `cryptoAddress` | findMany, findOne, create, update, delete | -| `roleType` | findMany, findOne, create, update, delete | +| `email` | findMany, findOne, create, update, delete | | `phoneNumber` | findMany, findOne, create, update, delete | +| `cryptoAddress` | findMany, findOne, create, update, delete | | `connectedAccount` | findMany, findOne, create, update, delete | | `auditLog` | findMany, findOne, create, update, delete | -| `email` | findMany, findOne, create, update, delete | +| `roleType` | findMany, findOne, create, update, delete | | `user` | findMany, findOne, create, update, delete | ## Table Operations -### `db.cryptoAddress` +### `db.email` -CRUD operations for CryptoAddress records. +CRUD operations for Email records. **Fields:** @@ -41,66 +41,70 @@ CRUD operations for CryptoAddress records. |-------|------|----------| | `id` | UUID | No | | `ownerId` | UUID | Yes | -| `address` | String | Yes | +| `email` | ConstructiveInternalTypeEmail | Yes | | `isVerified` | Boolean | Yes | | `isPrimary` | Boolean | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `addressTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript -// List all cryptoAddress records -const items = await db.cryptoAddress.findMany({ select: { id: true, ownerId: true, address: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true, addressTrgmSimilarity: true, searchScore: true } }).execute(); +// List all email records +const items = await db.email.findMany({ select: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.cryptoAddress.findOne({ id: '', select: { id: true, ownerId: true, address: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true, addressTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.email.findOne({ id: '', select: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.cryptoAddress.create({ data: { ownerId: '', address: '', isVerified: '', isPrimary: '', addressTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.email.create({ data: { ownerId: '', email: '', isVerified: '', isPrimary: '' }, select: { id: true } }).execute(); // Update -const updated = await db.cryptoAddress.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); +const updated = await db.email.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.cryptoAddress.delete({ where: { id: '' } }).execute(); +const deleted = await db.email.delete({ where: { id: '' } }).execute(); ``` -### `db.roleType` +### `db.phoneNumber` -CRUD operations for RoleType records. +CRUD operations for PhoneNumber records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `id` | Int | No | -| `name` | String | Yes | +| `id` | UUID | No | +| `ownerId` | UUID | Yes | +| `cc` | String | Yes | +| `number` | String | Yes | +| `isVerified` | Boolean | Yes | +| `isPrimary` | Boolean | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | **Operations:** ```typescript -// List all roleType records -const items = await db.roleType.findMany({ select: { id: true, name: true } }).execute(); +// List all phoneNumber records +const items = await db.phoneNumber.findMany({ select: { id: true, ownerId: true, cc: true, number: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.roleType.findOne({ id: '', select: { id: true, name: true } }).execute(); +const item = await db.phoneNumber.findOne({ id: '', select: { id: true, ownerId: true, cc: true, number: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.roleType.create({ data: { name: '' }, select: { id: true } }).execute(); +const created = await db.phoneNumber.create({ data: { ownerId: '', cc: '', number: '', isVerified: '', isPrimary: '' }, select: { id: true } }).execute(); // Update -const updated = await db.roleType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.phoneNumber.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.roleType.delete({ where: { id: '' } }).execute(); +const deleted = await db.phoneNumber.delete({ where: { id: '' } }).execute(); ``` -### `db.phoneNumber` +### `db.cryptoAddress` -CRUD operations for PhoneNumber records. +CRUD operations for CryptoAddress records. **Fields:** @@ -108,33 +112,29 @@ CRUD operations for PhoneNumber records. |-------|------|----------| | `id` | UUID | No | | `ownerId` | UUID | Yes | -| `cc` | String | Yes | -| `number` | String | Yes | +| `address` | String | Yes | | `isVerified` | Boolean | Yes | | `isPrimary` | Boolean | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `ccTrgmSimilarity` | Float | Yes | -| `numberTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript -// List all phoneNumber records -const items = await db.phoneNumber.findMany({ select: { id: true, ownerId: true, cc: true, number: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true, ccTrgmSimilarity: true, numberTrgmSimilarity: true, searchScore: true } }).execute(); +// List all cryptoAddress records +const items = await db.cryptoAddress.findMany({ select: { id: true, ownerId: true, address: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.phoneNumber.findOne({ id: '', select: { id: true, ownerId: true, cc: true, number: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true, ccTrgmSimilarity: true, numberTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.cryptoAddress.findOne({ id: '', select: { id: true, ownerId: true, address: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.phoneNumber.create({ data: { ownerId: '', cc: '', number: '', isVerified: '', isPrimary: '', ccTrgmSimilarity: '', numberTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.cryptoAddress.create({ data: { ownerId: '', address: '', isVerified: '', isPrimary: '' }, select: { id: true } }).execute(); // Update -const updated = await db.phoneNumber.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); +const updated = await db.cryptoAddress.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.phoneNumber.delete({ where: { id: '' } }).execute(); +const deleted = await db.cryptoAddress.delete({ where: { id: '' } }).execute(); ``` ### `db.connectedAccount` @@ -153,27 +153,24 @@ CRUD operations for ConnectedAccount records. | `isVerified` | Boolean | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `serviceTrgmSimilarity` | Float | Yes | -| `identifierTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all connectedAccount records -const items = await db.connectedAccount.findMany({ select: { id: true, ownerId: true, service: true, identifier: true, details: true, isVerified: true, createdAt: true, updatedAt: true, serviceTrgmSimilarity: true, identifierTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.connectedAccount.findMany({ select: { id: true, ownerId: true, service: true, identifier: true, details: true, isVerified: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.connectedAccount.findOne({ id: '', select: { id: true, ownerId: true, service: true, identifier: true, details: true, isVerified: true, createdAt: true, updatedAt: true, serviceTrgmSimilarity: true, identifierTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.connectedAccount.findOne({ id: '', select: { id: true, ownerId: true, service: true, identifier: true, details: true, isVerified: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.connectedAccount.create({ data: { ownerId: '', service: '', identifier: '', details: '', isVerified: '', serviceTrgmSimilarity: '', identifierTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.connectedAccount.create({ data: { ownerId: '', service: '', identifier: '', details: '', isVerified: '' }, select: { id: true } }).execute(); // Update -const updated = await db.connectedAccount.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); +const updated = await db.connectedAccount.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.connectedAccount.delete({ where: { id: '' } }).execute(); +const deleted = await db.connectedAccount.delete({ where: { id: '' } }).execute(); ``` ### `db.auditLog` @@ -192,61 +189,54 @@ CRUD operations for AuditLog records. | `ipAddress` | InternetAddress | Yes | | `success` | Boolean | Yes | | `createdAt` | Datetime | No | -| `userAgentTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all auditLog records -const items = await db.auditLog.findMany({ select: { id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true, createdAt: true, userAgentTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.auditLog.findMany({ select: { id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true, createdAt: true } }).execute(); // Get one by id -const item = await db.auditLog.findOne({ id: '', select: { id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true, createdAt: true, userAgentTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.auditLog.findOne({ id: '', select: { id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true, createdAt: true } }).execute(); // Create -const created = await db.auditLog.create({ data: { event: '', actorId: '', origin: '', userAgent: '', ipAddress: '', success: '', userAgentTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.auditLog.create({ data: { event: '', actorId: '', origin: '', userAgent: '', ipAddress: '', success: '' }, select: { id: true } }).execute(); // Update -const updated = await db.auditLog.update({ where: { id: '' }, data: { event: '' }, select: { id: true } }).execute(); +const updated = await db.auditLog.update({ where: { id: '' }, data: { event: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.auditLog.delete({ where: { id: '' } }).execute(); +const deleted = await db.auditLog.delete({ where: { id: '' } }).execute(); ``` -### `db.email` +### `db.roleType` -CRUD operations for Email records. +CRUD operations for RoleType records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `id` | UUID | No | -| `ownerId` | UUID | Yes | -| `email` | ConstructiveInternalTypeEmail | Yes | -| `isVerified` | Boolean | Yes | -| `isPrimary` | Boolean | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | +| `id` | Int | No | +| `name` | String | Yes | **Operations:** ```typescript -// List all email records -const items = await db.email.findMany({ select: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); +// List all roleType records +const items = await db.roleType.findMany({ select: { id: true, name: true } }).execute(); // Get one by id -const item = await db.email.findOne({ id: '', select: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.roleType.findOne({ id: '', select: { id: true, name: true } }).execute(); // Create -const created = await db.email.create({ data: { ownerId: '', email: '', isVerified: '', isPrimary: '' }, select: { id: true } }).execute(); +const created = await db.roleType.create({ data: { name: '' }, select: { id: true } }).execute(); // Update -const updated = await db.email.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); +const updated = await db.roleType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.email.delete({ where: { id: '' } }).execute(); +const deleted = await db.roleType.delete({ where: { id: '' } }).execute(); ``` ### `db.user` @@ -276,16 +266,16 @@ CRUD operations for User records. const items = await db.user.findMany({ select: { id: true, username: true, displayName: true, profilePicture: true, searchTsv: true, type: true, createdAt: true, updatedAt: true, searchTsvRank: true, displayNameTrgmSimilarity: true, searchScore: true } }).execute(); // Get one by id -const item = await db.user.findOne({ id: '', select: { id: true, username: true, displayName: true, profilePicture: true, searchTsv: true, type: true, createdAt: true, updatedAt: true, searchTsvRank: true, displayNameTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.user.findOne({ id: '', select: { id: true, username: true, displayName: true, profilePicture: true, searchTsv: true, type: true, createdAt: true, updatedAt: true, searchTsvRank: true, displayNameTrgmSimilarity: true, searchScore: true } }).execute(); // Create -const created = await db.user.create({ data: { username: '', displayName: '', profilePicture: '', searchTsv: '', type: '', searchTsvRank: '', displayNameTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.user.create({ data: { username: '', displayName: '', profilePicture: '', searchTsv: '', type: '', searchTsvRank: '', displayNameTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); // Update -const updated = await db.user.update({ where: { id: '' }, data: { username: '' }, select: { id: true } }).execute(); +const updated = await db.user.update({ where: { id: '' }, data: { username: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.user.delete({ where: { id: '' } }).execute(); +const deleted = await db.user.delete({ where: { id: '' } }).execute(); ``` ## Custom Operations @@ -346,7 +336,7 @@ signOut | `input` | SignOutInput (required) | ```typescript -const result = await db.mutation.signOut({ input: '' }).execute(); +const result = await db.mutation.signOut({ input: '' }).execute(); ``` ### `db.mutation.sendAccountDeletionEmail` @@ -361,7 +351,7 @@ sendAccountDeletionEmail | `input` | SendAccountDeletionEmailInput (required) | ```typescript -const result = await db.mutation.sendAccountDeletionEmail({ input: '' }).execute(); +const result = await db.mutation.sendAccountDeletionEmail({ input: '' }).execute(); ``` ### `db.mutation.checkPassword` @@ -376,7 +366,7 @@ checkPassword | `input` | CheckPasswordInput (required) | ```typescript -const result = await db.mutation.checkPassword({ input: '' }).execute(); +const result = await db.mutation.checkPassword({ input: { password: '' } }).execute(); ``` ### `db.mutation.confirmDeleteAccount` @@ -391,7 +381,7 @@ confirmDeleteAccount | `input` | ConfirmDeleteAccountInput (required) | ```typescript -const result = await db.mutation.confirmDeleteAccount({ input: '' }).execute(); +const result = await db.mutation.confirmDeleteAccount({ input: { userId: '', token: '' } }).execute(); ``` ### `db.mutation.setPassword` @@ -406,7 +396,7 @@ setPassword | `input` | SetPasswordInput (required) | ```typescript -const result = await db.mutation.setPassword({ input: '' }).execute(); +const result = await db.mutation.setPassword({ input: { currentPassword: '', newPassword: '' } }).execute(); ``` ### `db.mutation.verifyEmail` @@ -421,7 +411,7 @@ verifyEmail | `input` | VerifyEmailInput (required) | ```typescript -const result = await db.mutation.verifyEmail({ input: '' }).execute(); +const result = await db.mutation.verifyEmail({ input: { emailId: '', token: '' } }).execute(); ``` ### `db.mutation.resetPassword` @@ -436,7 +426,7 @@ resetPassword | `input` | ResetPasswordInput (required) | ```typescript -const result = await db.mutation.resetPassword({ input: '' }).execute(); +const result = await db.mutation.resetPassword({ input: { roleId: '', resetToken: '', newPassword: '' } }).execute(); ``` ### `db.mutation.signInOneTimeToken` @@ -451,7 +441,7 @@ signInOneTimeToken | `input` | SignInOneTimeTokenInput (required) | ```typescript -const result = await db.mutation.signInOneTimeToken({ input: '' }).execute(); +const result = await db.mutation.signInOneTimeToken({ input: { token: '', credentialKind: '' } }).execute(); ``` ### `db.mutation.signIn` @@ -466,7 +456,7 @@ signIn | `input` | SignInInput (required) | ```typescript -const result = await db.mutation.signIn({ input: '' }).execute(); +const result = await db.mutation.signIn({ input: { email: '', password: '', rememberMe: '', credentialKind: '', csrfToken: '' } }).execute(); ``` ### `db.mutation.signUp` @@ -481,7 +471,7 @@ signUp | `input` | SignUpInput (required) | ```typescript -const result = await db.mutation.signUp({ input: '' }).execute(); +const result = await db.mutation.signUp({ input: { email: '', password: '', rememberMe: '', credentialKind: '', csrfToken: '' } }).execute(); ``` ### `db.mutation.oneTimeToken` @@ -496,7 +486,7 @@ oneTimeToken | `input` | OneTimeTokenInput (required) | ```typescript -const result = await db.mutation.oneTimeToken({ input: '' }).execute(); +const result = await db.mutation.oneTimeToken({ input: { email: '', password: '', origin: '', rememberMe: '' } }).execute(); ``` ### `db.mutation.extendTokenExpires` @@ -511,7 +501,7 @@ extendTokenExpires | `input` | ExtendTokenExpiresInput (required) | ```typescript -const result = await db.mutation.extendTokenExpires({ input: '' }).execute(); +const result = await db.mutation.extendTokenExpires({ input: { amount: '' } }).execute(); ``` ### `db.mutation.forgotPassword` @@ -526,7 +516,7 @@ forgotPassword | `input` | ForgotPasswordInput (required) | ```typescript -const result = await db.mutation.forgotPassword({ input: '' }).execute(); +const result = await db.mutation.forgotPassword({ input: { email: '' } }).execute(); ``` ### `db.mutation.sendVerificationEmail` @@ -541,7 +531,7 @@ sendVerificationEmail | `input` | SendVerificationEmailInput (required) | ```typescript -const result = await db.mutation.sendVerificationEmail({ input: '' }).execute(); +const result = await db.mutation.sendVerificationEmail({ input: { email: '' } }).execute(); ``` ### `db.mutation.verifyPassword` @@ -556,7 +546,7 @@ verifyPassword | `input` | VerifyPasswordInput (required) | ```typescript -const result = await db.mutation.verifyPassword({ input: '' }).execute(); +const result = await db.mutation.verifyPassword({ input: { password: '' } }).execute(); ``` ### `db.mutation.verifyTotp` @@ -571,7 +561,7 @@ verifyTotp | `input` | VerifyTotpInput (required) | ```typescript -const result = await db.mutation.verifyTotp({ input: '' }).execute(); +const result = await db.mutation.verifyTotp({ input: { totpValue: '' } }).execute(); ``` --- diff --git a/sdk/constructive-sdk/src/auth/orm/index.ts b/sdk/constructive-sdk/src/auth/orm/index.ts index 51b7e07ae..3c0f903f5 100644 --- a/sdk/constructive-sdk/src/auth/orm/index.ts +++ b/sdk/constructive-sdk/src/auth/orm/index.ts @@ -5,12 +5,12 @@ */ import { OrmClient } from './client'; import type { OrmClientConfig } from './client'; -import { CryptoAddressModel } from './models/cryptoAddress'; -import { RoleTypeModel } from './models/roleType'; +import { EmailModel } from './models/email'; import { PhoneNumberModel } from './models/phoneNumber'; +import { CryptoAddressModel } from './models/cryptoAddress'; import { ConnectedAccountModel } from './models/connectedAccount'; import { AuditLogModel } from './models/auditLog'; -import { EmailModel } from './models/email'; +import { RoleTypeModel } from './models/roleType'; import { UserModel } from './models/user'; import { createQueryOperations } from './query'; import { createMutationOperations } from './mutation'; @@ -47,12 +47,12 @@ export { createMutationOperations } from './mutation'; export function createClient(config: OrmClientConfig) { const client = new OrmClient(config); return { - cryptoAddress: new CryptoAddressModel(client), - roleType: new RoleTypeModel(client), + email: new EmailModel(client), phoneNumber: new PhoneNumberModel(client), + cryptoAddress: new CryptoAddressModel(client), connectedAccount: new ConnectedAccountModel(client), auditLog: new AuditLogModel(client), - email: new EmailModel(client), + roleType: new RoleTypeModel(client), user: new UserModel(client), query: createQueryOperations(client), mutation: createMutationOperations(client), diff --git a/sdk/constructive-sdk/src/auth/orm/input-types.ts b/sdk/constructive-sdk/src/auth/orm/input-types.ts index 5f4c5599f..879ec0366 100644 --- a/sdk/constructive-sdk/src/auth/orm/input-types.ts +++ b/sdk/constructive-sdk/src/auth/orm/input-types.ts @@ -234,27 +234,19 @@ export interface UUIDListFilter { export type ConstructiveInternalTypeEmail = unknown; export type ConstructiveInternalTypeImage = unknown; export type ConstructiveInternalTypeOrigin = unknown; -/** Cryptocurrency wallet addresses owned by users, with network-specific validation and verification */ +/** User email addresses with verification and primary-email management */ // ============ Entity Types ============ -export interface CryptoAddress { +export interface Email { id: string; ownerId?: string | null; - /** The cryptocurrency wallet address, validated against network-specific patterns */ - address?: string | null; - /** Whether ownership of this address has been cryptographically verified */ + /** The email address */ + email?: ConstructiveInternalTypeEmail | null; + /** Whether the email address has been verified via confirmation link */ isVerified?: boolean | null; - /** Whether this is the user's primary cryptocurrency address */ + /** Whether this is the user's primary email address */ isPrimary?: boolean | null; createdAt?: string | null; updatedAt?: string | null; - /** TRGM similarity when searching `address`. Returns null when no trgm search filter is active. */ - addressTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; -} -export interface RoleType { - id: number; - name?: string | null; } /** User phone numbers with country code, verification, and primary-number management */ export interface PhoneNumber { @@ -270,12 +262,19 @@ export interface PhoneNumber { isPrimary?: boolean | null; createdAt?: string | null; updatedAt?: string | null; - /** TRGM similarity when searching `cc`. Returns null when no trgm search filter is active. */ - ccTrgmSimilarity?: number | null; - /** TRGM similarity when searching `number`. Returns null when no trgm search filter is active. */ - numberTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; +} +/** Cryptocurrency wallet addresses owned by users, with network-specific validation and verification */ +export interface CryptoAddress { + id: string; + ownerId?: string | null; + /** The cryptocurrency wallet address, validated against network-specific patterns */ + address?: string | null; + /** Whether ownership of this address has been cryptographically verified */ + isVerified?: boolean | null; + /** Whether this is the user's primary cryptocurrency address */ + isPrimary?: boolean | null; + createdAt?: string | null; + updatedAt?: string | null; } /** OAuth and social login connections linking external service accounts to users */ export interface ConnectedAccount { @@ -291,19 +290,13 @@ export interface ConnectedAccount { isVerified?: boolean | null; createdAt?: string | null; updatedAt?: string | null; - /** TRGM similarity when searching `service`. Returns null when no trgm search filter is active. */ - serviceTrgmSimilarity?: number | null; - /** TRGM similarity when searching `identifier`. Returns null when no trgm search filter is active. */ - identifierTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } /** Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) */ export interface AuditLog { id: string; /** Type of authentication event (e.g. sign_in, sign_up, password_change, verify_email) */ event?: string | null; - /** User who performed the authentication action */ + /** User who performed the authentication action; NULL if user was deleted */ actorId?: string | null; /** Request origin (domain) where the auth event occurred */ origin?: ConstructiveInternalTypeOrigin | null; @@ -315,23 +308,10 @@ export interface AuditLog { success?: boolean | null; /** Timestamp when the audit event was recorded */ createdAt?: string | null; - /** TRGM similarity when searching `userAgent`. Returns null when no trgm search filter is active. */ - userAgentTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } -/** User email addresses with verification and primary-email management */ -export interface Email { - id: string; - ownerId?: string | null; - /** The email address */ - email?: ConstructiveInternalTypeEmail | null; - /** Whether the email address has been verified via confirmation link */ - isVerified?: boolean | null; - /** Whether this is the user's primary email address */ - isPrimary?: boolean | null; - createdAt?: string | null; - updatedAt?: string | null; +export interface RoleType { + id: number; + name?: string | null; } export interface User { id: string; @@ -346,7 +326,7 @@ export interface User { searchTsvRank?: number | null; /** TRGM similarity when searching `displayName`. Returns null when no trgm search filter is active. */ displayNameTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ + /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. */ searchScore?: number | null; } // ============ Relation Helper Types ============ @@ -362,52 +342,51 @@ export interface PageInfo { endCursor?: string | null; } // ============ Entity Relation Types ============ -export interface CryptoAddressRelations { +export interface EmailRelations { owner?: User | null; } -export interface RoleTypeRelations {} export interface PhoneNumberRelations { owner?: User | null; } +export interface CryptoAddressRelations { + owner?: User | null; +} export interface ConnectedAccountRelations { owner?: User | null; } export interface AuditLogRelations { actor?: User | null; } -export interface EmailRelations { - owner?: User | null; -} +export interface RoleTypeRelations {} export interface UserRelations { roleType?: RoleType | null; + ownedEmails?: ConnectionResult; + ownedPhoneNumbers?: ConnectionResult; + ownedCryptoAddresses?: ConnectionResult; + ownedConnectedAccounts?: ConnectionResult; + auditLogsByActorId?: ConnectionResult; } // ============ Entity Types With Relations ============ -export type CryptoAddressWithRelations = CryptoAddress & CryptoAddressRelations; -export type RoleTypeWithRelations = RoleType & RoleTypeRelations; +export type EmailWithRelations = Email & EmailRelations; export type PhoneNumberWithRelations = PhoneNumber & PhoneNumberRelations; +export type CryptoAddressWithRelations = CryptoAddress & CryptoAddressRelations; export type ConnectedAccountWithRelations = ConnectedAccount & ConnectedAccountRelations; export type AuditLogWithRelations = AuditLog & AuditLogRelations; -export type EmailWithRelations = Email & EmailRelations; +export type RoleTypeWithRelations = RoleType & RoleTypeRelations; export type UserWithRelations = User & UserRelations; // ============ Entity Select Types ============ -export type CryptoAddressSelect = { +export type EmailSelect = { id?: boolean; ownerId?: boolean; - address?: boolean; + email?: boolean; isVerified?: boolean; isPrimary?: boolean; createdAt?: boolean; updatedAt?: boolean; - addressTrgmSimilarity?: boolean; - searchScore?: boolean; owner?: { select: UserSelect; }; }; -export type RoleTypeSelect = { - id?: boolean; - name?: boolean; -}; export type PhoneNumberSelect = { id?: boolean; ownerId?: boolean; @@ -417,9 +396,18 @@ export type PhoneNumberSelect = { isPrimary?: boolean; createdAt?: boolean; updatedAt?: boolean; - ccTrgmSimilarity?: boolean; - numberTrgmSimilarity?: boolean; - searchScore?: boolean; + owner?: { + select: UserSelect; + }; +}; +export type CryptoAddressSelect = { + id?: boolean; + ownerId?: boolean; + address?: boolean; + isVerified?: boolean; + isPrimary?: boolean; + createdAt?: boolean; + updatedAt?: boolean; owner?: { select: UserSelect; }; @@ -433,9 +421,6 @@ export type ConnectedAccountSelect = { isVerified?: boolean; createdAt?: boolean; updatedAt?: boolean; - serviceTrgmSimilarity?: boolean; - identifierTrgmSimilarity?: boolean; - searchScore?: boolean; owner?: { select: UserSelect; }; @@ -449,23 +434,13 @@ export type AuditLogSelect = { ipAddress?: boolean; success?: boolean; createdAt?: boolean; - userAgentTrgmSimilarity?: boolean; - searchScore?: boolean; actor?: { select: UserSelect; }; }; -export type EmailSelect = { +export type RoleTypeSelect = { id?: boolean; - ownerId?: boolean; - email?: boolean; - isVerified?: boolean; - isPrimary?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - owner?: { - select: UserSelect; - }; + name?: boolean; }; export type UserSelect = { id?: boolean; @@ -482,28 +457,49 @@ export type UserSelect = { roleType?: { select: RoleTypeSelect; }; + ownedEmails?: { + select: EmailSelect; + first?: number; + filter?: EmailFilter; + orderBy?: EmailOrderBy[]; + }; + ownedPhoneNumbers?: { + select: PhoneNumberSelect; + first?: number; + filter?: PhoneNumberFilter; + orderBy?: PhoneNumberOrderBy[]; + }; + ownedCryptoAddresses?: { + select: CryptoAddressSelect; + first?: number; + filter?: CryptoAddressFilter; + orderBy?: CryptoAddressOrderBy[]; + }; + ownedConnectedAccounts?: { + select: ConnectedAccountSelect; + first?: number; + filter?: ConnectedAccountFilter; + orderBy?: ConnectedAccountOrderBy[]; + }; + auditLogsByActorId?: { + select: AuditLogSelect; + first?: number; + filter?: AuditLogFilter; + orderBy?: AuditLogOrderBy[]; + }; }; // ============ Table Filter Types ============ -export interface CryptoAddressFilter { +export interface EmailFilter { id?: UUIDFilter; ownerId?: UUIDFilter; - address?: StringFilter; + email?: StringFilter; isVerified?: BooleanFilter; isPrimary?: BooleanFilter; createdAt?: DatetimeFilter; updatedAt?: DatetimeFilter; - addressTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; - and?: CryptoAddressFilter[]; - or?: CryptoAddressFilter[]; - not?: CryptoAddressFilter; -} -export interface RoleTypeFilter { - id?: IntFilter; - name?: StringFilter; - and?: RoleTypeFilter[]; - or?: RoleTypeFilter[]; - not?: RoleTypeFilter; + and?: EmailFilter[]; + or?: EmailFilter[]; + not?: EmailFilter; } export interface PhoneNumberFilter { id?: UUIDFilter; @@ -514,13 +510,22 @@ export interface PhoneNumberFilter { isPrimary?: BooleanFilter; createdAt?: DatetimeFilter; updatedAt?: DatetimeFilter; - ccTrgmSimilarity?: FloatFilter; - numberTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: PhoneNumberFilter[]; or?: PhoneNumberFilter[]; not?: PhoneNumberFilter; } +export interface CryptoAddressFilter { + id?: UUIDFilter; + ownerId?: UUIDFilter; + address?: StringFilter; + isVerified?: BooleanFilter; + isPrimary?: BooleanFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: CryptoAddressFilter[]; + or?: CryptoAddressFilter[]; + not?: CryptoAddressFilter; +} export interface ConnectedAccountFilter { id?: UUIDFilter; ownerId?: UUIDFilter; @@ -530,9 +535,6 @@ export interface ConnectedAccountFilter { isVerified?: BooleanFilter; createdAt?: DatetimeFilter; updatedAt?: DatetimeFilter; - serviceTrgmSimilarity?: FloatFilter; - identifierTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: ConnectedAccountFilter[]; or?: ConnectedAccountFilter[]; not?: ConnectedAccountFilter; @@ -546,23 +548,16 @@ export interface AuditLogFilter { ipAddress?: InternetAddressFilter; success?: BooleanFilter; createdAt?: DatetimeFilter; - userAgentTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: AuditLogFilter[]; or?: AuditLogFilter[]; not?: AuditLogFilter; } -export interface EmailFilter { - id?: UUIDFilter; - ownerId?: UUIDFilter; - email?: StringFilter; - isVerified?: BooleanFilter; - isPrimary?: BooleanFilter; - createdAt?: DatetimeFilter; - updatedAt?: DatetimeFilter; - and?: EmailFilter[]; - or?: EmailFilter[]; - not?: EmailFilter; +export interface RoleTypeFilter { + id?: IntFilter; + name?: StringFilter; + and?: RoleTypeFilter[]; + or?: RoleTypeFilter[]; + not?: RoleTypeFilter; } export interface UserFilter { id?: UUIDFilter; @@ -581,54 +576,56 @@ export interface UserFilter { not?: UserFilter; } // ============ OrderBy Types ============ -export type CryptoAddressOrderBy = +export type EmailOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'ADDRESS_ASC' - | 'ADDRESS_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'EMAIL_ASC' + | 'EMAIL_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'ADDRESS_TRGM_SIMILARITY_ASC' - | 'ADDRESS_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; -export type RoleTypeOrderBy = + | 'UPDATED_AT_DESC'; +export type PhoneNumberOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC'; -export type PhoneNumberOrderBy = + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'NUMBER_ASC' + | 'NUMBER_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type CryptoAddressOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'NUMBER_ASC' - | 'NUMBER_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'ADDRESS_ASC' + | 'ADDRESS_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CC_TRGM_SIMILARITY_ASC' - | 'CC_TRGM_SIMILARITY_DESC' - | 'NUMBER_TRGM_SIMILARITY_ASC' - | 'NUMBER_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'UPDATED_AT_DESC'; export type ConnectedAccountOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' | 'SERVICE_ASC' | 'SERVICE_DESC' | 'IDENTIFIER_ASC' @@ -636,13 +633,7 @@ export type ConnectedAccountOrderBy = | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'SERVICE_TRGM_SIMILARITY_ASC' - | 'SERVICE_TRGM_SIMILARITY_DESC' - | 'IDENTIFIER_TRGM_SIMILARITY_ASC' - | 'IDENTIFIER_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'UPDATED_AT_DESC'; export type AuditLogOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -651,22 +642,16 @@ export type AuditLogOrderBy = | 'ID_DESC' | 'EVENT_ASC' | 'EVENT_DESC' - | 'USER_AGENT_TRGM_SIMILARITY_ASC' - | 'USER_AGENT_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; -export type EmailOrderBy = + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC'; +export type RoleTypeOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'EMAIL_ASC' - | 'EMAIL_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; + | 'NAME_ASC' + | 'NAME_DESC'; export type UserOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -686,48 +671,30 @@ export type UserOrderBy = | 'SEARCH_SCORE_ASC' | 'SEARCH_SCORE_DESC'; // ============ CRUD Input Types ============ -export interface CreateCryptoAddressInput { +export interface CreateEmailInput { clientMutationId?: string; - cryptoAddress: { + email: { ownerId?: string; - address: string; + email: ConstructiveInternalTypeEmail; isVerified?: boolean; isPrimary?: boolean; }; } -export interface CryptoAddressPatch { +export interface EmailPatch { ownerId?: string | null; - address?: string | null; + email?: ConstructiveInternalTypeEmail | null; isVerified?: boolean | null; isPrimary?: boolean | null; } -export interface UpdateCryptoAddressInput { +export interface UpdateEmailInput { clientMutationId?: string; id: string; - cryptoAddressPatch: CryptoAddressPatch; + emailPatch: EmailPatch; } -export interface DeleteCryptoAddressInput { +export interface DeleteEmailInput { clientMutationId?: string; id: string; } -export interface CreateRoleTypeInput { - clientMutationId?: string; - roleType: { - name: string; - }; -} -export interface RoleTypePatch { - name?: string | null; -} -export interface UpdateRoleTypeInput { - clientMutationId?: string; - id: number; - roleTypePatch: RoleTypePatch; -} -export interface DeleteRoleTypeInput { - clientMutationId?: string; - id: number; -} export interface CreatePhoneNumberInput { clientMutationId?: string; phoneNumber: { @@ -754,6 +721,30 @@ export interface DeletePhoneNumberInput { clientMutationId?: string; id: string; } +export interface CreateCryptoAddressInput { + clientMutationId?: string; + cryptoAddress: { + ownerId?: string; + address: string; + isVerified?: boolean; + isPrimary?: boolean; + }; +} +export interface CryptoAddressPatch { + ownerId?: string | null; + address?: string | null; + isVerified?: boolean | null; + isPrimary?: boolean | null; +} +export interface UpdateCryptoAddressInput { + clientMutationId?: string; + id: string; + cryptoAddressPatch: CryptoAddressPatch; +} +export interface DeleteCryptoAddressInput { + clientMutationId?: string; + id: string; +} export interface CreateConnectedAccountInput { clientMutationId?: string; connectedAccount: { @@ -808,29 +799,23 @@ export interface DeleteAuditLogInput { clientMutationId?: string; id: string; } -export interface CreateEmailInput { +export interface CreateRoleTypeInput { clientMutationId?: string; - email: { - ownerId?: string; - email: ConstructiveInternalTypeEmail; - isVerified?: boolean; - isPrimary?: boolean; + roleType: { + name: string; }; } -export interface EmailPatch { - ownerId?: string | null; - email?: ConstructiveInternalTypeEmail | null; - isVerified?: boolean | null; - isPrimary?: boolean | null; +export interface RoleTypePatch { + name?: string | null; } -export interface UpdateEmailInput { +export interface UpdateRoleTypeInput { clientMutationId?: string; - id: string; - emailPatch: EmailPatch; + id: number; + roleTypePatch: RoleTypePatch; } -export interface DeleteEmailInput { +export interface DeleteRoleTypeInput { clientMutationId?: string; - id: string; + id: number; } export interface CreateUserInput { clientMutationId?: string; @@ -858,7 +843,15 @@ export interface DeleteUserInput { id: string; } // ============ Connection Fields Map ============ -export const connectionFieldsMap = {} as Record>; +export const connectionFieldsMap = { + User: { + ownedEmails: 'Email', + ownedPhoneNumbers: 'PhoneNumber', + ownedCryptoAddresses: 'CryptoAddress', + ownedConnectedAccounts: 'ConnectedAccount', + auditLogsByActorId: 'AuditLog', + }, +} as Record>; // ============ Custom Input Types (from schema) ============ export interface SignOutInput { clientMutationId?: string; @@ -1093,94 +1086,49 @@ export type VerifyTotpPayloadSelect = { select: SessionSelect; }; }; -export interface CreateCryptoAddressPayload { - clientMutationId?: string | null; - /** The `CryptoAddress` that was created by this mutation. */ - cryptoAddress?: CryptoAddress | null; - cryptoAddressEdge?: CryptoAddressEdge | null; -} -export type CreateCryptoAddressPayloadSelect = { - clientMutationId?: boolean; - cryptoAddress?: { - select: CryptoAddressSelect; - }; - cryptoAddressEdge?: { - select: CryptoAddressEdgeSelect; - }; -}; -export interface UpdateCryptoAddressPayload { - clientMutationId?: string | null; - /** The `CryptoAddress` that was updated by this mutation. */ - cryptoAddress?: CryptoAddress | null; - cryptoAddressEdge?: CryptoAddressEdge | null; -} -export type UpdateCryptoAddressPayloadSelect = { - clientMutationId?: boolean; - cryptoAddress?: { - select: CryptoAddressSelect; - }; - cryptoAddressEdge?: { - select: CryptoAddressEdgeSelect; - }; -}; -export interface DeleteCryptoAddressPayload { - clientMutationId?: string | null; - /** The `CryptoAddress` that was deleted by this mutation. */ - cryptoAddress?: CryptoAddress | null; - cryptoAddressEdge?: CryptoAddressEdge | null; -} -export type DeleteCryptoAddressPayloadSelect = { - clientMutationId?: boolean; - cryptoAddress?: { - select: CryptoAddressSelect; - }; - cryptoAddressEdge?: { - select: CryptoAddressEdgeSelect; - }; -}; -export interface CreateRoleTypePayload { +export interface CreateEmailPayload { clientMutationId?: string | null; - /** The `RoleType` that was created by this mutation. */ - roleType?: RoleType | null; - roleTypeEdge?: RoleTypeEdge | null; + /** The `Email` that was created by this mutation. */ + email?: Email | null; + emailEdge?: EmailEdge | null; } -export type CreateRoleTypePayloadSelect = { +export type CreateEmailPayloadSelect = { clientMutationId?: boolean; - roleType?: { - select: RoleTypeSelect; + email?: { + select: EmailSelect; }; - roleTypeEdge?: { - select: RoleTypeEdgeSelect; + emailEdge?: { + select: EmailEdgeSelect; }; }; -export interface UpdateRoleTypePayload { +export interface UpdateEmailPayload { clientMutationId?: string | null; - /** The `RoleType` that was updated by this mutation. */ - roleType?: RoleType | null; - roleTypeEdge?: RoleTypeEdge | null; + /** The `Email` that was updated by this mutation. */ + email?: Email | null; + emailEdge?: EmailEdge | null; } -export type UpdateRoleTypePayloadSelect = { +export type UpdateEmailPayloadSelect = { clientMutationId?: boolean; - roleType?: { - select: RoleTypeSelect; + email?: { + select: EmailSelect; }; - roleTypeEdge?: { - select: RoleTypeEdgeSelect; + emailEdge?: { + select: EmailEdgeSelect; }; }; -export interface DeleteRoleTypePayload { +export interface DeleteEmailPayload { clientMutationId?: string | null; - /** The `RoleType` that was deleted by this mutation. */ - roleType?: RoleType | null; - roleTypeEdge?: RoleTypeEdge | null; + /** The `Email` that was deleted by this mutation. */ + email?: Email | null; + emailEdge?: EmailEdge | null; } -export type DeleteRoleTypePayloadSelect = { +export type DeleteEmailPayloadSelect = { clientMutationId?: boolean; - roleType?: { - select: RoleTypeSelect; + email?: { + select: EmailSelect; }; - roleTypeEdge?: { - select: RoleTypeEdgeSelect; + emailEdge?: { + select: EmailEdgeSelect; }; }; export interface CreatePhoneNumberPayload { @@ -1228,6 +1176,51 @@ export type DeletePhoneNumberPayloadSelect = { select: PhoneNumberEdgeSelect; }; }; +export interface CreateCryptoAddressPayload { + clientMutationId?: string | null; + /** The `CryptoAddress` that was created by this mutation. */ + cryptoAddress?: CryptoAddress | null; + cryptoAddressEdge?: CryptoAddressEdge | null; +} +export type CreateCryptoAddressPayloadSelect = { + clientMutationId?: boolean; + cryptoAddress?: { + select: CryptoAddressSelect; + }; + cryptoAddressEdge?: { + select: CryptoAddressEdgeSelect; + }; +}; +export interface UpdateCryptoAddressPayload { + clientMutationId?: string | null; + /** The `CryptoAddress` that was updated by this mutation. */ + cryptoAddress?: CryptoAddress | null; + cryptoAddressEdge?: CryptoAddressEdge | null; +} +export type UpdateCryptoAddressPayloadSelect = { + clientMutationId?: boolean; + cryptoAddress?: { + select: CryptoAddressSelect; + }; + cryptoAddressEdge?: { + select: CryptoAddressEdgeSelect; + }; +}; +export interface DeleteCryptoAddressPayload { + clientMutationId?: string | null; + /** The `CryptoAddress` that was deleted by this mutation. */ + cryptoAddress?: CryptoAddress | null; + cryptoAddressEdge?: CryptoAddressEdge | null; +} +export type DeleteCryptoAddressPayloadSelect = { + clientMutationId?: boolean; + cryptoAddress?: { + select: CryptoAddressSelect; + }; + cryptoAddressEdge?: { + select: CryptoAddressEdgeSelect; + }; +}; export interface CreateConnectedAccountPayload { clientMutationId?: string | null; /** The `ConnectedAccount` that was created by this mutation. */ @@ -1318,49 +1311,49 @@ export type DeleteAuditLogPayloadSelect = { select: AuditLogEdgeSelect; }; }; -export interface CreateEmailPayload { +export interface CreateRoleTypePayload { clientMutationId?: string | null; - /** The `Email` that was created by this mutation. */ - email?: Email | null; - emailEdge?: EmailEdge | null; + /** The `RoleType` that was created by this mutation. */ + roleType?: RoleType | null; + roleTypeEdge?: RoleTypeEdge | null; } -export type CreateEmailPayloadSelect = { +export type CreateRoleTypePayloadSelect = { clientMutationId?: boolean; - email?: { - select: EmailSelect; + roleType?: { + select: RoleTypeSelect; }; - emailEdge?: { - select: EmailEdgeSelect; + roleTypeEdge?: { + select: RoleTypeEdgeSelect; }; }; -export interface UpdateEmailPayload { +export interface UpdateRoleTypePayload { clientMutationId?: string | null; - /** The `Email` that was updated by this mutation. */ - email?: Email | null; - emailEdge?: EmailEdge | null; + /** The `RoleType` that was updated by this mutation. */ + roleType?: RoleType | null; + roleTypeEdge?: RoleTypeEdge | null; } -export type UpdateEmailPayloadSelect = { +export type UpdateRoleTypePayloadSelect = { clientMutationId?: boolean; - email?: { - select: EmailSelect; + roleType?: { + select: RoleTypeSelect; }; - emailEdge?: { - select: EmailEdgeSelect; + roleTypeEdge?: { + select: RoleTypeEdgeSelect; }; }; -export interface DeleteEmailPayload { +export interface DeleteRoleTypePayload { clientMutationId?: string | null; - /** The `Email` that was deleted by this mutation. */ - email?: Email | null; - emailEdge?: EmailEdge | null; + /** The `RoleType` that was deleted by this mutation. */ + roleType?: RoleType | null; + roleTypeEdge?: RoleTypeEdge | null; } -export type DeleteEmailPayloadSelect = { +export type DeleteRoleTypePayloadSelect = { clientMutationId?: boolean; - email?: { - select: EmailSelect; + roleType?: { + select: RoleTypeSelect; }; - emailEdge?: { - select: EmailEdgeSelect; + roleTypeEdge?: { + select: RoleTypeEdgeSelect; }; }; export interface CreateUserPayload { @@ -1415,10 +1408,6 @@ export interface SignInOneTimeTokenRecord { accessTokenExpiresAt?: string | null; isVerified?: boolean | null; totpEnabled?: boolean | null; - /** TRGM similarity when searching `accessToken`. Returns null when no trgm search filter is active. */ - accessTokenTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export type SignInOneTimeTokenRecordSelect = { id?: boolean; @@ -1427,8 +1416,6 @@ export type SignInOneTimeTokenRecordSelect = { accessTokenExpiresAt?: boolean; isVerified?: boolean; totpEnabled?: boolean; - accessTokenTrgmSimilarity?: boolean; - searchScore?: boolean; }; export interface SignInRecord { id?: string | null; @@ -1437,10 +1424,6 @@ export interface SignInRecord { accessTokenExpiresAt?: string | null; isVerified?: boolean | null; totpEnabled?: boolean | null; - /** TRGM similarity when searching `accessToken`. Returns null when no trgm search filter is active. */ - accessTokenTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export type SignInRecordSelect = { id?: boolean; @@ -1449,8 +1432,6 @@ export type SignInRecordSelect = { accessTokenExpiresAt?: boolean; isVerified?: boolean; totpEnabled?: boolean; - accessTokenTrgmSimilarity?: boolean; - searchScore?: boolean; }; export interface SignUpRecord { id?: string | null; @@ -1459,10 +1440,6 @@ export interface SignUpRecord { accessTokenExpiresAt?: string | null; isVerified?: boolean | null; totpEnabled?: boolean | null; - /** TRGM similarity when searching `accessToken`. Returns null when no trgm search filter is active. */ - accessTokenTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export type SignUpRecordSelect = { id?: boolean; @@ -1471,8 +1448,6 @@ export type SignUpRecordSelect = { accessTokenExpiresAt?: boolean; isVerified?: boolean; totpEnabled?: boolean; - accessTokenTrgmSimilarity?: boolean; - searchScore?: boolean; }; export interface ExtendTokenExpiresRecord { id?: string | null; @@ -1511,14 +1486,6 @@ export interface Session { csrfSecret?: string | null; createdAt?: string | null; updatedAt?: string | null; - /** TRGM similarity when searching `uagent`. Returns null when no trgm search filter is active. */ - uagentTrgmSimilarity?: number | null; - /** TRGM similarity when searching `fingerprintMode`. Returns null when no trgm search filter is active. */ - fingerprintModeTrgmSimilarity?: number | null; - /** TRGM similarity when searching `csrfSecret`. Returns null when no trgm search filter is active. */ - csrfSecretTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export type SessionSelect = { id?: boolean; @@ -1535,33 +1502,17 @@ export type SessionSelect = { csrfSecret?: boolean; createdAt?: boolean; updatedAt?: boolean; - uagentTrgmSimilarity?: boolean; - fingerprintModeTrgmSimilarity?: boolean; - csrfSecretTrgmSimilarity?: boolean; - searchScore?: boolean; }; -/** A `CryptoAddress` edge in the connection. */ -export interface CryptoAddressEdge { - cursor?: string | null; - /** The `CryptoAddress` at the end of the edge. */ - node?: CryptoAddress | null; -} -export type CryptoAddressEdgeSelect = { - cursor?: boolean; - node?: { - select: CryptoAddressSelect; - }; -}; -/** A `RoleType` edge in the connection. */ -export interface RoleTypeEdge { +/** A `Email` edge in the connection. */ +export interface EmailEdge { cursor?: string | null; - /** The `RoleType` at the end of the edge. */ - node?: RoleType | null; + /** The `Email` at the end of the edge. */ + node?: Email | null; } -export type RoleTypeEdgeSelect = { +export type EmailEdgeSelect = { cursor?: boolean; node?: { - select: RoleTypeSelect; + select: EmailSelect; }; }; /** A `PhoneNumber` edge in the connection. */ @@ -1576,6 +1527,18 @@ export type PhoneNumberEdgeSelect = { select: PhoneNumberSelect; }; }; +/** A `CryptoAddress` edge in the connection. */ +export interface CryptoAddressEdge { + cursor?: string | null; + /** The `CryptoAddress` at the end of the edge. */ + node?: CryptoAddress | null; +} +export type CryptoAddressEdgeSelect = { + cursor?: boolean; + node?: { + select: CryptoAddressSelect; + }; +}; /** A `ConnectedAccount` edge in the connection. */ export interface ConnectedAccountEdge { cursor?: string | null; @@ -1600,16 +1563,16 @@ export type AuditLogEdgeSelect = { select: AuditLogSelect; }; }; -/** A `Email` edge in the connection. */ -export interface EmailEdge { +/** A `RoleType` edge in the connection. */ +export interface RoleTypeEdge { cursor?: string | null; - /** The `Email` at the end of the edge. */ - node?: Email | null; + /** The `RoleType` at the end of the edge. */ + node?: RoleType | null; } -export type EmailEdgeSelect = { +export type RoleTypeEdgeSelect = { cursor?: boolean; node?: { - select: EmailSelect; + select: RoleTypeSelect; }; }; /** A `User` edge in the connection. */ diff --git a/sdk/constructive-sdk/src/auth/orm/models/index.ts b/sdk/constructive-sdk/src/auth/orm/models/index.ts index 5ef4dde11..c21f0cd77 100644 --- a/sdk/constructive-sdk/src/auth/orm/models/index.ts +++ b/sdk/constructive-sdk/src/auth/orm/models/index.ts @@ -3,10 +3,10 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ -export { CryptoAddressModel } from './cryptoAddress'; -export { RoleTypeModel } from './roleType'; +export { EmailModel } from './email'; export { PhoneNumberModel } from './phoneNumber'; +export { CryptoAddressModel } from './cryptoAddress'; export { ConnectedAccountModel } from './connectedAccount'; export { AuditLogModel } from './auditLog'; -export { EmailModel } from './email'; +export { RoleTypeModel } from './roleType'; export { UserModel } from './user'; diff --git a/sdk/constructive-sdk/src/index.ts b/sdk/constructive-sdk/src/index.ts index 68342b399..4f0892d9e 100644 --- a/sdk/constructive-sdk/src/index.ts +++ b/sdk/constructive-sdk/src/index.ts @@ -6,7 +6,6 @@ * * @generated by @constructive-io/graphql-codegen */ - export * as admin from './admin'; export * as auth from './auth'; export * as objects from './objects'; diff --git a/sdk/constructive-sdk/src/objects/orm/README.md b/sdk/constructive-sdk/src/objects/orm/README.md index 21100fb3f..477f22a10 100644 --- a/sdk/constructive-sdk/src/objects/orm/README.md +++ b/sdk/constructive-sdk/src/objects/orm/README.md @@ -47,16 +47,16 @@ CRUD operations for GetAllRecord records. const items = await db.getAllRecord.findMany({ select: { path: true, data: true } }).execute(); // Get one by id -const item = await db.getAllRecord.findOne({ id: '', select: { path: true, data: true } }).execute(); +const item = await db.getAllRecord.findOne({ id: '', select: { path: true, data: true } }).execute(); // Create -const created = await db.getAllRecord.create({ data: { path: '', data: '' }, select: { id: true } }).execute(); +const created = await db.getAllRecord.create({ data: { path: '', data: '' }, select: { id: true } }).execute(); // Update -const updated = await db.getAllRecord.update({ where: { id: '' }, data: { path: '' }, select: { id: true } }).execute(); +const updated = await db.getAllRecord.update({ where: { id: '' }, data: { path: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.getAllRecord.delete({ where: { id: '' } }).execute(); +const deleted = await db.getAllRecord.delete({ where: { id: '' } }).execute(); ``` ### `db.object` @@ -83,16 +83,16 @@ CRUD operations for Object records. const items = await db.object.findMany({ select: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }).execute(); // Get one by id -const item = await db.object.findOne({ id: '', select: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }).execute(); +const item = await db.object.findOne({ id: '', select: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }).execute(); // Create -const created = await db.object.create({ data: { hashUuid: '', databaseId: '', kids: '', ktree: '', data: '', frzn: '' }, select: { id: true } }).execute(); +const created = await db.object.create({ data: { hashUuid: '', databaseId: '', kids: '', ktree: '', data: '', frzn: '' }, select: { id: true } }).execute(); // Update -const updated = await db.object.update({ where: { id: '' }, data: { hashUuid: '' }, select: { id: true } }).execute(); +const updated = await db.object.update({ where: { id: '' }, data: { hashUuid: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.object.delete({ where: { id: '' } }).execute(); +const deleted = await db.object.delete({ where: { id: '' } }).execute(); ``` ### `db.ref` @@ -108,26 +108,24 @@ CRUD operations for Ref records. | `databaseId` | UUID | Yes | | `storeId` | UUID | Yes | | `commitId` | UUID | Yes | -| `nameTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all ref records -const items = await db.ref.findMany({ select: { id: true, name: true, databaseId: true, storeId: true, commitId: true, nameTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.ref.findMany({ select: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }).execute(); // Get one by id -const item = await db.ref.findOne({ id: '', select: { id: true, name: true, databaseId: true, storeId: true, commitId: true, nameTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.ref.findOne({ id: '', select: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }).execute(); // Create -const created = await db.ref.create({ data: { name: '', databaseId: '', storeId: '', commitId: '', nameTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.ref.create({ data: { name: '', databaseId: '', storeId: '', commitId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.ref.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.ref.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.ref.delete({ where: { id: '' } }).execute(); +const deleted = await db.ref.delete({ where: { id: '' } }).execute(); ``` ### `db.store` @@ -143,26 +141,24 @@ CRUD operations for Store records. | `databaseId` | UUID | Yes | | `hash` | UUID | Yes | | `createdAt` | Datetime | No | -| `nameTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all store records -const items = await db.store.findMany({ select: { id: true, name: true, databaseId: true, hash: true, createdAt: true, nameTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.store.findMany({ select: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }).execute(); // Get one by id -const item = await db.store.findOne({ id: '', select: { id: true, name: true, databaseId: true, hash: true, createdAt: true, nameTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.store.findOne({ id: '', select: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }).execute(); // Create -const created = await db.store.create({ data: { name: '', databaseId: '', hash: '', nameTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.store.create({ data: { name: '', databaseId: '', hash: '' }, select: { id: true } }).execute(); // Update -const updated = await db.store.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.store.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.store.delete({ where: { id: '' } }).execute(); +const deleted = await db.store.delete({ where: { id: '' } }).execute(); ``` ### `db.commit` @@ -182,26 +178,24 @@ CRUD operations for Commit records. | `committerId` | UUID | Yes | | `treeId` | UUID | Yes | | `date` | Datetime | Yes | -| `messageTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all commit records -const items = await db.commit.findMany({ select: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true, messageTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.commit.findMany({ select: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }).execute(); // Get one by id -const item = await db.commit.findOne({ id: '', select: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true, messageTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.commit.findOne({ id: '', select: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }).execute(); // Create -const created = await db.commit.create({ data: { message: '', databaseId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '', messageTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.commit.create({ data: { message: '', databaseId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }, select: { id: true } }).execute(); // Update -const updated = await db.commit.update({ where: { id: '' }, data: { message: '' }, select: { id: true } }).execute(); +const updated = await db.commit.update({ where: { id: '' }, data: { message: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.commit.delete({ where: { id: '' } }).execute(); +const deleted = await db.commit.delete({ where: { id: '' } }).execute(); ``` ## Custom Operations @@ -220,7 +214,7 @@ revParse | `refname` | String | ```typescript -const result = await db.query.revParse({ dbId: '', storeId: '', refname: '' }).execute(); +const result = await db.query.revParse({ dbId: '', storeId: '', refname: '' }).execute(); ``` ### `db.query.getAllObjectsFromRoot` @@ -239,7 +233,7 @@ Reads and enables pagination through a set of `Object`. | `after` | Cursor | ```typescript -const result = await db.query.getAllObjectsFromRoot({ databaseId: '', id: '', first: '', offset: '', after: '' }).execute(); +const result = await db.query.getAllObjectsFromRoot({ databaseId: '', id: '', first: '', offset: '', after: '' }).execute(); ``` ### `db.query.getPathObjectsFromRoot` @@ -259,7 +253,7 @@ Reads and enables pagination through a set of `Object`. | `after` | Cursor | ```typescript -const result = await db.query.getPathObjectsFromRoot({ databaseId: '', id: '', path: '', first: '', offset: '', after: '' }).execute(); +const result = await db.query.getPathObjectsFromRoot({ databaseId: '', id: '', path: '', first: '', offset: '', after: '' }).execute(); ``` ### `db.query.getObjectAtPath` @@ -277,7 +271,7 @@ getObjectAtPath | `refname` | String | ```typescript -const result = await db.query.getObjectAtPath({ dbId: '', storeId: '', path: '', refname: '' }).execute(); +const result = await db.query.getObjectAtPath({ dbId: '', storeId: '', path: '', refname: '' }).execute(); ``` ### `db.mutation.freezeObjects` @@ -292,7 +286,7 @@ freezeObjects | `input` | FreezeObjectsInput (required) | ```typescript -const result = await db.mutation.freezeObjects({ input: '' }).execute(); +const result = await db.mutation.freezeObjects({ input: { databaseId: '', id: '' } }).execute(); ``` ### `db.mutation.initEmptyRepo` @@ -307,7 +301,7 @@ initEmptyRepo | `input` | InitEmptyRepoInput (required) | ```typescript -const result = await db.mutation.initEmptyRepo({ input: '' }).execute(); +const result = await db.mutation.initEmptyRepo({ input: { dbId: '', storeId: '' } }).execute(); ``` ### `db.mutation.removeNodeAtPath` @@ -322,7 +316,7 @@ removeNodeAtPath | `input` | RemoveNodeAtPathInput (required) | ```typescript -const result = await db.mutation.removeNodeAtPath({ input: '' }).execute(); +const result = await db.mutation.removeNodeAtPath({ input: { dbId: '', root: '', path: '' } }).execute(); ``` ### `db.mutation.setDataAtPath` @@ -337,7 +331,7 @@ setDataAtPath | `input` | SetDataAtPathInput (required) | ```typescript -const result = await db.mutation.setDataAtPath({ input: '' }).execute(); +const result = await db.mutation.setDataAtPath({ input: { dbId: '', root: '', path: '', data: '' } }).execute(); ``` ### `db.mutation.setPropsAndCommit` @@ -352,7 +346,7 @@ setPropsAndCommit | `input` | SetPropsAndCommitInput (required) | ```typescript -const result = await db.mutation.setPropsAndCommit({ input: '' }).execute(); +const result = await db.mutation.setPropsAndCommit({ input: { dbId: '', storeId: '', refname: '', path: '', data: '' } }).execute(); ``` ### `db.mutation.insertNodeAtPath` @@ -367,7 +361,7 @@ insertNodeAtPath | `input` | InsertNodeAtPathInput (required) | ```typescript -const result = await db.mutation.insertNodeAtPath({ input: '' }).execute(); +const result = await db.mutation.insertNodeAtPath({ input: '' }).execute(); ``` ### `db.mutation.updateNodeAtPath` @@ -382,7 +376,7 @@ updateNodeAtPath | `input` | UpdateNodeAtPathInput (required) | ```typescript -const result = await db.mutation.updateNodeAtPath({ input: '' }).execute(); +const result = await db.mutation.updateNodeAtPath({ input: '' }).execute(); ``` ### `db.mutation.setAndCommit` @@ -397,7 +391,7 @@ setAndCommit | `input` | SetAndCommitInput (required) | ```typescript -const result = await db.mutation.setAndCommit({ input: '' }).execute(); +const result = await db.mutation.setAndCommit({ input: '' }).execute(); ``` --- diff --git a/sdk/constructive-sdk/src/objects/orm/input-types.ts b/sdk/constructive-sdk/src/objects/orm/input-types.ts index c0921fb40..b0dc694b9 100644 --- a/sdk/constructive-sdk/src/objects/orm/input-types.ts +++ b/sdk/constructive-sdk/src/objects/orm/input-types.ts @@ -254,10 +254,6 @@ export interface Ref { databaseId?: string | null; storeId?: string | null; commitId?: string | null; - /** TRGM similarity when searching `name`. Returns null when no trgm search filter is active. */ - nameTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } /** A store represents an isolated object repository within a database. */ export interface Store { @@ -270,10 +266,6 @@ export interface Store { /** The current head tree_id for this store. */ hash?: string | null; createdAt?: string | null; - /** TRGM similarity when searching `name`. Returns null when no trgm search filter is active. */ - nameTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } /** A commit records changes to the repository. */ export interface Commit { @@ -293,10 +285,6 @@ export interface Commit { /** The root of the tree */ treeId?: string | null; date?: string | null; - /** TRGM similarity when searching `message`. Returns null when no trgm search filter is active. */ - messageTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } // ============ Relation Helper Types ============ export interface ConnectionResult { @@ -343,8 +331,6 @@ export type RefSelect = { databaseId?: boolean; storeId?: boolean; commitId?: boolean; - nameTrgmSimilarity?: boolean; - searchScore?: boolean; }; export type StoreSelect = { id?: boolean; @@ -352,8 +338,6 @@ export type StoreSelect = { databaseId?: boolean; hash?: boolean; createdAt?: boolean; - nameTrgmSimilarity?: boolean; - searchScore?: boolean; }; export type CommitSelect = { id?: boolean; @@ -365,8 +349,6 @@ export type CommitSelect = { committerId?: boolean; treeId?: boolean; date?: boolean; - messageTrgmSimilarity?: boolean; - searchScore?: boolean; }; // ============ Table Filter Types ============ export interface GetAllRecordFilter { @@ -395,8 +377,6 @@ export interface RefFilter { databaseId?: UUIDFilter; storeId?: UUIDFilter; commitId?: UUIDFilter; - nameTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: RefFilter[]; or?: RefFilter[]; not?: RefFilter; @@ -407,8 +387,6 @@ export interface StoreFilter { databaseId?: UUIDFilter; hash?: UUIDFilter; createdAt?: DatetimeFilter; - nameTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: StoreFilter[]; or?: StoreFilter[]; not?: StoreFilter; @@ -423,8 +401,6 @@ export interface CommitFilter { committerId?: UUIDFilter; treeId?: UUIDFilter; date?: DatetimeFilter; - messageTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: CommitFilter[]; or?: CommitFilter[]; not?: CommitFilter; @@ -457,11 +433,7 @@ export type RefOrderBy = | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'STORE_ID_ASC' - | 'STORE_ID_DESC' - | 'NAME_TRGM_SIMILARITY_ASC' - | 'NAME_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'STORE_ID_DESC'; export type StoreOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -469,11 +441,7 @@ export type StoreOrderBy = | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'NAME_TRGM_SIMILARITY_ASC' - | 'NAME_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'DATABASE_ID_DESC'; export type CommitOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -481,11 +449,7 @@ export type CommitOrderBy = | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'MESSAGE_TRGM_SIMILARITY_ASC' - | 'MESSAGE_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'DATABASE_ID_DESC'; // ============ CRUD Input Types ============ export interface CreateGetAllRecordInput { clientMutationId?: string; diff --git a/sdk/constructive-sdk/src/public/README.md b/sdk/constructive-sdk/src/public/README.md index 5d1fc62b9..3e2cb3217 100644 --- a/sdk/constructive-sdk/src/public/README.md +++ b/sdk/constructive-sdk/src/public/README.md @@ -8,9 +8,9 @@ ## Overview -- **Tables:** 103 +- **Tables:** 107 - **Custom queries:** 19 -- **Custom mutations:** 31 +- **Custom mutations:** 36 **Generators:** ORM diff --git a/sdk/constructive-sdk/src/public/orm/README.md b/sdk/constructive-sdk/src/public/orm/README.md index 3433a90fc..345968ed7 100644 --- a/sdk/constructive-sdk/src/public/orm/README.md +++ b/sdk/constructive-sdk/src/public/orm/README.md @@ -21,9 +21,9 @@ const db = createClient({ | Model | Operations | |-------|------------| +| `getAllRecord` | findMany, findOne, create, update, delete | | `orgGetManagersRecord` | findMany, findOne, create, update, delete | | `orgGetSubordinatesRecord` | findMany, findOne, create, update, delete | -| `getAllRecord` | findMany, findOne, create, update, delete | | `object` | findMany, findOne, create, update, delete | | `appPermission` | findMany, findOne, create, update, delete | | `orgPermission` | findMany, findOne, create, update, delete | @@ -45,11 +45,13 @@ const db = createClient({ | `viewTable` | findMany, findOne, create, update, delete | | `viewGrant` | findMany, findOne, create, update, delete | | `viewRule` | findMany, findOne, create, update, delete | +| `embeddingChunk` | findMany, findOne, create, update, delete | | `tableTemplateModule` | findMany, findOne, create, update, delete | | `secureTableProvision` | findMany, findOne, create, update, delete | | `relationProvision` | findMany, findOne, create, update, delete | | `schemaGrant` | findMany, findOne, create, update, delete | | `defaultPrivilege` | findMany, findOne, create, update, delete | +| `enum` | findMany, findOne, create, update, delete | | `apiSchema` | findMany, findOne, create, update, delete | | `apiModule` | findMany, findOne, create, update, delete | | `domain` | findMany, findOne, create, update, delete | @@ -57,6 +59,7 @@ const db = createClient({ | `siteModule` | findMany, findOne, create, update, delete | | `siteTheme` | findMany, findOne, create, update, delete | | `triggerFunction` | findMany, findOne, create, update, delete | +| `databaseTransfer` | findMany, findOne, create, update, delete | | `api` | findMany, findOne, create, update, delete | | `site` | findMany, findOne, create, update, delete | | `app` | findMany, findOne, create, update, delete | @@ -80,7 +83,8 @@ const db = createClient({ | `sessionsModule` | findMany, findOne, create, update, delete | | `userAuthModule` | findMany, findOne, create, update, delete | | `usersModule` | findMany, findOne, create, update, delete | -| `uuidModule` | findMany, findOne, create, update, delete | +| `blueprint` | findMany, findOne, create, update, delete | +| `blueprintTemplate` | findMany, findOne, create, update, delete | | `databaseProvisionModule` | findMany, findOne, create, update, delete | | `appAdminGrant` | findMany, findOne, create, update, delete | | `appOwnerGrant` | findMany, findOne, create, update, delete | @@ -92,34 +96,34 @@ const db = createClient({ | `orgGrant` | findMany, findOne, create, update, delete | | `orgChartEdge` | findMany, findOne, create, update, delete | | `orgChartEdgeGrant` | findMany, findOne, create, update, delete | +| `orgPermissionDefault` | findMany, findOne, create, update, delete | | `appLimit` | findMany, findOne, create, update, delete | | `orgLimit` | findMany, findOne, create, update, delete | | `appStep` | findMany, findOne, create, update, delete | | `appAchievement` | findMany, findOne, create, update, delete | +| `appLevel` | findMany, findOne, create, update, delete | +| `email` | findMany, findOne, create, update, delete | +| `phoneNumber` | findMany, findOne, create, update, delete | +| `cryptoAddress` | findMany, findOne, create, update, delete | +| `connectedAccount` | findMany, findOne, create, update, delete | | `invite` | findMany, findOne, create, update, delete | | `claimedInvite` | findMany, findOne, create, update, delete | | `orgInvite` | findMany, findOne, create, update, delete | | `orgClaimedInvite` | findMany, findOne, create, update, delete | +| `auditLog` | findMany, findOne, create, update, delete | | `ref` | findMany, findOne, create, update, delete | | `store` | findMany, findOne, create, update, delete | | `appPermissionDefault` | findMany, findOne, create, update, delete | -| `cryptoAddress` | findMany, findOne, create, update, delete | | `roleType` | findMany, findOne, create, update, delete | -| `orgPermissionDefault` | findMany, findOne, create, update, delete | -| `phoneNumber` | findMany, findOne, create, update, delete | | `appLimitDefault` | findMany, findOne, create, update, delete | | `orgLimitDefault` | findMany, findOne, create, update, delete | -| `connectedAccount` | findMany, findOne, create, update, delete | | `nodeTypeRegistry` | findMany, findOne, create, update, delete | | `membershipType` | findMany, findOne, create, update, delete | | `commit` | findMany, findOne, create, update, delete | | `appMembershipDefault` | findMany, findOne, create, update, delete | | `rlsModule` | findMany, findOne, create, update, delete | | `orgMembershipDefault` | findMany, findOne, create, update, delete | -| `auditLog` | findMany, findOne, create, update, delete | -| `appLevel` | findMany, findOne, create, update, delete | | `sqlMigration` | findMany, findOne, create, update, delete | -| `email` | findMany, findOne, create, update, delete | | `user` | findMany, findOne, create, update, delete | | `astMigration` | findMany, findOne, create, update, delete | | `appMembership` | findMany, findOne, create, update, delete | @@ -127,39 +131,39 @@ const db = createClient({ ## Table Operations -### `db.orgGetManagersRecord` +### `db.getAllRecord` -CRUD operations for OrgGetManagersRecord records. +CRUD operations for GetAllRecord records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `userId` | UUID | Yes | -| `depth` | Int | Yes | +| `path` | String | Yes | +| `data` | JSON | Yes | **Operations:** ```typescript -// List all orgGetManagersRecord records -const items = await db.orgGetManagersRecord.findMany({ select: { userId: true, depth: true } }).execute(); +// List all getAllRecord records +const items = await db.getAllRecord.findMany({ select: { path: true, data: true } }).execute(); // Get one by id -const item = await db.orgGetManagersRecord.findOne({ id: '', select: { userId: true, depth: true } }).execute(); +const item = await db.getAllRecord.findOne({ id: '', select: { path: true, data: true } }).execute(); // Create -const created = await db.orgGetManagersRecord.create({ data: { userId: '', depth: '' }, select: { id: true } }).execute(); +const created = await db.getAllRecord.create({ data: { path: '', data: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgGetManagersRecord.update({ where: { id: '' }, data: { userId: '' }, select: { id: true } }).execute(); +const updated = await db.getAllRecord.update({ where: { id: '' }, data: { path: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgGetManagersRecord.delete({ where: { id: '' } }).execute(); +const deleted = await db.getAllRecord.delete({ where: { id: '' } }).execute(); ``` -### `db.orgGetSubordinatesRecord` +### `db.orgGetManagersRecord` -CRUD operations for OrgGetSubordinatesRecord records. +CRUD operations for OrgGetManagersRecord records. **Fields:** @@ -171,50 +175,50 @@ CRUD operations for OrgGetSubordinatesRecord records. **Operations:** ```typescript -// List all orgGetSubordinatesRecord records -const items = await db.orgGetSubordinatesRecord.findMany({ select: { userId: true, depth: true } }).execute(); +// List all orgGetManagersRecord records +const items = await db.orgGetManagersRecord.findMany({ select: { userId: true, depth: true } }).execute(); // Get one by id -const item = await db.orgGetSubordinatesRecord.findOne({ id: '', select: { userId: true, depth: true } }).execute(); +const item = await db.orgGetManagersRecord.findOne({ id: '', select: { userId: true, depth: true } }).execute(); // Create -const created = await db.orgGetSubordinatesRecord.create({ data: { userId: '', depth: '' }, select: { id: true } }).execute(); +const created = await db.orgGetManagersRecord.create({ data: { userId: '', depth: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgGetSubordinatesRecord.update({ where: { id: '' }, data: { userId: '' }, select: { id: true } }).execute(); +const updated = await db.orgGetManagersRecord.update({ where: { id: '' }, data: { userId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgGetSubordinatesRecord.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgGetManagersRecord.delete({ where: { id: '' } }).execute(); ``` -### `db.getAllRecord` +### `db.orgGetSubordinatesRecord` -CRUD operations for GetAllRecord records. +CRUD operations for OrgGetSubordinatesRecord records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `path` | String | Yes | -| `data` | JSON | Yes | +| `userId` | UUID | Yes | +| `depth` | Int | Yes | **Operations:** ```typescript -// List all getAllRecord records -const items = await db.getAllRecord.findMany({ select: { path: true, data: true } }).execute(); +// List all orgGetSubordinatesRecord records +const items = await db.orgGetSubordinatesRecord.findMany({ select: { userId: true, depth: true } }).execute(); // Get one by id -const item = await db.getAllRecord.findOne({ id: '', select: { path: true, data: true } }).execute(); +const item = await db.orgGetSubordinatesRecord.findOne({ id: '', select: { userId: true, depth: true } }).execute(); // Create -const created = await db.getAllRecord.create({ data: { path: '', data: '' }, select: { id: true } }).execute(); +const created = await db.orgGetSubordinatesRecord.create({ data: { userId: '', depth: '' }, select: { id: true } }).execute(); // Update -const updated = await db.getAllRecord.update({ where: { id: '' }, data: { path: '' }, select: { id: true } }).execute(); +const updated = await db.orgGetSubordinatesRecord.update({ where: { id: '' }, data: { userId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.getAllRecord.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgGetSubordinatesRecord.delete({ where: { id: '' } }).execute(); ``` ### `db.object` @@ -241,16 +245,16 @@ CRUD operations for Object records. const items = await db.object.findMany({ select: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }).execute(); // Get one by id -const item = await db.object.findOne({ id: '', select: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }).execute(); +const item = await db.object.findOne({ id: '', select: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }).execute(); // Create -const created = await db.object.create({ data: { hashUuid: '', databaseId: '', kids: '', ktree: '', data: '', frzn: '' }, select: { id: true } }).execute(); +const created = await db.object.create({ data: { hashUuid: '', databaseId: '', kids: '', ktree: '', data: '', frzn: '' }, select: { id: true } }).execute(); // Update -const updated = await db.object.update({ where: { id: '' }, data: { hashUuid: '' }, select: { id: true } }).execute(); +const updated = await db.object.update({ where: { id: '' }, data: { hashUuid: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.object.delete({ where: { id: '' } }).execute(); +const deleted = await db.object.delete({ where: { id: '' } }).execute(); ``` ### `db.appPermission` @@ -266,26 +270,24 @@ CRUD operations for AppPermission records. | `bitnum` | Int | Yes | | `bitstr` | BitString | Yes | | `description` | String | Yes | -| `descriptionTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all appPermission records -const items = await db.appPermission.findMany({ select: { id: true, name: true, bitnum: true, bitstr: true, description: true, descriptionTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.appPermission.findMany({ select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); // Get one by id -const item = await db.appPermission.findOne({ id: '', select: { id: true, name: true, bitnum: true, bitstr: true, description: true, descriptionTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.appPermission.findOne({ id: '', select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); // Create -const created = await db.appPermission.create({ data: { name: '', bitnum: '', bitstr: '', description: '', descriptionTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.appPermission.create({ data: { name: '', bitnum: '', bitstr: '', description: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appPermission.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.appPermission.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appPermission.delete({ where: { id: '' } }).execute(); +const deleted = await db.appPermission.delete({ where: { id: '' } }).execute(); ``` ### `db.orgPermission` @@ -301,26 +303,24 @@ CRUD operations for OrgPermission records. | `bitnum` | Int | Yes | | `bitstr` | BitString | Yes | | `description` | String | Yes | -| `descriptionTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all orgPermission records -const items = await db.orgPermission.findMany({ select: { id: true, name: true, bitnum: true, bitstr: true, description: true, descriptionTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.orgPermission.findMany({ select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); // Get one by id -const item = await db.orgPermission.findOne({ id: '', select: { id: true, name: true, bitnum: true, bitstr: true, description: true, descriptionTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.orgPermission.findOne({ id: '', select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); // Create -const created = await db.orgPermission.create({ data: { name: '', bitnum: '', bitstr: '', description: '', descriptionTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.orgPermission.create({ data: { name: '', bitnum: '', bitstr: '', description: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgPermission.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.orgPermission.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgPermission.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgPermission.delete({ where: { id: '' } }).execute(); ``` ### `db.appLevelRequirement` @@ -339,26 +339,24 @@ CRUD operations for AppLevelRequirement records. | `priority` | Int | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `descriptionTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all appLevelRequirement records -const items = await db.appLevelRequirement.findMany({ select: { id: true, name: true, level: true, description: true, requiredCount: true, priority: true, createdAt: true, updatedAt: true, descriptionTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.appLevelRequirement.findMany({ select: { id: true, name: true, level: true, description: true, requiredCount: true, priority: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.appLevelRequirement.findOne({ id: '', select: { id: true, name: true, level: true, description: true, requiredCount: true, priority: true, createdAt: true, updatedAt: true, descriptionTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.appLevelRequirement.findOne({ id: '', select: { id: true, name: true, level: true, description: true, requiredCount: true, priority: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.appLevelRequirement.create({ data: { name: '', level: '', description: '', requiredCount: '', priority: '', descriptionTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.appLevelRequirement.create({ data: { name: '', level: '', description: '', requiredCount: '', priority: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appLevelRequirement.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.appLevelRequirement.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appLevelRequirement.delete({ where: { id: '' } }).execute(); +const deleted = await db.appLevelRequirement.delete({ where: { id: '' } }).execute(); ``` ### `db.database` @@ -377,28 +375,24 @@ CRUD operations for Database records. | `hash` | UUID | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `schemaHashTrgmSimilarity` | Float | Yes | -| `nameTrgmSimilarity` | Float | Yes | -| `labelTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all database records -const items = await db.database.findMany({ select: { id: true, ownerId: true, schemaHash: true, name: true, label: true, hash: true, createdAt: true, updatedAt: true, schemaHashTrgmSimilarity: true, nameTrgmSimilarity: true, labelTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.database.findMany({ select: { id: true, ownerId: true, schemaHash: true, name: true, label: true, hash: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.database.findOne({ id: '', select: { id: true, ownerId: true, schemaHash: true, name: true, label: true, hash: true, createdAt: true, updatedAt: true, schemaHashTrgmSimilarity: true, nameTrgmSimilarity: true, labelTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.database.findOne({ id: '', select: { id: true, ownerId: true, schemaHash: true, name: true, label: true, hash: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.database.create({ data: { ownerId: '', schemaHash: '', name: '', label: '', hash: '', schemaHashTrgmSimilarity: '', nameTrgmSimilarity: '', labelTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.database.create({ data: { ownerId: '', schemaHash: '', name: '', label: '', hash: '' }, select: { id: true } }).execute(); // Update -const updated = await db.database.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); +const updated = await db.database.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.database.delete({ where: { id: '' } }).execute(); +const deleted = await db.database.delete({ where: { id: '' } }).execute(); ``` ### `db.schema` @@ -423,30 +417,24 @@ CRUD operations for Schema records. | `isPublic` | Boolean | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `nameTrgmSimilarity` | Float | Yes | -| `schemaNameTrgmSimilarity` | Float | Yes | -| `labelTrgmSimilarity` | Float | Yes | -| `descriptionTrgmSimilarity` | Float | Yes | -| `moduleTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all schema records -const items = await db.schema.findMany({ select: { id: true, databaseId: true, name: true, schemaName: true, label: true, description: true, smartTags: true, category: true, module: true, scope: true, tags: true, isPublic: true, createdAt: true, updatedAt: true, nameTrgmSimilarity: true, schemaNameTrgmSimilarity: true, labelTrgmSimilarity: true, descriptionTrgmSimilarity: true, moduleTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.schema.findMany({ select: { id: true, databaseId: true, name: true, schemaName: true, label: true, description: true, smartTags: true, category: true, module: true, scope: true, tags: true, isPublic: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.schema.findOne({ id: '', select: { id: true, databaseId: true, name: true, schemaName: true, label: true, description: true, smartTags: true, category: true, module: true, scope: true, tags: true, isPublic: true, createdAt: true, updatedAt: true, nameTrgmSimilarity: true, schemaNameTrgmSimilarity: true, labelTrgmSimilarity: true, descriptionTrgmSimilarity: true, moduleTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.schema.findOne({ id: '', select: { id: true, databaseId: true, name: true, schemaName: true, label: true, description: true, smartTags: true, category: true, module: true, scope: true, tags: true, isPublic: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.schema.create({ data: { databaseId: '', name: '', schemaName: '', label: '', description: '', smartTags: '', category: '', module: '', scope: '', tags: '', isPublic: '', nameTrgmSimilarity: '', schemaNameTrgmSimilarity: '', labelTrgmSimilarity: '', descriptionTrgmSimilarity: '', moduleTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.schema.create({ data: { databaseId: '', name: '', schemaName: '', label: '', description: '', smartTags: '', category: '', module: '', scope: '', tags: '', isPublic: '' }, select: { id: true } }).execute(); // Update -const updated = await db.schema.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.schema.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.schema.delete({ where: { id: '' } }).execute(); +const deleted = await db.schema.delete({ where: { id: '' } }).execute(); ``` ### `db.table` @@ -476,31 +464,24 @@ CRUD operations for Table records. | `inheritsId` | UUID | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `nameTrgmSimilarity` | Float | Yes | -| `labelTrgmSimilarity` | Float | Yes | -| `descriptionTrgmSimilarity` | Float | Yes | -| `moduleTrgmSimilarity` | Float | Yes | -| `pluralNameTrgmSimilarity` | Float | Yes | -| `singularNameTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all table records -const items = await db.table.findMany({ select: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, smartTags: true, category: true, module: true, scope: true, useRls: true, timestamps: true, peoplestamps: true, pluralName: true, singularName: true, tags: true, inheritsId: true, createdAt: true, updatedAt: true, nameTrgmSimilarity: true, labelTrgmSimilarity: true, descriptionTrgmSimilarity: true, moduleTrgmSimilarity: true, pluralNameTrgmSimilarity: true, singularNameTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.table.findMany({ select: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, smartTags: true, category: true, module: true, scope: true, useRls: true, timestamps: true, peoplestamps: true, pluralName: true, singularName: true, tags: true, inheritsId: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.table.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, smartTags: true, category: true, module: true, scope: true, useRls: true, timestamps: true, peoplestamps: true, pluralName: true, singularName: true, tags: true, inheritsId: true, createdAt: true, updatedAt: true, nameTrgmSimilarity: true, labelTrgmSimilarity: true, descriptionTrgmSimilarity: true, moduleTrgmSimilarity: true, pluralNameTrgmSimilarity: true, singularNameTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.table.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, smartTags: true, category: true, module: true, scope: true, useRls: true, timestamps: true, peoplestamps: true, pluralName: true, singularName: true, tags: true, inheritsId: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.table.create({ data: { databaseId: '', schemaId: '', name: '', label: '', description: '', smartTags: '', category: '', module: '', scope: '', useRls: '', timestamps: '', peoplestamps: '', pluralName: '', singularName: '', tags: '', inheritsId: '', nameTrgmSimilarity: '', labelTrgmSimilarity: '', descriptionTrgmSimilarity: '', moduleTrgmSimilarity: '', pluralNameTrgmSimilarity: '', singularNameTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.table.create({ data: { databaseId: '', schemaId: '', name: '', label: '', description: '', smartTags: '', category: '', module: '', scope: '', useRls: '', timestamps: '', peoplestamps: '', pluralName: '', singularName: '', tags: '', inheritsId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.table.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.table.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.table.delete({ where: { id: '' } }).execute(); +const deleted = await db.table.delete({ where: { id: '' } }).execute(); ``` ### `db.checkConstraint` @@ -525,28 +506,24 @@ CRUD operations for CheckConstraint records. | `tags` | String | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `nameTrgmSimilarity` | Float | Yes | -| `typeTrgmSimilarity` | Float | Yes | -| `moduleTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all checkConstraint records -const items = await db.checkConstraint.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, expr: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true, nameTrgmSimilarity: true, typeTrgmSimilarity: true, moduleTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.checkConstraint.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, expr: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.checkConstraint.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, expr: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true, nameTrgmSimilarity: true, typeTrgmSimilarity: true, moduleTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.checkConstraint.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, expr: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.checkConstraint.create({ data: { databaseId: '', tableId: '', name: '', type: '', fieldIds: '', expr: '', smartTags: '', category: '', module: '', scope: '', tags: '', nameTrgmSimilarity: '', typeTrgmSimilarity: '', moduleTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.checkConstraint.create({ data: { databaseId: '', tableId: '', name: '', type: '', fieldIds: '', expr: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); // Update -const updated = await db.checkConstraint.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.checkConstraint.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.checkConstraint.delete({ where: { id: '' } }).execute(); +const deleted = await db.checkConstraint.delete({ where: { id: '' } }).execute(); ``` ### `db.field` @@ -565,6 +542,7 @@ CRUD operations for Field records. | `description` | String | Yes | | `smartTags` | JSON | Yes | | `isRequired` | Boolean | Yes | +| `apiRequired` | Boolean | Yes | | `defaultValue` | String | Yes | | `defaultValueAst` | JSON | Yes | | `isHidden` | Boolean | Yes | @@ -581,31 +559,24 @@ CRUD operations for Field records. | `scope` | Int | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `nameTrgmSimilarity` | Float | Yes | -| `labelTrgmSimilarity` | Float | Yes | -| `descriptionTrgmSimilarity` | Float | Yes | -| `defaultValueTrgmSimilarity` | Float | Yes | -| `regexpTrgmSimilarity` | Float | Yes | -| `moduleTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all field records -const items = await db.field.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, label: true, description: true, smartTags: true, isRequired: true, defaultValue: true, defaultValueAst: true, isHidden: true, type: true, fieldOrder: true, regexp: true, chk: true, chkExpr: true, min: true, max: true, tags: true, category: true, module: true, scope: true, createdAt: true, updatedAt: true, nameTrgmSimilarity: true, labelTrgmSimilarity: true, descriptionTrgmSimilarity: true, defaultValueTrgmSimilarity: true, regexpTrgmSimilarity: true, moduleTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.field.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, label: true, description: true, smartTags: true, isRequired: true, apiRequired: true, defaultValue: true, defaultValueAst: true, isHidden: true, type: true, fieldOrder: true, regexp: true, chk: true, chkExpr: true, min: true, max: true, tags: true, category: true, module: true, scope: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.field.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, label: true, description: true, smartTags: true, isRequired: true, defaultValue: true, defaultValueAst: true, isHidden: true, type: true, fieldOrder: true, regexp: true, chk: true, chkExpr: true, min: true, max: true, tags: true, category: true, module: true, scope: true, createdAt: true, updatedAt: true, nameTrgmSimilarity: true, labelTrgmSimilarity: true, descriptionTrgmSimilarity: true, defaultValueTrgmSimilarity: true, regexpTrgmSimilarity: true, moduleTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.field.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, label: true, description: true, smartTags: true, isRequired: true, apiRequired: true, defaultValue: true, defaultValueAst: true, isHidden: true, type: true, fieldOrder: true, regexp: true, chk: true, chkExpr: true, min: true, max: true, tags: true, category: true, module: true, scope: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.field.create({ data: { databaseId: '', tableId: '', name: '', label: '', description: '', smartTags: '', isRequired: '', defaultValue: '', defaultValueAst: '', isHidden: '', type: '', fieldOrder: '', regexp: '', chk: '', chkExpr: '', min: '', max: '', tags: '', category: '', module: '', scope: '', nameTrgmSimilarity: '', labelTrgmSimilarity: '', descriptionTrgmSimilarity: '', defaultValueTrgmSimilarity: '', regexpTrgmSimilarity: '', moduleTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.field.create({ data: { databaseId: '', tableId: '', name: '', label: '', description: '', smartTags: '', isRequired: '', apiRequired: '', defaultValue: '', defaultValueAst: '', isHidden: '', type: '', fieldOrder: '', regexp: '', chk: '', chkExpr: '', min: '', max: '', tags: '', category: '', module: '', scope: '' }, select: { id: true } }).execute(); // Update -const updated = await db.field.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.field.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.field.delete({ where: { id: '' } }).execute(); +const deleted = await db.field.delete({ where: { id: '' } }).execute(); ``` ### `db.foreignKeyConstraint` @@ -634,31 +605,24 @@ CRUD operations for ForeignKeyConstraint records. | `tags` | String | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `nameTrgmSimilarity` | Float | Yes | -| `descriptionTrgmSimilarity` | Float | Yes | -| `typeTrgmSimilarity` | Float | Yes | -| `deleteActionTrgmSimilarity` | Float | Yes | -| `updateActionTrgmSimilarity` | Float | Yes | -| `moduleTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all foreignKeyConstraint records -const items = await db.foreignKeyConstraint.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, refTableId: true, refFieldIds: true, deleteAction: true, updateAction: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true, nameTrgmSimilarity: true, descriptionTrgmSimilarity: true, typeTrgmSimilarity: true, deleteActionTrgmSimilarity: true, updateActionTrgmSimilarity: true, moduleTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.foreignKeyConstraint.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, refTableId: true, refFieldIds: true, deleteAction: true, updateAction: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.foreignKeyConstraint.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, refTableId: true, refFieldIds: true, deleteAction: true, updateAction: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true, nameTrgmSimilarity: true, descriptionTrgmSimilarity: true, typeTrgmSimilarity: true, deleteActionTrgmSimilarity: true, updateActionTrgmSimilarity: true, moduleTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.foreignKeyConstraint.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, refTableId: true, refFieldIds: true, deleteAction: true, updateAction: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.foreignKeyConstraint.create({ data: { databaseId: '', tableId: '', name: '', description: '', smartTags: '', type: '', fieldIds: '', refTableId: '', refFieldIds: '', deleteAction: '', updateAction: '', category: '', module: '', scope: '', tags: '', nameTrgmSimilarity: '', descriptionTrgmSimilarity: '', typeTrgmSimilarity: '', deleteActionTrgmSimilarity: '', updateActionTrgmSimilarity: '', moduleTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.foreignKeyConstraint.create({ data: { databaseId: '', tableId: '', name: '', description: '', smartTags: '', type: '', fieldIds: '', refTableId: '', refFieldIds: '', deleteAction: '', updateAction: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); // Update -const updated = await db.foreignKeyConstraint.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.foreignKeyConstraint.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.foreignKeyConstraint.delete({ where: { id: '' } }).execute(); +const deleted = await db.foreignKeyConstraint.delete({ where: { id: '' } }).execute(); ``` ### `db.fullTextSearch` @@ -686,16 +650,16 @@ CRUD operations for FullTextSearch records. const items = await db.fullTextSearch.findMany({ select: { id: true, databaseId: true, tableId: true, fieldId: true, fieldIds: true, weights: true, langs: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.fullTextSearch.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, fieldId: true, fieldIds: true, weights: true, langs: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.fullTextSearch.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, fieldId: true, fieldIds: true, weights: true, langs: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.fullTextSearch.create({ data: { databaseId: '', tableId: '', fieldId: '', fieldIds: '', weights: '', langs: '' }, select: { id: true } }).execute(); +const created = await db.fullTextSearch.create({ data: { databaseId: '', tableId: '', fieldId: '', fieldIds: '', weights: '', langs: '' }, select: { id: true } }).execute(); // Update -const updated = await db.fullTextSearch.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.fullTextSearch.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.fullTextSearch.delete({ where: { id: '' } }).execute(); +const deleted = await db.fullTextSearch.delete({ where: { id: '' } }).execute(); ``` ### `db.index` @@ -725,28 +689,24 @@ CRUD operations for Index records. | `tags` | String | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `nameTrgmSimilarity` | Float | Yes | -| `accessMethodTrgmSimilarity` | Float | Yes | -| `moduleTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all index records -const items = await db.index.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, fieldIds: true, includeFieldIds: true, accessMethod: true, indexParams: true, whereClause: true, isUnique: true, options: true, opClasses: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true, nameTrgmSimilarity: true, accessMethodTrgmSimilarity: true, moduleTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.index.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, fieldIds: true, includeFieldIds: true, accessMethod: true, indexParams: true, whereClause: true, isUnique: true, options: true, opClasses: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.index.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, fieldIds: true, includeFieldIds: true, accessMethod: true, indexParams: true, whereClause: true, isUnique: true, options: true, opClasses: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true, nameTrgmSimilarity: true, accessMethodTrgmSimilarity: true, moduleTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.index.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, fieldIds: true, includeFieldIds: true, accessMethod: true, indexParams: true, whereClause: true, isUnique: true, options: true, opClasses: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.index.create({ data: { databaseId: '', tableId: '', name: '', fieldIds: '', includeFieldIds: '', accessMethod: '', indexParams: '', whereClause: '', isUnique: '', options: '', opClasses: '', smartTags: '', category: '', module: '', scope: '', tags: '', nameTrgmSimilarity: '', accessMethodTrgmSimilarity: '', moduleTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.index.create({ data: { databaseId: '', tableId: '', name: '', fieldIds: '', includeFieldIds: '', accessMethod: '', indexParams: '', whereClause: '', isUnique: '', options: '', opClasses: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); // Update -const updated = await db.index.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.index.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.index.delete({ where: { id: '' } }).execute(); +const deleted = await db.index.delete({ where: { id: '' } }).execute(); ``` ### `db.policy` @@ -774,30 +734,24 @@ CRUD operations for Policy records. | `tags` | String | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `nameTrgmSimilarity` | Float | Yes | -| `granteeNameTrgmSimilarity` | Float | Yes | -| `privilegeTrgmSimilarity` | Float | Yes | -| `policyTypeTrgmSimilarity` | Float | Yes | -| `moduleTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all policy records -const items = await db.policy.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, granteeName: true, privilege: true, permissive: true, disabled: true, policyType: true, data: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true, nameTrgmSimilarity: true, granteeNameTrgmSimilarity: true, privilegeTrgmSimilarity: true, policyTypeTrgmSimilarity: true, moduleTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.policy.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, granteeName: true, privilege: true, permissive: true, disabled: true, policyType: true, data: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.policy.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, granteeName: true, privilege: true, permissive: true, disabled: true, policyType: true, data: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true, nameTrgmSimilarity: true, granteeNameTrgmSimilarity: true, privilegeTrgmSimilarity: true, policyTypeTrgmSimilarity: true, moduleTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.policy.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, granteeName: true, privilege: true, permissive: true, disabled: true, policyType: true, data: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.policy.create({ data: { databaseId: '', tableId: '', name: '', granteeName: '', privilege: '', permissive: '', disabled: '', policyType: '', data: '', smartTags: '', category: '', module: '', scope: '', tags: '', nameTrgmSimilarity: '', granteeNameTrgmSimilarity: '', privilegeTrgmSimilarity: '', policyTypeTrgmSimilarity: '', moduleTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.policy.create({ data: { databaseId: '', tableId: '', name: '', granteeName: '', privilege: '', permissive: '', disabled: '', policyType: '', data: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); // Update -const updated = await db.policy.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.policy.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.policy.delete({ where: { id: '' } }).execute(); +const deleted = await db.policy.delete({ where: { id: '' } }).execute(); ``` ### `db.primaryKeyConstraint` @@ -821,28 +775,24 @@ CRUD operations for PrimaryKeyConstraint records. | `tags` | String | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `nameTrgmSimilarity` | Float | Yes | -| `typeTrgmSimilarity` | Float | Yes | -| `moduleTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all primaryKeyConstraint records -const items = await db.primaryKeyConstraint.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true, nameTrgmSimilarity: true, typeTrgmSimilarity: true, moduleTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.primaryKeyConstraint.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.primaryKeyConstraint.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true, nameTrgmSimilarity: true, typeTrgmSimilarity: true, moduleTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.primaryKeyConstraint.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.primaryKeyConstraint.create({ data: { databaseId: '', tableId: '', name: '', type: '', fieldIds: '', smartTags: '', category: '', module: '', scope: '', tags: '', nameTrgmSimilarity: '', typeTrgmSimilarity: '', moduleTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.primaryKeyConstraint.create({ data: { databaseId: '', tableId: '', name: '', type: '', fieldIds: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); // Update -const updated = await db.primaryKeyConstraint.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.primaryKeyConstraint.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.primaryKeyConstraint.delete({ where: { id: '' } }).execute(); +const deleted = await db.primaryKeyConstraint.delete({ where: { id: '' } }).execute(); ``` ### `db.tableGrant` @@ -862,27 +812,24 @@ CRUD operations for TableGrant records. | `isGrant` | Boolean | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `privilegeTrgmSimilarity` | Float | Yes | -| `granteeNameTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all tableGrant records -const items = await db.tableGrant.findMany({ select: { id: true, databaseId: true, tableId: true, privilege: true, granteeName: true, fieldIds: true, isGrant: true, createdAt: true, updatedAt: true, privilegeTrgmSimilarity: true, granteeNameTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.tableGrant.findMany({ select: { id: true, databaseId: true, tableId: true, privilege: true, granteeName: true, fieldIds: true, isGrant: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.tableGrant.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, privilege: true, granteeName: true, fieldIds: true, isGrant: true, createdAt: true, updatedAt: true, privilegeTrgmSimilarity: true, granteeNameTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.tableGrant.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, privilege: true, granteeName: true, fieldIds: true, isGrant: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.tableGrant.create({ data: { databaseId: '', tableId: '', privilege: '', granteeName: '', fieldIds: '', isGrant: '', privilegeTrgmSimilarity: '', granteeNameTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.tableGrant.create({ data: { databaseId: '', tableId: '', privilege: '', granteeName: '', fieldIds: '', isGrant: '' }, select: { id: true } }).execute(); // Update -const updated = await db.tableGrant.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.tableGrant.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.tableGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.tableGrant.delete({ where: { id: '' } }).execute(); ``` ### `db.trigger` @@ -906,29 +853,24 @@ CRUD operations for Trigger records. | `tags` | String | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `nameTrgmSimilarity` | Float | Yes | -| `eventTrgmSimilarity` | Float | Yes | -| `functionNameTrgmSimilarity` | Float | Yes | -| `moduleTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all trigger records -const items = await db.trigger.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, event: true, functionName: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true, nameTrgmSimilarity: true, eventTrgmSimilarity: true, functionNameTrgmSimilarity: true, moduleTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.trigger.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, event: true, functionName: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.trigger.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, event: true, functionName: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true, nameTrgmSimilarity: true, eventTrgmSimilarity: true, functionNameTrgmSimilarity: true, moduleTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.trigger.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, event: true, functionName: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.trigger.create({ data: { databaseId: '', tableId: '', name: '', event: '', functionName: '', smartTags: '', category: '', module: '', scope: '', tags: '', nameTrgmSimilarity: '', eventTrgmSimilarity: '', functionNameTrgmSimilarity: '', moduleTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.trigger.create({ data: { databaseId: '', tableId: '', name: '', event: '', functionName: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); // Update -const updated = await db.trigger.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.trigger.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.trigger.delete({ where: { id: '' } }).execute(); +const deleted = await db.trigger.delete({ where: { id: '' } }).execute(); ``` ### `db.uniqueConstraint` @@ -953,29 +895,24 @@ CRUD operations for UniqueConstraint records. | `tags` | String | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `nameTrgmSimilarity` | Float | Yes | -| `descriptionTrgmSimilarity` | Float | Yes | -| `typeTrgmSimilarity` | Float | Yes | -| `moduleTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all uniqueConstraint records -const items = await db.uniqueConstraint.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true, nameTrgmSimilarity: true, descriptionTrgmSimilarity: true, typeTrgmSimilarity: true, moduleTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.uniqueConstraint.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.uniqueConstraint.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true, nameTrgmSimilarity: true, descriptionTrgmSimilarity: true, typeTrgmSimilarity: true, moduleTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.uniqueConstraint.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.uniqueConstraint.create({ data: { databaseId: '', tableId: '', name: '', description: '', smartTags: '', type: '', fieldIds: '', category: '', module: '', scope: '', tags: '', nameTrgmSimilarity: '', descriptionTrgmSimilarity: '', typeTrgmSimilarity: '', moduleTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.uniqueConstraint.create({ data: { databaseId: '', tableId: '', name: '', description: '', smartTags: '', type: '', fieldIds: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); // Update -const updated = await db.uniqueConstraint.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.uniqueConstraint.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.uniqueConstraint.delete({ where: { id: '' } }).execute(); +const deleted = await db.uniqueConstraint.delete({ where: { id: '' } }).execute(); ``` ### `db.view` @@ -1002,29 +939,24 @@ CRUD operations for View records. | `module` | String | Yes | | `scope` | Int | Yes | | `tags` | String | Yes | -| `nameTrgmSimilarity` | Float | Yes | -| `viewTypeTrgmSimilarity` | Float | Yes | -| `filterTypeTrgmSimilarity` | Float | Yes | -| `moduleTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all view records -const items = await db.view.findMany({ select: { id: true, databaseId: true, schemaId: true, name: true, tableId: true, viewType: true, data: true, filterType: true, filterData: true, securityInvoker: true, isReadOnly: true, smartTags: true, category: true, module: true, scope: true, tags: true, nameTrgmSimilarity: true, viewTypeTrgmSimilarity: true, filterTypeTrgmSimilarity: true, moduleTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.view.findMany({ select: { id: true, databaseId: true, schemaId: true, name: true, tableId: true, viewType: true, data: true, filterType: true, filterData: true, securityInvoker: true, isReadOnly: true, smartTags: true, category: true, module: true, scope: true, tags: true } }).execute(); // Get one by id -const item = await db.view.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, name: true, tableId: true, viewType: true, data: true, filterType: true, filterData: true, securityInvoker: true, isReadOnly: true, smartTags: true, category: true, module: true, scope: true, tags: true, nameTrgmSimilarity: true, viewTypeTrgmSimilarity: true, filterTypeTrgmSimilarity: true, moduleTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.view.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, name: true, tableId: true, viewType: true, data: true, filterType: true, filterData: true, securityInvoker: true, isReadOnly: true, smartTags: true, category: true, module: true, scope: true, tags: true } }).execute(); // Create -const created = await db.view.create({ data: { databaseId: '', schemaId: '', name: '', tableId: '', viewType: '', data: '', filterType: '', filterData: '', securityInvoker: '', isReadOnly: '', smartTags: '', category: '', module: '', scope: '', tags: '', nameTrgmSimilarity: '', viewTypeTrgmSimilarity: '', filterTypeTrgmSimilarity: '', moduleTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.view.create({ data: { databaseId: '', schemaId: '', name: '', tableId: '', viewType: '', data: '', filterType: '', filterData: '', securityInvoker: '', isReadOnly: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); // Update -const updated = await db.view.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.view.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.view.delete({ where: { id: '' } }).execute(); +const deleted = await db.view.delete({ where: { id: '' } }).execute(); ``` ### `db.viewTable` @@ -1047,16 +979,16 @@ CRUD operations for ViewTable records. const items = await db.viewTable.findMany({ select: { id: true, viewId: true, tableId: true, joinOrder: true } }).execute(); // Get one by id -const item = await db.viewTable.findOne({ id: '', select: { id: true, viewId: true, tableId: true, joinOrder: true } }).execute(); +const item = await db.viewTable.findOne({ id: '', select: { id: true, viewId: true, tableId: true, joinOrder: true } }).execute(); // Create -const created = await db.viewTable.create({ data: { viewId: '', tableId: '', joinOrder: '' }, select: { id: true } }).execute(); +const created = await db.viewTable.create({ data: { viewId: '', tableId: '', joinOrder: '' }, select: { id: true } }).execute(); // Update -const updated = await db.viewTable.update({ where: { id: '' }, data: { viewId: '' }, select: { id: true } }).execute(); +const updated = await db.viewTable.update({ where: { id: '' }, data: { viewId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.viewTable.delete({ where: { id: '' } }).execute(); +const deleted = await db.viewTable.delete({ where: { id: '' } }).execute(); ``` ### `db.viewGrant` @@ -1074,27 +1006,24 @@ CRUD operations for ViewGrant records. | `privilege` | String | Yes | | `withGrantOption` | Boolean | Yes | | `isGrant` | Boolean | Yes | -| `granteeNameTrgmSimilarity` | Float | Yes | -| `privilegeTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all viewGrant records -const items = await db.viewGrant.findMany({ select: { id: true, databaseId: true, viewId: true, granteeName: true, privilege: true, withGrantOption: true, isGrant: true, granteeNameTrgmSimilarity: true, privilegeTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.viewGrant.findMany({ select: { id: true, databaseId: true, viewId: true, granteeName: true, privilege: true, withGrantOption: true, isGrant: true } }).execute(); // Get one by id -const item = await db.viewGrant.findOne({ id: '', select: { id: true, databaseId: true, viewId: true, granteeName: true, privilege: true, withGrantOption: true, isGrant: true, granteeNameTrgmSimilarity: true, privilegeTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.viewGrant.findOne({ id: '', select: { id: true, databaseId: true, viewId: true, granteeName: true, privilege: true, withGrantOption: true, isGrant: true } }).execute(); // Create -const created = await db.viewGrant.create({ data: { databaseId: '', viewId: '', granteeName: '', privilege: '', withGrantOption: '', isGrant: '', granteeNameTrgmSimilarity: '', privilegeTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.viewGrant.create({ data: { databaseId: '', viewId: '', granteeName: '', privilege: '', withGrantOption: '', isGrant: '' }, select: { id: true } }).execute(); // Update -const updated = await db.viewGrant.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.viewGrant.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.viewGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.viewGrant.delete({ where: { id: '' } }).execute(); ``` ### `db.viewRule` @@ -1111,28 +1040,70 @@ CRUD operations for ViewRule records. | `name` | String | Yes | | `event` | String | Yes | | `action` | String | Yes | -| `nameTrgmSimilarity` | Float | Yes | -| `eventTrgmSimilarity` | Float | Yes | -| `actionTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all viewRule records -const items = await db.viewRule.findMany({ select: { id: true, databaseId: true, viewId: true, name: true, event: true, action: true, nameTrgmSimilarity: true, eventTrgmSimilarity: true, actionTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.viewRule.findMany({ select: { id: true, databaseId: true, viewId: true, name: true, event: true, action: true } }).execute(); + +// Get one by id +const item = await db.viewRule.findOne({ id: '', select: { id: true, databaseId: true, viewId: true, name: true, event: true, action: true } }).execute(); + +// Create +const created = await db.viewRule.create({ data: { databaseId: '', viewId: '', name: '', event: '', action: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.viewRule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.viewRule.delete({ where: { id: '' } }).execute(); +``` + +### `db.embeddingChunk` + +CRUD operations for EmbeddingChunk records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `tableId` | UUID | Yes | +| `embeddingFieldId` | UUID | Yes | +| `chunksTableId` | UUID | Yes | +| `chunksTableName` | String | Yes | +| `contentFieldName` | String | Yes | +| `dimensions` | Int | Yes | +| `metric` | String | Yes | +| `chunkSize` | Int | Yes | +| `chunkOverlap` | Int | Yes | +| `chunkStrategy` | String | Yes | +| `metadataFields` | JSON | Yes | +| `enqueueChunkingJob` | Boolean | Yes | +| `chunkingTaskName` | String | Yes | +| `parentFkFieldId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all embeddingChunk records +const items = await db.embeddingChunk.findMany({ select: { id: true, databaseId: true, tableId: true, embeddingFieldId: true, chunksTableId: true, chunksTableName: true, contentFieldName: true, dimensions: true, metric: true, chunkSize: true, chunkOverlap: true, chunkStrategy: true, metadataFields: true, enqueueChunkingJob: true, chunkingTaskName: true, parentFkFieldId: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.viewRule.findOne({ id: '', select: { id: true, databaseId: true, viewId: true, name: true, event: true, action: true, nameTrgmSimilarity: true, eventTrgmSimilarity: true, actionTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.embeddingChunk.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, embeddingFieldId: true, chunksTableId: true, chunksTableName: true, contentFieldName: true, dimensions: true, metric: true, chunkSize: true, chunkOverlap: true, chunkStrategy: true, metadataFields: true, enqueueChunkingJob: true, chunkingTaskName: true, parentFkFieldId: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.viewRule.create({ data: { databaseId: '', viewId: '', name: '', event: '', action: '', nameTrgmSimilarity: '', eventTrgmSimilarity: '', actionTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.embeddingChunk.create({ data: { databaseId: '', tableId: '', embeddingFieldId: '', chunksTableId: '', chunksTableName: '', contentFieldName: '', dimensions: '', metric: '', chunkSize: '', chunkOverlap: '', chunkStrategy: '', metadataFields: '', enqueueChunkingJob: '', chunkingTaskName: '', parentFkFieldId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.viewRule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.embeddingChunk.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.viewRule.delete({ where: { id: '' } }).execute(); +const deleted = await db.embeddingChunk.delete({ where: { id: '' } }).execute(); ``` ### `db.tableTemplateModule` @@ -1152,27 +1123,24 @@ CRUD operations for TableTemplateModule records. | `tableName` | String | Yes | | `nodeType` | String | Yes | | `data` | JSON | Yes | -| `tableNameTrgmSimilarity` | Float | Yes | -| `nodeTypeTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all tableTemplateModule records -const items = await db.tableTemplateModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, nodeType: true, data: true, tableNameTrgmSimilarity: true, nodeTypeTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.tableTemplateModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, nodeType: true, data: true } }).execute(); // Get one by id -const item = await db.tableTemplateModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, nodeType: true, data: true, tableNameTrgmSimilarity: true, nodeTypeTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.tableTemplateModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, nodeType: true, data: true } }).execute(); // Create -const created = await db.tableTemplateModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '', nodeType: '', data: '', tableNameTrgmSimilarity: '', nodeTypeTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.tableTemplateModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '', nodeType: '', data: '' }, select: { id: true } }).execute(); // Update -const updated = await db.tableTemplateModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.tableTemplateModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.tableTemplateModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.tableTemplateModule.delete({ where: { id: '' } }).execute(); ``` ### `db.secureTableProvision` @@ -1201,30 +1169,24 @@ CRUD operations for SecureTableProvision records. | `policyName` | String | Yes | | `policyData` | JSON | Yes | | `outFields` | UUID | Yes | -| `tableNameTrgmSimilarity` | Float | Yes | -| `nodeTypeTrgmSimilarity` | Float | Yes | -| `policyTypeTrgmSimilarity` | Float | Yes | -| `policyRoleTrgmSimilarity` | Float | Yes | -| `policyNameTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all secureTableProvision records -const items = await db.secureTableProvision.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, nodeType: true, useRls: true, nodeData: true, fields: true, grantRoles: true, grantPrivileges: true, policyType: true, policyPrivileges: true, policyRole: true, policyPermissive: true, policyName: true, policyData: true, outFields: true, tableNameTrgmSimilarity: true, nodeTypeTrgmSimilarity: true, policyTypeTrgmSimilarity: true, policyRoleTrgmSimilarity: true, policyNameTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.secureTableProvision.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, nodeType: true, useRls: true, nodeData: true, fields: true, grantRoles: true, grantPrivileges: true, policyType: true, policyPrivileges: true, policyRole: true, policyPermissive: true, policyName: true, policyData: true, outFields: true } }).execute(); // Get one by id -const item = await db.secureTableProvision.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, nodeType: true, useRls: true, nodeData: true, fields: true, grantRoles: true, grantPrivileges: true, policyType: true, policyPrivileges: true, policyRole: true, policyPermissive: true, policyName: true, policyData: true, outFields: true, tableNameTrgmSimilarity: true, nodeTypeTrgmSimilarity: true, policyTypeTrgmSimilarity: true, policyRoleTrgmSimilarity: true, policyNameTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.secureTableProvision.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, nodeType: true, useRls: true, nodeData: true, fields: true, grantRoles: true, grantPrivileges: true, policyType: true, policyPrivileges: true, policyRole: true, policyPermissive: true, policyName: true, policyData: true, outFields: true } }).execute(); // Create -const created = await db.secureTableProvision.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '', nodeType: '', useRls: '', nodeData: '', fields: '', grantRoles: '', grantPrivileges: '', policyType: '', policyPrivileges: '', policyRole: '', policyPermissive: '', policyName: '', policyData: '', outFields: '', tableNameTrgmSimilarity: '', nodeTypeTrgmSimilarity: '', policyTypeTrgmSimilarity: '', policyRoleTrgmSimilarity: '', policyNameTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.secureTableProvision.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '', nodeType: '', useRls: '', nodeData: '', fields: '', grantRoles: '', grantPrivileges: '', policyType: '', policyPrivileges: '', policyRole: '', policyPermissive: '', policyName: '', policyData: '', outFields: '' }, select: { id: true } }).execute(); // Update -const updated = await db.secureTableProvision.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.secureTableProvision.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.secureTableProvision.delete({ where: { id: '' } }).execute(); +const deleted = await db.secureTableProvision.delete({ where: { id: '' } }).execute(); ``` ### `db.relationProvision` @@ -1243,12 +1205,15 @@ CRUD operations for RelationProvision records. | `fieldName` | String | Yes | | `deleteAction` | String | Yes | | `isRequired` | Boolean | Yes | +| `apiRequired` | Boolean | Yes | | `junctionTableId` | UUID | Yes | | `junctionTableName` | String | Yes | | `junctionSchemaId` | UUID | Yes | | `sourceFieldName` | String | Yes | | `targetFieldName` | String | Yes | | `useCompositeKey` | Boolean | Yes | +| `createIndex` | Boolean | Yes | +| `exposeInApi` | Boolean | Yes | | `nodeType` | String | Yes | | `nodeData` | JSON | Yes | | `grantRoles` | String | Yes | @@ -1263,35 +1228,24 @@ CRUD operations for RelationProvision records. | `outJunctionTableId` | UUID | Yes | | `outSourceFieldId` | UUID | Yes | | `outTargetFieldId` | UUID | Yes | -| `relationTypeTrgmSimilarity` | Float | Yes | -| `fieldNameTrgmSimilarity` | Float | Yes | -| `deleteActionTrgmSimilarity` | Float | Yes | -| `junctionTableNameTrgmSimilarity` | Float | Yes | -| `sourceFieldNameTrgmSimilarity` | Float | Yes | -| `targetFieldNameTrgmSimilarity` | Float | Yes | -| `nodeTypeTrgmSimilarity` | Float | Yes | -| `policyTypeTrgmSimilarity` | Float | Yes | -| `policyRoleTrgmSimilarity` | Float | Yes | -| `policyNameTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all relationProvision records -const items = await db.relationProvision.findMany({ select: { id: true, databaseId: true, relationType: true, sourceTableId: true, targetTableId: true, fieldName: true, deleteAction: true, isRequired: true, junctionTableId: true, junctionTableName: true, junctionSchemaId: true, sourceFieldName: true, targetFieldName: true, useCompositeKey: true, nodeType: true, nodeData: true, grantRoles: true, grantPrivileges: true, policyType: true, policyPrivileges: true, policyRole: true, policyPermissive: true, policyName: true, policyData: true, outFieldId: true, outJunctionTableId: true, outSourceFieldId: true, outTargetFieldId: true, relationTypeTrgmSimilarity: true, fieldNameTrgmSimilarity: true, deleteActionTrgmSimilarity: true, junctionTableNameTrgmSimilarity: true, sourceFieldNameTrgmSimilarity: true, targetFieldNameTrgmSimilarity: true, nodeTypeTrgmSimilarity: true, policyTypeTrgmSimilarity: true, policyRoleTrgmSimilarity: true, policyNameTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.relationProvision.findMany({ select: { id: true, databaseId: true, relationType: true, sourceTableId: true, targetTableId: true, fieldName: true, deleteAction: true, isRequired: true, apiRequired: true, junctionTableId: true, junctionTableName: true, junctionSchemaId: true, sourceFieldName: true, targetFieldName: true, useCompositeKey: true, createIndex: true, exposeInApi: true, nodeType: true, nodeData: true, grantRoles: true, grantPrivileges: true, policyType: true, policyPrivileges: true, policyRole: true, policyPermissive: true, policyName: true, policyData: true, outFieldId: true, outJunctionTableId: true, outSourceFieldId: true, outTargetFieldId: true } }).execute(); // Get one by id -const item = await db.relationProvision.findOne({ id: '', select: { id: true, databaseId: true, relationType: true, sourceTableId: true, targetTableId: true, fieldName: true, deleteAction: true, isRequired: true, junctionTableId: true, junctionTableName: true, junctionSchemaId: true, sourceFieldName: true, targetFieldName: true, useCompositeKey: true, nodeType: true, nodeData: true, grantRoles: true, grantPrivileges: true, policyType: true, policyPrivileges: true, policyRole: true, policyPermissive: true, policyName: true, policyData: true, outFieldId: true, outJunctionTableId: true, outSourceFieldId: true, outTargetFieldId: true, relationTypeTrgmSimilarity: true, fieldNameTrgmSimilarity: true, deleteActionTrgmSimilarity: true, junctionTableNameTrgmSimilarity: true, sourceFieldNameTrgmSimilarity: true, targetFieldNameTrgmSimilarity: true, nodeTypeTrgmSimilarity: true, policyTypeTrgmSimilarity: true, policyRoleTrgmSimilarity: true, policyNameTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.relationProvision.findOne({ id: '', select: { id: true, databaseId: true, relationType: true, sourceTableId: true, targetTableId: true, fieldName: true, deleteAction: true, isRequired: true, apiRequired: true, junctionTableId: true, junctionTableName: true, junctionSchemaId: true, sourceFieldName: true, targetFieldName: true, useCompositeKey: true, createIndex: true, exposeInApi: true, nodeType: true, nodeData: true, grantRoles: true, grantPrivileges: true, policyType: true, policyPrivileges: true, policyRole: true, policyPermissive: true, policyName: true, policyData: true, outFieldId: true, outJunctionTableId: true, outSourceFieldId: true, outTargetFieldId: true } }).execute(); // Create -const created = await db.relationProvision.create({ data: { databaseId: '', relationType: '', sourceTableId: '', targetTableId: '', fieldName: '', deleteAction: '', isRequired: '', junctionTableId: '', junctionTableName: '', junctionSchemaId: '', sourceFieldName: '', targetFieldName: '', useCompositeKey: '', nodeType: '', nodeData: '', grantRoles: '', grantPrivileges: '', policyType: '', policyPrivileges: '', policyRole: '', policyPermissive: '', policyName: '', policyData: '', outFieldId: '', outJunctionTableId: '', outSourceFieldId: '', outTargetFieldId: '', relationTypeTrgmSimilarity: '', fieldNameTrgmSimilarity: '', deleteActionTrgmSimilarity: '', junctionTableNameTrgmSimilarity: '', sourceFieldNameTrgmSimilarity: '', targetFieldNameTrgmSimilarity: '', nodeTypeTrgmSimilarity: '', policyTypeTrgmSimilarity: '', policyRoleTrgmSimilarity: '', policyNameTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.relationProvision.create({ data: { databaseId: '', relationType: '', sourceTableId: '', targetTableId: '', fieldName: '', deleteAction: '', isRequired: '', apiRequired: '', junctionTableId: '', junctionTableName: '', junctionSchemaId: '', sourceFieldName: '', targetFieldName: '', useCompositeKey: '', createIndex: '', exposeInApi: '', nodeType: '', nodeData: '', grantRoles: '', grantPrivileges: '', policyType: '', policyPrivileges: '', policyRole: '', policyPermissive: '', policyName: '', policyData: '', outFieldId: '', outJunctionTableId: '', outSourceFieldId: '', outTargetFieldId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.relationProvision.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.relationProvision.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.relationProvision.delete({ where: { id: '' } }).execute(); +const deleted = await db.relationProvision.delete({ where: { id: '' } }).execute(); ``` ### `db.schemaGrant` @@ -1308,26 +1262,24 @@ CRUD operations for SchemaGrant records. | `granteeName` | String | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `granteeNameTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all schemaGrant records -const items = await db.schemaGrant.findMany({ select: { id: true, databaseId: true, schemaId: true, granteeName: true, createdAt: true, updatedAt: true, granteeNameTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.schemaGrant.findMany({ select: { id: true, databaseId: true, schemaId: true, granteeName: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.schemaGrant.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, granteeName: true, createdAt: true, updatedAt: true, granteeNameTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.schemaGrant.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, granteeName: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.schemaGrant.create({ data: { databaseId: '', schemaId: '', granteeName: '', granteeNameTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.schemaGrant.create({ data: { databaseId: '', schemaId: '', granteeName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.schemaGrant.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.schemaGrant.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.schemaGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.schemaGrant.delete({ where: { id: '' } }).execute(); ``` ### `db.defaultPrivilege` @@ -1345,28 +1297,64 @@ CRUD operations for DefaultPrivilege records. | `privilege` | String | Yes | | `granteeName` | String | Yes | | `isGrant` | Boolean | Yes | -| `objectTypeTrgmSimilarity` | Float | Yes | -| `privilegeTrgmSimilarity` | Float | Yes | -| `granteeNameTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all defaultPrivilege records -const items = await db.defaultPrivilege.findMany({ select: { id: true, databaseId: true, schemaId: true, objectType: true, privilege: true, granteeName: true, isGrant: true, objectTypeTrgmSimilarity: true, privilegeTrgmSimilarity: true, granteeNameTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.defaultPrivilege.findMany({ select: { id: true, databaseId: true, schemaId: true, objectType: true, privilege: true, granteeName: true, isGrant: true } }).execute(); // Get one by id -const item = await db.defaultPrivilege.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, objectType: true, privilege: true, granteeName: true, isGrant: true, objectTypeTrgmSimilarity: true, privilegeTrgmSimilarity: true, granteeNameTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.defaultPrivilege.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, objectType: true, privilege: true, granteeName: true, isGrant: true } }).execute(); // Create -const created = await db.defaultPrivilege.create({ data: { databaseId: '', schemaId: '', objectType: '', privilege: '', granteeName: '', isGrant: '', objectTypeTrgmSimilarity: '', privilegeTrgmSimilarity: '', granteeNameTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.defaultPrivilege.create({ data: { databaseId: '', schemaId: '', objectType: '', privilege: '', granteeName: '', isGrant: '' }, select: { id: true } }).execute(); // Update -const updated = await db.defaultPrivilege.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.defaultPrivilege.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.defaultPrivilege.delete({ where: { id: '' } }).execute(); +const deleted = await db.defaultPrivilege.delete({ where: { id: '' } }).execute(); +``` + +### `db.enum` + +CRUD operations for Enum records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `name` | String | Yes | +| `label` | String | Yes | +| `description` | String | Yes | +| `values` | String | Yes | +| `smartTags` | JSON | Yes | +| `category` | ObjectCategory | Yes | +| `module` | String | Yes | +| `scope` | Int | Yes | +| `tags` | String | Yes | + +**Operations:** + +```typescript +// List all enum records +const items = await db.enum.findMany({ select: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, values: true, smartTags: true, category: true, module: true, scope: true, tags: true } }).execute(); + +// Get one by id +const item = await db.enum.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, values: true, smartTags: true, category: true, module: true, scope: true, tags: true } }).execute(); + +// Create +const created = await db.enum.create({ data: { databaseId: '', schemaId: '', name: '', label: '', description: '', values: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.enum.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.enum.delete({ where: { id: '' } }).execute(); ``` ### `db.apiSchema` @@ -1389,16 +1377,16 @@ CRUD operations for ApiSchema records. const items = await db.apiSchema.findMany({ select: { id: true, databaseId: true, schemaId: true, apiId: true } }).execute(); // Get one by id -const item = await db.apiSchema.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, apiId: true } }).execute(); +const item = await db.apiSchema.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, apiId: true } }).execute(); // Create -const created = await db.apiSchema.create({ data: { databaseId: '', schemaId: '', apiId: '' }, select: { id: true } }).execute(); +const created = await db.apiSchema.create({ data: { databaseId: '', schemaId: '', apiId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.apiSchema.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.apiSchema.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.apiSchema.delete({ where: { id: '' } }).execute(); +const deleted = await db.apiSchema.delete({ where: { id: '' } }).execute(); ``` ### `db.apiModule` @@ -1414,26 +1402,24 @@ CRUD operations for ApiModule records. | `apiId` | UUID | Yes | | `name` | String | Yes | | `data` | JSON | Yes | -| `nameTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all apiModule records -const items = await db.apiModule.findMany({ select: { id: true, databaseId: true, apiId: true, name: true, data: true, nameTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.apiModule.findMany({ select: { id: true, databaseId: true, apiId: true, name: true, data: true } }).execute(); // Get one by id -const item = await db.apiModule.findOne({ id: '', select: { id: true, databaseId: true, apiId: true, name: true, data: true, nameTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.apiModule.findOne({ id: '', select: { id: true, databaseId: true, apiId: true, name: true, data: true } }).execute(); // Create -const created = await db.apiModule.create({ data: { databaseId: '', apiId: '', name: '', data: '', nameTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.apiModule.create({ data: { databaseId: '', apiId: '', name: '', data: '' }, select: { id: true } }).execute(); // Update -const updated = await db.apiModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.apiModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.apiModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.apiModule.delete({ where: { id: '' } }).execute(); ``` ### `db.domain` @@ -1458,16 +1444,16 @@ CRUD operations for Domain records. const items = await db.domain.findMany({ select: { id: true, databaseId: true, apiId: true, siteId: true, subdomain: true, domain: true } }).execute(); // Get one by id -const item = await db.domain.findOne({ id: '', select: { id: true, databaseId: true, apiId: true, siteId: true, subdomain: true, domain: true } }).execute(); +const item = await db.domain.findOne({ id: '', select: { id: true, databaseId: true, apiId: true, siteId: true, subdomain: true, domain: true } }).execute(); // Create -const created = await db.domain.create({ data: { databaseId: '', apiId: '', siteId: '', subdomain: '', domain: '' }, select: { id: true } }).execute(); +const created = await db.domain.create({ data: { databaseId: '', apiId: '', siteId: '', subdomain: '', domain: '' }, select: { id: true } }).execute(); // Update -const updated = await db.domain.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.domain.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.domain.delete({ where: { id: '' } }).execute(); +const deleted = await db.domain.delete({ where: { id: '' } }).execute(); ``` ### `db.siteMetadatum` @@ -1484,27 +1470,24 @@ CRUD operations for SiteMetadatum records. | `title` | String | Yes | | `description` | String | Yes | | `ogImage` | ConstructiveInternalTypeImage | Yes | -| `titleTrgmSimilarity` | Float | Yes | -| `descriptionTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all siteMetadatum records -const items = await db.siteMetadatum.findMany({ select: { id: true, databaseId: true, siteId: true, title: true, description: true, ogImage: true, titleTrgmSimilarity: true, descriptionTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.siteMetadatum.findMany({ select: { id: true, databaseId: true, siteId: true, title: true, description: true, ogImage: true } }).execute(); // Get one by id -const item = await db.siteMetadatum.findOne({ id: '', select: { id: true, databaseId: true, siteId: true, title: true, description: true, ogImage: true, titleTrgmSimilarity: true, descriptionTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.siteMetadatum.findOne({ id: '', select: { id: true, databaseId: true, siteId: true, title: true, description: true, ogImage: true } }).execute(); // Create -const created = await db.siteMetadatum.create({ data: { databaseId: '', siteId: '', title: '', description: '', ogImage: '', titleTrgmSimilarity: '', descriptionTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.siteMetadatum.create({ data: { databaseId: '', siteId: '', title: '', description: '', ogImage: '' }, select: { id: true } }).execute(); // Update -const updated = await db.siteMetadatum.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.siteMetadatum.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.siteMetadatum.delete({ where: { id: '' } }).execute(); +const deleted = await db.siteMetadatum.delete({ where: { id: '' } }).execute(); ``` ### `db.siteModule` @@ -1520,26 +1503,24 @@ CRUD operations for SiteModule records. | `siteId` | UUID | Yes | | `name` | String | Yes | | `data` | JSON | Yes | -| `nameTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all siteModule records -const items = await db.siteModule.findMany({ select: { id: true, databaseId: true, siteId: true, name: true, data: true, nameTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.siteModule.findMany({ select: { id: true, databaseId: true, siteId: true, name: true, data: true } }).execute(); // Get one by id -const item = await db.siteModule.findOne({ id: '', select: { id: true, databaseId: true, siteId: true, name: true, data: true, nameTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.siteModule.findOne({ id: '', select: { id: true, databaseId: true, siteId: true, name: true, data: true } }).execute(); // Create -const created = await db.siteModule.create({ data: { databaseId: '', siteId: '', name: '', data: '', nameTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.siteModule.create({ data: { databaseId: '', siteId: '', name: '', data: '' }, select: { id: true } }).execute(); // Update -const updated = await db.siteModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.siteModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.siteModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.siteModule.delete({ where: { id: '' } }).execute(); ``` ### `db.siteTheme` @@ -1562,16 +1543,16 @@ CRUD operations for SiteTheme records. const items = await db.siteTheme.findMany({ select: { id: true, databaseId: true, siteId: true, theme: true } }).execute(); // Get one by id -const item = await db.siteTheme.findOne({ id: '', select: { id: true, databaseId: true, siteId: true, theme: true } }).execute(); +const item = await db.siteTheme.findOne({ id: '', select: { id: true, databaseId: true, siteId: true, theme: true } }).execute(); // Create -const created = await db.siteTheme.create({ data: { databaseId: '', siteId: '', theme: '' }, select: { id: true } }).execute(); +const created = await db.siteTheme.create({ data: { databaseId: '', siteId: '', theme: '' }, select: { id: true } }).execute(); // Update -const updated = await db.siteTheme.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.siteTheme.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.siteTheme.delete({ where: { id: '' } }).execute(); +const deleted = await db.siteTheme.delete({ where: { id: '' } }).execute(); ``` ### `db.triggerFunction` @@ -1588,27 +1569,66 @@ CRUD operations for TriggerFunction records. | `code` | String | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `nameTrgmSimilarity` | Float | Yes | -| `codeTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all triggerFunction records -const items = await db.triggerFunction.findMany({ select: { id: true, databaseId: true, name: true, code: true, createdAt: true, updatedAt: true, nameTrgmSimilarity: true, codeTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.triggerFunction.findMany({ select: { id: true, databaseId: true, name: true, code: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.triggerFunction.findOne({ id: '', select: { id: true, databaseId: true, name: true, code: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.triggerFunction.create({ data: { databaseId: '', name: '', code: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.triggerFunction.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.triggerFunction.delete({ where: { id: '' } }).execute(); +``` + +### `db.databaseTransfer` + +CRUD operations for DatabaseTransfer records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `targetOwnerId` | UUID | Yes | +| `sourceApproved` | Boolean | Yes | +| `targetApproved` | Boolean | Yes | +| `sourceApprovedAt` | Datetime | Yes | +| `targetApprovedAt` | Datetime | Yes | +| `status` | String | Yes | +| `initiatedBy` | UUID | Yes | +| `notes` | String | Yes | +| `expiresAt` | Datetime | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `completedAt` | Datetime | Yes | + +**Operations:** + +```typescript +// List all databaseTransfer records +const items = await db.databaseTransfer.findMany({ select: { id: true, databaseId: true, targetOwnerId: true, sourceApproved: true, targetApproved: true, sourceApprovedAt: true, targetApprovedAt: true, status: true, initiatedBy: true, notes: true, expiresAt: true, createdAt: true, updatedAt: true, completedAt: true } }).execute(); // Get one by id -const item = await db.triggerFunction.findOne({ id: '', select: { id: true, databaseId: true, name: true, code: true, createdAt: true, updatedAt: true, nameTrgmSimilarity: true, codeTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.databaseTransfer.findOne({ id: '', select: { id: true, databaseId: true, targetOwnerId: true, sourceApproved: true, targetApproved: true, sourceApprovedAt: true, targetApprovedAt: true, status: true, initiatedBy: true, notes: true, expiresAt: true, createdAt: true, updatedAt: true, completedAt: true } }).execute(); // Create -const created = await db.triggerFunction.create({ data: { databaseId: '', name: '', code: '', nameTrgmSimilarity: '', codeTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.databaseTransfer.create({ data: { databaseId: '', targetOwnerId: '', sourceApproved: '', targetApproved: '', sourceApprovedAt: '', targetApprovedAt: '', status: '', initiatedBy: '', notes: '', expiresAt: '', completedAt: '' }, select: { id: true } }).execute(); // Update -const updated = await db.triggerFunction.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.databaseTransfer.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.triggerFunction.delete({ where: { id: '' } }).execute(); +const deleted = await db.databaseTransfer.delete({ where: { id: '' } }).execute(); ``` ### `db.api` @@ -1626,29 +1646,24 @@ CRUD operations for Api records. | `roleName` | String | Yes | | `anonRole` | String | Yes | | `isPublic` | Boolean | Yes | -| `nameTrgmSimilarity` | Float | Yes | -| `dbnameTrgmSimilarity` | Float | Yes | -| `roleNameTrgmSimilarity` | Float | Yes | -| `anonRoleTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all api records -const items = await db.api.findMany({ select: { id: true, databaseId: true, name: true, dbname: true, roleName: true, anonRole: true, isPublic: true, nameTrgmSimilarity: true, dbnameTrgmSimilarity: true, roleNameTrgmSimilarity: true, anonRoleTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.api.findMany({ select: { id: true, databaseId: true, name: true, dbname: true, roleName: true, anonRole: true, isPublic: true } }).execute(); // Get one by id -const item = await db.api.findOne({ id: '', select: { id: true, databaseId: true, name: true, dbname: true, roleName: true, anonRole: true, isPublic: true, nameTrgmSimilarity: true, dbnameTrgmSimilarity: true, roleNameTrgmSimilarity: true, anonRoleTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.api.findOne({ id: '', select: { id: true, databaseId: true, name: true, dbname: true, roleName: true, anonRole: true, isPublic: true } }).execute(); // Create -const created = await db.api.create({ data: { databaseId: '', name: '', dbname: '', roleName: '', anonRole: '', isPublic: '', nameTrgmSimilarity: '', dbnameTrgmSimilarity: '', roleNameTrgmSimilarity: '', anonRoleTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.api.create({ data: { databaseId: '', name: '', dbname: '', roleName: '', anonRole: '', isPublic: '' }, select: { id: true } }).execute(); // Update -const updated = await db.api.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.api.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.api.delete({ where: { id: '' } }).execute(); +const deleted = await db.api.delete({ where: { id: '' } }).execute(); ``` ### `db.site` @@ -1668,28 +1683,24 @@ CRUD operations for Site records. | `appleTouchIcon` | ConstructiveInternalTypeImage | Yes | | `logo` | ConstructiveInternalTypeImage | Yes | | `dbname` | String | Yes | -| `titleTrgmSimilarity` | Float | Yes | -| `descriptionTrgmSimilarity` | Float | Yes | -| `dbnameTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all site records -const items = await db.site.findMany({ select: { id: true, databaseId: true, title: true, description: true, ogImage: true, favicon: true, appleTouchIcon: true, logo: true, dbname: true, titleTrgmSimilarity: true, descriptionTrgmSimilarity: true, dbnameTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.site.findMany({ select: { id: true, databaseId: true, title: true, description: true, ogImage: true, favicon: true, appleTouchIcon: true, logo: true, dbname: true } }).execute(); // Get one by id -const item = await db.site.findOne({ id: '', select: { id: true, databaseId: true, title: true, description: true, ogImage: true, favicon: true, appleTouchIcon: true, logo: true, dbname: true, titleTrgmSimilarity: true, descriptionTrgmSimilarity: true, dbnameTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.site.findOne({ id: '', select: { id: true, databaseId: true, title: true, description: true, ogImage: true, favicon: true, appleTouchIcon: true, logo: true, dbname: true } }).execute(); // Create -const created = await db.site.create({ data: { databaseId: '', title: '', description: '', ogImage: '', favicon: '', appleTouchIcon: '', logo: '', dbname: '', titleTrgmSimilarity: '', descriptionTrgmSimilarity: '', dbnameTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.site.create({ data: { databaseId: '', title: '', description: '', ogImage: '', favicon: '', appleTouchIcon: '', logo: '', dbname: '' }, select: { id: true } }).execute(); // Update -const updated = await db.site.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.site.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.site.delete({ where: { id: '' } }).execute(); +const deleted = await db.site.delete({ where: { id: '' } }).execute(); ``` ### `db.app` @@ -1709,28 +1720,24 @@ CRUD operations for App records. | `appStoreId` | String | Yes | | `appIdPrefix` | String | Yes | | `playStoreLink` | ConstructiveInternalTypeUrl | Yes | -| `nameTrgmSimilarity` | Float | Yes | -| `appStoreIdTrgmSimilarity` | Float | Yes | -| `appIdPrefixTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all app records -const items = await db.app.findMany({ select: { id: true, databaseId: true, siteId: true, name: true, appImage: true, appStoreLink: true, appStoreId: true, appIdPrefix: true, playStoreLink: true, nameTrgmSimilarity: true, appStoreIdTrgmSimilarity: true, appIdPrefixTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.app.findMany({ select: { id: true, databaseId: true, siteId: true, name: true, appImage: true, appStoreLink: true, appStoreId: true, appIdPrefix: true, playStoreLink: true } }).execute(); // Get one by id -const item = await db.app.findOne({ id: '', select: { id: true, databaseId: true, siteId: true, name: true, appImage: true, appStoreLink: true, appStoreId: true, appIdPrefix: true, playStoreLink: true, nameTrgmSimilarity: true, appStoreIdTrgmSimilarity: true, appIdPrefixTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.app.findOne({ id: '', select: { id: true, databaseId: true, siteId: true, name: true, appImage: true, appStoreLink: true, appStoreId: true, appIdPrefix: true, playStoreLink: true } }).execute(); // Create -const created = await db.app.create({ data: { databaseId: '', siteId: '', name: '', appImage: '', appStoreLink: '', appStoreId: '', appIdPrefix: '', playStoreLink: '', nameTrgmSimilarity: '', appStoreIdTrgmSimilarity: '', appIdPrefixTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.app.create({ data: { databaseId: '', siteId: '', name: '', appImage: '', appStoreLink: '', appStoreId: '', appIdPrefix: '', playStoreLink: '' }, select: { id: true } }).execute(); // Update -const updated = await db.app.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.app.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.app.delete({ where: { id: '' } }).execute(); +const deleted = await db.app.delete({ where: { id: '' } }).execute(); ``` ### `db.connectedAccountsModule` @@ -1748,26 +1755,24 @@ CRUD operations for ConnectedAccountsModule records. | `tableId` | UUID | Yes | | `ownerTableId` | UUID | Yes | | `tableName` | String | Yes | -| `tableNameTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all connectedAccountsModule records -const items = await db.connectedAccountsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, tableNameTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.connectedAccountsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true } }).execute(); // Get one by id -const item = await db.connectedAccountsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, tableNameTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.connectedAccountsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true } }).execute(); // Create -const created = await db.connectedAccountsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '', tableNameTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.connectedAccountsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.connectedAccountsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.connectedAccountsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.connectedAccountsModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.connectedAccountsModule.delete({ where: { id: '' } }).execute(); ``` ### `db.cryptoAddressesModule` @@ -1786,27 +1791,24 @@ CRUD operations for CryptoAddressesModule records. | `ownerTableId` | UUID | Yes | | `tableName` | String | Yes | | `cryptoNetwork` | String | Yes | -| `tableNameTrgmSimilarity` | Float | Yes | -| `cryptoNetworkTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all cryptoAddressesModule records -const items = await db.cryptoAddressesModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, cryptoNetwork: true, tableNameTrgmSimilarity: true, cryptoNetworkTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.cryptoAddressesModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, cryptoNetwork: true } }).execute(); // Get one by id -const item = await db.cryptoAddressesModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, cryptoNetwork: true, tableNameTrgmSimilarity: true, cryptoNetworkTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.cryptoAddressesModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, cryptoNetwork: true } }).execute(); // Create -const created = await db.cryptoAddressesModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '', cryptoNetwork: '', tableNameTrgmSimilarity: '', cryptoNetworkTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.cryptoAddressesModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '', cryptoNetwork: '' }, select: { id: true } }).execute(); // Update -const updated = await db.cryptoAddressesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.cryptoAddressesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.cryptoAddressesModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.cryptoAddressesModule.delete({ where: { id: '' } }).execute(); ``` ### `db.cryptoAuthModule` @@ -1831,31 +1833,24 @@ CRUD operations for CryptoAuthModule records. | `signInRecordFailure` | String | Yes | | `signUpWithKey` | String | Yes | | `signInWithChallenge` | String | Yes | -| `userFieldTrgmSimilarity` | Float | Yes | -| `cryptoNetworkTrgmSimilarity` | Float | Yes | -| `signInRequestChallengeTrgmSimilarity` | Float | Yes | -| `signInRecordFailureTrgmSimilarity` | Float | Yes | -| `signUpWithKeyTrgmSimilarity` | Float | Yes | -| `signInWithChallengeTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all cryptoAuthModule records -const items = await db.cryptoAuthModule.findMany({ select: { id: true, databaseId: true, schemaId: true, usersTableId: true, secretsTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, addressesTableId: true, userField: true, cryptoNetwork: true, signInRequestChallenge: true, signInRecordFailure: true, signUpWithKey: true, signInWithChallenge: true, userFieldTrgmSimilarity: true, cryptoNetworkTrgmSimilarity: true, signInRequestChallengeTrgmSimilarity: true, signInRecordFailureTrgmSimilarity: true, signUpWithKeyTrgmSimilarity: true, signInWithChallengeTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.cryptoAuthModule.findMany({ select: { id: true, databaseId: true, schemaId: true, usersTableId: true, secretsTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, addressesTableId: true, userField: true, cryptoNetwork: true, signInRequestChallenge: true, signInRecordFailure: true, signUpWithKey: true, signInWithChallenge: true } }).execute(); // Get one by id -const item = await db.cryptoAuthModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, usersTableId: true, secretsTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, addressesTableId: true, userField: true, cryptoNetwork: true, signInRequestChallenge: true, signInRecordFailure: true, signUpWithKey: true, signInWithChallenge: true, userFieldTrgmSimilarity: true, cryptoNetworkTrgmSimilarity: true, signInRequestChallengeTrgmSimilarity: true, signInRecordFailureTrgmSimilarity: true, signUpWithKeyTrgmSimilarity: true, signInWithChallengeTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.cryptoAuthModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, usersTableId: true, secretsTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, addressesTableId: true, userField: true, cryptoNetwork: true, signInRequestChallenge: true, signInRecordFailure: true, signUpWithKey: true, signInWithChallenge: true } }).execute(); // Create -const created = await db.cryptoAuthModule.create({ data: { databaseId: '', schemaId: '', usersTableId: '', secretsTableId: '', sessionsTableId: '', sessionCredentialsTableId: '', addressesTableId: '', userField: '', cryptoNetwork: '', signInRequestChallenge: '', signInRecordFailure: '', signUpWithKey: '', signInWithChallenge: '', userFieldTrgmSimilarity: '', cryptoNetworkTrgmSimilarity: '', signInRequestChallengeTrgmSimilarity: '', signInRecordFailureTrgmSimilarity: '', signUpWithKeyTrgmSimilarity: '', signInWithChallengeTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.cryptoAuthModule.create({ data: { databaseId: '', schemaId: '', usersTableId: '', secretsTableId: '', sessionsTableId: '', sessionCredentialsTableId: '', addressesTableId: '', userField: '', cryptoNetwork: '', signInRequestChallenge: '', signInRecordFailure: '', signUpWithKey: '', signInWithChallenge: '' }, select: { id: true } }).execute(); // Update -const updated = await db.cryptoAuthModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.cryptoAuthModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.cryptoAuthModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.cryptoAuthModule.delete({ where: { id: '' } }).execute(); ``` ### `db.defaultIdsModule` @@ -1876,16 +1871,16 @@ CRUD operations for DefaultIdsModule records. const items = await db.defaultIdsModule.findMany({ select: { id: true, databaseId: true } }).execute(); // Get one by id -const item = await db.defaultIdsModule.findOne({ id: '', select: { id: true, databaseId: true } }).execute(); +const item = await db.defaultIdsModule.findOne({ id: '', select: { id: true, databaseId: true } }).execute(); // Create -const created = await db.defaultIdsModule.create({ data: { databaseId: '' }, select: { id: true } }).execute(); +const created = await db.defaultIdsModule.create({ data: { databaseId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.defaultIdsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.defaultIdsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.defaultIdsModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.defaultIdsModule.delete({ where: { id: '' } }).execute(); ``` ### `db.denormalizedTableField` @@ -1908,26 +1903,24 @@ CRUD operations for DenormalizedTableField records. | `updateDefaults` | Boolean | Yes | | `funcName` | String | Yes | | `funcOrder` | Int | Yes | -| `funcNameTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all denormalizedTableField records -const items = await db.denormalizedTableField.findMany({ select: { id: true, databaseId: true, tableId: true, fieldId: true, setIds: true, refTableId: true, refFieldId: true, refIds: true, useUpdates: true, updateDefaults: true, funcName: true, funcOrder: true, funcNameTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.denormalizedTableField.findMany({ select: { id: true, databaseId: true, tableId: true, fieldId: true, setIds: true, refTableId: true, refFieldId: true, refIds: true, useUpdates: true, updateDefaults: true, funcName: true, funcOrder: true } }).execute(); // Get one by id -const item = await db.denormalizedTableField.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, fieldId: true, setIds: true, refTableId: true, refFieldId: true, refIds: true, useUpdates: true, updateDefaults: true, funcName: true, funcOrder: true, funcNameTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.denormalizedTableField.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, fieldId: true, setIds: true, refTableId: true, refFieldId: true, refIds: true, useUpdates: true, updateDefaults: true, funcName: true, funcOrder: true } }).execute(); // Create -const created = await db.denormalizedTableField.create({ data: { databaseId: '', tableId: '', fieldId: '', setIds: '', refTableId: '', refFieldId: '', refIds: '', useUpdates: '', updateDefaults: '', funcName: '', funcOrder: '', funcNameTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.denormalizedTableField.create({ data: { databaseId: '', tableId: '', fieldId: '', setIds: '', refTableId: '', refFieldId: '', refIds: '', useUpdates: '', updateDefaults: '', funcName: '', funcOrder: '' }, select: { id: true } }).execute(); // Update -const updated = await db.denormalizedTableField.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.denormalizedTableField.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.denormalizedTableField.delete({ where: { id: '' } }).execute(); +const deleted = await db.denormalizedTableField.delete({ where: { id: '' } }).execute(); ``` ### `db.emailsModule` @@ -1945,26 +1938,24 @@ CRUD operations for EmailsModule records. | `tableId` | UUID | Yes | | `ownerTableId` | UUID | Yes | | `tableName` | String | Yes | -| `tableNameTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all emailsModule records -const items = await db.emailsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, tableNameTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.emailsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true } }).execute(); // Get one by id -const item = await db.emailsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, tableNameTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.emailsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true } }).execute(); // Create -const created = await db.emailsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '', tableNameTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.emailsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.emailsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.emailsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.emailsModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.emailsModule.delete({ where: { id: '' } }).execute(); ``` ### `db.encryptedSecretsModule` @@ -1980,26 +1971,24 @@ CRUD operations for EncryptedSecretsModule records. | `schemaId` | UUID | Yes | | `tableId` | UUID | Yes | | `tableName` | String | Yes | -| `tableNameTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all encryptedSecretsModule records -const items = await db.encryptedSecretsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, tableNameTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.encryptedSecretsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }).execute(); // Get one by id -const item = await db.encryptedSecretsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, tableNameTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.encryptedSecretsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }).execute(); // Create -const created = await db.encryptedSecretsModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '', tableNameTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.encryptedSecretsModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.encryptedSecretsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.encryptedSecretsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.encryptedSecretsModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.encryptedSecretsModule.delete({ where: { id: '' } }).execute(); ``` ### `db.fieldModule` @@ -2019,26 +2008,24 @@ CRUD operations for FieldModule records. | `data` | JSON | Yes | | `triggers` | String | Yes | | `functions` | String | Yes | -| `nodeTypeTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all fieldModule records -const items = await db.fieldModule.findMany({ select: { id: true, databaseId: true, privateSchemaId: true, tableId: true, fieldId: true, nodeType: true, data: true, triggers: true, functions: true, nodeTypeTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.fieldModule.findMany({ select: { id: true, databaseId: true, privateSchemaId: true, tableId: true, fieldId: true, nodeType: true, data: true, triggers: true, functions: true } }).execute(); // Get one by id -const item = await db.fieldModule.findOne({ id: '', select: { id: true, databaseId: true, privateSchemaId: true, tableId: true, fieldId: true, nodeType: true, data: true, triggers: true, functions: true, nodeTypeTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.fieldModule.findOne({ id: '', select: { id: true, databaseId: true, privateSchemaId: true, tableId: true, fieldId: true, nodeType: true, data: true, triggers: true, functions: true } }).execute(); // Create -const created = await db.fieldModule.create({ data: { databaseId: '', privateSchemaId: '', tableId: '', fieldId: '', nodeType: '', data: '', triggers: '', functions: '', nodeTypeTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.fieldModule.create({ data: { databaseId: '', privateSchemaId: '', tableId: '', fieldId: '', nodeType: '', data: '', triggers: '', functions: '' }, select: { id: true } }).execute(); // Update -const updated = await db.fieldModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.fieldModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.fieldModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.fieldModule.delete({ where: { id: '' } }).execute(); ``` ### `db.invitesModule` @@ -2063,29 +2050,24 @@ CRUD operations for InvitesModule records. | `prefix` | String | Yes | | `membershipType` | Int | Yes | | `entityTableId` | UUID | Yes | -| `invitesTableNameTrgmSimilarity` | Float | Yes | -| `claimedInvitesTableNameTrgmSimilarity` | Float | Yes | -| `submitInviteCodeFunctionTrgmSimilarity` | Float | Yes | -| `prefixTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all invitesModule records -const items = await db.invitesModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, emailsTableId: true, usersTableId: true, invitesTableId: true, claimedInvitesTableId: true, invitesTableName: true, claimedInvitesTableName: true, submitInviteCodeFunction: true, prefix: true, membershipType: true, entityTableId: true, invitesTableNameTrgmSimilarity: true, claimedInvitesTableNameTrgmSimilarity: true, submitInviteCodeFunctionTrgmSimilarity: true, prefixTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.invitesModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, emailsTableId: true, usersTableId: true, invitesTableId: true, claimedInvitesTableId: true, invitesTableName: true, claimedInvitesTableName: true, submitInviteCodeFunction: true, prefix: true, membershipType: true, entityTableId: true } }).execute(); // Get one by id -const item = await db.invitesModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, emailsTableId: true, usersTableId: true, invitesTableId: true, claimedInvitesTableId: true, invitesTableName: true, claimedInvitesTableName: true, submitInviteCodeFunction: true, prefix: true, membershipType: true, entityTableId: true, invitesTableNameTrgmSimilarity: true, claimedInvitesTableNameTrgmSimilarity: true, submitInviteCodeFunctionTrgmSimilarity: true, prefixTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.invitesModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, emailsTableId: true, usersTableId: true, invitesTableId: true, claimedInvitesTableId: true, invitesTableName: true, claimedInvitesTableName: true, submitInviteCodeFunction: true, prefix: true, membershipType: true, entityTableId: true } }).execute(); // Create -const created = await db.invitesModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', emailsTableId: '', usersTableId: '', invitesTableId: '', claimedInvitesTableId: '', invitesTableName: '', claimedInvitesTableName: '', submitInviteCodeFunction: '', prefix: '', membershipType: '', entityTableId: '', invitesTableNameTrgmSimilarity: '', claimedInvitesTableNameTrgmSimilarity: '', submitInviteCodeFunctionTrgmSimilarity: '', prefixTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.invitesModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', emailsTableId: '', usersTableId: '', invitesTableId: '', claimedInvitesTableId: '', invitesTableName: '', claimedInvitesTableName: '', submitInviteCodeFunction: '', prefix: '', membershipType: '', entityTableId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.invitesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.invitesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.invitesModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.invitesModule.delete({ where: { id: '' } }).execute(); ``` ### `db.levelsModule` @@ -2122,40 +2104,24 @@ CRUD operations for LevelsModule records. | `membershipType` | Int | Yes | | `entityTableId` | UUID | Yes | | `actorTableId` | UUID | Yes | -| `stepsTableNameTrgmSimilarity` | Float | Yes | -| `achievementsTableNameTrgmSimilarity` | Float | Yes | -| `levelsTableNameTrgmSimilarity` | Float | Yes | -| `levelRequirementsTableNameTrgmSimilarity` | Float | Yes | -| `completedStepTrgmSimilarity` | Float | Yes | -| `incompletedStepTrgmSimilarity` | Float | Yes | -| `tgAchievementTrgmSimilarity` | Float | Yes | -| `tgAchievementToggleTrgmSimilarity` | Float | Yes | -| `tgAchievementToggleBooleanTrgmSimilarity` | Float | Yes | -| `tgAchievementBooleanTrgmSimilarity` | Float | Yes | -| `upsertAchievementTrgmSimilarity` | Float | Yes | -| `tgUpdateAchievementsTrgmSimilarity` | Float | Yes | -| `stepsRequiredTrgmSimilarity` | Float | Yes | -| `levelAchievedTrgmSimilarity` | Float | Yes | -| `prefixTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all levelsModule records -const items = await db.levelsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, stepsTableId: true, stepsTableName: true, achievementsTableId: true, achievementsTableName: true, levelsTableId: true, levelsTableName: true, levelRequirementsTableId: true, levelRequirementsTableName: true, completedStep: true, incompletedStep: true, tgAchievement: true, tgAchievementToggle: true, tgAchievementToggleBoolean: true, tgAchievementBoolean: true, upsertAchievement: true, tgUpdateAchievements: true, stepsRequired: true, levelAchieved: true, prefix: true, membershipType: true, entityTableId: true, actorTableId: true, stepsTableNameTrgmSimilarity: true, achievementsTableNameTrgmSimilarity: true, levelsTableNameTrgmSimilarity: true, levelRequirementsTableNameTrgmSimilarity: true, completedStepTrgmSimilarity: true, incompletedStepTrgmSimilarity: true, tgAchievementTrgmSimilarity: true, tgAchievementToggleTrgmSimilarity: true, tgAchievementToggleBooleanTrgmSimilarity: true, tgAchievementBooleanTrgmSimilarity: true, upsertAchievementTrgmSimilarity: true, tgUpdateAchievementsTrgmSimilarity: true, stepsRequiredTrgmSimilarity: true, levelAchievedTrgmSimilarity: true, prefixTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.levelsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, stepsTableId: true, stepsTableName: true, achievementsTableId: true, achievementsTableName: true, levelsTableId: true, levelsTableName: true, levelRequirementsTableId: true, levelRequirementsTableName: true, completedStep: true, incompletedStep: true, tgAchievement: true, tgAchievementToggle: true, tgAchievementToggleBoolean: true, tgAchievementBoolean: true, upsertAchievement: true, tgUpdateAchievements: true, stepsRequired: true, levelAchieved: true, prefix: true, membershipType: true, entityTableId: true, actorTableId: true } }).execute(); // Get one by id -const item = await db.levelsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, stepsTableId: true, stepsTableName: true, achievementsTableId: true, achievementsTableName: true, levelsTableId: true, levelsTableName: true, levelRequirementsTableId: true, levelRequirementsTableName: true, completedStep: true, incompletedStep: true, tgAchievement: true, tgAchievementToggle: true, tgAchievementToggleBoolean: true, tgAchievementBoolean: true, upsertAchievement: true, tgUpdateAchievements: true, stepsRequired: true, levelAchieved: true, prefix: true, membershipType: true, entityTableId: true, actorTableId: true, stepsTableNameTrgmSimilarity: true, achievementsTableNameTrgmSimilarity: true, levelsTableNameTrgmSimilarity: true, levelRequirementsTableNameTrgmSimilarity: true, completedStepTrgmSimilarity: true, incompletedStepTrgmSimilarity: true, tgAchievementTrgmSimilarity: true, tgAchievementToggleTrgmSimilarity: true, tgAchievementToggleBooleanTrgmSimilarity: true, tgAchievementBooleanTrgmSimilarity: true, upsertAchievementTrgmSimilarity: true, tgUpdateAchievementsTrgmSimilarity: true, stepsRequiredTrgmSimilarity: true, levelAchievedTrgmSimilarity: true, prefixTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.levelsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, stepsTableId: true, stepsTableName: true, achievementsTableId: true, achievementsTableName: true, levelsTableId: true, levelsTableName: true, levelRequirementsTableId: true, levelRequirementsTableName: true, completedStep: true, incompletedStep: true, tgAchievement: true, tgAchievementToggle: true, tgAchievementToggleBoolean: true, tgAchievementBoolean: true, upsertAchievement: true, tgUpdateAchievements: true, stepsRequired: true, levelAchieved: true, prefix: true, membershipType: true, entityTableId: true, actorTableId: true } }).execute(); // Create -const created = await db.levelsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', stepsTableId: '', stepsTableName: '', achievementsTableId: '', achievementsTableName: '', levelsTableId: '', levelsTableName: '', levelRequirementsTableId: '', levelRequirementsTableName: '', completedStep: '', incompletedStep: '', tgAchievement: '', tgAchievementToggle: '', tgAchievementToggleBoolean: '', tgAchievementBoolean: '', upsertAchievement: '', tgUpdateAchievements: '', stepsRequired: '', levelAchieved: '', prefix: '', membershipType: '', entityTableId: '', actorTableId: '', stepsTableNameTrgmSimilarity: '', achievementsTableNameTrgmSimilarity: '', levelsTableNameTrgmSimilarity: '', levelRequirementsTableNameTrgmSimilarity: '', completedStepTrgmSimilarity: '', incompletedStepTrgmSimilarity: '', tgAchievementTrgmSimilarity: '', tgAchievementToggleTrgmSimilarity: '', tgAchievementToggleBooleanTrgmSimilarity: '', tgAchievementBooleanTrgmSimilarity: '', upsertAchievementTrgmSimilarity: '', tgUpdateAchievementsTrgmSimilarity: '', stepsRequiredTrgmSimilarity: '', levelAchievedTrgmSimilarity: '', prefixTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.levelsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', stepsTableId: '', stepsTableName: '', achievementsTableId: '', achievementsTableName: '', levelsTableId: '', levelsTableName: '', levelRequirementsTableId: '', levelRequirementsTableName: '', completedStep: '', incompletedStep: '', tgAchievement: '', tgAchievementToggle: '', tgAchievementToggleBoolean: '', tgAchievementBoolean: '', upsertAchievement: '', tgUpdateAchievements: '', stepsRequired: '', levelAchieved: '', prefix: '', membershipType: '', entityTableId: '', actorTableId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.levelsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.levelsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.levelsModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.levelsModule.delete({ where: { id: '' } }).execute(); ``` ### `db.limitsModule` @@ -2184,34 +2150,24 @@ CRUD operations for LimitsModule records. | `membershipType` | Int | Yes | | `entityTableId` | UUID | Yes | | `actorTableId` | UUID | Yes | -| `tableNameTrgmSimilarity` | Float | Yes | -| `defaultTableNameTrgmSimilarity` | Float | Yes | -| `limitIncrementFunctionTrgmSimilarity` | Float | Yes | -| `limitDecrementFunctionTrgmSimilarity` | Float | Yes | -| `limitIncrementTriggerTrgmSimilarity` | Float | Yes | -| `limitDecrementTriggerTrgmSimilarity` | Float | Yes | -| `limitUpdateTriggerTrgmSimilarity` | Float | Yes | -| `limitCheckFunctionTrgmSimilarity` | Float | Yes | -| `prefixTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all limitsModule records -const items = await db.limitsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, limitIncrementFunction: true, limitDecrementFunction: true, limitIncrementTrigger: true, limitDecrementTrigger: true, limitUpdateTrigger: true, limitCheckFunction: true, prefix: true, membershipType: true, entityTableId: true, actorTableId: true, tableNameTrgmSimilarity: true, defaultTableNameTrgmSimilarity: true, limitIncrementFunctionTrgmSimilarity: true, limitDecrementFunctionTrgmSimilarity: true, limitIncrementTriggerTrgmSimilarity: true, limitDecrementTriggerTrgmSimilarity: true, limitUpdateTriggerTrgmSimilarity: true, limitCheckFunctionTrgmSimilarity: true, prefixTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.limitsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, limitIncrementFunction: true, limitDecrementFunction: true, limitIncrementTrigger: true, limitDecrementTrigger: true, limitUpdateTrigger: true, limitCheckFunction: true, prefix: true, membershipType: true, entityTableId: true, actorTableId: true } }).execute(); // Get one by id -const item = await db.limitsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, limitIncrementFunction: true, limitDecrementFunction: true, limitIncrementTrigger: true, limitDecrementTrigger: true, limitUpdateTrigger: true, limitCheckFunction: true, prefix: true, membershipType: true, entityTableId: true, actorTableId: true, tableNameTrgmSimilarity: true, defaultTableNameTrgmSimilarity: true, limitIncrementFunctionTrgmSimilarity: true, limitDecrementFunctionTrgmSimilarity: true, limitIncrementTriggerTrgmSimilarity: true, limitDecrementTriggerTrgmSimilarity: true, limitUpdateTriggerTrgmSimilarity: true, limitCheckFunctionTrgmSimilarity: true, prefixTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.limitsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, limitIncrementFunction: true, limitDecrementFunction: true, limitIncrementTrigger: true, limitDecrementTrigger: true, limitUpdateTrigger: true, limitCheckFunction: true, prefix: true, membershipType: true, entityTableId: true, actorTableId: true } }).execute(); // Create -const created = await db.limitsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', limitIncrementFunction: '', limitDecrementFunction: '', limitIncrementTrigger: '', limitDecrementTrigger: '', limitUpdateTrigger: '', limitCheckFunction: '', prefix: '', membershipType: '', entityTableId: '', actorTableId: '', tableNameTrgmSimilarity: '', defaultTableNameTrgmSimilarity: '', limitIncrementFunctionTrgmSimilarity: '', limitDecrementFunctionTrgmSimilarity: '', limitIncrementTriggerTrgmSimilarity: '', limitDecrementTriggerTrgmSimilarity: '', limitUpdateTriggerTrgmSimilarity: '', limitCheckFunctionTrgmSimilarity: '', prefixTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.limitsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', limitIncrementFunction: '', limitDecrementFunction: '', limitIncrementTrigger: '', limitDecrementTrigger: '', limitUpdateTrigger: '', limitCheckFunction: '', prefix: '', membershipType: '', entityTableId: '', actorTableId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.limitsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.limitsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.limitsModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.limitsModule.delete({ where: { id: '' } }).execute(); ``` ### `db.membershipTypesModule` @@ -2227,26 +2183,24 @@ CRUD operations for MembershipTypesModule records. | `schemaId` | UUID | Yes | | `tableId` | UUID | Yes | | `tableName` | String | Yes | -| `tableNameTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all membershipTypesModule records -const items = await db.membershipTypesModule.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, tableNameTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.membershipTypesModule.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }).execute(); // Get one by id -const item = await db.membershipTypesModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, tableNameTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.membershipTypesModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }).execute(); // Create -const created = await db.membershipTypesModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '', tableNameTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.membershipTypesModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.membershipTypesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.membershipTypesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.membershipTypesModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.membershipTypesModule.delete({ where: { id: '' } }).execute(); ``` ### `db.membershipsModule` @@ -2288,37 +2242,24 @@ CRUD operations for MembershipsModule records. | `entityIdsByMask` | String | Yes | | `entityIdsByPerm` | String | Yes | | `entityIdsFunction` | String | Yes | -| `membershipsTableNameTrgmSimilarity` | Float | Yes | -| `membersTableNameTrgmSimilarity` | Float | Yes | -| `membershipDefaultsTableNameTrgmSimilarity` | Float | Yes | -| `grantsTableNameTrgmSimilarity` | Float | Yes | -| `adminGrantsTableNameTrgmSimilarity` | Float | Yes | -| `ownerGrantsTableNameTrgmSimilarity` | Float | Yes | -| `prefixTrgmSimilarity` | Float | Yes | -| `actorMaskCheckTrgmSimilarity` | Float | Yes | -| `actorPermCheckTrgmSimilarity` | Float | Yes | -| `entityIdsByMaskTrgmSimilarity` | Float | Yes | -| `entityIdsByPermTrgmSimilarity` | Float | Yes | -| `entityIdsFunctionTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all membershipsModule records -const items = await db.membershipsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, membershipsTableId: true, membershipsTableName: true, membersTableId: true, membersTableName: true, membershipDefaultsTableId: true, membershipDefaultsTableName: true, grantsTableId: true, grantsTableName: true, actorTableId: true, limitsTableId: true, defaultLimitsTableId: true, permissionsTableId: true, defaultPermissionsTableId: true, sprtTableId: true, adminGrantsTableId: true, adminGrantsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, membershipType: true, entityTableId: true, entityTableOwnerId: true, prefix: true, actorMaskCheck: true, actorPermCheck: true, entityIdsByMask: true, entityIdsByPerm: true, entityIdsFunction: true, membershipsTableNameTrgmSimilarity: true, membersTableNameTrgmSimilarity: true, membershipDefaultsTableNameTrgmSimilarity: true, grantsTableNameTrgmSimilarity: true, adminGrantsTableNameTrgmSimilarity: true, ownerGrantsTableNameTrgmSimilarity: true, prefixTrgmSimilarity: true, actorMaskCheckTrgmSimilarity: true, actorPermCheckTrgmSimilarity: true, entityIdsByMaskTrgmSimilarity: true, entityIdsByPermTrgmSimilarity: true, entityIdsFunctionTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.membershipsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, membershipsTableId: true, membershipsTableName: true, membersTableId: true, membersTableName: true, membershipDefaultsTableId: true, membershipDefaultsTableName: true, grantsTableId: true, grantsTableName: true, actorTableId: true, limitsTableId: true, defaultLimitsTableId: true, permissionsTableId: true, defaultPermissionsTableId: true, sprtTableId: true, adminGrantsTableId: true, adminGrantsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, membershipType: true, entityTableId: true, entityTableOwnerId: true, prefix: true, actorMaskCheck: true, actorPermCheck: true, entityIdsByMask: true, entityIdsByPerm: true, entityIdsFunction: true } }).execute(); // Get one by id -const item = await db.membershipsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, membershipsTableId: true, membershipsTableName: true, membersTableId: true, membersTableName: true, membershipDefaultsTableId: true, membershipDefaultsTableName: true, grantsTableId: true, grantsTableName: true, actorTableId: true, limitsTableId: true, defaultLimitsTableId: true, permissionsTableId: true, defaultPermissionsTableId: true, sprtTableId: true, adminGrantsTableId: true, adminGrantsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, membershipType: true, entityTableId: true, entityTableOwnerId: true, prefix: true, actorMaskCheck: true, actorPermCheck: true, entityIdsByMask: true, entityIdsByPerm: true, entityIdsFunction: true, membershipsTableNameTrgmSimilarity: true, membersTableNameTrgmSimilarity: true, membershipDefaultsTableNameTrgmSimilarity: true, grantsTableNameTrgmSimilarity: true, adminGrantsTableNameTrgmSimilarity: true, ownerGrantsTableNameTrgmSimilarity: true, prefixTrgmSimilarity: true, actorMaskCheckTrgmSimilarity: true, actorPermCheckTrgmSimilarity: true, entityIdsByMaskTrgmSimilarity: true, entityIdsByPermTrgmSimilarity: true, entityIdsFunctionTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.membershipsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, membershipsTableId: true, membershipsTableName: true, membersTableId: true, membersTableName: true, membershipDefaultsTableId: true, membershipDefaultsTableName: true, grantsTableId: true, grantsTableName: true, actorTableId: true, limitsTableId: true, defaultLimitsTableId: true, permissionsTableId: true, defaultPermissionsTableId: true, sprtTableId: true, adminGrantsTableId: true, adminGrantsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, membershipType: true, entityTableId: true, entityTableOwnerId: true, prefix: true, actorMaskCheck: true, actorPermCheck: true, entityIdsByMask: true, entityIdsByPerm: true, entityIdsFunction: true } }).execute(); // Create -const created = await db.membershipsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', membershipsTableId: '', membershipsTableName: '', membersTableId: '', membersTableName: '', membershipDefaultsTableId: '', membershipDefaultsTableName: '', grantsTableId: '', grantsTableName: '', actorTableId: '', limitsTableId: '', defaultLimitsTableId: '', permissionsTableId: '', defaultPermissionsTableId: '', sprtTableId: '', adminGrantsTableId: '', adminGrantsTableName: '', ownerGrantsTableId: '', ownerGrantsTableName: '', membershipType: '', entityTableId: '', entityTableOwnerId: '', prefix: '', actorMaskCheck: '', actorPermCheck: '', entityIdsByMask: '', entityIdsByPerm: '', entityIdsFunction: '', membershipsTableNameTrgmSimilarity: '', membersTableNameTrgmSimilarity: '', membershipDefaultsTableNameTrgmSimilarity: '', grantsTableNameTrgmSimilarity: '', adminGrantsTableNameTrgmSimilarity: '', ownerGrantsTableNameTrgmSimilarity: '', prefixTrgmSimilarity: '', actorMaskCheckTrgmSimilarity: '', actorPermCheckTrgmSimilarity: '', entityIdsByMaskTrgmSimilarity: '', entityIdsByPermTrgmSimilarity: '', entityIdsFunctionTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.membershipsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', membershipsTableId: '', membershipsTableName: '', membersTableId: '', membersTableName: '', membershipDefaultsTableId: '', membershipDefaultsTableName: '', grantsTableId: '', grantsTableName: '', actorTableId: '', limitsTableId: '', defaultLimitsTableId: '', permissionsTableId: '', defaultPermissionsTableId: '', sprtTableId: '', adminGrantsTableId: '', adminGrantsTableName: '', ownerGrantsTableId: '', ownerGrantsTableName: '', membershipType: '', entityTableId: '', entityTableOwnerId: '', prefix: '', actorMaskCheck: '', actorPermCheck: '', entityIdsByMask: '', entityIdsByPerm: '', entityIdsFunction: '' }, select: { id: true } }).execute(); // Update -const updated = await db.membershipsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.membershipsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.membershipsModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.membershipsModule.delete({ where: { id: '' } }).execute(); ``` ### `db.permissionsModule` @@ -2346,32 +2287,24 @@ CRUD operations for PermissionsModule records. | `getMask` | String | Yes | | `getByMask` | String | Yes | | `getMaskByName` | String | Yes | -| `tableNameTrgmSimilarity` | Float | Yes | -| `defaultTableNameTrgmSimilarity` | Float | Yes | -| `prefixTrgmSimilarity` | Float | Yes | -| `getPaddedMaskTrgmSimilarity` | Float | Yes | -| `getMaskTrgmSimilarity` | Float | Yes | -| `getByMaskTrgmSimilarity` | Float | Yes | -| `getMaskByNameTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all permissionsModule records -const items = await db.permissionsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, bitlen: true, membershipType: true, entityTableId: true, actorTableId: true, prefix: true, getPaddedMask: true, getMask: true, getByMask: true, getMaskByName: true, tableNameTrgmSimilarity: true, defaultTableNameTrgmSimilarity: true, prefixTrgmSimilarity: true, getPaddedMaskTrgmSimilarity: true, getMaskTrgmSimilarity: true, getByMaskTrgmSimilarity: true, getMaskByNameTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.permissionsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, bitlen: true, membershipType: true, entityTableId: true, actorTableId: true, prefix: true, getPaddedMask: true, getMask: true, getByMask: true, getMaskByName: true } }).execute(); // Get one by id -const item = await db.permissionsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, bitlen: true, membershipType: true, entityTableId: true, actorTableId: true, prefix: true, getPaddedMask: true, getMask: true, getByMask: true, getMaskByName: true, tableNameTrgmSimilarity: true, defaultTableNameTrgmSimilarity: true, prefixTrgmSimilarity: true, getPaddedMaskTrgmSimilarity: true, getMaskTrgmSimilarity: true, getByMaskTrgmSimilarity: true, getMaskByNameTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.permissionsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, bitlen: true, membershipType: true, entityTableId: true, actorTableId: true, prefix: true, getPaddedMask: true, getMask: true, getByMask: true, getMaskByName: true } }).execute(); // Create -const created = await db.permissionsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', bitlen: '', membershipType: '', entityTableId: '', actorTableId: '', prefix: '', getPaddedMask: '', getMask: '', getByMask: '', getMaskByName: '', tableNameTrgmSimilarity: '', defaultTableNameTrgmSimilarity: '', prefixTrgmSimilarity: '', getPaddedMaskTrgmSimilarity: '', getMaskTrgmSimilarity: '', getByMaskTrgmSimilarity: '', getMaskByNameTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.permissionsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', bitlen: '', membershipType: '', entityTableId: '', actorTableId: '', prefix: '', getPaddedMask: '', getMask: '', getByMask: '', getMaskByName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.permissionsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.permissionsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.permissionsModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.permissionsModule.delete({ where: { id: '' } }).execute(); ``` ### `db.phoneNumbersModule` @@ -2389,26 +2322,24 @@ CRUD operations for PhoneNumbersModule records. | `tableId` | UUID | Yes | | `ownerTableId` | UUID | Yes | | `tableName` | String | Yes | -| `tableNameTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all phoneNumbersModule records -const items = await db.phoneNumbersModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, tableNameTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.phoneNumbersModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true } }).execute(); // Get one by id -const item = await db.phoneNumbersModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true, tableNameTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.phoneNumbersModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, ownerTableId: true, tableName: true } }).execute(); // Create -const created = await db.phoneNumbersModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '', tableNameTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.phoneNumbersModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.phoneNumbersModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.phoneNumbersModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.phoneNumbersModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.phoneNumbersModule.delete({ where: { id: '' } }).execute(); ``` ### `db.profilesModule` @@ -2437,30 +2368,24 @@ CRUD operations for ProfilesModule records. | `permissionsTableId` | UUID | Yes | | `membershipsTableId` | UUID | Yes | | `prefix` | String | Yes | -| `tableNameTrgmSimilarity` | Float | Yes | -| `profilePermissionsTableNameTrgmSimilarity` | Float | Yes | -| `profileGrantsTableNameTrgmSimilarity` | Float | Yes | -| `profileDefinitionGrantsTableNameTrgmSimilarity` | Float | Yes | -| `prefixTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all profilesModule records -const items = await db.profilesModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, membershipType: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, prefix: true, tableNameTrgmSimilarity: true, profilePermissionsTableNameTrgmSimilarity: true, profileGrantsTableNameTrgmSimilarity: true, profileDefinitionGrantsTableNameTrgmSimilarity: true, prefixTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.profilesModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, membershipType: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, prefix: true } }).execute(); // Get one by id -const item = await db.profilesModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, membershipType: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, prefix: true, tableNameTrgmSimilarity: true, profilePermissionsTableNameTrgmSimilarity: true, profileGrantsTableNameTrgmSimilarity: true, profileDefinitionGrantsTableNameTrgmSimilarity: true, prefixTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.profilesModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, membershipType: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, prefix: true } }).execute(); // Create -const created = await db.profilesModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', profilePermissionsTableId: '', profilePermissionsTableName: '', profileGrantsTableId: '', profileGrantsTableName: '', profileDefinitionGrantsTableId: '', profileDefinitionGrantsTableName: '', membershipType: '', entityTableId: '', actorTableId: '', permissionsTableId: '', membershipsTableId: '', prefix: '', tableNameTrgmSimilarity: '', profilePermissionsTableNameTrgmSimilarity: '', profileGrantsTableNameTrgmSimilarity: '', profileDefinitionGrantsTableNameTrgmSimilarity: '', prefixTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.profilesModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', profilePermissionsTableId: '', profilePermissionsTableName: '', profileGrantsTableId: '', profileGrantsTableName: '', profileDefinitionGrantsTableId: '', profileDefinitionGrantsTableName: '', membershipType: '', entityTableId: '', actorTableId: '', permissionsTableId: '', membershipsTableId: '', prefix: '' }, select: { id: true } }).execute(); // Update -const updated = await db.profilesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.profilesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.profilesModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.profilesModule.delete({ where: { id: '' } }).execute(); ``` ### `db.secretsModule` @@ -2476,26 +2401,24 @@ CRUD operations for SecretsModule records. | `schemaId` | UUID | Yes | | `tableId` | UUID | Yes | | `tableName` | String | Yes | -| `tableNameTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all secretsModule records -const items = await db.secretsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, tableNameTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.secretsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }).execute(); // Get one by id -const item = await db.secretsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, tableNameTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.secretsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true } }).execute(); // Create -const created = await db.secretsModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '', tableNameTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.secretsModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.secretsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.secretsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.secretsModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.secretsModule.delete({ where: { id: '' } }).execute(); ``` ### `db.sessionsModule` @@ -2517,28 +2440,24 @@ CRUD operations for SessionsModule records. | `sessionsTable` | String | Yes | | `sessionCredentialsTable` | String | Yes | | `authSettingsTable` | String | Yes | -| `sessionsTableTrgmSimilarity` | Float | Yes | -| `sessionCredentialsTableTrgmSimilarity` | Float | Yes | -| `authSettingsTableTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all sessionsModule records -const items = await db.sessionsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, sessionsTableId: true, sessionCredentialsTableId: true, authSettingsTableId: true, usersTableId: true, sessionsDefaultExpiration: true, sessionsTable: true, sessionCredentialsTable: true, authSettingsTable: true, sessionsTableTrgmSimilarity: true, sessionCredentialsTableTrgmSimilarity: true, authSettingsTableTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.sessionsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, sessionsTableId: true, sessionCredentialsTableId: true, authSettingsTableId: true, usersTableId: true, sessionsDefaultExpiration: true, sessionsTable: true, sessionCredentialsTable: true, authSettingsTable: true } }).execute(); // Get one by id -const item = await db.sessionsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, sessionsTableId: true, sessionCredentialsTableId: true, authSettingsTableId: true, usersTableId: true, sessionsDefaultExpiration: true, sessionsTable: true, sessionCredentialsTable: true, authSettingsTable: true, sessionsTableTrgmSimilarity: true, sessionCredentialsTableTrgmSimilarity: true, authSettingsTableTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.sessionsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, sessionsTableId: true, sessionCredentialsTableId: true, authSettingsTableId: true, usersTableId: true, sessionsDefaultExpiration: true, sessionsTable: true, sessionCredentialsTable: true, authSettingsTable: true } }).execute(); // Create -const created = await db.sessionsModule.create({ data: { databaseId: '', schemaId: '', sessionsTableId: '', sessionCredentialsTableId: '', authSettingsTableId: '', usersTableId: '', sessionsDefaultExpiration: '', sessionsTable: '', sessionCredentialsTable: '', authSettingsTable: '', sessionsTableTrgmSimilarity: '', sessionCredentialsTableTrgmSimilarity: '', authSettingsTableTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.sessionsModule.create({ data: { databaseId: '', schemaId: '', sessionsTableId: '', sessionCredentialsTableId: '', authSettingsTableId: '', usersTableId: '', sessionsDefaultExpiration: '', sessionsTable: '', sessionCredentialsTable: '', authSettingsTable: '' }, select: { id: true } }).execute(); // Update -const updated = await db.sessionsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.sessionsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.sessionsModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.sessionsModule.delete({ where: { id: '' } }).execute(); ``` ### `db.userAuthModule` @@ -2575,41 +2494,24 @@ CRUD operations for UserAuthModule records. | `signInOneTimeTokenFunction` | String | Yes | | `oneTimeTokenFunction` | String | Yes | | `extendTokenExpires` | String | Yes | -| `auditsTableNameTrgmSimilarity` | Float | Yes | -| `signInFunctionTrgmSimilarity` | Float | Yes | -| `signUpFunctionTrgmSimilarity` | Float | Yes | -| `signOutFunctionTrgmSimilarity` | Float | Yes | -| `setPasswordFunctionTrgmSimilarity` | Float | Yes | -| `resetPasswordFunctionTrgmSimilarity` | Float | Yes | -| `forgotPasswordFunctionTrgmSimilarity` | Float | Yes | -| `sendVerificationEmailFunctionTrgmSimilarity` | Float | Yes | -| `verifyEmailFunctionTrgmSimilarity` | Float | Yes | -| `verifyPasswordFunctionTrgmSimilarity` | Float | Yes | -| `checkPasswordFunctionTrgmSimilarity` | Float | Yes | -| `sendAccountDeletionEmailFunctionTrgmSimilarity` | Float | Yes | -| `deleteAccountFunctionTrgmSimilarity` | Float | Yes | -| `signInOneTimeTokenFunctionTrgmSimilarity` | Float | Yes | -| `oneTimeTokenFunctionTrgmSimilarity` | Float | Yes | -| `extendTokenExpiresTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all userAuthModule records -const items = await db.userAuthModule.findMany({ select: { id: true, databaseId: true, schemaId: true, emailsTableId: true, usersTableId: true, secretsTableId: true, encryptedTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, auditsTableId: true, auditsTableName: true, signInFunction: true, signUpFunction: true, signOutFunction: true, setPasswordFunction: true, resetPasswordFunction: true, forgotPasswordFunction: true, sendVerificationEmailFunction: true, verifyEmailFunction: true, verifyPasswordFunction: true, checkPasswordFunction: true, sendAccountDeletionEmailFunction: true, deleteAccountFunction: true, signInOneTimeTokenFunction: true, oneTimeTokenFunction: true, extendTokenExpires: true, auditsTableNameTrgmSimilarity: true, signInFunctionTrgmSimilarity: true, signUpFunctionTrgmSimilarity: true, signOutFunctionTrgmSimilarity: true, setPasswordFunctionTrgmSimilarity: true, resetPasswordFunctionTrgmSimilarity: true, forgotPasswordFunctionTrgmSimilarity: true, sendVerificationEmailFunctionTrgmSimilarity: true, verifyEmailFunctionTrgmSimilarity: true, verifyPasswordFunctionTrgmSimilarity: true, checkPasswordFunctionTrgmSimilarity: true, sendAccountDeletionEmailFunctionTrgmSimilarity: true, deleteAccountFunctionTrgmSimilarity: true, signInOneTimeTokenFunctionTrgmSimilarity: true, oneTimeTokenFunctionTrgmSimilarity: true, extendTokenExpiresTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.userAuthModule.findMany({ select: { id: true, databaseId: true, schemaId: true, emailsTableId: true, usersTableId: true, secretsTableId: true, encryptedTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, auditsTableId: true, auditsTableName: true, signInFunction: true, signUpFunction: true, signOutFunction: true, setPasswordFunction: true, resetPasswordFunction: true, forgotPasswordFunction: true, sendVerificationEmailFunction: true, verifyEmailFunction: true, verifyPasswordFunction: true, checkPasswordFunction: true, sendAccountDeletionEmailFunction: true, deleteAccountFunction: true, signInOneTimeTokenFunction: true, oneTimeTokenFunction: true, extendTokenExpires: true } }).execute(); // Get one by id -const item = await db.userAuthModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, emailsTableId: true, usersTableId: true, secretsTableId: true, encryptedTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, auditsTableId: true, auditsTableName: true, signInFunction: true, signUpFunction: true, signOutFunction: true, setPasswordFunction: true, resetPasswordFunction: true, forgotPasswordFunction: true, sendVerificationEmailFunction: true, verifyEmailFunction: true, verifyPasswordFunction: true, checkPasswordFunction: true, sendAccountDeletionEmailFunction: true, deleteAccountFunction: true, signInOneTimeTokenFunction: true, oneTimeTokenFunction: true, extendTokenExpires: true, auditsTableNameTrgmSimilarity: true, signInFunctionTrgmSimilarity: true, signUpFunctionTrgmSimilarity: true, signOutFunctionTrgmSimilarity: true, setPasswordFunctionTrgmSimilarity: true, resetPasswordFunctionTrgmSimilarity: true, forgotPasswordFunctionTrgmSimilarity: true, sendVerificationEmailFunctionTrgmSimilarity: true, verifyEmailFunctionTrgmSimilarity: true, verifyPasswordFunctionTrgmSimilarity: true, checkPasswordFunctionTrgmSimilarity: true, sendAccountDeletionEmailFunctionTrgmSimilarity: true, deleteAccountFunctionTrgmSimilarity: true, signInOneTimeTokenFunctionTrgmSimilarity: true, oneTimeTokenFunctionTrgmSimilarity: true, extendTokenExpiresTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.userAuthModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, emailsTableId: true, usersTableId: true, secretsTableId: true, encryptedTableId: true, sessionsTableId: true, sessionCredentialsTableId: true, auditsTableId: true, auditsTableName: true, signInFunction: true, signUpFunction: true, signOutFunction: true, setPasswordFunction: true, resetPasswordFunction: true, forgotPasswordFunction: true, sendVerificationEmailFunction: true, verifyEmailFunction: true, verifyPasswordFunction: true, checkPasswordFunction: true, sendAccountDeletionEmailFunction: true, deleteAccountFunction: true, signInOneTimeTokenFunction: true, oneTimeTokenFunction: true, extendTokenExpires: true } }).execute(); // Create -const created = await db.userAuthModule.create({ data: { databaseId: '', schemaId: '', emailsTableId: '', usersTableId: '', secretsTableId: '', encryptedTableId: '', sessionsTableId: '', sessionCredentialsTableId: '', auditsTableId: '', auditsTableName: '', signInFunction: '', signUpFunction: '', signOutFunction: '', setPasswordFunction: '', resetPasswordFunction: '', forgotPasswordFunction: '', sendVerificationEmailFunction: '', verifyEmailFunction: '', verifyPasswordFunction: '', checkPasswordFunction: '', sendAccountDeletionEmailFunction: '', deleteAccountFunction: '', signInOneTimeTokenFunction: '', oneTimeTokenFunction: '', extendTokenExpires: '', auditsTableNameTrgmSimilarity: '', signInFunctionTrgmSimilarity: '', signUpFunctionTrgmSimilarity: '', signOutFunctionTrgmSimilarity: '', setPasswordFunctionTrgmSimilarity: '', resetPasswordFunctionTrgmSimilarity: '', forgotPasswordFunctionTrgmSimilarity: '', sendVerificationEmailFunctionTrgmSimilarity: '', verifyEmailFunctionTrgmSimilarity: '', verifyPasswordFunctionTrgmSimilarity: '', checkPasswordFunctionTrgmSimilarity: '', sendAccountDeletionEmailFunctionTrgmSimilarity: '', deleteAccountFunctionTrgmSimilarity: '', signInOneTimeTokenFunctionTrgmSimilarity: '', oneTimeTokenFunctionTrgmSimilarity: '', extendTokenExpiresTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.userAuthModule.create({ data: { databaseId: '', schemaId: '', emailsTableId: '', usersTableId: '', secretsTableId: '', encryptedTableId: '', sessionsTableId: '', sessionCredentialsTableId: '', auditsTableId: '', auditsTableName: '', signInFunction: '', signUpFunction: '', signOutFunction: '', setPasswordFunction: '', resetPasswordFunction: '', forgotPasswordFunction: '', sendVerificationEmailFunction: '', verifyEmailFunction: '', verifyPasswordFunction: '', checkPasswordFunction: '', sendAccountDeletionEmailFunction: '', deleteAccountFunction: '', signInOneTimeTokenFunction: '', oneTimeTokenFunction: '', extendTokenExpires: '' }, select: { id: true } }).execute(); // Update -const updated = await db.userAuthModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.userAuthModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.userAuthModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.userAuthModule.delete({ where: { id: '' } }).execute(); ``` ### `db.usersModule` @@ -2627,63 +2529,117 @@ CRUD operations for UsersModule records. | `tableName` | String | Yes | | `typeTableId` | UUID | Yes | | `typeTableName` | String | Yes | -| `tableNameTrgmSimilarity` | Float | Yes | -| `typeTableNameTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all usersModule records -const items = await db.usersModule.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, typeTableId: true, typeTableName: true, tableNameTrgmSimilarity: true, typeTableNameTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.usersModule.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, typeTableId: true, typeTableName: true } }).execute(); // Get one by id -const item = await db.usersModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, typeTableId: true, typeTableName: true, tableNameTrgmSimilarity: true, typeTableNameTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.usersModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, typeTableId: true, typeTableName: true } }).execute(); // Create -const created = await db.usersModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '', typeTableId: '', typeTableName: '', tableNameTrgmSimilarity: '', typeTableNameTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.usersModule.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '', typeTableId: '', typeTableName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.usersModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.usersModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.usersModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.usersModule.delete({ where: { id: '' } }).execute(); ``` -### `db.uuidModule` +### `db.blueprint` -CRUD operations for UuidModule records. +CRUD operations for Blueprint records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | +| `ownerId` | UUID | Yes | | `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `uuidFunction` | String | Yes | -| `uuidSeed` | String | Yes | -| `uuidFunctionTrgmSimilarity` | Float | Yes | -| `uuidSeedTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | +| `name` | String | Yes | +| `displayName` | String | Yes | +| `description` | String | Yes | +| `definition` | JSON | Yes | +| `templateId` | UUID | Yes | +| `status` | String | Yes | +| `constructedAt` | Datetime | Yes | +| `errorDetails` | String | Yes | +| `refMap` | JSON | Yes | +| `constructedDefinition` | JSON | Yes | +| `definitionHash` | UUID | Yes | +| `tableHashes` | JSON | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all blueprint records +const items = await db.blueprint.findMany({ select: { id: true, ownerId: true, databaseId: true, name: true, displayName: true, description: true, definition: true, templateId: true, status: true, constructedAt: true, errorDetails: true, refMap: true, constructedDefinition: true, definitionHash: true, tableHashes: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.blueprint.findOne({ id: '', select: { id: true, ownerId: true, databaseId: true, name: true, displayName: true, description: true, definition: true, templateId: true, status: true, constructedAt: true, errorDetails: true, refMap: true, constructedDefinition: true, definitionHash: true, tableHashes: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.blueprint.create({ data: { ownerId: '', databaseId: '', name: '', displayName: '', description: '', definition: '', templateId: '', status: '', constructedAt: '', errorDetails: '', refMap: '', constructedDefinition: '', definitionHash: '', tableHashes: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.blueprint.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.blueprint.delete({ where: { id: '' } }).execute(); +``` + +### `db.blueprintTemplate` + +CRUD operations for BlueprintTemplate records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `version` | String | Yes | +| `displayName` | String | Yes | +| `description` | String | Yes | +| `ownerId` | UUID | Yes | +| `visibility` | String | Yes | +| `categories` | String | Yes | +| `tags` | String | Yes | +| `definition` | JSON | Yes | +| `definitionSchemaVersion` | String | Yes | +| `source` | String | Yes | +| `complexity` | String | Yes | +| `copyCount` | Int | Yes | +| `forkCount` | Int | Yes | +| `forkedFromId` | UUID | Yes | +| `definitionHash` | UUID | Yes | +| `tableHashes` | JSON | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | **Operations:** ```typescript -// List all uuidModule records -const items = await db.uuidModule.findMany({ select: { id: true, databaseId: true, schemaId: true, uuidFunction: true, uuidSeed: true, uuidFunctionTrgmSimilarity: true, uuidSeedTrgmSimilarity: true, searchScore: true } }).execute(); +// List all blueprintTemplate records +const items = await db.blueprintTemplate.findMany({ select: { id: true, name: true, version: true, displayName: true, description: true, ownerId: true, visibility: true, categories: true, tags: true, definition: true, definitionSchemaVersion: true, source: true, complexity: true, copyCount: true, forkCount: true, forkedFromId: true, definitionHash: true, tableHashes: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.uuidModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, uuidFunction: true, uuidSeed: true, uuidFunctionTrgmSimilarity: true, uuidSeedTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.blueprintTemplate.findOne({ id: '', select: { id: true, name: true, version: true, displayName: true, description: true, ownerId: true, visibility: true, categories: true, tags: true, definition: true, definitionSchemaVersion: true, source: true, complexity: true, copyCount: true, forkCount: true, forkedFromId: true, definitionHash: true, tableHashes: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.uuidModule.create({ data: { databaseId: '', schemaId: '', uuidFunction: '', uuidSeed: '', uuidFunctionTrgmSimilarity: '', uuidSeedTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.blueprintTemplate.create({ data: { name: '', version: '', displayName: '', description: '', ownerId: '', visibility: '', categories: '', tags: '', definition: '', definitionSchemaVersion: '', source: '', complexity: '', copyCount: '', forkCount: '', forkedFromId: '', definitionHash: '', tableHashes: '' }, select: { id: true } }).execute(); // Update -const updated = await db.uuidModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.blueprintTemplate.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.uuidModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.blueprintTemplate.delete({ where: { id: '' } }).execute(); ``` ### `db.databaseProvisionModule` @@ -2708,30 +2664,24 @@ CRUD operations for DatabaseProvisionModule records. | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | | `completedAt` | Datetime | Yes | -| `databaseNameTrgmSimilarity` | Float | Yes | -| `subdomainTrgmSimilarity` | Float | Yes | -| `domainTrgmSimilarity` | Float | Yes | -| `statusTrgmSimilarity` | Float | Yes | -| `errorMessageTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all databaseProvisionModule records -const items = await db.databaseProvisionModule.findMany({ select: { id: true, databaseName: true, ownerId: true, subdomain: true, domain: true, modules: true, options: true, bootstrapUser: true, status: true, errorMessage: true, databaseId: true, createdAt: true, updatedAt: true, completedAt: true, databaseNameTrgmSimilarity: true, subdomainTrgmSimilarity: true, domainTrgmSimilarity: true, statusTrgmSimilarity: true, errorMessageTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.databaseProvisionModule.findMany({ select: { id: true, databaseName: true, ownerId: true, subdomain: true, domain: true, modules: true, options: true, bootstrapUser: true, status: true, errorMessage: true, databaseId: true, createdAt: true, updatedAt: true, completedAt: true } }).execute(); // Get one by id -const item = await db.databaseProvisionModule.findOne({ id: '', select: { id: true, databaseName: true, ownerId: true, subdomain: true, domain: true, modules: true, options: true, bootstrapUser: true, status: true, errorMessage: true, databaseId: true, createdAt: true, updatedAt: true, completedAt: true, databaseNameTrgmSimilarity: true, subdomainTrgmSimilarity: true, domainTrgmSimilarity: true, statusTrgmSimilarity: true, errorMessageTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.databaseProvisionModule.findOne({ id: '', select: { id: true, databaseName: true, ownerId: true, subdomain: true, domain: true, modules: true, options: true, bootstrapUser: true, status: true, errorMessage: true, databaseId: true, createdAt: true, updatedAt: true, completedAt: true } }).execute(); // Create -const created = await db.databaseProvisionModule.create({ data: { databaseName: '', ownerId: '', subdomain: '', domain: '', modules: '', options: '', bootstrapUser: '', status: '', errorMessage: '', databaseId: '', completedAt: '', databaseNameTrgmSimilarity: '', subdomainTrgmSimilarity: '', domainTrgmSimilarity: '', statusTrgmSimilarity: '', errorMessageTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.databaseProvisionModule.create({ data: { databaseName: '', ownerId: '', subdomain: '', domain: '', modules: '', options: '', bootstrapUser: '', status: '', errorMessage: '', databaseId: '', completedAt: '' }, select: { id: true } }).execute(); // Update -const updated = await db.databaseProvisionModule.update({ where: { id: '' }, data: { databaseName: '' }, select: { id: true } }).execute(); +const updated = await db.databaseProvisionModule.update({ where: { id: '' }, data: { databaseName: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.databaseProvisionModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.databaseProvisionModule.delete({ where: { id: '' } }).execute(); ``` ### `db.appAdminGrant` @@ -2756,16 +2706,16 @@ CRUD operations for AppAdminGrant records. const items = await db.appAdminGrant.findMany({ select: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.appAdminGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.appAdminGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.appAdminGrant.create({ data: { isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute(); +const created = await db.appAdminGrant.create({ data: { isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appAdminGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); +const updated = await db.appAdminGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appAdminGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.appAdminGrant.delete({ where: { id: '' } }).execute(); ``` ### `db.appOwnerGrant` @@ -2790,16 +2740,16 @@ CRUD operations for AppOwnerGrant records. const items = await db.appOwnerGrant.findMany({ select: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.appOwnerGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.appOwnerGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.appOwnerGrant.create({ data: { isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute(); +const created = await db.appOwnerGrant.create({ data: { isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appOwnerGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); +const updated = await db.appOwnerGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appOwnerGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.appOwnerGrant.delete({ where: { id: '' } }).execute(); ``` ### `db.appGrant` @@ -2825,16 +2775,16 @@ CRUD operations for AppGrant records. const items = await db.appGrant.findMany({ select: { id: true, permissions: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.appGrant.findOne({ id: '', select: { id: true, permissions: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.appGrant.findOne({ id: '', select: { id: true, permissions: true, isGrant: true, actorId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.appGrant.create({ data: { permissions: '', isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute(); +const created = await db.appGrant.create({ data: { permissions: '', isGrant: '', actorId: '', grantorId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appGrant.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); +const updated = await db.appGrant.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.appGrant.delete({ where: { id: '' } }).execute(); ``` ### `db.orgMembership` @@ -2869,16 +2819,16 @@ CRUD operations for OrgMembership records. const items = await db.orgMembership.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, profileId: true } }).execute(); // Get one by id -const item = await db.orgMembership.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, profileId: true } }).execute(); +const item = await db.orgMembership.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, entityId: true, profileId: true } }).execute(); // Create -const created = await db.orgMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '', profileId: '' }, select: { id: true } }).execute(); +const created = await db.orgMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', entityId: '', profileId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); +const updated = await db.orgMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgMembership.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgMembership.delete({ where: { id: '' } }).execute(); ``` ### `db.orgMember` @@ -2901,16 +2851,16 @@ CRUD operations for OrgMember records. const items = await db.orgMember.findMany({ select: { id: true, isAdmin: true, actorId: true, entityId: true } }).execute(); // Get one by id -const item = await db.orgMember.findOne({ id: '', select: { id: true, isAdmin: true, actorId: true, entityId: true } }).execute(); +const item = await db.orgMember.findOne({ id: '', select: { id: true, isAdmin: true, actorId: true, entityId: true } }).execute(); // Create -const created = await db.orgMember.create({ data: { isAdmin: '', actorId: '', entityId: '' }, select: { id: true } }).execute(); +const created = await db.orgMember.create({ data: { isAdmin: '', actorId: '', entityId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgMember.update({ where: { id: '' }, data: { isAdmin: '' }, select: { id: true } }).execute(); +const updated = await db.orgMember.update({ where: { id: '' }, data: { isAdmin: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgMember.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgMember.delete({ where: { id: '' } }).execute(); ``` ### `db.orgAdminGrant` @@ -2936,16 +2886,16 @@ CRUD operations for OrgAdminGrant records. const items = await db.orgAdminGrant.findMany({ select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.orgAdminGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.orgAdminGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.orgAdminGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); +const created = await db.orgAdminGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgAdminGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); +const updated = await db.orgAdminGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgAdminGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgAdminGrant.delete({ where: { id: '' } }).execute(); ``` ### `db.orgOwnerGrant` @@ -2971,16 +2921,16 @@ CRUD operations for OrgOwnerGrant records. const items = await db.orgOwnerGrant.findMany({ select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.orgOwnerGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.orgOwnerGrant.findOne({ id: '', select: { id: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.orgOwnerGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); +const created = await db.orgOwnerGrant.create({ data: { isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgOwnerGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); +const updated = await db.orgOwnerGrant.update({ where: { id: '' }, data: { isGrant: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgOwnerGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgOwnerGrant.delete({ where: { id: '' } }).execute(); ``` ### `db.orgGrant` @@ -3007,16 +2957,16 @@ CRUD operations for OrgGrant records. const items = await db.orgGrant.findMany({ select: { id: true, permissions: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.orgGrant.findOne({ id: '', select: { id: true, permissions: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.orgGrant.findOne({ id: '', select: { id: true, permissions: true, isGrant: true, actorId: true, entityId: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.orgGrant.create({ data: { permissions: '', isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); +const created = await db.orgGrant.create({ data: { permissions: '', isGrant: '', actorId: '', entityId: '', grantorId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgGrant.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); +const updated = await db.orgGrant.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgGrant.delete({ where: { id: '' } }).execute(); ``` ### `db.orgChartEdge` @@ -3035,26 +2985,24 @@ CRUD operations for OrgChartEdge records. | `parentId` | UUID | Yes | | `positionTitle` | String | Yes | | `positionLevel` | Int | Yes | -| `positionTitleTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all orgChartEdge records -const items = await db.orgChartEdge.findMany({ select: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true, positionTitleTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.orgChartEdge.findMany({ select: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true } }).execute(); // Get one by id -const item = await db.orgChartEdge.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true, positionTitleTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.orgChartEdge.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, entityId: true, childId: true, parentId: true, positionTitle: true, positionLevel: true } }).execute(); // Create -const created = await db.orgChartEdge.create({ data: { entityId: '', childId: '', parentId: '', positionTitle: '', positionLevel: '', positionTitleTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.orgChartEdge.create({ data: { entityId: '', childId: '', parentId: '', positionTitle: '', positionLevel: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgChartEdge.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); +const updated = await db.orgChartEdge.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgChartEdge.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgChartEdge.delete({ where: { id: '' } }).execute(); ``` ### `db.orgChartEdgeGrant` @@ -3074,26 +3022,55 @@ CRUD operations for OrgChartEdgeGrant records. | `positionTitle` | String | Yes | | `positionLevel` | Int | Yes | | `createdAt` | Datetime | No | -| `positionTitleTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all orgChartEdgeGrant records -const items = await db.orgChartEdgeGrant.findMany({ select: { id: true, entityId: true, childId: true, parentId: true, grantorId: true, isGrant: true, positionTitle: true, positionLevel: true, createdAt: true, positionTitleTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.orgChartEdgeGrant.findMany({ select: { id: true, entityId: true, childId: true, parentId: true, grantorId: true, isGrant: true, positionTitle: true, positionLevel: true, createdAt: true } }).execute(); + +// Get one by id +const item = await db.orgChartEdgeGrant.findOne({ id: '', select: { id: true, entityId: true, childId: true, parentId: true, grantorId: true, isGrant: true, positionTitle: true, positionLevel: true, createdAt: true } }).execute(); + +// Create +const created = await db.orgChartEdgeGrant.create({ data: { entityId: '', childId: '', parentId: '', grantorId: '', isGrant: '', positionTitle: '', positionLevel: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgChartEdgeGrant.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgChartEdgeGrant.delete({ where: { id: '' } }).execute(); +``` + +### `db.orgPermissionDefault` + +CRUD operations for OrgPermissionDefault records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `permissions` | BitString | Yes | +| `entityId` | UUID | Yes | + +**Operations:** + +```typescript +// List all orgPermissionDefault records +const items = await db.orgPermissionDefault.findMany({ select: { id: true, permissions: true, entityId: true } }).execute(); // Get one by id -const item = await db.orgChartEdgeGrant.findOne({ id: '', select: { id: true, entityId: true, childId: true, parentId: true, grantorId: true, isGrant: true, positionTitle: true, positionLevel: true, createdAt: true, positionTitleTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.orgPermissionDefault.findOne({ id: '', select: { id: true, permissions: true, entityId: true } }).execute(); // Create -const created = await db.orgChartEdgeGrant.create({ data: { entityId: '', childId: '', parentId: '', grantorId: '', isGrant: '', positionTitle: '', positionLevel: '', positionTitleTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.orgPermissionDefault.create({ data: { permissions: '', entityId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgChartEdgeGrant.update({ where: { id: '' }, data: { entityId: '' }, select: { id: true } }).execute(); +const updated = await db.orgPermissionDefault.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgChartEdgeGrant.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgPermissionDefault.delete({ where: { id: '' } }).execute(); ``` ### `db.appLimit` @@ -3117,16 +3094,16 @@ CRUD operations for AppLimit records. const items = await db.appLimit.findMany({ select: { id: true, name: true, actorId: true, num: true, max: true } }).execute(); // Get one by id -const item = await db.appLimit.findOne({ id: '', select: { id: true, name: true, actorId: true, num: true, max: true } }).execute(); +const item = await db.appLimit.findOne({ id: '', select: { id: true, name: true, actorId: true, num: true, max: true } }).execute(); // Create -const created = await db.appLimit.create({ data: { name: '', actorId: '', num: '', max: '' }, select: { id: true } }).execute(); +const created = await db.appLimit.create({ data: { name: '', actorId: '', num: '', max: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appLimit.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.appLimit.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appLimit.delete({ where: { id: '' } }).execute(); +const deleted = await db.appLimit.delete({ where: { id: '' } }).execute(); ``` ### `db.orgLimit` @@ -3151,16 +3128,16 @@ CRUD operations for OrgLimit records. const items = await db.orgLimit.findMany({ select: { id: true, name: true, actorId: true, num: true, max: true, entityId: true } }).execute(); // Get one by id -const item = await db.orgLimit.findOne({ id: '', select: { id: true, name: true, actorId: true, num: true, max: true, entityId: true } }).execute(); +const item = await db.orgLimit.findOne({ id: '', select: { id: true, name: true, actorId: true, num: true, max: true, entityId: true } }).execute(); // Create -const created = await db.orgLimit.create({ data: { name: '', actorId: '', num: '', max: '', entityId: '' }, select: { id: true } }).execute(); +const created = await db.orgLimit.create({ data: { name: '', actorId: '', num: '', max: '', entityId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgLimit.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.orgLimit.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgLimit.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgLimit.delete({ where: { id: '' } }).execute(); ``` ### `db.appStep` @@ -3185,16 +3162,16 @@ CRUD operations for AppStep records. const items = await db.appStep.findMany({ select: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.appStep.findOne({ id: '', select: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.appStep.findOne({ id: '', select: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.appStep.create({ data: { actorId: '', name: '', count: '' }, select: { id: true } }).execute(); +const created = await db.appStep.create({ data: { actorId: '', name: '', count: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appStep.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); +const updated = await db.appStep.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appStep.delete({ where: { id: '' } }).execute(); +const deleted = await db.appStep.delete({ where: { id: '' } }).execute(); ``` ### `db.appAchievement` @@ -3219,444 +3196,511 @@ CRUD operations for AppAchievement records. const items = await db.appAchievement.findMany({ select: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.appAchievement.findOne({ id: '', select: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.appAchievement.findOne({ id: '', select: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.appAchievement.create({ data: { actorId: '', name: '', count: '' }, select: { id: true } }).execute(); +const created = await db.appAchievement.create({ data: { actorId: '', name: '', count: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appAchievement.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); +const updated = await db.appAchievement.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appAchievement.delete({ where: { id: '' } }).execute(); +const deleted = await db.appAchievement.delete({ where: { id: '' } }).execute(); ``` -### `db.invite` +### `db.appLevel` -CRUD operations for Invite records. +CRUD operations for AppLevel records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `email` | ConstructiveInternalTypeEmail | Yes | -| `senderId` | UUID | Yes | -| `inviteToken` | String | Yes | -| `inviteValid` | Boolean | Yes | -| `inviteLimit` | Int | Yes | -| `inviteCount` | Int | Yes | -| `multiple` | Boolean | Yes | -| `data` | JSON | Yes | -| `expiresAt` | Datetime | Yes | +| `name` | String | Yes | +| `description` | String | Yes | +| `image` | ConstructiveInternalTypeImage | Yes | +| `ownerId` | UUID | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `inviteTokenTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript -// List all invite records -const items = await db.invite.findMany({ select: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true, inviteTokenTrgmSimilarity: true, searchScore: true } }).execute(); +// List all appLevel records +const items = await db.appLevel.findMany({ select: { id: true, name: true, description: true, image: true, ownerId: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.invite.findOne({ id: '', select: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true, inviteTokenTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.appLevel.findOne({ id: '', select: { id: true, name: true, description: true, image: true, ownerId: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.invite.create({ data: { email: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '', inviteTokenTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.appLevel.create({ data: { name: '', description: '', image: '', ownerId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.invite.update({ where: { id: '' }, data: { email: '' }, select: { id: true } }).execute(); +const updated = await db.appLevel.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.invite.delete({ where: { id: '' } }).execute(); +const deleted = await db.appLevel.delete({ where: { id: '' } }).execute(); ``` -### `db.claimedInvite` +### `db.email` -CRUD operations for ClaimedInvite records. +CRUD operations for Email records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `data` | JSON | Yes | -| `senderId` | UUID | Yes | -| `receiverId` | UUID | Yes | +| `ownerId` | UUID | Yes | +| `email` | ConstructiveInternalTypeEmail | Yes | +| `isVerified` | Boolean | Yes | +| `isPrimary` | Boolean | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | **Operations:** ```typescript -// List all claimedInvite records -const items = await db.claimedInvite.findMany({ select: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true } }).execute(); +// List all email records +const items = await db.email.findMany({ select: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.claimedInvite.findOne({ id: '', select: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.email.findOne({ id: '', select: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.claimedInvite.create({ data: { data: '', senderId: '', receiverId: '' }, select: { id: true } }).execute(); +const created = await db.email.create({ data: { ownerId: '', email: '', isVerified: '', isPrimary: '' }, select: { id: true } }).execute(); // Update -const updated = await db.claimedInvite.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); +const updated = await db.email.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.claimedInvite.delete({ where: { id: '' } }).execute(); +const deleted = await db.email.delete({ where: { id: '' } }).execute(); ``` -### `db.orgInvite` +### `db.phoneNumber` -CRUD operations for OrgInvite records. +CRUD operations for PhoneNumber records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `email` | ConstructiveInternalTypeEmail | Yes | -| `senderId` | UUID | Yes | -| `receiverId` | UUID | Yes | -| `inviteToken` | String | Yes | -| `inviteValid` | Boolean | Yes | -| `inviteLimit` | Int | Yes | -| `inviteCount` | Int | Yes | -| `multiple` | Boolean | Yes | -| `data` | JSON | Yes | -| `expiresAt` | Datetime | Yes | +| `ownerId` | UUID | Yes | +| `cc` | String | Yes | +| `number` | String | Yes | +| `isVerified` | Boolean | Yes | +| `isPrimary` | Boolean | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `entityId` | UUID | Yes | -| `inviteTokenTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript -// List all orgInvite records -const items = await db.orgInvite.findMany({ select: { id: true, email: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true, inviteTokenTrgmSimilarity: true, searchScore: true } }).execute(); +// List all phoneNumber records +const items = await db.phoneNumber.findMany({ select: { id: true, ownerId: true, cc: true, number: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.orgInvite.findOne({ id: '', select: { id: true, email: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true, inviteTokenTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.phoneNumber.findOne({ id: '', select: { id: true, ownerId: true, cc: true, number: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.orgInvite.create({ data: { email: '', senderId: '', receiverId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '', entityId: '', inviteTokenTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.phoneNumber.create({ data: { ownerId: '', cc: '', number: '', isVerified: '', isPrimary: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgInvite.update({ where: { id: '' }, data: { email: '' }, select: { id: true } }).execute(); +const updated = await db.phoneNumber.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgInvite.delete({ where: { id: '' } }).execute(); +const deleted = await db.phoneNumber.delete({ where: { id: '' } }).execute(); ``` -### `db.orgClaimedInvite` +### `db.cryptoAddress` -CRUD operations for OrgClaimedInvite records. +CRUD operations for CryptoAddress records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `data` | JSON | Yes | -| `senderId` | UUID | Yes | -| `receiverId` | UUID | Yes | +| `ownerId` | UUID | Yes | +| `address` | String | Yes | +| `isVerified` | Boolean | Yes | +| `isPrimary` | Boolean | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `entityId` | UUID | Yes | **Operations:** ```typescript -// List all orgClaimedInvite records -const items = await db.orgClaimedInvite.findMany({ select: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true, entityId: true } }).execute(); +// List all cryptoAddress records +const items = await db.cryptoAddress.findMany({ select: { id: true, ownerId: true, address: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.orgClaimedInvite.findOne({ id: '', select: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true, entityId: true } }).execute(); +const item = await db.cryptoAddress.findOne({ id: '', select: { id: true, ownerId: true, address: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.orgClaimedInvite.create({ data: { data: '', senderId: '', receiverId: '', entityId: '' }, select: { id: true } }).execute(); +const created = await db.cryptoAddress.create({ data: { ownerId: '', address: '', isVerified: '', isPrimary: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgClaimedInvite.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); +const updated = await db.cryptoAddress.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgClaimedInvite.delete({ where: { id: '' } }).execute(); +const deleted = await db.cryptoAddress.delete({ where: { id: '' } }).execute(); ``` -### `db.ref` +### `db.connectedAccount` -CRUD operations for Ref records. +CRUD operations for ConnectedAccount records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `name` | String | Yes | -| `databaseId` | UUID | Yes | -| `storeId` | UUID | Yes | -| `commitId` | UUID | Yes | -| `nameTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | +| `ownerId` | UUID | Yes | +| `service` | String | Yes | +| `identifier` | String | Yes | +| `details` | JSON | Yes | +| `isVerified` | Boolean | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | **Operations:** ```typescript -// List all ref records -const items = await db.ref.findMany({ select: { id: true, name: true, databaseId: true, storeId: true, commitId: true, nameTrgmSimilarity: true, searchScore: true } }).execute(); +// List all connectedAccount records +const items = await db.connectedAccount.findMany({ select: { id: true, ownerId: true, service: true, identifier: true, details: true, isVerified: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.ref.findOne({ id: '', select: { id: true, name: true, databaseId: true, storeId: true, commitId: true, nameTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.connectedAccount.findOne({ id: '', select: { id: true, ownerId: true, service: true, identifier: true, details: true, isVerified: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.ref.create({ data: { name: '', databaseId: '', storeId: '', commitId: '', nameTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.connectedAccount.create({ data: { ownerId: '', service: '', identifier: '', details: '', isVerified: '' }, select: { id: true } }).execute(); // Update -const updated = await db.ref.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.connectedAccount.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.ref.delete({ where: { id: '' } }).execute(); +const deleted = await db.connectedAccount.delete({ where: { id: '' } }).execute(); ``` -### `db.store` +### `db.invite` -CRUD operations for Store records. +CRUD operations for Invite records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `name` | String | Yes | -| `databaseId` | UUID | Yes | -| `hash` | UUID | Yes | +| `email` | ConstructiveInternalTypeEmail | Yes | +| `senderId` | UUID | Yes | +| `inviteToken` | String | Yes | +| `inviteValid` | Boolean | Yes | +| `inviteLimit` | Int | Yes | +| `inviteCount` | Int | Yes | +| `multiple` | Boolean | Yes | +| `data` | JSON | Yes | +| `expiresAt` | Datetime | Yes | | `createdAt` | Datetime | No | -| `nameTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | +| `updatedAt` | Datetime | No | **Operations:** ```typescript -// List all store records -const items = await db.store.findMany({ select: { id: true, name: true, databaseId: true, hash: true, createdAt: true, nameTrgmSimilarity: true, searchScore: true } }).execute(); +// List all invite records +const items = await db.invite.findMany({ select: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.store.findOne({ id: '', select: { id: true, name: true, databaseId: true, hash: true, createdAt: true, nameTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.invite.findOne({ id: '', select: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.store.create({ data: { name: '', databaseId: '', hash: '', nameTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.invite.create({ data: { email: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '' }, select: { id: true } }).execute(); // Update -const updated = await db.store.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.invite.update({ where: { id: '' }, data: { email: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.store.delete({ where: { id: '' } }).execute(); +const deleted = await db.invite.delete({ where: { id: '' } }).execute(); ``` -### `db.appPermissionDefault` +### `db.claimedInvite` -CRUD operations for AppPermissionDefault records. +CRUD operations for ClaimedInvite records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `permissions` | BitString | Yes | +| `data` | JSON | Yes | +| `senderId` | UUID | Yes | +| `receiverId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | **Operations:** ```typescript -// List all appPermissionDefault records -const items = await db.appPermissionDefault.findMany({ select: { id: true, permissions: true } }).execute(); +// List all claimedInvite records +const items = await db.claimedInvite.findMany({ select: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.appPermissionDefault.findOne({ id: '', select: { id: true, permissions: true } }).execute(); +const item = await db.claimedInvite.findOne({ id: '', select: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.appPermissionDefault.create({ data: { permissions: '' }, select: { id: true } }).execute(); +const created = await db.claimedInvite.create({ data: { data: '', senderId: '', receiverId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appPermissionDefault.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); +const updated = await db.claimedInvite.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appPermissionDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.claimedInvite.delete({ where: { id: '' } }).execute(); ``` -### `db.cryptoAddress` +### `db.orgInvite` -CRUD operations for CryptoAddress records. +CRUD operations for OrgInvite records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `ownerId` | UUID | Yes | -| `address` | String | Yes | -| `isVerified` | Boolean | Yes | -| `isPrimary` | Boolean | Yes | +| `email` | ConstructiveInternalTypeEmail | Yes | +| `senderId` | UUID | Yes | +| `receiverId` | UUID | Yes | +| `inviteToken` | String | Yes | +| `inviteValid` | Boolean | Yes | +| `inviteLimit` | Int | Yes | +| `inviteCount` | Int | Yes | +| `multiple` | Boolean | Yes | +| `data` | JSON | Yes | +| `expiresAt` | Datetime | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `addressTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | +| `entityId` | UUID | Yes | **Operations:** ```typescript -// List all cryptoAddress records -const items = await db.cryptoAddress.findMany({ select: { id: true, ownerId: true, address: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true, addressTrgmSimilarity: true, searchScore: true } }).execute(); +// List all orgInvite records +const items = await db.orgInvite.findMany({ select: { id: true, email: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true } }).execute(); // Get one by id -const item = await db.cryptoAddress.findOne({ id: '', select: { id: true, ownerId: true, address: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true, addressTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.orgInvite.findOne({ id: '', select: { id: true, email: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true } }).execute(); // Create -const created = await db.cryptoAddress.create({ data: { ownerId: '', address: '', isVerified: '', isPrimary: '', addressTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.orgInvite.create({ data: { email: '', senderId: '', receiverId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '', entityId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.cryptoAddress.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); +const updated = await db.orgInvite.update({ where: { id: '' }, data: { email: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.cryptoAddress.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgInvite.delete({ where: { id: '' } }).execute(); ``` -### `db.roleType` +### `db.orgClaimedInvite` -CRUD operations for RoleType records. +CRUD operations for OrgClaimedInvite records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `id` | Int | No | -| `name` | String | Yes | +| `id` | UUID | No | +| `data` | JSON | Yes | +| `senderId` | UUID | Yes | +| `receiverId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `entityId` | UUID | Yes | **Operations:** ```typescript -// List all roleType records -const items = await db.roleType.findMany({ select: { id: true, name: true } }).execute(); +// List all orgClaimedInvite records +const items = await db.orgClaimedInvite.findMany({ select: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true, entityId: true } }).execute(); // Get one by id -const item = await db.roleType.findOne({ id: '', select: { id: true, name: true } }).execute(); +const item = await db.orgClaimedInvite.findOne({ id: '', select: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true, entityId: true } }).execute(); // Create -const created = await db.roleType.create({ data: { name: '' }, select: { id: true } }).execute(); +const created = await db.orgClaimedInvite.create({ data: { data: '', senderId: '', receiverId: '', entityId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.roleType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.orgClaimedInvite.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.roleType.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgClaimedInvite.delete({ where: { id: '' } }).execute(); ``` -### `db.orgPermissionDefault` +### `db.auditLog` -CRUD operations for OrgPermissionDefault records. +CRUD operations for AuditLog records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `permissions` | BitString | Yes | -| `entityId` | UUID | Yes | +| `event` | String | Yes | +| `actorId` | UUID | Yes | +| `origin` | ConstructiveInternalTypeOrigin | Yes | +| `userAgent` | String | Yes | +| `ipAddress` | InternetAddress | Yes | +| `success` | Boolean | Yes | +| `createdAt` | Datetime | No | **Operations:** ```typescript -// List all orgPermissionDefault records -const items = await db.orgPermissionDefault.findMany({ select: { id: true, permissions: true, entityId: true } }).execute(); +// List all auditLog records +const items = await db.auditLog.findMany({ select: { id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true, createdAt: true } }).execute(); // Get one by id -const item = await db.orgPermissionDefault.findOne({ id: '', select: { id: true, permissions: true, entityId: true } }).execute(); +const item = await db.auditLog.findOne({ id: '', select: { id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true, createdAt: true } }).execute(); // Create -const created = await db.orgPermissionDefault.create({ data: { permissions: '', entityId: '' }, select: { id: true } }).execute(); +const created = await db.auditLog.create({ data: { event: '', actorId: '', origin: '', userAgent: '', ipAddress: '', success: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgPermissionDefault.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); +const updated = await db.auditLog.update({ where: { id: '' }, data: { event: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgPermissionDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.auditLog.delete({ where: { id: '' } }).execute(); ``` -### `db.phoneNumber` +### `db.ref` -CRUD operations for PhoneNumber records. +CRUD operations for Ref records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `ownerId` | UUID | Yes | -| `cc` | String | Yes | -| `number` | String | Yes | -| `isVerified` | Boolean | Yes | -| `isPrimary` | Boolean | Yes | +| `name` | String | Yes | +| `databaseId` | UUID | Yes | +| `storeId` | UUID | Yes | +| `commitId` | UUID | Yes | + +**Operations:** + +```typescript +// List all ref records +const items = await db.ref.findMany({ select: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }).execute(); + +// Get one by id +const item = await db.ref.findOne({ id: '', select: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }).execute(); + +// Create +const created = await db.ref.create({ data: { name: '', databaseId: '', storeId: '', commitId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.ref.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.ref.delete({ where: { id: '' } }).execute(); +``` + +### `db.store` + +CRUD operations for Store records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `databaseId` | UUID | Yes | +| `hash` | UUID | Yes | | `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `ccTrgmSimilarity` | Float | Yes | -| `numberTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript -// List all phoneNumber records -const items = await db.phoneNumber.findMany({ select: { id: true, ownerId: true, cc: true, number: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true, ccTrgmSimilarity: true, numberTrgmSimilarity: true, searchScore: true } }).execute(); +// List all store records +const items = await db.store.findMany({ select: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }).execute(); // Get one by id -const item = await db.phoneNumber.findOne({ id: '', select: { id: true, ownerId: true, cc: true, number: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true, ccTrgmSimilarity: true, numberTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.store.findOne({ id: '', select: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }).execute(); // Create -const created = await db.phoneNumber.create({ data: { ownerId: '', cc: '', number: '', isVerified: '', isPrimary: '', ccTrgmSimilarity: '', numberTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.store.create({ data: { name: '', databaseId: '', hash: '' }, select: { id: true } }).execute(); // Update -const updated = await db.phoneNumber.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); +const updated = await db.store.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.phoneNumber.delete({ where: { id: '' } }).execute(); +const deleted = await db.store.delete({ where: { id: '' } }).execute(); ``` -### `db.appLimitDefault` +### `db.appPermissionDefault` -CRUD operations for AppLimitDefault records. +CRUD operations for AppPermissionDefault records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | +| `permissions` | BitString | Yes | + +**Operations:** + +```typescript +// List all appPermissionDefault records +const items = await db.appPermissionDefault.findMany({ select: { id: true, permissions: true } }).execute(); + +// Get one by id +const item = await db.appPermissionDefault.findOne({ id: '', select: { id: true, permissions: true } }).execute(); + +// Create +const created = await db.appPermissionDefault.create({ data: { permissions: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appPermissionDefault.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appPermissionDefault.delete({ where: { id: '' } }).execute(); +``` + +### `db.roleType` + +CRUD operations for RoleType records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | Int | No | | `name` | String | Yes | -| `max` | Int | Yes | **Operations:** ```typescript -// List all appLimitDefault records -const items = await db.appLimitDefault.findMany({ select: { id: true, name: true, max: true } }).execute(); +// List all roleType records +const items = await db.roleType.findMany({ select: { id: true, name: true } }).execute(); // Get one by id -const item = await db.appLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true } }).execute(); +const item = await db.roleType.findOne({ id: '', select: { id: true, name: true } }).execute(); // Create -const created = await db.appLimitDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute(); +const created = await db.roleType.create({ data: { name: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.roleType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appLimitDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.roleType.delete({ where: { id: '' } }).execute(); ``` -### `db.orgLimitDefault` +### `db.appLimitDefault` -CRUD operations for OrgLimitDefault records. +CRUD operations for AppLimitDefault records. **Fields:** @@ -3669,59 +3713,51 @@ CRUD operations for OrgLimitDefault records. **Operations:** ```typescript -// List all orgLimitDefault records -const items = await db.orgLimitDefault.findMany({ select: { id: true, name: true, max: true } }).execute(); +// List all appLimitDefault records +const items = await db.appLimitDefault.findMany({ select: { id: true, name: true, max: true } }).execute(); // Get one by id -const item = await db.orgLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true } }).execute(); +const item = await db.appLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true } }).execute(); // Create -const created = await db.orgLimitDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute(); +const created = await db.appLimitDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.appLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgLimitDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.appLimitDefault.delete({ where: { id: '' } }).execute(); ``` -### `db.connectedAccount` +### `db.orgLimitDefault` -CRUD operations for ConnectedAccount records. +CRUD operations for OrgLimitDefault records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `ownerId` | UUID | Yes | -| `service` | String | Yes | -| `identifier` | String | Yes | -| `details` | JSON | Yes | -| `isVerified` | Boolean | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `serviceTrgmSimilarity` | Float | Yes | -| `identifierTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | +| `name` | String | Yes | +| `max` | Int | Yes | **Operations:** ```typescript -// List all connectedAccount records -const items = await db.connectedAccount.findMany({ select: { id: true, ownerId: true, service: true, identifier: true, details: true, isVerified: true, createdAt: true, updatedAt: true, serviceTrgmSimilarity: true, identifierTrgmSimilarity: true, searchScore: true } }).execute(); +// List all orgLimitDefault records +const items = await db.orgLimitDefault.findMany({ select: { id: true, name: true, max: true } }).execute(); // Get one by id -const item = await db.connectedAccount.findOne({ id: '', select: { id: true, ownerId: true, service: true, identifier: true, details: true, isVerified: true, createdAt: true, updatedAt: true, serviceTrgmSimilarity: true, identifierTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.orgLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true } }).execute(); // Create -const created = await db.connectedAccount.create({ data: { ownerId: '', service: '', identifier: '', details: '', isVerified: '', serviceTrgmSimilarity: '', identifierTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.orgLimitDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute(); // Update -const updated = await db.connectedAccount.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); +const updated = await db.orgLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.connectedAccount.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgLimitDefault.delete({ where: { id: '' } }).execute(); ``` ### `db.nodeTypeRegistry` @@ -3741,30 +3777,24 @@ CRUD operations for NodeTypeRegistry records. | `tags` | String | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `nameTrgmSimilarity` | Float | Yes | -| `slugTrgmSimilarity` | Float | Yes | -| `categoryTrgmSimilarity` | Float | Yes | -| `displayNameTrgmSimilarity` | Float | Yes | -| `descriptionTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all nodeTypeRegistry records -const items = await db.nodeTypeRegistry.findMany({ select: { name: true, slug: true, category: true, displayName: true, description: true, parameterSchema: true, tags: true, createdAt: true, updatedAt: true, nameTrgmSimilarity: true, slugTrgmSimilarity: true, categoryTrgmSimilarity: true, displayNameTrgmSimilarity: true, descriptionTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.nodeTypeRegistry.findMany({ select: { name: true, slug: true, category: true, displayName: true, description: true, parameterSchema: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Get one by name -const item = await db.nodeTypeRegistry.findOne({ name: '', select: { name: true, slug: true, category: true, displayName: true, description: true, parameterSchema: true, tags: true, createdAt: true, updatedAt: true, nameTrgmSimilarity: true, slugTrgmSimilarity: true, categoryTrgmSimilarity: true, displayNameTrgmSimilarity: true, descriptionTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.nodeTypeRegistry.findOne({ name: '', select: { name: true, slug: true, category: true, displayName: true, description: true, parameterSchema: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.nodeTypeRegistry.create({ data: { slug: '', category: '', displayName: '', description: '', parameterSchema: '', tags: '', nameTrgmSimilarity: '', slugTrgmSimilarity: '', categoryTrgmSimilarity: '', displayNameTrgmSimilarity: '', descriptionTrgmSimilarity: '', searchScore: '' }, select: { name: true } }).execute(); +const created = await db.nodeTypeRegistry.create({ data: { slug: '', category: '', displayName: '', description: '', parameterSchema: '', tags: '' }, select: { name: true } }).execute(); // Update -const updated = await db.nodeTypeRegistry.update({ where: { name: '' }, data: { slug: '' }, select: { name: true } }).execute(); +const updated = await db.nodeTypeRegistry.update({ where: { name: '' }, data: { slug: '' }, select: { name: true } }).execute(); // Delete -const deleted = await db.nodeTypeRegistry.delete({ where: { name: '' } }).execute(); +const deleted = await db.nodeTypeRegistry.delete({ where: { name: '' } }).execute(); ``` ### `db.membershipType` @@ -3779,27 +3809,24 @@ CRUD operations for MembershipType records. | `name` | String | Yes | | `description` | String | Yes | | `prefix` | String | Yes | -| `descriptionTrgmSimilarity` | Float | Yes | -| `prefixTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all membershipType records -const items = await db.membershipType.findMany({ select: { id: true, name: true, description: true, prefix: true, descriptionTrgmSimilarity: true, prefixTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.membershipType.findMany({ select: { id: true, name: true, description: true, prefix: true } }).execute(); // Get one by id -const item = await db.membershipType.findOne({ id: '', select: { id: true, name: true, description: true, prefix: true, descriptionTrgmSimilarity: true, prefixTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.membershipType.findOne({ id: '', select: { id: true, name: true, description: true, prefix: true } }).execute(); // Create -const created = await db.membershipType.create({ data: { name: '', description: '', prefix: '', descriptionTrgmSimilarity: '', prefixTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.membershipType.create({ data: { name: '', description: '', prefix: '' }, select: { id: true } }).execute(); // Update -const updated = await db.membershipType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.membershipType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.membershipType.delete({ where: { id: '' } }).execute(); +const deleted = await db.membershipType.delete({ where: { id: '' } }).execute(); ``` ### `db.commit` @@ -3819,26 +3846,24 @@ CRUD operations for Commit records. | `committerId` | UUID | Yes | | `treeId` | UUID | Yes | | `date` | Datetime | Yes | -| `messageTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all commit records -const items = await db.commit.findMany({ select: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true, messageTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.commit.findMany({ select: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }).execute(); // Get one by id -const item = await db.commit.findOne({ id: '', select: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true, messageTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.commit.findOne({ id: '', select: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }).execute(); // Create -const created = await db.commit.create({ data: { message: '', databaseId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '', messageTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.commit.create({ data: { message: '', databaseId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }, select: { id: true } }).execute(); // Update -const updated = await db.commit.update({ where: { id: '' }, data: { message: '' }, select: { id: true } }).execute(); +const updated = await db.commit.update({ where: { id: '' }, data: { message: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.commit.delete({ where: { id: '' } }).execute(); +const deleted = await db.commit.delete({ where: { id: '' } }).execute(); ``` ### `db.appMembershipDefault` @@ -3864,16 +3889,16 @@ CRUD operations for AppMembershipDefault records. const items = await db.appMembershipDefault.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }).execute(); // Get one by id -const item = await db.appMembershipDefault.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }).execute(); +const item = await db.appMembershipDefault.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isVerified: true } }).execute(); // Create -const created = await db.appMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isVerified: '' }, select: { id: true } }).execute(); +const created = await db.appMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isVerified: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); +const updated = await db.appMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appMembershipDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.appMembershipDefault.delete({ where: { id: '' } }).execute(); ``` ### `db.rlsModule` @@ -3895,29 +3920,24 @@ CRUD operations for RlsModule records. | `authenticateStrict` | String | Yes | | `currentRole` | String | Yes | | `currentRoleId` | String | Yes | -| `authenticateTrgmSimilarity` | Float | Yes | -| `authenticateStrictTrgmSimilarity` | Float | Yes | -| `currentRoleTrgmSimilarity` | Float | Yes | -| `currentRoleIdTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all rlsModule records -const items = await db.rlsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, sessionCredentialsTableId: true, sessionsTableId: true, usersTableId: true, authenticate: true, authenticateStrict: true, currentRole: true, currentRoleId: true, authenticateTrgmSimilarity: true, authenticateStrictTrgmSimilarity: true, currentRoleTrgmSimilarity: true, currentRoleIdTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.rlsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, sessionCredentialsTableId: true, sessionsTableId: true, usersTableId: true, authenticate: true, authenticateStrict: true, currentRole: true, currentRoleId: true } }).execute(); // Get one by id -const item = await db.rlsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, sessionCredentialsTableId: true, sessionsTableId: true, usersTableId: true, authenticate: true, authenticateStrict: true, currentRole: true, currentRoleId: true, authenticateTrgmSimilarity: true, authenticateStrictTrgmSimilarity: true, currentRoleTrgmSimilarity: true, currentRoleIdTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.rlsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, sessionCredentialsTableId: true, sessionsTableId: true, usersTableId: true, authenticate: true, authenticateStrict: true, currentRole: true, currentRoleId: true } }).execute(); // Create -const created = await db.rlsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', sessionCredentialsTableId: '', sessionsTableId: '', usersTableId: '', authenticate: '', authenticateStrict: '', currentRole: '', currentRoleId: '', authenticateTrgmSimilarity: '', authenticateStrictTrgmSimilarity: '', currentRoleTrgmSimilarity: '', currentRoleIdTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.rlsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', sessionCredentialsTableId: '', sessionsTableId: '', usersTableId: '', authenticate: '', authenticateStrict: '', currentRole: '', currentRoleId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.rlsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.rlsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.rlsModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.rlsModule.delete({ where: { id: '' } }).execute(); ``` ### `db.orgMembershipDefault` @@ -3945,91 +3965,16 @@ CRUD operations for OrgMembershipDefault records. const items = await db.orgMembershipDefault.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true, deleteMemberCascadeGroups: true, createGroupsCascadeMembers: true } }).execute(); // Get one by id -const item = await db.orgMembershipDefault.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true, deleteMemberCascadeGroups: true, createGroupsCascadeMembers: true } }).execute(); - -// Create -const created = await db.orgMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', entityId: '', deleteMemberCascadeGroups: '', createGroupsCascadeMembers: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgMembershipDefault.delete({ where: { id: '' } }).execute(); -``` - -### `db.auditLog` - -CRUD operations for AuditLog records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `event` | String | Yes | -| `actorId` | UUID | Yes | -| `origin` | ConstructiveInternalTypeOrigin | Yes | -| `userAgent` | String | Yes | -| `ipAddress` | InternetAddress | Yes | -| `success` | Boolean | Yes | -| `createdAt` | Datetime | No | -| `userAgentTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | - -**Operations:** - -```typescript -// List all auditLog records -const items = await db.auditLog.findMany({ select: { id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true, createdAt: true, userAgentTrgmSimilarity: true, searchScore: true } }).execute(); - -// Get one by id -const item = await db.auditLog.findOne({ id: '', select: { id: true, event: true, actorId: true, origin: true, userAgent: true, ipAddress: true, success: true, createdAt: true, userAgentTrgmSimilarity: true, searchScore: true } }).execute(); - -// Create -const created = await db.auditLog.create({ data: { event: '', actorId: '', origin: '', userAgent: '', ipAddress: '', success: '', userAgentTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.auditLog.update({ where: { id: '' }, data: { event: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.auditLog.delete({ where: { id: '' } }).execute(); -``` - -### `db.appLevel` - -CRUD operations for AppLevel records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `name` | String | Yes | -| `description` | String | Yes | -| `image` | ConstructiveInternalTypeImage | Yes | -| `ownerId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `descriptionTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | - -**Operations:** - -```typescript -// List all appLevel records -const items = await db.appLevel.findMany({ select: { id: true, name: true, description: true, image: true, ownerId: true, createdAt: true, updatedAt: true, descriptionTrgmSimilarity: true, searchScore: true } }).execute(); - -// Get one by id -const item = await db.appLevel.findOne({ id: '', select: { id: true, name: true, description: true, image: true, ownerId: true, createdAt: true, updatedAt: true, descriptionTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.orgMembershipDefault.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, entityId: true, deleteMemberCascadeGroups: true, createGroupsCascadeMembers: true } }).execute(); // Create -const created = await db.appLevel.create({ data: { name: '', description: '', image: '', ownerId: '', descriptionTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.orgMembershipDefault.create({ data: { createdBy: '', updatedBy: '', isApproved: '', entityId: '', deleteMemberCascadeGroups: '', createGroupsCascadeMembers: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appLevel.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.orgMembershipDefault.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appLevel.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgMembershipDefault.delete({ where: { id: '' } }).execute(); ``` ### `db.sqlMigration` @@ -4053,66 +3998,24 @@ CRUD operations for SqlMigration records. | `action` | String | Yes | | `actionId` | UUID | Yes | | `actorId` | UUID | Yes | -| `nameTrgmSimilarity` | Float | Yes | -| `deployTrgmSimilarity` | Float | Yes | -| `contentTrgmSimilarity` | Float | Yes | -| `revertTrgmSimilarity` | Float | Yes | -| `verifyTrgmSimilarity` | Float | Yes | -| `actionTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all sqlMigration records -const items = await db.sqlMigration.findMany({ select: { id: true, name: true, databaseId: true, deploy: true, deps: true, payload: true, content: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true, nameTrgmSimilarity: true, deployTrgmSimilarity: true, contentTrgmSimilarity: true, revertTrgmSimilarity: true, verifyTrgmSimilarity: true, actionTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.sqlMigration.findMany({ select: { id: true, name: true, databaseId: true, deploy: true, deps: true, payload: true, content: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } }).execute(); // Get one by id -const item = await db.sqlMigration.findOne({ id: '', select: { id: true, name: true, databaseId: true, deploy: true, deps: true, payload: true, content: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true, nameTrgmSimilarity: true, deployTrgmSimilarity: true, contentTrgmSimilarity: true, revertTrgmSimilarity: true, verifyTrgmSimilarity: true, actionTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.sqlMigration.findOne({ id: '', select: { id: true, name: true, databaseId: true, deploy: true, deps: true, payload: true, content: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } }).execute(); // Create -const created = await db.sqlMigration.create({ data: { name: '', databaseId: '', deploy: '', deps: '', payload: '', content: '', revert: '', verify: '', action: '', actionId: '', actorId: '', nameTrgmSimilarity: '', deployTrgmSimilarity: '', contentTrgmSimilarity: '', revertTrgmSimilarity: '', verifyTrgmSimilarity: '', actionTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.sqlMigration.create({ data: { name: '', databaseId: '', deploy: '', deps: '', payload: '', content: '', revert: '', verify: '', action: '', actionId: '', actorId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.sqlMigration.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.sqlMigration.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.sqlMigration.delete({ where: { id: '' } }).execute(); -``` - -### `db.email` - -CRUD operations for Email records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `ownerId` | UUID | Yes | -| `email` | ConstructiveInternalTypeEmail | Yes | -| `isVerified` | Boolean | Yes | -| `isPrimary` | Boolean | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all email records -const items = await db.email.findMany({ select: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.email.findOne({ id: '', select: { id: true, ownerId: true, email: true, isVerified: true, isPrimary: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.email.create({ data: { ownerId: '', email: '', isVerified: '', isPrimary: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.email.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.email.delete({ where: { id: '' } }).execute(); +const deleted = await db.sqlMigration.delete({ where: { id: '' } }).execute(); ``` ### `db.user` @@ -4142,16 +4045,16 @@ CRUD operations for User records. const items = await db.user.findMany({ select: { id: true, username: true, displayName: true, profilePicture: true, searchTsv: true, type: true, createdAt: true, updatedAt: true, searchTsvRank: true, displayNameTrgmSimilarity: true, searchScore: true } }).execute(); // Get one by id -const item = await db.user.findOne({ id: '', select: { id: true, username: true, displayName: true, profilePicture: true, searchTsv: true, type: true, createdAt: true, updatedAt: true, searchTsvRank: true, displayNameTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.user.findOne({ id: '', select: { id: true, username: true, displayName: true, profilePicture: true, searchTsv: true, type: true, createdAt: true, updatedAt: true, searchTsvRank: true, displayNameTrgmSimilarity: true, searchScore: true } }).execute(); // Create -const created = await db.user.create({ data: { username: '', displayName: '', profilePicture: '', searchTsv: '', type: '', searchTsvRank: '', displayNameTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.user.create({ data: { username: '', displayName: '', profilePicture: '', searchTsv: '', type: '', searchTsvRank: '', displayNameTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); // Update -const updated = await db.user.update({ where: { id: '' }, data: { username: '' }, select: { id: true } }).execute(); +const updated = await db.user.update({ where: { id: '' }, data: { username: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.user.delete({ where: { id: '' } }).execute(); +const deleted = await db.user.delete({ where: { id: '' } }).execute(); ``` ### `db.astMigration` @@ -4175,26 +4078,24 @@ CRUD operations for AstMigration records. | `action` | String | Yes | | `actionId` | UUID | Yes | | `actorId` | UUID | Yes | -| `actionTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all astMigration records -const items = await db.astMigration.findMany({ select: { id: true, databaseId: true, name: true, requires: true, payload: true, deploys: true, deploy: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true, actionTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.astMigration.findMany({ select: { id: true, databaseId: true, name: true, requires: true, payload: true, deploys: true, deploy: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } }).execute(); // Get one by id -const item = await db.astMigration.findOne({ id: '', select: { id: true, databaseId: true, name: true, requires: true, payload: true, deploys: true, deploy: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true, actionTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.astMigration.findOne({ id: '', select: { id: true, databaseId: true, name: true, requires: true, payload: true, deploys: true, deploy: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } }).execute(); // Create -const created = await db.astMigration.create({ data: { databaseId: '', name: '', requires: '', payload: '', deploys: '', deploy: '', revert: '', verify: '', action: '', actionId: '', actorId: '', actionTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.astMigration.create({ data: { databaseId: '', name: '', requires: '', payload: '', deploys: '', deploy: '', revert: '', verify: '', action: '', actionId: '', actorId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.astMigration.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.astMigration.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.astMigration.delete({ where: { id: '' } }).execute(); +const deleted = await db.astMigration.delete({ where: { id: '' } }).execute(); ``` ### `db.appMembership` @@ -4229,16 +4130,16 @@ CRUD operations for AppMembership records. const items = await db.appMembership.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }).execute(); // Get one by id -const item = await db.appMembership.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }).execute(); +const item = await db.appMembership.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }).execute(); // Create -const created = await db.appMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', profileId: '' }, select: { id: true } }).execute(); +const created = await db.appMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', profileId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); +const updated = await db.appMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appMembership.delete({ where: { id: '' } }).execute(); +const deleted = await db.appMembership.delete({ where: { id: '' } }).execute(); ``` ### `db.hierarchyModule` @@ -4269,35 +4170,24 @@ CRUD operations for HierarchyModule records. | `getManagersFunction` | String | Yes | | `isManagerOfFunction` | String | Yes | | `createdAt` | Datetime | No | -| `chartEdgesTableNameTrgmSimilarity` | Float | Yes | -| `hierarchySprtTableNameTrgmSimilarity` | Float | Yes | -| `chartEdgeGrantsTableNameTrgmSimilarity` | Float | Yes | -| `prefixTrgmSimilarity` | Float | Yes | -| `privateSchemaNameTrgmSimilarity` | Float | Yes | -| `sprtTableNameTrgmSimilarity` | Float | Yes | -| `rebuildHierarchyFunctionTrgmSimilarity` | Float | Yes | -| `getSubordinatesFunctionTrgmSimilarity` | Float | Yes | -| `getManagersFunctionTrgmSimilarity` | Float | Yes | -| `isManagerOfFunctionTrgmSimilarity` | Float | Yes | -| `searchScore` | Float | Yes | **Operations:** ```typescript // List all hierarchyModule records -const items = await db.hierarchyModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, chartEdgesTableId: true, chartEdgesTableName: true, hierarchySprtTableId: true, hierarchySprtTableName: true, chartEdgeGrantsTableId: true, chartEdgeGrantsTableName: true, entityTableId: true, usersTableId: true, prefix: true, privateSchemaName: true, sprtTableName: true, rebuildHierarchyFunction: true, getSubordinatesFunction: true, getManagersFunction: true, isManagerOfFunction: true, createdAt: true, chartEdgesTableNameTrgmSimilarity: true, hierarchySprtTableNameTrgmSimilarity: true, chartEdgeGrantsTableNameTrgmSimilarity: true, prefixTrgmSimilarity: true, privateSchemaNameTrgmSimilarity: true, sprtTableNameTrgmSimilarity: true, rebuildHierarchyFunctionTrgmSimilarity: true, getSubordinatesFunctionTrgmSimilarity: true, getManagersFunctionTrgmSimilarity: true, isManagerOfFunctionTrgmSimilarity: true, searchScore: true } }).execute(); +const items = await db.hierarchyModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, chartEdgesTableId: true, chartEdgesTableName: true, hierarchySprtTableId: true, hierarchySprtTableName: true, chartEdgeGrantsTableId: true, chartEdgeGrantsTableName: true, entityTableId: true, usersTableId: true, prefix: true, privateSchemaName: true, sprtTableName: true, rebuildHierarchyFunction: true, getSubordinatesFunction: true, getManagersFunction: true, isManagerOfFunction: true, createdAt: true } }).execute(); // Get one by id -const item = await db.hierarchyModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, chartEdgesTableId: true, chartEdgesTableName: true, hierarchySprtTableId: true, hierarchySprtTableName: true, chartEdgeGrantsTableId: true, chartEdgeGrantsTableName: true, entityTableId: true, usersTableId: true, prefix: true, privateSchemaName: true, sprtTableName: true, rebuildHierarchyFunction: true, getSubordinatesFunction: true, getManagersFunction: true, isManagerOfFunction: true, createdAt: true, chartEdgesTableNameTrgmSimilarity: true, hierarchySprtTableNameTrgmSimilarity: true, chartEdgeGrantsTableNameTrgmSimilarity: true, prefixTrgmSimilarity: true, privateSchemaNameTrgmSimilarity: true, sprtTableNameTrgmSimilarity: true, rebuildHierarchyFunctionTrgmSimilarity: true, getSubordinatesFunctionTrgmSimilarity: true, getManagersFunctionTrgmSimilarity: true, isManagerOfFunctionTrgmSimilarity: true, searchScore: true } }).execute(); +const item = await db.hierarchyModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, chartEdgesTableId: true, chartEdgesTableName: true, hierarchySprtTableId: true, hierarchySprtTableName: true, chartEdgeGrantsTableId: true, chartEdgeGrantsTableName: true, entityTableId: true, usersTableId: true, prefix: true, privateSchemaName: true, sprtTableName: true, rebuildHierarchyFunction: true, getSubordinatesFunction: true, getManagersFunction: true, isManagerOfFunction: true, createdAt: true } }).execute(); // Create -const created = await db.hierarchyModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', chartEdgesTableId: '', chartEdgesTableName: '', hierarchySprtTableId: '', hierarchySprtTableName: '', chartEdgeGrantsTableId: '', chartEdgeGrantsTableName: '', entityTableId: '', usersTableId: '', prefix: '', privateSchemaName: '', sprtTableName: '', rebuildHierarchyFunction: '', getSubordinatesFunction: '', getManagersFunction: '', isManagerOfFunction: '', chartEdgesTableNameTrgmSimilarity: '', hierarchySprtTableNameTrgmSimilarity: '', chartEdgeGrantsTableNameTrgmSimilarity: '', prefixTrgmSimilarity: '', privateSchemaNameTrgmSimilarity: '', sprtTableNameTrgmSimilarity: '', rebuildHierarchyFunctionTrgmSimilarity: '', getSubordinatesFunctionTrgmSimilarity: '', getManagersFunctionTrgmSimilarity: '', isManagerOfFunctionTrgmSimilarity: '', searchScore: '' }, select: { id: true } }).execute(); +const created = await db.hierarchyModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', chartEdgesTableId: '', chartEdgesTableName: '', hierarchySprtTableId: '', hierarchySprtTableName: '', chartEdgeGrantsTableId: '', chartEdgeGrantsTableName: '', entityTableId: '', usersTableId: '', prefix: '', privateSchemaName: '', sprtTableName: '', rebuildHierarchyFunction: '', getSubordinatesFunction: '', getManagersFunction: '', isManagerOfFunction: '' }, select: { id: true } }).execute(); // Update -const updated = await db.hierarchyModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.hierarchyModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.hierarchyModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.hierarchyModule.delete({ where: { id: '' } }).execute(); ``` ## Custom Operations @@ -4347,7 +4237,7 @@ appPermissionsGetPaddedMask | `mask` | BitString | ```typescript -const result = await db.query.appPermissionsGetPaddedMask({ mask: '' }).execute(); +const result = await db.query.appPermissionsGetPaddedMask({ mask: '' }).execute(); ``` ### `db.query.orgPermissionsGetPaddedMask` @@ -4362,7 +4252,7 @@ orgPermissionsGetPaddedMask | `mask` | BitString | ```typescript -const result = await db.query.orgPermissionsGetPaddedMask({ mask: '' }).execute(); +const result = await db.query.orgPermissionsGetPaddedMask({ mask: '' }).execute(); ``` ### `db.query.stepsAchieved` @@ -4378,7 +4268,7 @@ stepsAchieved | `vroleId` | UUID | ```typescript -const result = await db.query.stepsAchieved({ vlevel: '', vroleId: '' }).execute(); +const result = await db.query.stepsAchieved({ vlevel: '', vroleId: '' }).execute(); ``` ### `db.query.revParse` @@ -4395,7 +4285,7 @@ revParse | `refname` | String | ```typescript -const result = await db.query.revParse({ dbId: '', storeId: '', refname: '' }).execute(); +const result = await db.query.revParse({ dbId: '', storeId: '', refname: '' }).execute(); ``` ### `db.query.orgIsManagerOf` @@ -4413,7 +4303,7 @@ orgIsManagerOf | `pMaxDepth` | Int | ```typescript -const result = await db.query.orgIsManagerOf({ pEntityId: '', pManagerId: '', pUserId: '', pMaxDepth: '' }).execute(); +const result = await db.query.orgIsManagerOf({ pEntityId: '', pManagerId: '', pUserId: '', pMaxDepth: '' }).execute(); ``` ### `db.query.appPermissionsGetMask` @@ -4428,7 +4318,7 @@ appPermissionsGetMask | `ids` | [UUID] | ```typescript -const result = await db.query.appPermissionsGetMask({ ids: '' }).execute(); +const result = await db.query.appPermissionsGetMask({ ids: '' }).execute(); ``` ### `db.query.orgPermissionsGetMask` @@ -4443,7 +4333,7 @@ orgPermissionsGetMask | `ids` | [UUID] | ```typescript -const result = await db.query.orgPermissionsGetMask({ ids: '' }).execute(); +const result = await db.query.orgPermissionsGetMask({ ids: '' }).execute(); ``` ### `db.query.appPermissionsGetMaskByNames` @@ -4458,7 +4348,7 @@ appPermissionsGetMaskByNames | `names` | [String] | ```typescript -const result = await db.query.appPermissionsGetMaskByNames({ names: '' }).execute(); +const result = await db.query.appPermissionsGetMaskByNames({ names: '' }).execute(); ``` ### `db.query.orgPermissionsGetMaskByNames` @@ -4473,7 +4363,7 @@ orgPermissionsGetMaskByNames | `names` | [String] | ```typescript -const result = await db.query.orgPermissionsGetMaskByNames({ names: '' }).execute(); +const result = await db.query.orgPermissionsGetMaskByNames({ names: '' }).execute(); ``` ### `db.query.getAllObjectsFromRoot` @@ -4492,7 +4382,7 @@ Reads and enables pagination through a set of `Object`. | `after` | Cursor | ```typescript -const result = await db.query.getAllObjectsFromRoot({ databaseId: '', id: '', first: '', offset: '', after: '' }).execute(); +const result = await db.query.getAllObjectsFromRoot({ databaseId: '', id: '', first: '', offset: '', after: '' }).execute(); ``` ### `db.query.getPathObjectsFromRoot` @@ -4512,7 +4402,7 @@ Reads and enables pagination through a set of `Object`. | `after` | Cursor | ```typescript -const result = await db.query.getPathObjectsFromRoot({ databaseId: '', id: '', path: '', first: '', offset: '', after: '' }).execute(); +const result = await db.query.getPathObjectsFromRoot({ databaseId: '', id: '', path: '', first: '', offset: '', after: '' }).execute(); ``` ### `db.query.getObjectAtPath` @@ -4530,7 +4420,7 @@ getObjectAtPath | `refname` | String | ```typescript -const result = await db.query.getObjectAtPath({ dbId: '', storeId: '', path: '', refname: '' }).execute(); +const result = await db.query.getObjectAtPath({ dbId: '', storeId: '', path: '', refname: '' }).execute(); ``` ### `db.query.appPermissionsGetByMask` @@ -4548,7 +4438,7 @@ Reads and enables pagination through a set of `AppPermission`. | `after` | Cursor | ```typescript -const result = await db.query.appPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute(); +const result = await db.query.appPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute(); ``` ### `db.query.orgPermissionsGetByMask` @@ -4566,7 +4456,7 @@ Reads and enables pagination through a set of `OrgPermission`. | `after` | Cursor | ```typescript -const result = await db.query.orgPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute(); +const result = await db.query.orgPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute(); ``` ### `db.query.stepsRequired` @@ -4585,7 +4475,7 @@ Reads and enables pagination through a set of `AppLevelRequirement`. | `after` | Cursor | ```typescript -const result = await db.query.stepsRequired({ vlevel: '', vroleId: '', first: '', offset: '', after: '' }).execute(); +const result = await db.query.stepsRequired({ vlevel: '', vroleId: '', first: '', offset: '', after: '' }).execute(); ``` ### `db.query.currentUser` @@ -4599,6 +4489,21 @@ currentUser const result = await db.query.currentUser().execute(); ``` +### `db.mutation.sendAccountDeletionEmail` + +sendAccountDeletionEmail + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SendAccountDeletionEmailInput (required) | + +```typescript +const result = await db.mutation.sendAccountDeletionEmail({ input: '' }).execute(); +``` + ### `db.mutation.signOut` signOut @@ -4611,97 +4516,97 @@ signOut | `input` | SignOutInput (required) | ```typescript -const result = await db.mutation.signOut({ input: '' }).execute(); +const result = await db.mutation.signOut({ input: '' }).execute(); ``` -### `db.mutation.sendAccountDeletionEmail` +### `db.mutation.acceptDatabaseTransfer` -sendAccountDeletionEmail +acceptDatabaseTransfer - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | SendAccountDeletionEmailInput (required) | + | `input` | AcceptDatabaseTransferInput (required) | ```typescript -const result = await db.mutation.sendAccountDeletionEmail({ input: '' }).execute(); +const result = await db.mutation.acceptDatabaseTransfer({ input: { transferId: '' } }).execute(); ``` -### `db.mutation.checkPassword` +### `db.mutation.cancelDatabaseTransfer` -checkPassword +cancelDatabaseTransfer - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | CheckPasswordInput (required) | + | `input` | CancelDatabaseTransferInput (required) | ```typescript -const result = await db.mutation.checkPassword({ input: '' }).execute(); +const result = await db.mutation.cancelDatabaseTransfer({ input: { transferId: '' } }).execute(); ``` -### `db.mutation.submitInviteCode` +### `db.mutation.rejectDatabaseTransfer` -submitInviteCode +rejectDatabaseTransfer - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | SubmitInviteCodeInput (required) | + | `input` | RejectDatabaseTransferInput (required) | ```typescript -const result = await db.mutation.submitInviteCode({ input: '' }).execute(); +const result = await db.mutation.rejectDatabaseTransfer({ input: { transferId: '' } }).execute(); ``` -### `db.mutation.submitOrgInviteCode` +### `db.mutation.submitInviteCode` -submitOrgInviteCode +submitInviteCode - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | SubmitOrgInviteCodeInput (required) | + | `input` | SubmitInviteCodeInput (required) | ```typescript -const result = await db.mutation.submitOrgInviteCode({ input: '' }).execute(); +const result = await db.mutation.submitInviteCode({ input: { token: '' } }).execute(); ``` -### `db.mutation.freezeObjects` +### `db.mutation.submitOrgInviteCode` -freezeObjects +submitOrgInviteCode - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | FreezeObjectsInput (required) | + | `input` | SubmitOrgInviteCodeInput (required) | ```typescript -const result = await db.mutation.freezeObjects({ input: '' }).execute(); +const result = await db.mutation.submitOrgInviteCode({ input: { token: '' } }).execute(); ``` -### `db.mutation.initEmptyRepo` +### `db.mutation.checkPassword` -initEmptyRepo +checkPassword - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | InitEmptyRepoInput (required) | + | `input` | CheckPasswordInput (required) | ```typescript -const result = await db.mutation.initEmptyRepo({ input: '' }).execute(); +const result = await db.mutation.checkPassword({ input: { password: '' } }).execute(); ``` ### `db.mutation.confirmDeleteAccount` @@ -4716,7 +4621,7 @@ confirmDeleteAccount | `input` | ConfirmDeleteAccountInput (required) | ```typescript -const result = await db.mutation.confirmDeleteAccount({ input: '' }).execute(); +const result = await db.mutation.confirmDeleteAccount({ input: { userId: '', token: '' } }).execute(); ``` ### `db.mutation.setPassword` @@ -4731,7 +4636,7 @@ setPassword | `input` | SetPasswordInput (required) | ```typescript -const result = await db.mutation.setPassword({ input: '' }).execute(); +const result = await db.mutation.setPassword({ input: { currentPassword: '', newPassword: '' } }).execute(); ``` ### `db.mutation.verifyEmail` @@ -4746,67 +4651,82 @@ verifyEmail | `input` | VerifyEmailInput (required) | ```typescript -const result = await db.mutation.verifyEmail({ input: '' }).execute(); +const result = await db.mutation.verifyEmail({ input: { emailId: '', token: '' } }).execute(); ``` -### `db.mutation.removeNodeAtPath` +### `db.mutation.freezeObjects` -removeNodeAtPath +freezeObjects - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | RemoveNodeAtPathInput (required) | + | `input` | FreezeObjectsInput (required) | ```typescript -const result = await db.mutation.removeNodeAtPath({ input: '' }).execute(); +const result = await db.mutation.freezeObjects({ input: { databaseId: '', id: '' } }).execute(); ``` -### `db.mutation.resetPassword` +### `db.mutation.initEmptyRepo` -resetPassword +initEmptyRepo - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | ResetPasswordInput (required) | + | `input` | InitEmptyRepoInput (required) | ```typescript -const result = await db.mutation.resetPassword({ input: '' }).execute(); +const result = await db.mutation.initEmptyRepo({ input: { dbId: '', storeId: '' } }).execute(); ``` -### `db.mutation.bootstrapUser` +### `db.mutation.constructBlueprint` -bootstrapUser +Executes a draft blueprint definition. Four phases: (1) create tables with nodes[], fields, and policies[], (2) create relations between tables, (3) create indexes on table fields (supports BTREE, HNSW, GIN, GIST, BM25, etc.), (4) create full-text search configurations with weighted multi-field TSVector support. nodes[] entries can be strings or {$type, data} objects. Relations use $type for relation_type with junction config in data. Indexes reference table_ref + column name(s) and are resolved to field_ids. Full-text searches reference table_ref + tsvector field + source fields with weights/langs. Builds a ref_map of local ref names to created table UUIDs. Updates blueprint status to constructed (or failed with error_details). Returns the ref_map. - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | BootstrapUserInput (required) | + | `input` | ConstructBlueprintInput (required) | ```typescript -const result = await db.mutation.bootstrapUser({ input: '' }).execute(); +const result = await db.mutation.constructBlueprint({ input: { blueprintId: '', schemaId: '' } }).execute(); ``` -### `db.mutation.setFieldOrder` +### `db.mutation.resetPassword` -setFieldOrder +resetPassword - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | SetFieldOrderInput (required) | + | `input` | ResetPasswordInput (required) | + +```typescript +const result = await db.mutation.resetPassword({ input: { roleId: '', resetToken: '', newPassword: '' } }).execute(); +``` + +### `db.mutation.removeNodeAtPath` + +removeNodeAtPath + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | RemoveNodeAtPathInput (required) | ```typescript -const result = await db.mutation.setFieldOrder({ input: '' }).execute(); +const result = await db.mutation.removeNodeAtPath({ input: { dbId: '', root: '', path: '' } }).execute(); ``` ### `db.mutation.setDataAtPath` @@ -4821,7 +4741,7 @@ setDataAtPath | `input` | SetDataAtPathInput (required) | ```typescript -const result = await db.mutation.setDataAtPath({ input: '' }).execute(); +const result = await db.mutation.setDataAtPath({ input: { dbId: '', root: '', path: '', data: '' } }).execute(); ``` ### `db.mutation.setPropsAndCommit` @@ -4836,7 +4756,22 @@ setPropsAndCommit | `input` | SetPropsAndCommitInput (required) | ```typescript -const result = await db.mutation.setPropsAndCommit({ input: '' }).execute(); +const result = await db.mutation.setPropsAndCommit({ input: { dbId: '', storeId: '', refname: '', path: '', data: '' } }).execute(); +``` + +### `db.mutation.copyTemplateToBlueprint` + +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. + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | CopyTemplateToBlueprintInput (required) | + +```typescript +const result = await db.mutation.copyTemplateToBlueprint({ input: { templateId: '', databaseId: '', ownerId: '', nameOverride: '', displayNameOverride: '' } }).execute(); ``` ### `db.mutation.provisionDatabaseWithUser` @@ -4851,7 +4786,37 @@ provisionDatabaseWithUser | `input` | ProvisionDatabaseWithUserInput (required) | ```typescript -const result = await db.mutation.provisionDatabaseWithUser({ input: '' }).execute(); +const result = await db.mutation.provisionDatabaseWithUser({ input: { pDatabaseName: '', pDomain: '', pSubdomain: '', pModules: '', pOptions: '' } }).execute(); +``` + +### `db.mutation.bootstrapUser` + +bootstrapUser + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | BootstrapUserInput (required) | + +```typescript +const result = await db.mutation.bootstrapUser({ input: '' }).execute(); +``` + +### `db.mutation.setFieldOrder` + +setFieldOrder + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SetFieldOrderInput (required) | + +```typescript +const result = await db.mutation.setFieldOrder({ input: { fieldIds: '' } }).execute(); ``` ### `db.mutation.insertNodeAtPath` @@ -4866,7 +4831,7 @@ insertNodeAtPath | `input` | InsertNodeAtPathInput (required) | ```typescript -const result = await db.mutation.insertNodeAtPath({ input: '' }).execute(); +const result = await db.mutation.insertNodeAtPath({ input: '' }).execute(); ``` ### `db.mutation.updateNodeAtPath` @@ -4881,7 +4846,7 @@ updateNodeAtPath | `input` | UpdateNodeAtPathInput (required) | ```typescript -const result = await db.mutation.updateNodeAtPath({ input: '' }).execute(); +const result = await db.mutation.updateNodeAtPath({ input: '' }).execute(); ``` ### `db.mutation.setAndCommit` @@ -4896,7 +4861,7 @@ setAndCommit | `input` | SetAndCommitInput (required) | ```typescript -const result = await db.mutation.setAndCommit({ input: '' }).execute(); +const result = await db.mutation.setAndCommit({ input: '' }).execute(); ``` ### `db.mutation.applyRls` @@ -4911,7 +4876,7 @@ applyRls | `input` | ApplyRlsInput (required) | ```typescript -const result = await db.mutation.applyRls({ input: '' }).execute(); +const result = await db.mutation.applyRls({ input: '' }).execute(); ``` ### `db.mutation.signInOneTimeToken` @@ -4926,7 +4891,7 @@ signInOneTimeToken | `input` | SignInOneTimeTokenInput (required) | ```typescript -const result = await db.mutation.signInOneTimeToken({ input: '' }).execute(); +const result = await db.mutation.signInOneTimeToken({ input: { token: '', credentialKind: '' } }).execute(); ``` ### `db.mutation.createUserDatabase` @@ -4957,7 +4922,7 @@ Example usage: | `input` | CreateUserDatabaseInput (required) | ```typescript -const result = await db.mutation.createUserDatabase({ input: '' }).execute(); +const result = await db.mutation.createUserDatabase({ input: '' }).execute(); ``` ### `db.mutation.extendTokenExpires` @@ -4972,7 +4937,7 @@ extendTokenExpires | `input` | ExtendTokenExpiresInput (required) | ```typescript -const result = await db.mutation.extendTokenExpires({ input: '' }).execute(); +const result = await db.mutation.extendTokenExpires({ input: { amount: '' } }).execute(); ``` ### `db.mutation.signIn` @@ -4987,7 +4952,7 @@ signIn | `input` | SignInInput (required) | ```typescript -const result = await db.mutation.signIn({ input: '' }).execute(); +const result = await db.mutation.signIn({ input: { email: '', password: '', rememberMe: '', credentialKind: '', csrfToken: '' } }).execute(); ``` ### `db.mutation.signUp` @@ -5002,7 +4967,7 @@ signUp | `input` | SignUpInput (required) | ```typescript -const result = await db.mutation.signUp({ input: '' }).execute(); +const result = await db.mutation.signUp({ input: { email: '', password: '', rememberMe: '', credentialKind: '', csrfToken: '' } }).execute(); ``` ### `db.mutation.oneTimeToken` @@ -5017,37 +4982,37 @@ oneTimeToken | `input` | OneTimeTokenInput (required) | ```typescript -const result = await db.mutation.oneTimeToken({ input: '' }).execute(); +const result = await db.mutation.oneTimeToken({ input: { email: '', password: '', origin: '', rememberMe: '' } }).execute(); ``` -### `db.mutation.forgotPassword` +### `db.mutation.sendVerificationEmail` -forgotPassword +sendVerificationEmail - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | ForgotPasswordInput (required) | + | `input` | SendVerificationEmailInput (required) | ```typescript -const result = await db.mutation.forgotPassword({ input: '' }).execute(); +const result = await db.mutation.sendVerificationEmail({ input: { email: '' } }).execute(); ``` -### `db.mutation.sendVerificationEmail` +### `db.mutation.forgotPassword` -sendVerificationEmail +forgotPassword - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | SendVerificationEmailInput (required) | + | `input` | ForgotPasswordInput (required) | ```typescript -const result = await db.mutation.sendVerificationEmail({ input: '' }).execute(); +const result = await db.mutation.forgotPassword({ input: { email: '' } }).execute(); ``` ### `db.mutation.verifyPassword` @@ -5062,7 +5027,7 @@ verifyPassword | `input` | VerifyPasswordInput (required) | ```typescript -const result = await db.mutation.verifyPassword({ input: '' }).execute(); +const result = await db.mutation.verifyPassword({ input: { password: '' } }).execute(); ``` ### `db.mutation.verifyTotp` @@ -5077,7 +5042,7 @@ verifyTotp | `input` | VerifyTotpInput (required) | ```typescript -const result = await db.mutation.verifyTotp({ input: '' }).execute(); +const result = await db.mutation.verifyTotp({ input: { totpValue: '' } }).execute(); ``` --- diff --git a/sdk/constructive-sdk/src/public/orm/index.ts b/sdk/constructive-sdk/src/public/orm/index.ts index fa33edb4f..dcead80b8 100644 --- a/sdk/constructive-sdk/src/public/orm/index.ts +++ b/sdk/constructive-sdk/src/public/orm/index.ts @@ -5,9 +5,9 @@ */ import { OrmClient } from './client'; import type { OrmClientConfig } from './client'; +import { GetAllRecordModel } from './models/getAllRecord'; import { OrgGetManagersRecordModel } from './models/orgGetManagersRecord'; import { OrgGetSubordinatesRecordModel } from './models/orgGetSubordinatesRecord'; -import { GetAllRecordModel } from './models/getAllRecord'; import { ObjectModel } from './models/object'; import { AppPermissionModel } from './models/appPermission'; import { OrgPermissionModel } from './models/orgPermission'; @@ -29,11 +29,13 @@ import { ViewModel } from './models/view'; import { ViewTableModel } from './models/viewTable'; import { ViewGrantModel } from './models/viewGrant'; import { ViewRuleModel } from './models/viewRule'; +import { EmbeddingChunkModel } from './models/embeddingChunk'; import { TableTemplateModuleModel } from './models/tableTemplateModule'; import { SecureTableProvisionModel } from './models/secureTableProvision'; import { RelationProvisionModel } from './models/relationProvision'; import { SchemaGrantModel } from './models/schemaGrant'; import { DefaultPrivilegeModel } from './models/defaultPrivilege'; +import { EnumModel } from './models/enum'; import { ApiSchemaModel } from './models/apiSchema'; import { ApiModuleModel } from './models/apiModule'; import { DomainModel } from './models/domain'; @@ -41,6 +43,7 @@ import { SiteMetadatumModel } from './models/siteMetadatum'; import { SiteModuleModel } from './models/siteModule'; import { SiteThemeModel } from './models/siteTheme'; import { TriggerFunctionModel } from './models/triggerFunction'; +import { DatabaseTransferModel } from './models/databaseTransfer'; import { ApiModel } from './models/api'; import { SiteModel } from './models/site'; import { AppModel } from './models/app'; @@ -64,7 +67,8 @@ import { SecretsModuleModel } from './models/secretsModule'; import { SessionsModuleModel } from './models/sessionsModule'; import { UserAuthModuleModel } from './models/userAuthModule'; import { UsersModuleModel } from './models/usersModule'; -import { UuidModuleModel } from './models/uuidModule'; +import { BlueprintModel } from './models/blueprint'; +import { BlueprintTemplateModel } from './models/blueprintTemplate'; import { DatabaseProvisionModuleModel } from './models/databaseProvisionModule'; import { AppAdminGrantModel } from './models/appAdminGrant'; import { AppOwnerGrantModel } from './models/appOwnerGrant'; @@ -76,34 +80,34 @@ import { OrgOwnerGrantModel } from './models/orgOwnerGrant'; import { OrgGrantModel } from './models/orgGrant'; import { OrgChartEdgeModel } from './models/orgChartEdge'; import { OrgChartEdgeGrantModel } from './models/orgChartEdgeGrant'; +import { OrgPermissionDefaultModel } from './models/orgPermissionDefault'; import { AppLimitModel } from './models/appLimit'; import { OrgLimitModel } from './models/orgLimit'; import { AppStepModel } from './models/appStep'; import { AppAchievementModel } from './models/appAchievement'; +import { AppLevelModel } from './models/appLevel'; +import { EmailModel } from './models/email'; +import { PhoneNumberModel } from './models/phoneNumber'; +import { CryptoAddressModel } from './models/cryptoAddress'; +import { ConnectedAccountModel } from './models/connectedAccount'; import { InviteModel } from './models/invite'; import { ClaimedInviteModel } from './models/claimedInvite'; import { OrgInviteModel } from './models/orgInvite'; import { OrgClaimedInviteModel } from './models/orgClaimedInvite'; +import { AuditLogModel } from './models/auditLog'; import { RefModel } from './models/ref'; import { StoreModel } from './models/store'; import { AppPermissionDefaultModel } from './models/appPermissionDefault'; -import { CryptoAddressModel } from './models/cryptoAddress'; import { RoleTypeModel } from './models/roleType'; -import { OrgPermissionDefaultModel } from './models/orgPermissionDefault'; -import { PhoneNumberModel } from './models/phoneNumber'; import { AppLimitDefaultModel } from './models/appLimitDefault'; import { OrgLimitDefaultModel } from './models/orgLimitDefault'; -import { ConnectedAccountModel } from './models/connectedAccount'; import { NodeTypeRegistryModel } from './models/nodeTypeRegistry'; import { MembershipTypeModel } from './models/membershipType'; import { CommitModel } from './models/commit'; import { AppMembershipDefaultModel } from './models/appMembershipDefault'; import { RlsModuleModel } from './models/rlsModule'; import { OrgMembershipDefaultModel } from './models/orgMembershipDefault'; -import { AuditLogModel } from './models/auditLog'; -import { AppLevelModel } from './models/appLevel'; import { SqlMigrationModel } from './models/sqlMigration'; -import { EmailModel } from './models/email'; import { UserModel } from './models/user'; import { AstMigrationModel } from './models/astMigration'; import { AppMembershipModel } from './models/appMembership'; @@ -143,9 +147,9 @@ export { createMutationOperations } from './mutation'; export function createClient(config: OrmClientConfig) { const client = new OrmClient(config); return { + getAllRecord: new GetAllRecordModel(client), orgGetManagersRecord: new OrgGetManagersRecordModel(client), orgGetSubordinatesRecord: new OrgGetSubordinatesRecordModel(client), - getAllRecord: new GetAllRecordModel(client), object: new ObjectModel(client), appPermission: new AppPermissionModel(client), orgPermission: new OrgPermissionModel(client), @@ -167,11 +171,13 @@ export function createClient(config: OrmClientConfig) { viewTable: new ViewTableModel(client), viewGrant: new ViewGrantModel(client), viewRule: new ViewRuleModel(client), + embeddingChunk: new EmbeddingChunkModel(client), tableTemplateModule: new TableTemplateModuleModel(client), secureTableProvision: new SecureTableProvisionModel(client), relationProvision: new RelationProvisionModel(client), schemaGrant: new SchemaGrantModel(client), defaultPrivilege: new DefaultPrivilegeModel(client), + enum: new EnumModel(client), apiSchema: new ApiSchemaModel(client), apiModule: new ApiModuleModel(client), domain: new DomainModel(client), @@ -179,6 +185,7 @@ export function createClient(config: OrmClientConfig) { siteModule: new SiteModuleModel(client), siteTheme: new SiteThemeModel(client), triggerFunction: new TriggerFunctionModel(client), + databaseTransfer: new DatabaseTransferModel(client), api: new ApiModel(client), site: new SiteModel(client), app: new AppModel(client), @@ -202,7 +209,8 @@ export function createClient(config: OrmClientConfig) { sessionsModule: new SessionsModuleModel(client), userAuthModule: new UserAuthModuleModel(client), usersModule: new UsersModuleModel(client), - uuidModule: new UuidModuleModel(client), + blueprint: new BlueprintModel(client), + blueprintTemplate: new BlueprintTemplateModel(client), databaseProvisionModule: new DatabaseProvisionModuleModel(client), appAdminGrant: new AppAdminGrantModel(client), appOwnerGrant: new AppOwnerGrantModel(client), @@ -214,34 +222,34 @@ export function createClient(config: OrmClientConfig) { orgGrant: new OrgGrantModel(client), orgChartEdge: new OrgChartEdgeModel(client), orgChartEdgeGrant: new OrgChartEdgeGrantModel(client), + orgPermissionDefault: new OrgPermissionDefaultModel(client), appLimit: new AppLimitModel(client), orgLimit: new OrgLimitModel(client), appStep: new AppStepModel(client), appAchievement: new AppAchievementModel(client), + appLevel: new AppLevelModel(client), + email: new EmailModel(client), + phoneNumber: new PhoneNumberModel(client), + cryptoAddress: new CryptoAddressModel(client), + connectedAccount: new ConnectedAccountModel(client), invite: new InviteModel(client), claimedInvite: new ClaimedInviteModel(client), orgInvite: new OrgInviteModel(client), orgClaimedInvite: new OrgClaimedInviteModel(client), + auditLog: new AuditLogModel(client), ref: new RefModel(client), store: new StoreModel(client), appPermissionDefault: new AppPermissionDefaultModel(client), - cryptoAddress: new CryptoAddressModel(client), roleType: new RoleTypeModel(client), - orgPermissionDefault: new OrgPermissionDefaultModel(client), - phoneNumber: new PhoneNumberModel(client), appLimitDefault: new AppLimitDefaultModel(client), orgLimitDefault: new OrgLimitDefaultModel(client), - connectedAccount: new ConnectedAccountModel(client), nodeTypeRegistry: new NodeTypeRegistryModel(client), membershipType: new MembershipTypeModel(client), commit: new CommitModel(client), appMembershipDefault: new AppMembershipDefaultModel(client), rlsModule: new RlsModuleModel(client), orgMembershipDefault: new OrgMembershipDefaultModel(client), - auditLog: new AuditLogModel(client), - appLevel: new AppLevelModel(client), sqlMigration: new SqlMigrationModel(client), - email: new EmailModel(client), user: new UserModel(client), astMigration: new AstMigrationModel(client), appMembership: new AppMembershipModel(client), diff --git a/sdk/constructive-sdk/src/public/orm/input-types.ts b/sdk/constructive-sdk/src/public/orm/input-types.ts index bfe3f267d..e14d65708 100644 --- a/sdk/constructive-sdk/src/public/orm/input-types.ts +++ b/sdk/constructive-sdk/src/public/orm/input-types.ts @@ -240,6 +240,10 @@ export type ConstructiveInternalTypeImage = unknown; export type ConstructiveInternalTypeOrigin = unknown; export type ConstructiveInternalTypeUrl = unknown; // ============ Entity Types ============ +export interface GetAllRecord { + path?: string[] | null; + data?: Record | null; +} export interface OrgGetManagersRecord { userId?: string | null; depth?: number | null; @@ -248,10 +252,6 @@ export interface OrgGetSubordinatesRecord { userId?: string | null; depth?: number | null; } -export interface GetAllRecord { - path?: string[] | null; - data?: Record | null; -} export interface Object { hashUuid?: string | null; id: string; @@ -273,10 +273,6 @@ export interface AppPermission { bitstr?: string | null; /** Human-readable description of what this permission allows */ description?: string | null; - /** TRGM similarity when searching `description`. Returns null when no trgm search filter is active. */ - descriptionTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } /** Defines available permissions as named bits within a bitmask, used by the RBAC system for access control */ export interface OrgPermission { @@ -289,10 +285,6 @@ export interface OrgPermission { bitstr?: string | null; /** Human-readable description of what this permission allows */ description?: string | null; - /** TRGM similarity when searching `description`. Returns null when no trgm search filter is active. */ - descriptionTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } /** Defines the specific requirements that must be met to achieve a level */ export interface AppLevelRequirement { @@ -309,10 +301,6 @@ export interface AppLevelRequirement { priority?: number | null; createdAt?: string | null; updatedAt?: string | null; - /** TRGM similarity when searching `description`. Returns null when no trgm search filter is active. */ - descriptionTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface Database { id: string; @@ -323,14 +311,6 @@ export interface Database { hash?: string | null; createdAt?: string | null; updatedAt?: string | null; - /** TRGM similarity when searching `schemaHash`. Returns null when no trgm search filter is active. */ - schemaHashTrgmSimilarity?: number | null; - /** TRGM similarity when searching `name`. Returns null when no trgm search filter is active. */ - nameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `label`. Returns null when no trgm search filter is active. */ - labelTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface Schema { id: string; @@ -347,18 +327,6 @@ export interface Schema { isPublic?: boolean | null; createdAt?: string | null; updatedAt?: string | null; - /** TRGM similarity when searching `name`. Returns null when no trgm search filter is active. */ - nameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `schemaName`. Returns null when no trgm search filter is active. */ - schemaNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `label`. Returns null when no trgm search filter is active. */ - labelTrgmSimilarity?: number | null; - /** TRGM similarity when searching `description`. Returns null when no trgm search filter is active. */ - descriptionTrgmSimilarity?: number | null; - /** TRGM similarity when searching `module`. Returns null when no trgm search filter is active. */ - moduleTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface Table { id: string; @@ -380,20 +348,6 @@ export interface Table { inheritsId?: string | null; createdAt?: string | null; updatedAt?: string | null; - /** TRGM similarity when searching `name`. Returns null when no trgm search filter is active. */ - nameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `label`. Returns null when no trgm search filter is active. */ - labelTrgmSimilarity?: number | null; - /** TRGM similarity when searching `description`. Returns null when no trgm search filter is active. */ - descriptionTrgmSimilarity?: number | null; - /** TRGM similarity when searching `module`. Returns null when no trgm search filter is active. */ - moduleTrgmSimilarity?: number | null; - /** TRGM similarity when searching `pluralName`. Returns null when no trgm search filter is active. */ - pluralNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `singularName`. Returns null when no trgm search filter is active. */ - singularNameTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface CheckConstraint { id: string; @@ -410,14 +364,6 @@ export interface CheckConstraint { tags?: string[] | null; createdAt?: string | null; updatedAt?: string | null; - /** TRGM similarity when searching `name`. Returns null when no trgm search filter is active. */ - nameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `type`. Returns null when no trgm search filter is active. */ - typeTrgmSimilarity?: number | null; - /** TRGM similarity when searching `module`. Returns null when no trgm search filter is active. */ - moduleTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface Field { id: string; @@ -428,6 +374,7 @@ export interface Field { description?: string | null; smartTags?: Record | null; isRequired?: boolean | null; + apiRequired?: boolean | null; defaultValue?: string | null; defaultValueAst?: Record | null; isHidden?: boolean | null; @@ -444,20 +391,6 @@ export interface Field { scope?: number | null; createdAt?: string | null; updatedAt?: string | null; - /** TRGM similarity when searching `name`. Returns null when no trgm search filter is active. */ - nameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `label`. Returns null when no trgm search filter is active. */ - labelTrgmSimilarity?: number | null; - /** TRGM similarity when searching `description`. Returns null when no trgm search filter is active. */ - descriptionTrgmSimilarity?: number | null; - /** TRGM similarity when searching `defaultValue`. Returns null when no trgm search filter is active. */ - defaultValueTrgmSimilarity?: number | null; - /** TRGM similarity when searching `regexp`. Returns null when no trgm search filter is active. */ - regexpTrgmSimilarity?: number | null; - /** TRGM similarity when searching `module`. Returns null when no trgm search filter is active. */ - moduleTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface ForeignKeyConstraint { id: string; @@ -478,20 +411,6 @@ export interface ForeignKeyConstraint { tags?: string[] | null; createdAt?: string | null; updatedAt?: string | null; - /** TRGM similarity when searching `name`. Returns null when no trgm search filter is active. */ - nameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `description`. Returns null when no trgm search filter is active. */ - descriptionTrgmSimilarity?: number | null; - /** TRGM similarity when searching `type`. Returns null when no trgm search filter is active. */ - typeTrgmSimilarity?: number | null; - /** TRGM similarity when searching `deleteAction`. Returns null when no trgm search filter is active. */ - deleteActionTrgmSimilarity?: number | null; - /** TRGM similarity when searching `updateAction`. Returns null when no trgm search filter is active. */ - updateActionTrgmSimilarity?: number | null; - /** TRGM similarity when searching `module`. Returns null when no trgm search filter is active. */ - moduleTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface FullTextSearch { id: string; @@ -524,14 +443,6 @@ export interface Index { tags?: string[] | null; createdAt?: string | null; updatedAt?: string | null; - /** TRGM similarity when searching `name`. Returns null when no trgm search filter is active. */ - nameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `accessMethod`. Returns null when no trgm search filter is active. */ - accessMethodTrgmSimilarity?: number | null; - /** TRGM similarity when searching `module`. Returns null when no trgm search filter is active. */ - moduleTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface Policy { id: string; @@ -551,18 +462,6 @@ export interface Policy { tags?: string[] | null; createdAt?: string | null; updatedAt?: string | null; - /** TRGM similarity when searching `name`. Returns null when no trgm search filter is active. */ - nameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `granteeName`. Returns null when no trgm search filter is active. */ - granteeNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `privilege`. Returns null when no trgm search filter is active. */ - privilegeTrgmSimilarity?: number | null; - /** TRGM similarity when searching `policyType`. Returns null when no trgm search filter is active. */ - policyTypeTrgmSimilarity?: number | null; - /** TRGM similarity when searching `module`. Returns null when no trgm search filter is active. */ - moduleTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface PrimaryKeyConstraint { id: string; @@ -578,14 +477,6 @@ export interface PrimaryKeyConstraint { tags?: string[] | null; createdAt?: string | null; updatedAt?: string | null; - /** TRGM similarity when searching `name`. Returns null when no trgm search filter is active. */ - nameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `type`. Returns null when no trgm search filter is active. */ - typeTrgmSimilarity?: number | null; - /** TRGM similarity when searching `module`. Returns null when no trgm search filter is active. */ - moduleTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface TableGrant { id: string; @@ -597,12 +488,6 @@ export interface TableGrant { isGrant?: boolean | null; createdAt?: string | null; updatedAt?: string | null; - /** TRGM similarity when searching `privilege`. Returns null when no trgm search filter is active. */ - privilegeTrgmSimilarity?: number | null; - /** TRGM similarity when searching `granteeName`. Returns null when no trgm search filter is active. */ - granteeNameTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface Trigger { id: string; @@ -618,16 +503,6 @@ export interface Trigger { tags?: string[] | null; createdAt?: string | null; updatedAt?: string | null; - /** TRGM similarity when searching `name`. Returns null when no trgm search filter is active. */ - nameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `event`. Returns null when no trgm search filter is active. */ - eventTrgmSimilarity?: number | null; - /** TRGM similarity when searching `functionName`. Returns null when no trgm search filter is active. */ - functionNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `module`. Returns null when no trgm search filter is active. */ - moduleTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface UniqueConstraint { id: string; @@ -644,16 +519,6 @@ export interface UniqueConstraint { tags?: string[] | null; createdAt?: string | null; updatedAt?: string | null; - /** TRGM similarity when searching `name`. Returns null when no trgm search filter is active. */ - nameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `description`. Returns null when no trgm search filter is active. */ - descriptionTrgmSimilarity?: number | null; - /** TRGM similarity when searching `type`. Returns null when no trgm search filter is active. */ - typeTrgmSimilarity?: number | null; - /** TRGM similarity when searching `module`. Returns null when no trgm search filter is active. */ - moduleTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface View { id: string; @@ -672,16 +537,6 @@ export interface View { module?: string | null; scope?: number | null; tags?: string[] | null; - /** TRGM similarity when searching `name`. Returns null when no trgm search filter is active. */ - nameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `viewType`. Returns null when no trgm search filter is active. */ - viewTypeTrgmSimilarity?: number | null; - /** TRGM similarity when searching `filterType`. Returns null when no trgm search filter is active. */ - filterTypeTrgmSimilarity?: number | null; - /** TRGM similarity when searching `module`. Returns null when no trgm search filter is active. */ - moduleTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } /** Junction table linking views to their joined tables for referential integrity */ export interface ViewTable { @@ -698,12 +553,6 @@ export interface ViewGrant { privilege?: string | null; withGrantOption?: boolean | null; isGrant?: boolean | null; - /** TRGM similarity when searching `granteeName`. Returns null when no trgm search filter is active. */ - granteeNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `privilege`. Returns null when no trgm search filter is active. */ - privilegeTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } /** DO INSTEAD rules for views (e.g., read-only enforcement) */ export interface ViewRule { @@ -715,14 +564,26 @@ export interface ViewRule { event?: string | null; /** NOTHING (for read-only) or custom action */ action?: string | null; - /** TRGM similarity when searching `name`. Returns null when no trgm search filter is active. */ - nameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `event`. Returns null when no trgm search filter is active. */ - eventTrgmSimilarity?: number | null; - /** TRGM similarity when searching `action`. Returns null when no trgm search filter is active. */ - actionTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; +} +export interface EmbeddingChunk { + id: string; + databaseId?: string | null; + tableId?: string | null; + embeddingFieldId?: string | null; + chunksTableId?: string | null; + chunksTableName?: string | null; + contentFieldName?: string | null; + dimensions?: number | null; + metric?: string | null; + chunkSize?: number | null; + chunkOverlap?: number | null; + chunkStrategy?: string | null; + metadataFields?: Record | null; + enqueueChunkingJob?: boolean | null; + chunkingTaskName?: string | null; + parentFkFieldId?: string | null; + createdAt?: string | null; + updatedAt?: string | null; } export interface TableTemplateModule { id: string; @@ -734,12 +595,6 @@ export interface TableTemplateModule { tableName?: string | null; nodeType?: string | null; data?: Record | null; - /** TRGM similarity when searching `tableName`. Returns null when no trgm search filter is active. */ - tableNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `nodeType`. Returns null when no trgm search filter is active. */ - nodeTypeTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } /** Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via node_type, (2) grant privileges via grant_privileges, (3) create RLS policies via policy_type. Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent. */ export interface SecureTableProvision { @@ -757,14 +612,14 @@ export interface SecureTableProvision { nodeType?: string | null; /** If true and Row Level Security is not yet enabled on the target table, enable it. Automatically set to true by the trigger when policy_type is provided. Defaults to true. */ useRls?: boolean | null; - /** Configuration passed to the generator function for field creation (only used when node_type is set). Known keys include: field_name (text, default 'id') for DataId, owner_field_name (text, default 'owner_id') for DataDirectOwner/DataOwnershipInEntity, entity_field_name (text, default 'entity_id') for DataEntityMembership/DataOwnershipInEntity, include_id (boolean, default true) for most node_types, include_user_fk (boolean, default true) to add FK to users table. Defaults to '{}'. */ + /** Configuration passed to the generator function for field creation (only used when node_type is set). Known keys include: field_name (text, default 'id') for DataId, owner_field_name (text, default 'owner_id') for DataDirectOwner/DataOwnershipInEntity, entity_field_name (text, default 'entity_id') for DataEntityMembership/DataOwnershipInEntity, include_id (boolean, default true) for most node_types, include_user_fk (boolean, default true) to add FK to users table, create_index (boolean, default true) to create btree indexes on FK fields for join and cascade performance. Defaults to '{}'. */ nodeData?: Record | null; - /** JSON array of field definition objects to create on the target table. Each object has keys: "name" (text, required), "type" (text, required), "default" (text, optional), "is_required" (boolean, optional, defaults to false), "min" (float, optional), "max" (float, optional), "regexp" (text, optional). min/max generate CHECK constraints: for text/citext they constrain character_length, for integer/float types they constrain the value. regexp generates a CHECK (col ~ pattern) constraint for text/citext. Fields are created via metaschema.create_field() after any node_type generator runs, and their IDs are appended to out_fields. Example: [{"name":"username","type":"citext","max":256,"regexp":"^[a-z0-9_]+$"},{"name":"score","type":"integer","min":0,"max":100}]. Defaults to '[]' (no additional fields). */ - fields?: Record | null; + /** PostgreSQL array of jsonb field definition objects to create on the target table. Each object has keys: "name" (text, required), "type" (text, required), "default" (text, optional), "is_required" (boolean, optional, defaults to false), "min" (float, optional), "max" (float, optional), "regexp" (text, optional), "index" (boolean, optional, defaults to false — creates a btree index on the field). min/max generate CHECK constraints: for text/citext they constrain character_length, for integer/float types they constrain the value. regexp generates a CHECK (col ~ pattern) constraint for text/citext. Fields are created via metaschema.create_field() after any node_type generator runs, and their IDs are appended to out_fields. Example: ARRAY['{"name":"username","type":"citext","max":256,"regexp":"^[a-z0-9_]+$"}'::jsonb, '{"name":"score","type":"integer","min":0,"max":100}'::jsonb]. Defaults to '{}' (no additional fields). */ + fields?: Record[] | null; /** Database roles to grant privileges to. Supports multiple roles, e.g. ARRAY['authenticated', 'admin']. Each role receives all privileges defined in grant_privileges. Defaults to ARRAY['authenticated']. */ grantRoles?: string[] | null; - /** Array of [privilege, columns] tuples defining table grants. Examples: [["select","*"],["insert","*"]] for full access, or [["update",["name","bio"]]] for column-level grants. "*" means all columns; an array means column-level grant. Defaults to '[]' (no grants). The trigger validates this is a proper jsonb array. */ - grantPrivileges?: Record | null; + /** PostgreSQL array of jsonb [privilege, columns] tuples defining table grants. Examples: ARRAY['["select","*"]'::jsonb, '["insert","*"]'::jsonb] for full access, or ARRAY['["update",["name","bio"]]'::jsonb] for column-level grants. "*" means all columns; an array means column-level grant. Defaults to '{}' (no grants). Type safety is enforced by PostgreSQL at INSERT time. */ + grantPrivileges?: Record[] | null; /** Policy generator type, e.g. 'AuthzEntityMembership', 'AuthzMembership', 'AuthzAllowAll'. NULL means no policy is created. When set, the trigger automatically enables RLS on the target table. */ policyType?: string | null; /** Privileges the policy applies to, e.g. ARRAY['select','update']. NULL means privileges are derived from the grant_privileges verbs. */ @@ -779,18 +634,6 @@ export interface SecureTableProvision { policyData?: Record | null; /** Output column populated by the trigger after field creation. Contains the UUIDs of the metaschema fields created on the target table by this provision row's generator. NULL when node_type is NULL or before the trigger runs. Callers should not set this directly. */ outFields?: string[] | null; - /** TRGM similarity when searching `tableName`. Returns null when no trgm search filter is active. */ - tableNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `nodeType`. Returns null when no trgm search filter is active. */ - nodeTypeTrgmSimilarity?: number | null; - /** TRGM similarity when searching `policyType`. Returns null when no trgm search filter is active. */ - policyTypeTrgmSimilarity?: number | null; - /** TRGM similarity when searching `policyRole`. Returns null when no trgm search filter is active. */ - policyRoleTrgmSimilarity?: number | null; - /** TRGM similarity when searching `policyName`. Returns null when no trgm search filter is active. */ - policyNameTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } /** * Provisions relational structure between tables. Supports four relation types: @@ -850,6 +693,13 @@ export interface RelationProvision { * Ignored for RelationManyToMany (junction FK fields are always required). */ isRequired?: boolean | null; + /** + * Whether the FK field should be required at the API level even though it is nullable at the database level. Defaults to false. + * When true and is_required is false, the field is created as nullable (allowing SET NULL cascade) but a @requiredInput smart tag is added so PostGraphile treats it as non-null in create/update input types. + * When is_required is true, api_required is ignored (the field is already required at both levels). + * Ignored for RelationManyToMany (junction FK fields are always required). + */ + apiRequired?: boolean | null; /** * For RelationManyToMany: an existing junction table to use. Defaults to uuid_nil(). * - When uuid_nil(): the trigger creates a new junction table via secure_table_provision using junction_table_name. @@ -873,6 +723,26 @@ export interface RelationProvision { * Ignored for RelationBelongsTo/RelationHasOne. */ useCompositeKey?: boolean | null; + /** + * Whether to create a btree index on FK fields created by this relation. Defaults to true. + * PostgreSQL does not automatically index foreign key columns (only the referenced PK side is indexed). + * Without indexes on FK columns, JOINs, CASCADE deletes, and RLS policy lookups perform sequential scans. + * - RelationBelongsTo: creates an index on the FK field on the source table. + * - RelationHasMany: creates an index on the FK field on the target table. + * - RelationHasOne: skipped — the unique constraint already creates an implicit index. + * - RelationManyToMany: creates indexes on both FK fields on the junction table. + * Set to false only for very small tables or write-heavy tables where index maintenance cost outweighs read performance. + */ + createIndex?: boolean | null; + /** + * For RelationManyToMany: whether to expose the M:N shortcut fields in the GraphQL API. Defaults to true. + * When true, sets @behavior +manyToMany on the junction table smart_tags so PostGraphile generates + * clean M:N connection fields (e.g., event.contacts instead of event.contactEventsByEventId). + * When false (or toggled off via UPDATE), the behavior tag is removed and the M:N fields disappear from GraphQL. + * Toggling is supported: UPDATE expose_in_api to true/false and the smart tag is added/removed automatically. + * Ignored for RelationBelongsTo/RelationHasOne/RelationHasMany. + */ + exposeInApi?: boolean | null; /** * For RelationManyToMany: which generator to invoke for field creation on the junction table. Forwarded to secure_table_provision as-is. The trigger does not interpret or validate this value. * Examples: DataId (creates UUID primary key), DataDirectOwner (creates owner_id field), DataEntityMembership (creates entity_id field), DataOwnershipInEntity (creates both owner_id and entity_id), DataTimestamps, DataPeoplestamps, DataPublishable, DataSoftDelete. @@ -892,8 +762,8 @@ export interface RelationProvision { nodeData?: Record | null; /** For RelationManyToMany: database roles to grant privileges to on the junction table. Forwarded to secure_table_provision as-is. Supports multiple roles, e.g. ARRAY['authenticated', 'admin']. Each role receives all privileges defined in grant_privileges. Defaults to ARRAY['authenticated']. Ignored for RelationBelongsTo/RelationHasOne. */ grantRoles?: string[] | null; - /** For RelationManyToMany: privilege grants for the junction table. Forwarded to secure_table_provision as-is. Format: array of [privilege, columns] tuples. Examples: [["select","*"],["insert","*"]] for full access, or [["update",["name","bio"]]] for column-level grants. "*" means all columns. Defaults to select/insert/delete for all columns. Ignored for RelationBelongsTo/RelationHasOne. */ - grantPrivileges?: Record | null; + /** For RelationManyToMany: privilege grants for the junction table. Forwarded to secure_table_provision as-is. Format: PostgreSQL array of jsonb [privilege, columns] tuples. Examples: ARRAY['["select","*"]'::jsonb, '["insert","*"]'::jsonb] for full access, or ARRAY['["update",["name","bio"]]'::jsonb] for column-level grants. "*" means all columns. Defaults to select/insert/delete for all columns. Ignored for RelationBelongsTo/RelationHasOne. */ + grantPrivileges?: Record[] | null; /** * For RelationManyToMany: RLS policy type for the junction table. Forwarded to secure_table_provision as-is. The trigger does not interpret or validate this value. * Examples: AuthzEntityMembership, AuthzMembership, AuthzAllowAll, AuthzDirectOwner, AuthzOrgHierarchy. @@ -926,28 +796,6 @@ export interface RelationProvision { outSourceFieldId?: string | null; /** Output column for RelationManyToMany: the UUID of the FK field on the junction table referencing the target table. Populated by the trigger. NULL for RelationBelongsTo/RelationHasOne. Callers should not set this directly. */ outTargetFieldId?: string | null; - /** TRGM similarity when searching `relationType`. Returns null when no trgm search filter is active. */ - relationTypeTrgmSimilarity?: number | null; - /** TRGM similarity when searching `fieldName`. Returns null when no trgm search filter is active. */ - fieldNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `deleteAction`. Returns null when no trgm search filter is active. */ - deleteActionTrgmSimilarity?: number | null; - /** TRGM similarity when searching `junctionTableName`. Returns null when no trgm search filter is active. */ - junctionTableNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `sourceFieldName`. Returns null when no trgm search filter is active. */ - sourceFieldNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `targetFieldName`. Returns null when no trgm search filter is active. */ - targetFieldNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `nodeType`. Returns null when no trgm search filter is active. */ - nodeTypeTrgmSimilarity?: number | null; - /** TRGM similarity when searching `policyType`. Returns null when no trgm search filter is active. */ - policyTypeTrgmSimilarity?: number | null; - /** TRGM similarity when searching `policyRole`. Returns null when no trgm search filter is active. */ - policyRoleTrgmSimilarity?: number | null; - /** TRGM similarity when searching `policyName`. Returns null when no trgm search filter is active. */ - policyNameTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface SchemaGrant { id: string; @@ -956,10 +804,6 @@ export interface SchemaGrant { granteeName?: string | null; createdAt?: string | null; updatedAt?: string | null; - /** TRGM similarity when searching `granteeName`. Returns null when no trgm search filter is active. */ - granteeNameTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface DefaultPrivilege { id: string; @@ -969,14 +813,20 @@ export interface DefaultPrivilege { privilege?: string | null; granteeName?: string | null; isGrant?: boolean | null; - /** TRGM similarity when searching `objectType`. Returns null when no trgm search filter is active. */ - objectTypeTrgmSimilarity?: number | null; - /** TRGM similarity when searching `privilege`. Returns null when no trgm search filter is active. */ - privilegeTrgmSimilarity?: number | null; - /** TRGM similarity when searching `granteeName`. Returns null when no trgm search filter is active. */ - granteeNameTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; +} +export interface Enum { + id: string; + databaseId?: string | null; + schemaId?: string | null; + name?: string | null; + label?: string | null; + description?: string | null; + values?: string[] | null; + smartTags?: Record | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + tags?: string[] | null; } /** Join table linking APIs to the database schemas they expose; controls which schemas are accessible through each API */ export interface ApiSchema { @@ -1001,10 +851,6 @@ export interface ApiModule { name?: string | null; /** JSON configuration data for this module */ data?: Record | null; - /** TRGM similarity when searching `name`. Returns null when no trgm search filter is active. */ - nameTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } /** DNS domain and subdomain routing: maps hostnames to either an API endpoint or a site */ export interface Domain { @@ -1035,12 +881,6 @@ export interface SiteMetadatum { description?: string | null; /** Open Graph image for social media previews */ ogImage?: ConstructiveInternalTypeImage | null; - /** TRGM similarity when searching `title`. Returns null when no trgm search filter is active. */ - titleTrgmSimilarity?: number | null; - /** TRGM similarity when searching `description`. Returns null when no trgm search filter is active. */ - descriptionTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } /** Site-level module configuration; stores module name and JSON settings used by the frontend or server for each site */ export interface SiteModule { @@ -1054,10 +894,6 @@ export interface SiteModule { name?: string | null; /** JSON configuration data for this module */ data?: Record | null; - /** TRGM similarity when searching `name`. Returns null when no trgm search filter is active. */ - nameTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } /** Theme configuration for a site; stores design tokens, colors, and typography as JSONB */ export interface SiteTheme { @@ -1077,12 +913,22 @@ export interface TriggerFunction { code?: string | null; createdAt?: string | null; updatedAt?: string | null; - /** TRGM similarity when searching `name`. Returns null when no trgm search filter is active. */ - nameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `code`. Returns null when no trgm search filter is active. */ - codeTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; +} +export interface DatabaseTransfer { + id: string; + databaseId?: string | null; + targetOwnerId?: string | null; + sourceApproved?: boolean | null; + targetApproved?: boolean | null; + sourceApprovedAt?: string | null; + targetApprovedAt?: string | null; + status?: string | null; + initiatedBy?: string | null; + notes?: string | null; + expiresAt?: string | null; + createdAt?: string | null; + updatedAt?: string | null; + completedAt?: string | null; } /** API endpoint configurations: each record defines a PostGraphile/PostgREST API with its database role and public access settings */ export interface Api { @@ -1100,16 +946,6 @@ export interface Api { anonRole?: string | null; /** Whether this API is publicly accessible without authentication */ isPublic?: boolean | null; - /** TRGM similarity when searching `name`. Returns null when no trgm search filter is active. */ - nameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `dbname`. Returns null when no trgm search filter is active. */ - dbnameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `roleName`. Returns null when no trgm search filter is active. */ - roleNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `anonRole`. Returns null when no trgm search filter is active. */ - anonRoleTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } /** Top-level site configuration: branding assets, title, and description for a deployed application */ export interface Site { @@ -1131,14 +967,6 @@ export interface Site { logo?: ConstructiveInternalTypeImage | null; /** PostgreSQL database name this site connects to */ dbname?: string | null; - /** TRGM similarity when searching `title`. Returns null when no trgm search filter is active. */ - titleTrgmSimilarity?: number | null; - /** TRGM similarity when searching `description`. Returns null when no trgm search filter is active. */ - descriptionTrgmSimilarity?: number | null; - /** TRGM similarity when searching `dbname`. Returns null when no trgm search filter is active. */ - dbnameTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } /** Mobile and native app configuration linked to a site, including store links and identifiers */ export interface App { @@ -1160,14 +988,6 @@ export interface App { appIdPrefix?: string | null; /** URL to the Google Play Store listing */ playStoreLink?: ConstructiveInternalTypeUrl | null; - /** TRGM similarity when searching `name`. Returns null when no trgm search filter is active. */ - nameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `appStoreId`. Returns null when no trgm search filter is active. */ - appStoreIdTrgmSimilarity?: number | null; - /** TRGM similarity when searching `appIdPrefix`. Returns null when no trgm search filter is active. */ - appIdPrefixTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface ConnectedAccountsModule { id: string; @@ -1177,10 +997,6 @@ export interface ConnectedAccountsModule { tableId?: string | null; ownerTableId?: string | null; tableName?: string | null; - /** TRGM similarity when searching `tableName`. Returns null when no trgm search filter is active. */ - tableNameTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface CryptoAddressesModule { id: string; @@ -1191,12 +1007,6 @@ export interface CryptoAddressesModule { ownerTableId?: string | null; tableName?: string | null; cryptoNetwork?: string | null; - /** TRGM similarity when searching `tableName`. Returns null when no trgm search filter is active. */ - tableNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `cryptoNetwork`. Returns null when no trgm search filter is active. */ - cryptoNetworkTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface CryptoAuthModule { id: string; @@ -1213,20 +1023,6 @@ export interface CryptoAuthModule { signInRecordFailure?: string | null; signUpWithKey?: string | null; signInWithChallenge?: string | null; - /** TRGM similarity when searching `userField`. Returns null when no trgm search filter is active. */ - userFieldTrgmSimilarity?: number | null; - /** TRGM similarity when searching `cryptoNetwork`. Returns null when no trgm search filter is active. */ - cryptoNetworkTrgmSimilarity?: number | null; - /** TRGM similarity when searching `signInRequestChallenge`. Returns null when no trgm search filter is active. */ - signInRequestChallengeTrgmSimilarity?: number | null; - /** TRGM similarity when searching `signInRecordFailure`. Returns null when no trgm search filter is active. */ - signInRecordFailureTrgmSimilarity?: number | null; - /** TRGM similarity when searching `signUpWithKey`. Returns null when no trgm search filter is active. */ - signUpWithKeyTrgmSimilarity?: number | null; - /** TRGM similarity when searching `signInWithChallenge`. Returns null when no trgm search filter is active. */ - signInWithChallengeTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface DefaultIdsModule { id: string; @@ -1245,10 +1041,6 @@ export interface DenormalizedTableField { updateDefaults?: boolean | null; funcName?: string | null; funcOrder?: number | null; - /** TRGM similarity when searching `funcName`. Returns null when no trgm search filter is active. */ - funcNameTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface EmailsModule { id: string; @@ -1258,10 +1050,6 @@ export interface EmailsModule { tableId?: string | null; ownerTableId?: string | null; tableName?: string | null; - /** TRGM similarity when searching `tableName`. Returns null when no trgm search filter is active. */ - tableNameTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface EncryptedSecretsModule { id: string; @@ -1269,10 +1057,6 @@ export interface EncryptedSecretsModule { schemaId?: string | null; tableId?: string | null; tableName?: string | null; - /** TRGM similarity when searching `tableName`. Returns null when no trgm search filter is active. */ - tableNameTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface FieldModule { id: string; @@ -1284,10 +1068,6 @@ export interface FieldModule { data?: Record | null; triggers?: string[] | null; functions?: string[] | null; - /** TRGM similarity when searching `nodeType`. Returns null when no trgm search filter is active. */ - nodeTypeTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface InvitesModule { id: string; @@ -1304,16 +1084,6 @@ export interface InvitesModule { prefix?: string | null; membershipType?: number | null; entityTableId?: string | null; - /** TRGM similarity when searching `invitesTableName`. Returns null when no trgm search filter is active. */ - invitesTableNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `claimedInvitesTableName`. Returns null when no trgm search filter is active. */ - claimedInvitesTableNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `submitInviteCodeFunction`. Returns null when no trgm search filter is active. */ - submitInviteCodeFunctionTrgmSimilarity?: number | null; - /** TRGM similarity when searching `prefix`. Returns null when no trgm search filter is active. */ - prefixTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface LevelsModule { id: string; @@ -1342,38 +1112,6 @@ export interface LevelsModule { membershipType?: number | null; entityTableId?: string | null; actorTableId?: string | null; - /** TRGM similarity when searching `stepsTableName`. Returns null when no trgm search filter is active. */ - stepsTableNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `achievementsTableName`. Returns null when no trgm search filter is active. */ - achievementsTableNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `levelsTableName`. Returns null when no trgm search filter is active. */ - levelsTableNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `levelRequirementsTableName`. Returns null when no trgm search filter is active. */ - levelRequirementsTableNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `completedStep`. Returns null when no trgm search filter is active. */ - completedStepTrgmSimilarity?: number | null; - /** TRGM similarity when searching `incompletedStep`. Returns null when no trgm search filter is active. */ - incompletedStepTrgmSimilarity?: number | null; - /** TRGM similarity when searching `tgAchievement`. Returns null when no trgm search filter is active. */ - tgAchievementTrgmSimilarity?: number | null; - /** TRGM similarity when searching `tgAchievementToggle`. Returns null when no trgm search filter is active. */ - tgAchievementToggleTrgmSimilarity?: number | null; - /** TRGM similarity when searching `tgAchievementToggleBoolean`. Returns null when no trgm search filter is active. */ - tgAchievementToggleBooleanTrgmSimilarity?: number | null; - /** TRGM similarity when searching `tgAchievementBoolean`. Returns null when no trgm search filter is active. */ - tgAchievementBooleanTrgmSimilarity?: number | null; - /** TRGM similarity when searching `upsertAchievement`. Returns null when no trgm search filter is active. */ - upsertAchievementTrgmSimilarity?: number | null; - /** TRGM similarity when searching `tgUpdateAchievements`. Returns null when no trgm search filter is active. */ - tgUpdateAchievementsTrgmSimilarity?: number | null; - /** TRGM similarity when searching `stepsRequired`. Returns null when no trgm search filter is active. */ - stepsRequiredTrgmSimilarity?: number | null; - /** TRGM similarity when searching `levelAchieved`. Returns null when no trgm search filter is active. */ - levelAchievedTrgmSimilarity?: number | null; - /** TRGM similarity when searching `prefix`. Returns null when no trgm search filter is active. */ - prefixTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface LimitsModule { id: string; @@ -1394,26 +1132,6 @@ export interface LimitsModule { membershipType?: number | null; entityTableId?: string | null; actorTableId?: string | null; - /** TRGM similarity when searching `tableName`. Returns null when no trgm search filter is active. */ - tableNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `defaultTableName`. Returns null when no trgm search filter is active. */ - defaultTableNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `limitIncrementFunction`. Returns null when no trgm search filter is active. */ - limitIncrementFunctionTrgmSimilarity?: number | null; - /** TRGM similarity when searching `limitDecrementFunction`. Returns null when no trgm search filter is active. */ - limitDecrementFunctionTrgmSimilarity?: number | null; - /** TRGM similarity when searching `limitIncrementTrigger`. Returns null when no trgm search filter is active. */ - limitIncrementTriggerTrgmSimilarity?: number | null; - /** TRGM similarity when searching `limitDecrementTrigger`. Returns null when no trgm search filter is active. */ - limitDecrementTriggerTrgmSimilarity?: number | null; - /** TRGM similarity when searching `limitUpdateTrigger`. Returns null when no trgm search filter is active. */ - limitUpdateTriggerTrgmSimilarity?: number | null; - /** TRGM similarity when searching `limitCheckFunction`. Returns null when no trgm search filter is active. */ - limitCheckFunctionTrgmSimilarity?: number | null; - /** TRGM similarity when searching `prefix`. Returns null when no trgm search filter is active. */ - prefixTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface MembershipTypesModule { id: string; @@ -1421,10 +1139,6 @@ export interface MembershipTypesModule { schemaId?: string | null; tableId?: string | null; tableName?: string | null; - /** TRGM similarity when searching `tableName`. Returns null when no trgm search filter is active. */ - tableNameTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface MembershipsModule { id: string; @@ -1458,32 +1172,6 @@ export interface MembershipsModule { entityIdsByMask?: string | null; entityIdsByPerm?: string | null; entityIdsFunction?: string | null; - /** TRGM similarity when searching `membershipsTableName`. Returns null when no trgm search filter is active. */ - membershipsTableNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `membersTableName`. Returns null when no trgm search filter is active. */ - membersTableNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `membershipDefaultsTableName`. Returns null when no trgm search filter is active. */ - membershipDefaultsTableNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `grantsTableName`. Returns null when no trgm search filter is active. */ - grantsTableNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `adminGrantsTableName`. Returns null when no trgm search filter is active. */ - adminGrantsTableNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `ownerGrantsTableName`. Returns null when no trgm search filter is active. */ - ownerGrantsTableNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `prefix`. Returns null when no trgm search filter is active. */ - prefixTrgmSimilarity?: number | null; - /** TRGM similarity when searching `actorMaskCheck`. Returns null when no trgm search filter is active. */ - actorMaskCheckTrgmSimilarity?: number | null; - /** TRGM similarity when searching `actorPermCheck`. Returns null when no trgm search filter is active. */ - actorPermCheckTrgmSimilarity?: number | null; - /** TRGM similarity when searching `entityIdsByMask`. Returns null when no trgm search filter is active. */ - entityIdsByMaskTrgmSimilarity?: number | null; - /** TRGM similarity when searching `entityIdsByPerm`. Returns null when no trgm search filter is active. */ - entityIdsByPermTrgmSimilarity?: number | null; - /** TRGM similarity when searching `entityIdsFunction`. Returns null when no trgm search filter is active. */ - entityIdsFunctionTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface PermissionsModule { id: string; @@ -1503,22 +1191,6 @@ export interface PermissionsModule { getMask?: string | null; getByMask?: string | null; getMaskByName?: string | null; - /** TRGM similarity when searching `tableName`. Returns null when no trgm search filter is active. */ - tableNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `defaultTableName`. Returns null when no trgm search filter is active. */ - defaultTableNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `prefix`. Returns null when no trgm search filter is active. */ - prefixTrgmSimilarity?: number | null; - /** TRGM similarity when searching `getPaddedMask`. Returns null when no trgm search filter is active. */ - getPaddedMaskTrgmSimilarity?: number | null; - /** TRGM similarity when searching `getMask`. Returns null when no trgm search filter is active. */ - getMaskTrgmSimilarity?: number | null; - /** TRGM similarity when searching `getByMask`. Returns null when no trgm search filter is active. */ - getByMaskTrgmSimilarity?: number | null; - /** TRGM similarity when searching `getMaskByName`. Returns null when no trgm search filter is active. */ - getMaskByNameTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface PhoneNumbersModule { id: string; @@ -1528,10 +1200,6 @@ export interface PhoneNumbersModule { tableId?: string | null; ownerTableId?: string | null; tableName?: string | null; - /** TRGM similarity when searching `tableName`. Returns null when no trgm search filter is active. */ - tableNameTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface ProfilesModule { id: string; @@ -1552,18 +1220,6 @@ export interface ProfilesModule { permissionsTableId?: string | null; membershipsTableId?: string | null; prefix?: string | null; - /** TRGM similarity when searching `tableName`. Returns null when no trgm search filter is active. */ - tableNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `profilePermissionsTableName`. Returns null when no trgm search filter is active. */ - profilePermissionsTableNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `profileGrantsTableName`. Returns null when no trgm search filter is active. */ - profileGrantsTableNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `profileDefinitionGrantsTableName`. Returns null when no trgm search filter is active. */ - profileDefinitionGrantsTableNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `prefix`. Returns null when no trgm search filter is active. */ - prefixTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface SecretsModule { id: string; @@ -1571,10 +1227,6 @@ export interface SecretsModule { schemaId?: string | null; tableId?: string | null; tableName?: string | null; - /** TRGM similarity when searching `tableName`. Returns null when no trgm search filter is active. */ - tableNameTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface SessionsModule { id: string; @@ -1588,14 +1240,6 @@ export interface SessionsModule { sessionsTable?: string | null; sessionCredentialsTable?: string | null; authSettingsTable?: string | null; - /** TRGM similarity when searching `sessionsTable`. Returns null when no trgm search filter is active. */ - sessionsTableTrgmSimilarity?: number | null; - /** TRGM similarity when searching `sessionCredentialsTable`. Returns null when no trgm search filter is active. */ - sessionCredentialsTableTrgmSimilarity?: number | null; - /** TRGM similarity when searching `authSettingsTable`. Returns null when no trgm search filter is active. */ - authSettingsTableTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface UserAuthModule { id: string; @@ -1624,40 +1268,6 @@ export interface UserAuthModule { signInOneTimeTokenFunction?: string | null; oneTimeTokenFunction?: string | null; extendTokenExpires?: string | null; - /** TRGM similarity when searching `auditsTableName`. Returns null when no trgm search filter is active. */ - auditsTableNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `signInFunction`. Returns null when no trgm search filter is active. */ - signInFunctionTrgmSimilarity?: number | null; - /** TRGM similarity when searching `signUpFunction`. Returns null when no trgm search filter is active. */ - signUpFunctionTrgmSimilarity?: number | null; - /** TRGM similarity when searching `signOutFunction`. Returns null when no trgm search filter is active. */ - signOutFunctionTrgmSimilarity?: number | null; - /** TRGM similarity when searching `setPasswordFunction`. Returns null when no trgm search filter is active. */ - setPasswordFunctionTrgmSimilarity?: number | null; - /** TRGM similarity when searching `resetPasswordFunction`. Returns null when no trgm search filter is active. */ - resetPasswordFunctionTrgmSimilarity?: number | null; - /** TRGM similarity when searching `forgotPasswordFunction`. Returns null when no trgm search filter is active. */ - forgotPasswordFunctionTrgmSimilarity?: number | null; - /** TRGM similarity when searching `sendVerificationEmailFunction`. Returns null when no trgm search filter is active. */ - sendVerificationEmailFunctionTrgmSimilarity?: number | null; - /** TRGM similarity when searching `verifyEmailFunction`. Returns null when no trgm search filter is active. */ - verifyEmailFunctionTrgmSimilarity?: number | null; - /** TRGM similarity when searching `verifyPasswordFunction`. Returns null when no trgm search filter is active. */ - verifyPasswordFunctionTrgmSimilarity?: number | null; - /** TRGM similarity when searching `checkPasswordFunction`. Returns null when no trgm search filter is active. */ - checkPasswordFunctionTrgmSimilarity?: number | null; - /** TRGM similarity when searching `sendAccountDeletionEmailFunction`. Returns null when no trgm search filter is active. */ - sendAccountDeletionEmailFunctionTrgmSimilarity?: number | null; - /** TRGM similarity when searching `deleteAccountFunction`. Returns null when no trgm search filter is active. */ - deleteAccountFunctionTrgmSimilarity?: number | null; - /** TRGM similarity when searching `signInOneTimeTokenFunction`. Returns null when no trgm search filter is active. */ - signInOneTimeTokenFunctionTrgmSimilarity?: number | null; - /** TRGM similarity when searching `oneTimeTokenFunction`. Returns null when no trgm search filter is active. */ - oneTimeTokenFunctionTrgmSimilarity?: number | null; - /** TRGM similarity when searching `extendTokenExpires`. Returns null when no trgm search filter is active. */ - extendTokenExpiresTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export interface UsersModule { id: string; @@ -1667,25 +1277,86 @@ export interface UsersModule { tableName?: string | null; typeTableId?: string | null; typeTableName?: string | null; - /** TRGM similarity when searching `tableName`. Returns null when no trgm search filter is active. */ - tableNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `typeTableName`. Returns null when no trgm search filter is active. */ - typeTableNameTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } -export interface UuidModule { +/** An owned, executable blueprint scoped to a specific database. Created by copying from a blueprint_template via copy_template_to_blueprint() or built from scratch. The owner can customize the definition before executing it with construct_blueprint(). Each blueprint tracks its execution status (draft/constructed/failed) and stores the ref_map of created table IDs after construction. */ +export interface Blueprint { + /** Unique identifier for this blueprint. */ id: string; + /** The user who owns this blueprint. */ + ownerId?: string | null; + /** The database this blueprint is scoped to. Tables created by construct_blueprint() are provisioned in this database. */ databaseId?: string | null; - schemaId?: string | null; - uuidFunction?: string | null; - uuidSeed?: string | null; - /** TRGM similarity when searching `uuidFunction`. Returns null when no trgm search filter is active. */ - uuidFunctionTrgmSimilarity?: number | null; - /** TRGM similarity when searching `uuidSeed`. Returns null when no trgm search filter is active. */ - uuidSeedTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; + /** Machine-readable name for the blueprint. Must be unique per database. */ + name?: string | null; + /** Human-readable display name for the blueprint. */ + displayName?: string | null; + /** Optional description of the blueprint. */ + description?: string | null; + /** The blueprint definition as a JSONB document. Same format as blueprint_template.definition: contains tables[] (with nodes[], fields[], grants[], policies[] using $type) and relations[] (using $type). This is a mutable copy that the owner can customize before executing. */ + definition?: Record | null; + /** If this blueprint was created by copying a template, the ID of the source template. NULL if built from scratch. */ + templateId?: string | null; + /** Execution state of the blueprint. draft: not yet executed (definition can still be modified). constructed: successfully executed via construct_blueprint(). failed: execution failed (see error_details). Defaults to draft. */ + status?: string | null; + /** Timestamp when construct_blueprint() successfully completed. NULL until constructed. */ + constructedAt?: string | null; + /** Error message from the most recent failed construct_blueprint() attempt. NULL unless status is failed. */ + errorDetails?: string | null; + /** Mapping of ref names to created table UUIDs, populated by construct_blueprint() after successful execution. Format: {"products": "uuid", "categories": "uuid", ...}. Defaults to empty object. */ + refMap?: Record | null; + /** Immutable snapshot of the definition at construct-time. Preserved so the exact definition that was executed is recorded even if the user later modifies the definition for re-execution. NULL until constructed. */ + constructedDefinition?: Record | null; + /** UUIDv5 Merkle root hash of the definition. Computed automatically via trigger from the ordered table_hashes. Used for content-addressable deduplication and provenance tracking. Backend-computed — clients should never set this directly. */ + definitionHash?: string | null; + /** JSONB map of table ref names to their individual UUIDv5 content hashes. Each table hash is computed from the canonical jsonb::text of the table entry. Enables structural comparison at the table level across blueprints and templates. Backend-computed via trigger. */ + tableHashes?: Record | null; + /** Timestamp when this blueprint was created. */ + createdAt?: string | null; + /** Timestamp when this blueprint was last modified. */ + updatedAt?: string | null; +} +/** A shareable, versioned schema recipe for the blueprint marketplace. Templates define arrays of secure_table_provision + relation_provision inputs that together describe a complete domain schema (e.g. e-commerce, telemedicine, habit tracker). Templates are never executed directly — they are copied into a blueprint first via copy_template_to_blueprint(). Can be private (owner-only) or public (marketplace-visible). */ +export interface BlueprintTemplate { + /** Unique identifier for this template. */ + id: string; + /** Machine-readable name for the template (e.g. e_commerce_basic). Must be unique per owner + version. */ + name?: string | null; + /** Semantic version string. Defaults to 1.0.0. */ + version?: string | null; + /** Human-readable display name for the template (e.g. E-Commerce Basic). */ + displayName?: string | null; + /** Optional description of what the template provisions. */ + description?: string | null; + /** The user who created or published this template. */ + ownerId?: string | null; + /** Access control for the template. private: only the owner can see and copy. public: anyone can browse and copy from the marketplace. Defaults to private. */ + visibility?: string | null; + /** Domain categories for marketplace browsing (e.g. e-commerce, healthcare, social). Defaults to empty array. */ + categories?: string[] | null; + /** Freeform tags for search and discovery (e.g. products, orders, payments). Defaults to empty array. */ + tags?: string[] | null; + /** The blueprint definition as a JSONB document. Contains tables[] (each with nodes[] for data behaviors via string shorthand or {"$type": "...", "data": {...}} objects, fields[], grants[], and policies[] using {"$type": "...", "data": {...}}), and relations[] (using $type for relation_type with junction config in data). This is the core payload that gets copied into a blueprint for execution. */ + definition?: Record | null; + /** Version of the definition format schema. Used for forward-compatible parsing. Defaults to 1. */ + definitionSchemaVersion?: string | null; + /** Provenance of the template. user: manually created by a human. system: official curated template from the Constructive team. agent: AI-generated. Defaults to user. */ + source?: string | null; + /** Complexity indicator for marketplace filtering. simple: 3-5 tables. moderate: 6-12 tables. complex: 13+ tables. NULL if not categorized. */ + complexity?: string | null; + /** Denormalized count of how many blueprints have been created from this template via copy_template_to_blueprint(). Incremented automatically. Defaults to 0. */ + copyCount?: number | null; + /** Denormalized count of how many derivative templates have been forked from this template. Defaults to 0. */ + forkCount?: number | null; + /** If this template was forked from another template, the ID of the parent. NULL for original templates. */ + forkedFromId?: string | null; + /** UUIDv5 Merkle root hash of the definition. Computed automatically via trigger from the ordered table_hashes. Used for content-addressable deduplication, provenance tracking, and cross-blueprint structural comparison. NULL columns are backend-computed — clients should never set this directly. */ + definitionHash?: string | null; + /** JSONB map of table ref names to their individual UUIDv5 content hashes (e.g. {"products": "uuid", "categories": "uuid"}). Each table hash is computed from the canonical jsonb::text of the table entry. Enables structural comparison at the table level across different blueprints. Backend-computed via trigger. */ + tableHashes?: Record | null; + /** Timestamp when this template was created. */ + createdAt?: string | null; + /** Timestamp when this template was last modified. */ + updatedAt?: string | null; } /** Tracks database provisioning requests and their status. The BEFORE INSERT trigger creates the database and sets database_id before RLS policies are evaluated. */ export interface DatabaseProvisionModule { @@ -1712,18 +1383,6 @@ export interface DatabaseProvisionModule { createdAt?: string | null; updatedAt?: string | null; completedAt?: string | null; - /** TRGM similarity when searching `databaseName`. Returns null when no trgm search filter is active. */ - databaseNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `subdomain`. Returns null when no trgm search filter is active. */ - subdomainTrgmSimilarity?: number | null; - /** TRGM similarity when searching `domain`. Returns null when no trgm search filter is active. */ - domainTrgmSimilarity?: number | null; - /** TRGM similarity when searching `status`. Returns null when no trgm search filter is active. */ - statusTrgmSimilarity?: number | null; - /** TRGM similarity when searching `errorMessage`. Returns null when no trgm search filter is active. */ - errorMessageTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } /** Records of admin role grants and revocations between members */ export interface AppAdminGrant { @@ -1855,10 +1514,6 @@ export interface OrgChartEdge { positionTitle?: string | null; /** Numeric seniority level for this position (higher = more senior) */ positionLevel?: number | null; - /** TRGM similarity when searching `positionTitle`. Returns null when no trgm search filter is active. */ - positionTitleTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } /** Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table */ export interface OrgChartEdgeGrant { @@ -1869,7 +1524,7 @@ export interface OrgChartEdgeGrant { childId?: string | null; /** User ID of the manager being assigned; NULL for top-level positions */ parentId?: string | null; - /** User ID of the admin who performed this grant or revocation */ + /** User ID of the admin who performed this grant or revocation; NULL if grantor was deleted */ grantorId?: string | null; /** TRUE to add/update the edge, FALSE to remove it */ isGrant?: boolean | null; @@ -1879,10 +1534,14 @@ export interface OrgChartEdgeGrant { positionLevel?: number | null; /** Timestamp when this grant or revocation was recorded */ createdAt?: string | null; - /** TRGM similarity when searching `positionTitle`. Returns null when no trgm search filter is active. */ - positionTitleTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; +} +/** Stores the default permission bitmask assigned to new members upon joining */ +export interface OrgPermissionDefault { + id: string; + /** Default permission bitmask applied to new members */ + permissions?: string | null; + /** References the entity these default permissions apply to */ + entityId?: string | null; } /** Tracks per-actor usage counts against configurable maximum limits */ export interface AppLimit { @@ -1931,6 +1590,76 @@ export interface AppAchievement { createdAt?: string | null; updatedAt?: string | null; } +/** Defines available levels that users can achieve by completing requirements */ +export interface AppLevel { + id: string; + /** Unique name of the level */ + name?: string | null; + /** Human-readable description of what this level represents */ + description?: string | null; + /** Badge or icon image associated with this level */ + image?: ConstructiveInternalTypeImage | null; + /** Optional owner (actor) who created or manages this level */ + ownerId?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} +/** User email addresses with verification and primary-email management */ +export interface Email { + id: string; + ownerId?: string | null; + /** The email address */ + email?: ConstructiveInternalTypeEmail | null; + /** Whether the email address has been verified via confirmation link */ + isVerified?: boolean | null; + /** Whether this is the user's primary email address */ + isPrimary?: boolean | null; + createdAt?: string | null; + updatedAt?: string | null; +} +/** User phone numbers with country code, verification, and primary-number management */ +export interface PhoneNumber { + id: string; + ownerId?: string | null; + /** Country calling code (e.g. +1, +44) */ + cc?: string | null; + /** The phone number without country code */ + number?: string | null; + /** Whether the phone number has been verified via SMS code */ + isVerified?: boolean | null; + /** Whether this is the user's primary phone number */ + isPrimary?: boolean | null; + createdAt?: string | null; + updatedAt?: string | null; +} +/** Cryptocurrency wallet addresses owned by users, with network-specific validation and verification */ +export interface CryptoAddress { + id: string; + ownerId?: string | null; + /** The cryptocurrency wallet address, validated against network-specific patterns */ + address?: string | null; + /** Whether ownership of this address has been cryptographically verified */ + isVerified?: boolean | null; + /** Whether this is the user's primary cryptocurrency address */ + isPrimary?: boolean | null; + createdAt?: string | null; + updatedAt?: string | null; +} +/** OAuth and social login connections linking external service accounts to users */ +export interface ConnectedAccount { + id: string; + ownerId?: string | null; + /** The service used, e.g. `twitter` or `github`. */ + service?: string | null; + /** A unique identifier for the user within the service */ + identifier?: string | null; + /** Additional profile details extracted from this login method */ + details?: Record | null; + /** Whether this connected account has been verified */ + isVerified?: boolean | null; + createdAt?: string | null; + updatedAt?: string | null; +} /** Invitation records sent to prospective members via email, with token-based redemption and expiration */ export interface Invite { id: string; @@ -1954,10 +1683,6 @@ export interface Invite { expiresAt?: string | null; createdAt?: string | null; updatedAt?: string | null; - /** TRGM similarity when searching `inviteToken`. Returns null when no trgm search filter is active. */ - inviteTokenTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } /** Records of successfully claimed invitations, linking senders to receivers */ export interface ClaimedInvite { @@ -1997,10 +1722,6 @@ export interface OrgInvite { createdAt?: string | null; updatedAt?: string | null; entityId?: string | null; - /** TRGM similarity when searching `inviteToken`. Returns null when no trgm search filter is active. */ - inviteTokenTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } /** Records of successfully claimed invitations, linking senders to receivers */ export interface OrgClaimedInvite { @@ -2015,6 +1736,24 @@ export interface OrgClaimedInvite { updatedAt?: string | null; entityId?: string | null; } +/** Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) */ +export interface AuditLog { + id: string; + /** Type of authentication event (e.g. sign_in, sign_up, password_change, verify_email) */ + event?: string | null; + /** User who performed the authentication action; NULL if user was deleted */ + actorId?: string | null; + /** Request origin (domain) where the auth event occurred */ + origin?: ConstructiveInternalTypeOrigin | null; + /** Browser or client user-agent string from the request */ + userAgent?: string | null; + /** IP address of the client that initiated the auth event */ + ipAddress?: string | null; + /** Whether the authentication attempt succeeded */ + success?: boolean | null; + /** Timestamp when the audit event was recorded */ + createdAt?: string | null; +} /** A ref is a data structure for pointing to a commit. */ export interface Ref { /** The primary unique identifier for the ref. */ @@ -2024,10 +1763,6 @@ export interface Ref { databaseId?: string | null; storeId?: string | null; commitId?: string | null; - /** TRGM similarity when searching `name`. Returns null when no trgm search filter is active. */ - nameTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } /** A store represents an isolated object repository within a database. */ export interface Store { @@ -2040,10 +1775,6 @@ export interface Store { /** The current head tree_id for this store. */ hash?: string | null; createdAt?: string | null; - /** TRGM similarity when searching `name`. Returns null when no trgm search filter is active. */ - nameTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } /** Stores the default permission bitmask assigned to new members upon joining */ export interface AppPermissionDefault { @@ -2051,56 +1782,10 @@ export interface AppPermissionDefault { /** Default permission bitmask applied to new members */ permissions?: string | null; } -/** Cryptocurrency wallet addresses owned by users, with network-specific validation and verification */ -export interface CryptoAddress { - id: string; - ownerId?: string | null; - /** The cryptocurrency wallet address, validated against network-specific patterns */ - address?: string | null; - /** Whether ownership of this address has been cryptographically verified */ - isVerified?: boolean | null; - /** Whether this is the user's primary cryptocurrency address */ - isPrimary?: boolean | null; - createdAt?: string | null; - updatedAt?: string | null; - /** TRGM similarity when searching `address`. Returns null when no trgm search filter is active. */ - addressTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; -} export interface RoleType { id: number; name?: string | null; } -/** Stores the default permission bitmask assigned to new members upon joining */ -export interface OrgPermissionDefault { - id: string; - /** Default permission bitmask applied to new members */ - permissions?: string | null; - /** References the entity these default permissions apply to */ - entityId?: string | null; -} -/** User phone numbers with country code, verification, and primary-number management */ -export interface PhoneNumber { - id: string; - ownerId?: string | null; - /** Country calling code (e.g. +1, +44) */ - cc?: string | null; - /** The phone number without country code */ - number?: string | null; - /** Whether the phone number has been verified via SMS code */ - isVerified?: boolean | null; - /** Whether this is the user's primary phone number */ - isPrimary?: boolean | null; - createdAt?: string | null; - updatedAt?: string | null; - /** TRGM similarity when searching `cc`. Returns null when no trgm search filter is active. */ - ccTrgmSimilarity?: number | null; - /** TRGM similarity when searching `number`. Returns null when no trgm search filter is active. */ - numberTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; -} /** Default maximum values for each named limit, applied when no per-actor override exists */ export interface AppLimitDefault { id: string; @@ -2117,27 +1802,6 @@ export interface OrgLimitDefault { /** Default maximum usage allowed for this limit */ max?: number | null; } -/** OAuth and social login connections linking external service accounts to users */ -export interface ConnectedAccount { - id: string; - ownerId?: string | null; - /** The service used, e.g. `twitter` or `github`. */ - service?: string | null; - /** A unique identifier for the user within the service */ - identifier?: string | null; - /** Additional profile details extracted from this login method */ - details?: Record | null; - /** Whether this connected account has been verified */ - isVerified?: boolean | null; - createdAt?: string | null; - updatedAt?: string | null; - /** TRGM similarity when searching `service`. Returns null when no trgm search filter is active. */ - serviceTrgmSimilarity?: number | null; - /** TRGM similarity when searching `identifier`. Returns null when no trgm search filter is active. */ - identifierTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; -} /** Registry of high-level semantic AST node types using domain-prefixed naming. These IR nodes compile to multiple targets (Postgres RLS, egress, ingress, etc.). */ export interface NodeTypeRegistry { /** PascalCase domain-prefixed node type name (e.g., AuthzDirectOwner, DataTimestamps, FieldImmutable) */ @@ -2156,18 +1820,6 @@ export interface NodeTypeRegistry { tags?: string[] | null; createdAt?: string | null; updatedAt?: string | null; - /** TRGM similarity when searching `name`. Returns null when no trgm search filter is active. */ - nameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `slug`. Returns null when no trgm search filter is active. */ - slugTrgmSimilarity?: number | null; - /** TRGM similarity when searching `category`. Returns null when no trgm search filter is active. */ - categoryTrgmSimilarity?: number | null; - /** TRGM similarity when searching `displayName`. Returns null when no trgm search filter is active. */ - displayNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `description`. Returns null when no trgm search filter is active. */ - descriptionTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } /** Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) */ export interface MembershipType { @@ -2179,12 +1831,6 @@ export interface MembershipType { description?: string | null; /** Short prefix used to namespace tables and functions for this membership scope */ prefix?: string | null; - /** TRGM similarity when searching `description`. Returns null when no trgm search filter is active. */ - descriptionTrgmSimilarity?: number | null; - /** TRGM similarity when searching `prefix`. Returns null when no trgm search filter is active. */ - prefixTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } /** A commit records changes to the repository. */ export interface Commit { @@ -2204,10 +1850,6 @@ export interface Commit { /** The root of the tree */ treeId?: string | null; date?: string | null; - /** TRGM similarity when searching `message`. Returns null when no trgm search filter is active. */ - messageTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } /** Default membership settings per entity, controlling initial approval and verification state for new members */ export interface AppMembershipDefault { @@ -2233,16 +1875,6 @@ export interface RlsModule { authenticateStrict?: string | null; currentRole?: string | null; currentRoleId?: string | null; - /** TRGM similarity when searching `authenticate`. Returns null when no trgm search filter is active. */ - authenticateTrgmSimilarity?: number | null; - /** TRGM similarity when searching `authenticateStrict`. Returns null when no trgm search filter is active. */ - authenticateStrictTrgmSimilarity?: number | null; - /** TRGM similarity when searching `currentRole`. Returns null when no trgm search filter is active. */ - currentRoleTrgmSimilarity?: number | null; - /** TRGM similarity when searching `currentRoleId`. Returns null when no trgm search filter is active. */ - currentRoleIdTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } /** Default membership settings per entity, controlling initial approval and verification state for new members */ export interface OrgMembershipDefault { @@ -2260,46 +1892,6 @@ export interface OrgMembershipDefault { /** When a group is created, whether to auto-add existing org members as group members */ createGroupsCascadeMembers?: boolean | null; } -/** Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) */ -export interface AuditLog { - id: string; - /** Type of authentication event (e.g. sign_in, sign_up, password_change, verify_email) */ - event?: string | null; - /** User who performed the authentication action */ - actorId?: string | null; - /** Request origin (domain) where the auth event occurred */ - origin?: ConstructiveInternalTypeOrigin | null; - /** Browser or client user-agent string from the request */ - userAgent?: string | null; - /** IP address of the client that initiated the auth event */ - ipAddress?: string | null; - /** Whether the authentication attempt succeeded */ - success?: boolean | null; - /** Timestamp when the audit event was recorded */ - createdAt?: string | null; - /** TRGM similarity when searching `userAgent`. Returns null when no trgm search filter is active. */ - userAgentTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; -} -/** Defines available levels that users can achieve by completing requirements */ -export interface AppLevel { - id: string; - /** Unique name of the level */ - name?: string | null; - /** Human-readable description of what this level represents */ - description?: string | null; - /** Badge or icon image associated with this level */ - image?: ConstructiveInternalTypeImage | null; - /** Optional owner (actor) who created or manages this level */ - ownerId?: string | null; - createdAt?: string | null; - updatedAt?: string | null; - /** TRGM similarity when searching `description`. Returns null when no trgm search filter is active. */ - descriptionTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; -} export interface SqlMigration { id: number; name?: string | null; @@ -2314,33 +1906,6 @@ export interface SqlMigration { action?: string | null; actionId?: string | null; actorId?: string | null; - /** TRGM similarity when searching `name`. Returns null when no trgm search filter is active. */ - nameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `deploy`. Returns null when no trgm search filter is active. */ - deployTrgmSimilarity?: number | null; - /** TRGM similarity when searching `content`. Returns null when no trgm search filter is active. */ - contentTrgmSimilarity?: number | null; - /** TRGM similarity when searching `revert`. Returns null when no trgm search filter is active. */ - revertTrgmSimilarity?: number | null; - /** TRGM similarity when searching `verify`. Returns null when no trgm search filter is active. */ - verifyTrgmSimilarity?: number | null; - /** TRGM similarity when searching `action`. Returns null when no trgm search filter is active. */ - actionTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; -} -/** User email addresses with verification and primary-email management */ -export interface Email { - id: string; - ownerId?: string | null; - /** The email address */ - email?: ConstructiveInternalTypeEmail | null; - /** Whether the email address has been verified via confirmation link */ - isVerified?: boolean | null; - /** Whether this is the user's primary email address */ - isPrimary?: boolean | null; - createdAt?: string | null; - updatedAt?: string | null; } export interface User { id: string; @@ -2355,7 +1920,7 @@ export interface User { searchTsvRank?: number | null; /** TRGM similarity when searching `displayName`. Returns null when no trgm search filter is active. */ displayNameTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ + /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. */ searchScore?: number | null; } export interface AstMigration { @@ -2372,10 +1937,6 @@ export interface AstMigration { action?: string | null; actionId?: string | null; actorId?: string | null; - /** TRGM similarity when searching `action`. Returns null when no trgm search filter is active. */ - actionTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } /** Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status */ export interface AppMembership { @@ -2427,28 +1988,6 @@ export interface HierarchyModule { getManagersFunction?: string | null; isManagerOfFunction?: string | null; createdAt?: string | null; - /** TRGM similarity when searching `chartEdgesTableName`. Returns null when no trgm search filter is active. */ - chartEdgesTableNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `hierarchySprtTableName`. Returns null when no trgm search filter is active. */ - hierarchySprtTableNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `chartEdgeGrantsTableName`. Returns null when no trgm search filter is active. */ - chartEdgeGrantsTableNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `prefix`. Returns null when no trgm search filter is active. */ - prefixTrgmSimilarity?: number | null; - /** TRGM similarity when searching `privateSchemaName`. Returns null when no trgm search filter is active. */ - privateSchemaNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `sprtTableName`. Returns null when no trgm search filter is active. */ - sprtTableNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `rebuildHierarchyFunction`. Returns null when no trgm search filter is active. */ - rebuildHierarchyFunctionTrgmSimilarity?: number | null; - /** TRGM similarity when searching `getSubordinatesFunction`. Returns null when no trgm search filter is active. */ - getSubordinatesFunctionTrgmSimilarity?: number | null; - /** TRGM similarity when searching `getManagersFunction`. Returns null when no trgm search filter is active. */ - getManagersFunctionTrgmSimilarity?: number | null; - /** TRGM similarity when searching `isManagerOfFunction`. Returns null when no trgm search filter is active. */ - isManagerOfFunctionTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } // ============ Relation Helper Types ============ export interface ConnectionResult { @@ -2463,9 +2002,9 @@ export interface PageInfo { endCursor?: string | null; } // ============ Entity Relation Types ============ +export interface GetAllRecordRelations {} export interface OrgGetManagersRecordRelations {} export interface OrgGetSubordinatesRecordRelations {} -export interface GetAllRecordRelations {} export interface ObjectRelations {} export interface AppPermissionRelations {} export interface OrgPermissionRelations {} @@ -2492,6 +2031,9 @@ export interface DatabaseRelations { viewGrants?: ConnectionResult; viewRules?: ConnectionResult; defaultPrivileges?: ConnectionResult; + enums?: ConnectionResult; + embeddingChunks?: ConnectionResult; + databaseTransfers?: ConnectionResult; apis?: ConnectionResult; apiModules?: ConnectionResult; apiSchemas?: ConnectionResult; @@ -2521,10 +2063,10 @@ export interface DatabaseRelations { sessionsModules?: ConnectionResult; userAuthModules?: ConnectionResult; usersModules?: ConnectionResult; - uuidModules?: ConnectionResult; tableTemplateModules?: ConnectionResult; secureTableProvisions?: ConnectionResult; relationProvisions?: ConnectionResult; + blueprints?: ConnectionResult; databaseProvisionModules?: ConnectionResult; } export interface SchemaRelations { @@ -2533,6 +2075,7 @@ export interface SchemaRelations { schemaGrants?: ConnectionResult; views?: ConnectionResult; defaultPrivileges?: ConnectionResult; + enums?: ConnectionResult; apiSchemas?: ConnectionResult; tableTemplateModulesByPrivateSchemaId?: ConnectionResult; tableTemplateModules?: ConnectionResult; @@ -2553,6 +2096,8 @@ export interface TableRelations { uniqueConstraints?: ConnectionResult; views?: ConnectionResult; viewTables?: ConnectionResult; + embeddingChunksByChunksTableId?: ConnectionResult; + embeddingChunks?: ConnectionResult; tableTemplateModulesByOwnerTableId?: ConnectionResult; tableTemplateModules?: ConnectionResult; secureTableProvisions?: ConnectionResult; @@ -2620,6 +2165,13 @@ export interface ViewRuleRelations { database?: Database | null; view?: View | null; } +export interface EmbeddingChunkRelations { + chunksTable?: Table | null; + database?: Database | null; + embeddingField?: Field | null; + parentFkField?: Field | null; + table?: Table | null; +} export interface TableTemplateModuleRelations { database?: Database | null; ownerTable?: Table | null; @@ -2645,6 +2197,10 @@ export interface DefaultPrivilegeRelations { database?: Database | null; schema?: Schema | null; } +export interface EnumRelations { + database?: Database | null; + schema?: Schema | null; +} export interface ApiSchemaRelations { api?: Api | null; database?: Database | null; @@ -2674,6 +2230,9 @@ export interface SiteThemeRelations { export interface TriggerFunctionRelations { database?: Database | null; } +export interface DatabaseTransferRelations { + database?: Database | null; +} export interface ApiRelations { database?: Database | null; apiModules?: ConnectionResult; @@ -2852,9 +2411,14 @@ export interface UsersModuleRelations { table?: Table | null; typeTable?: Table | null; } -export interface UuidModuleRelations { +export interface BlueprintRelations { database?: Database | null; - schema?: Schema | null; + template?: BlueprintTemplate | null; +} +export interface BlueprintTemplateRelations { + forkedFrom?: BlueprintTemplate | null; + blueprintTemplatesByForkedFromId?: ConnectionResult; + blueprintsByTemplateId?: ConnectionResult; } export interface DatabaseProvisionModuleRelations { database?: Database | null; @@ -2905,6 +2469,9 @@ export interface OrgChartEdgeGrantRelations { grantor?: User | null; parent?: User | null; } +export interface OrgPermissionDefaultRelations { + entity?: User | null; +} export interface AppLimitRelations { actor?: User | null; } @@ -2918,6 +2485,21 @@ export interface AppStepRelations { export interface AppAchievementRelations { actor?: User | null; } +export interface AppLevelRelations { + owner?: User | null; +} +export interface EmailRelations { + owner?: User | null; +} +export interface PhoneNumberRelations { + owner?: User | null; +} +export interface CryptoAddressRelations { + owner?: User | null; +} +export interface ConnectedAccountRelations { + owner?: User | null; +} export interface InviteRelations { sender?: User | null; } @@ -2935,24 +2517,15 @@ export interface OrgClaimedInviteRelations { receiver?: User | null; sender?: User | null; } +export interface AuditLogRelations { + actor?: User | null; +} export interface RefRelations {} export interface StoreRelations {} export interface AppPermissionDefaultRelations {} -export interface CryptoAddressRelations { - owner?: User | null; -} export interface RoleTypeRelations {} -export interface OrgPermissionDefaultRelations { - entity?: User | null; -} -export interface PhoneNumberRelations { - owner?: User | null; -} export interface AppLimitDefaultRelations {} export interface OrgLimitDefaultRelations {} -export interface ConnectedAccountRelations { - owner?: User | null; -} export interface NodeTypeRegistryRelations {} export interface MembershipTypeRelations {} export interface CommitRelations {} @@ -2968,32 +2541,29 @@ export interface RlsModuleRelations { export interface OrgMembershipDefaultRelations { entity?: User | null; } -export interface AuditLogRelations { - actor?: User | null; -} -export interface AppLevelRelations { - owner?: User | null; -} export interface SqlMigrationRelations {} -export interface EmailRelations { - owner?: User | null; -} export interface UserRelations { roleType?: RoleType | null; appMembershipByActorId?: AppMembership | null; orgMembershipDefaultByEntityId?: OrgMembershipDefault | null; ownedDatabases?: ConnectionResult; + appAdminGrantsByActorId?: ConnectionResult; appAdminGrantsByGrantorId?: ConnectionResult; + appOwnerGrantsByActorId?: ConnectionResult; appOwnerGrantsByGrantorId?: ConnectionResult; + appGrantsByActorId?: ConnectionResult; appGrantsByGrantorId?: ConnectionResult; orgMembershipsByActorId?: ConnectionResult; orgMembershipsByEntityId?: ConnectionResult; orgMembersByActorId?: ConnectionResult; orgMembersByEntityId?: ConnectionResult; + orgAdminGrantsByActorId?: ConnectionResult; orgAdminGrantsByEntityId?: ConnectionResult; orgAdminGrantsByGrantorId?: ConnectionResult; + orgOwnerGrantsByActorId?: ConnectionResult; orgOwnerGrantsByEntityId?: ConnectionResult; orgOwnerGrantsByGrantorId?: ConnectionResult; + orgGrantsByActorId?: ConnectionResult; orgGrantsByEntityId?: ConnectionResult; orgGrantsByGrantorId?: ConnectionResult; parentOrgChartEdges?: ConnectionResult; @@ -3003,18 +2573,27 @@ export interface UserRelations { orgChartEdgeGrantsByEntityId?: ConnectionResult; orgChartEdgeGrantsByGrantorId?: ConnectionResult; childOrgChartEdgeGrants?: ConnectionResult; + orgPermissionDefaultsByEntityId?: ConnectionResult; appLimitsByActorId?: ConnectionResult; orgLimitsByActorId?: ConnectionResult; orgLimitsByEntityId?: ConnectionResult; appStepsByActorId?: ConnectionResult; appAchievementsByActorId?: ConnectionResult; + ownedAppLevels?: ConnectionResult; + ownedEmails?: ConnectionResult; + ownedPhoneNumbers?: ConnectionResult; + ownedCryptoAddresses?: ConnectionResult; + ownedConnectedAccounts?: ConnectionResult; invitesBySenderId?: ConnectionResult; claimedInvitesByReceiverId?: ConnectionResult; claimedInvitesBySenderId?: ConnectionResult; orgInvitesByEntityId?: ConnectionResult; + orgInvitesByReceiverId?: ConnectionResult; orgInvitesBySenderId?: ConnectionResult; + orgClaimedInvitesByEntityId?: ConnectionResult; orgClaimedInvitesByReceiverId?: ConnectionResult; orgClaimedInvitesBySenderId?: ConnectionResult; + auditLogsByActorId?: ConnectionResult; } export interface AstMigrationRelations {} export interface AppMembershipRelations { @@ -3031,11 +2610,11 @@ export interface HierarchyModuleRelations { usersTable?: Table | null; } // ============ Entity Types With Relations ============ +export type GetAllRecordWithRelations = GetAllRecord & GetAllRecordRelations; export type OrgGetManagersRecordWithRelations = OrgGetManagersRecord & OrgGetManagersRecordRelations; export type OrgGetSubordinatesRecordWithRelations = OrgGetSubordinatesRecord & OrgGetSubordinatesRecordRelations; -export type GetAllRecordWithRelations = GetAllRecord & GetAllRecordRelations; export type ObjectWithRelations = Object & ObjectRelations; export type AppPermissionWithRelations = AppPermission & AppPermissionRelations; export type OrgPermissionWithRelations = OrgPermission & OrgPermissionRelations; @@ -3059,12 +2638,14 @@ export type ViewWithRelations = View & ViewRelations; export type ViewTableWithRelations = ViewTable & ViewTableRelations; export type ViewGrantWithRelations = ViewGrant & ViewGrantRelations; export type ViewRuleWithRelations = ViewRule & ViewRuleRelations; +export type EmbeddingChunkWithRelations = EmbeddingChunk & EmbeddingChunkRelations; export type TableTemplateModuleWithRelations = TableTemplateModule & TableTemplateModuleRelations; export type SecureTableProvisionWithRelations = SecureTableProvision & SecureTableProvisionRelations; export type RelationProvisionWithRelations = RelationProvision & RelationProvisionRelations; export type SchemaGrantWithRelations = SchemaGrant & SchemaGrantRelations; export type DefaultPrivilegeWithRelations = DefaultPrivilege & DefaultPrivilegeRelations; +export type EnumWithRelations = Enum & EnumRelations; export type ApiSchemaWithRelations = ApiSchema & ApiSchemaRelations; export type ApiModuleWithRelations = ApiModule & ApiModuleRelations; export type DomainWithRelations = Domain & DomainRelations; @@ -3072,6 +2653,7 @@ export type SiteMetadatumWithRelations = SiteMetadatum & SiteMetadatumRelations; export type SiteModuleWithRelations = SiteModule & SiteModuleRelations; export type SiteThemeWithRelations = SiteTheme & SiteThemeRelations; export type TriggerFunctionWithRelations = TriggerFunction & TriggerFunctionRelations; +export type DatabaseTransferWithRelations = DatabaseTransfer & DatabaseTransferRelations; export type ApiWithRelations = Api & ApiRelations; export type SiteWithRelations = Site & SiteRelations; export type AppWithRelations = App & AppRelations; @@ -3100,7 +2682,8 @@ export type SecretsModuleWithRelations = SecretsModule & SecretsModuleRelations; export type SessionsModuleWithRelations = SessionsModule & SessionsModuleRelations; export type UserAuthModuleWithRelations = UserAuthModule & UserAuthModuleRelations; export type UsersModuleWithRelations = UsersModule & UsersModuleRelations; -export type UuidModuleWithRelations = UuidModule & UuidModuleRelations; +export type BlueprintWithRelations = Blueprint & BlueprintRelations; +export type BlueprintTemplateWithRelations = BlueprintTemplate & BlueprintTemplateRelations; export type DatabaseProvisionModuleWithRelations = DatabaseProvisionModule & DatabaseProvisionModuleRelations; export type AppAdminGrantWithRelations = AppAdminGrant & AppAdminGrantRelations; @@ -3113,26 +2696,29 @@ export type OrgOwnerGrantWithRelations = OrgOwnerGrant & OrgOwnerGrantRelations; export type OrgGrantWithRelations = OrgGrant & OrgGrantRelations; export type OrgChartEdgeWithRelations = OrgChartEdge & OrgChartEdgeRelations; export type OrgChartEdgeGrantWithRelations = OrgChartEdgeGrant & OrgChartEdgeGrantRelations; +export type OrgPermissionDefaultWithRelations = OrgPermissionDefault & + OrgPermissionDefaultRelations; export type AppLimitWithRelations = AppLimit & AppLimitRelations; export type OrgLimitWithRelations = OrgLimit & OrgLimitRelations; export type AppStepWithRelations = AppStep & AppStepRelations; export type AppAchievementWithRelations = AppAchievement & AppAchievementRelations; +export type AppLevelWithRelations = AppLevel & AppLevelRelations; +export type EmailWithRelations = Email & EmailRelations; +export type PhoneNumberWithRelations = PhoneNumber & PhoneNumberRelations; +export type CryptoAddressWithRelations = CryptoAddress & CryptoAddressRelations; +export type ConnectedAccountWithRelations = ConnectedAccount & ConnectedAccountRelations; export type InviteWithRelations = Invite & InviteRelations; export type ClaimedInviteWithRelations = ClaimedInvite & ClaimedInviteRelations; export type OrgInviteWithRelations = OrgInvite & OrgInviteRelations; export type OrgClaimedInviteWithRelations = OrgClaimedInvite & OrgClaimedInviteRelations; +export type AuditLogWithRelations = AuditLog & AuditLogRelations; export type RefWithRelations = Ref & RefRelations; export type StoreWithRelations = Store & StoreRelations; export type AppPermissionDefaultWithRelations = AppPermissionDefault & AppPermissionDefaultRelations; -export type CryptoAddressWithRelations = CryptoAddress & CryptoAddressRelations; export type RoleTypeWithRelations = RoleType & RoleTypeRelations; -export type OrgPermissionDefaultWithRelations = OrgPermissionDefault & - OrgPermissionDefaultRelations; -export type PhoneNumberWithRelations = PhoneNumber & PhoneNumberRelations; export type AppLimitDefaultWithRelations = AppLimitDefault & AppLimitDefaultRelations; export type OrgLimitDefaultWithRelations = OrgLimitDefault & OrgLimitDefaultRelations; -export type ConnectedAccountWithRelations = ConnectedAccount & ConnectedAccountRelations; export type NodeTypeRegistryWithRelations = NodeTypeRegistry & NodeTypeRegistryRelations; export type MembershipTypeWithRelations = MembershipType & MembershipTypeRelations; export type CommitWithRelations = Commit & CommitRelations; @@ -3141,15 +2727,16 @@ export type AppMembershipDefaultWithRelations = AppMembershipDefault & export type RlsModuleWithRelations = RlsModule & RlsModuleRelations; export type OrgMembershipDefaultWithRelations = OrgMembershipDefault & OrgMembershipDefaultRelations; -export type AuditLogWithRelations = AuditLog & AuditLogRelations; -export type AppLevelWithRelations = AppLevel & AppLevelRelations; export type SqlMigrationWithRelations = SqlMigration & SqlMigrationRelations; -export type EmailWithRelations = Email & EmailRelations; export type UserWithRelations = User & UserRelations; export type AstMigrationWithRelations = AstMigration & AstMigrationRelations; export type AppMembershipWithRelations = AppMembership & AppMembershipRelations; export type HierarchyModuleWithRelations = HierarchyModule & HierarchyModuleRelations; // ============ Entity Select Types ============ +export type GetAllRecordSelect = { + path?: boolean; + data?: boolean; +}; export type OrgGetManagersRecordSelect = { userId?: boolean; depth?: boolean; @@ -3158,10 +2745,6 @@ export type OrgGetSubordinatesRecordSelect = { userId?: boolean; depth?: boolean; }; -export type GetAllRecordSelect = { - path?: boolean; - data?: boolean; -}; export type ObjectSelect = { hashUuid?: boolean; id?: boolean; @@ -3178,8 +2761,6 @@ export type AppPermissionSelect = { bitnum?: boolean; bitstr?: boolean; description?: boolean; - descriptionTrgmSimilarity?: boolean; - searchScore?: boolean; }; export type OrgPermissionSelect = { id?: boolean; @@ -3187,8 +2768,6 @@ export type OrgPermissionSelect = { bitnum?: boolean; bitstr?: boolean; description?: boolean; - descriptionTrgmSimilarity?: boolean; - searchScore?: boolean; }; export type AppLevelRequirementSelect = { id?: boolean; @@ -3199,8 +2778,6 @@ export type AppLevelRequirementSelect = { priority?: boolean; createdAt?: boolean; updatedAt?: boolean; - descriptionTrgmSimilarity?: boolean; - searchScore?: boolean; }; export type DatabaseSelect = { id?: boolean; @@ -3211,10 +2788,6 @@ export type DatabaseSelect = { hash?: boolean; createdAt?: boolean; updatedAt?: boolean; - schemaHashTrgmSimilarity?: boolean; - nameTrgmSimilarity?: boolean; - labelTrgmSimilarity?: boolean; - searchScore?: boolean; owner?: { select: UserSelect; }; @@ -3332,6 +2905,24 @@ export type DatabaseSelect = { filter?: DefaultPrivilegeFilter; orderBy?: DefaultPrivilegeOrderBy[]; }; + enums?: { + select: EnumSelect; + first?: number; + filter?: EnumFilter; + orderBy?: EnumOrderBy[]; + }; + embeddingChunks?: { + select: EmbeddingChunkSelect; + first?: number; + filter?: EmbeddingChunkFilter; + orderBy?: EmbeddingChunkOrderBy[]; + }; + databaseTransfers?: { + select: DatabaseTransferSelect; + first?: number; + filter?: DatabaseTransferFilter; + orderBy?: DatabaseTransferOrderBy[]; + }; apis?: { select: ApiSelect; first?: number; @@ -3506,12 +3097,6 @@ export type DatabaseSelect = { filter?: UsersModuleFilter; orderBy?: UsersModuleOrderBy[]; }; - uuidModules?: { - select: UuidModuleSelect; - first?: number; - filter?: UuidModuleFilter; - orderBy?: UuidModuleOrderBy[]; - }; tableTemplateModules?: { select: TableTemplateModuleSelect; first?: number; @@ -3530,6 +3115,12 @@ export type DatabaseSelect = { filter?: RelationProvisionFilter; orderBy?: RelationProvisionOrderBy[]; }; + blueprints?: { + select: BlueprintSelect; + first?: number; + filter?: BlueprintFilter; + orderBy?: BlueprintOrderBy[]; + }; databaseProvisionModules?: { select: DatabaseProvisionModuleSelect; first?: number; @@ -3552,12 +3143,6 @@ export type SchemaSelect = { isPublic?: boolean; createdAt?: boolean; updatedAt?: boolean; - nameTrgmSimilarity?: boolean; - schemaNameTrgmSimilarity?: boolean; - labelTrgmSimilarity?: boolean; - descriptionTrgmSimilarity?: boolean; - moduleTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -3585,6 +3170,12 @@ export type SchemaSelect = { filter?: DefaultPrivilegeFilter; orderBy?: DefaultPrivilegeOrderBy[]; }; + enums?: { + select: EnumSelect; + first?: number; + filter?: EnumFilter; + orderBy?: EnumOrderBy[]; + }; apiSchemas?: { select: ApiSchemaSelect; first?: number; @@ -3624,13 +3215,6 @@ export type TableSelect = { inheritsId?: boolean; createdAt?: boolean; updatedAt?: boolean; - nameTrgmSimilarity?: boolean; - labelTrgmSimilarity?: boolean; - descriptionTrgmSimilarity?: boolean; - moduleTrgmSimilarity?: boolean; - pluralNameTrgmSimilarity?: boolean; - singularNameTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -3712,6 +3296,18 @@ export type TableSelect = { filter?: ViewTableFilter; orderBy?: ViewTableOrderBy[]; }; + embeddingChunksByChunksTableId?: { + select: EmbeddingChunkSelect; + first?: number; + filter?: EmbeddingChunkFilter; + orderBy?: EmbeddingChunkOrderBy[]; + }; + embeddingChunks?: { + select: EmbeddingChunkSelect; + first?: number; + filter?: EmbeddingChunkFilter; + orderBy?: EmbeddingChunkOrderBy[]; + }; tableTemplateModulesByOwnerTableId?: { select: TableTemplateModuleSelect; first?: number; @@ -3758,10 +3354,6 @@ export type CheckConstraintSelect = { tags?: boolean; createdAt?: boolean; updatedAt?: boolean; - nameTrgmSimilarity?: boolean; - typeTrgmSimilarity?: boolean; - moduleTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -3778,6 +3370,7 @@ export type FieldSelect = { description?: boolean; smartTags?: boolean; isRequired?: boolean; + apiRequired?: boolean; defaultValue?: boolean; defaultValueAst?: boolean; isHidden?: boolean; @@ -3794,13 +3387,6 @@ export type FieldSelect = { scope?: boolean; createdAt?: boolean; updatedAt?: boolean; - nameTrgmSimilarity?: boolean; - labelTrgmSimilarity?: boolean; - descriptionTrgmSimilarity?: boolean; - defaultValueTrgmSimilarity?: boolean; - regexpTrgmSimilarity?: boolean; - moduleTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -3827,13 +3413,6 @@ export type ForeignKeyConstraintSelect = { tags?: boolean; createdAt?: boolean; updatedAt?: boolean; - nameTrgmSimilarity?: boolean; - descriptionTrgmSimilarity?: boolean; - typeTrgmSimilarity?: boolean; - deleteActionTrgmSimilarity?: boolean; - updateActionTrgmSimilarity?: boolean; - moduleTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -3881,10 +3460,6 @@ export type IndexSelect = { tags?: boolean; createdAt?: boolean; updatedAt?: boolean; - nameTrgmSimilarity?: boolean; - accessMethodTrgmSimilarity?: boolean; - moduleTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -3910,12 +3485,6 @@ export type PolicySelect = { tags?: boolean; createdAt?: boolean; updatedAt?: boolean; - nameTrgmSimilarity?: boolean; - granteeNameTrgmSimilarity?: boolean; - privilegeTrgmSimilarity?: boolean; - policyTypeTrgmSimilarity?: boolean; - moduleTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -3937,10 +3506,6 @@ export type PrimaryKeyConstraintSelect = { tags?: boolean; createdAt?: boolean; updatedAt?: boolean; - nameTrgmSimilarity?: boolean; - typeTrgmSimilarity?: boolean; - moduleTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -3958,9 +3523,6 @@ export type TableGrantSelect = { isGrant?: boolean; createdAt?: boolean; updatedAt?: boolean; - privilegeTrgmSimilarity?: boolean; - granteeNameTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -3982,11 +3544,6 @@ export type TriggerSelect = { tags?: boolean; createdAt?: boolean; updatedAt?: boolean; - nameTrgmSimilarity?: boolean; - eventTrgmSimilarity?: boolean; - functionNameTrgmSimilarity?: boolean; - moduleTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -4009,11 +3566,6 @@ export type UniqueConstraintSelect = { tags?: boolean; createdAt?: boolean; updatedAt?: boolean; - nameTrgmSimilarity?: boolean; - descriptionTrgmSimilarity?: boolean; - typeTrgmSimilarity?: boolean; - moduleTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -4038,11 +3590,6 @@ export type ViewSelect = { module?: boolean; scope?: boolean; tags?: boolean; - nameTrgmSimilarity?: boolean; - viewTypeTrgmSimilarity?: boolean; - filterTypeTrgmSimilarity?: boolean; - moduleTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -4091,9 +3638,6 @@ export type ViewGrantSelect = { privilege?: boolean; withGrantOption?: boolean; isGrant?: boolean; - granteeNameTrgmSimilarity?: boolean; - privilegeTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -4108,10 +3652,6 @@ export type ViewRuleSelect = { name?: boolean; event?: boolean; action?: boolean; - nameTrgmSimilarity?: boolean; - eventTrgmSimilarity?: boolean; - actionTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -4119,6 +3659,41 @@ export type ViewRuleSelect = { select: ViewSelect; }; }; +export type EmbeddingChunkSelect = { + id?: boolean; + databaseId?: boolean; + tableId?: boolean; + embeddingFieldId?: boolean; + chunksTableId?: boolean; + chunksTableName?: boolean; + contentFieldName?: boolean; + dimensions?: boolean; + metric?: boolean; + chunkSize?: boolean; + chunkOverlap?: boolean; + chunkStrategy?: boolean; + metadataFields?: boolean; + enqueueChunkingJob?: boolean; + chunkingTaskName?: boolean; + parentFkFieldId?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + chunksTable?: { + select: TableSelect; + }; + database?: { + select: DatabaseSelect; + }; + embeddingField?: { + select: FieldSelect; + }; + parentFkField?: { + select: FieldSelect; + }; + table?: { + select: TableSelect; + }; +}; export type TableTemplateModuleSelect = { id?: boolean; databaseId?: boolean; @@ -4129,9 +3704,6 @@ export type TableTemplateModuleSelect = { tableName?: boolean; nodeType?: boolean; data?: boolean; - tableNameTrgmSimilarity?: boolean; - nodeTypeTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -4167,12 +3739,6 @@ export type SecureTableProvisionSelect = { policyName?: boolean; policyData?: boolean; outFields?: boolean; - tableNameTrgmSimilarity?: boolean; - nodeTypeTrgmSimilarity?: boolean; - policyTypeTrgmSimilarity?: boolean; - policyRoleTrgmSimilarity?: boolean; - policyNameTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -4192,12 +3758,15 @@ export type RelationProvisionSelect = { fieldName?: boolean; deleteAction?: boolean; isRequired?: boolean; + apiRequired?: boolean; junctionTableId?: boolean; junctionTableName?: boolean; junctionSchemaId?: boolean; sourceFieldName?: boolean; targetFieldName?: boolean; useCompositeKey?: boolean; + createIndex?: boolean; + exposeInApi?: boolean; nodeType?: boolean; nodeData?: boolean; grantRoles?: boolean; @@ -4212,17 +3781,6 @@ export type RelationProvisionSelect = { outJunctionTableId?: boolean; outSourceFieldId?: boolean; outTargetFieldId?: boolean; - relationTypeTrgmSimilarity?: boolean; - fieldNameTrgmSimilarity?: boolean; - deleteActionTrgmSimilarity?: boolean; - junctionTableNameTrgmSimilarity?: boolean; - sourceFieldNameTrgmSimilarity?: boolean; - targetFieldNameTrgmSimilarity?: boolean; - nodeTypeTrgmSimilarity?: boolean; - policyTypeTrgmSimilarity?: boolean; - policyRoleTrgmSimilarity?: boolean; - policyNameTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -4240,8 +3798,6 @@ export type SchemaGrantSelect = { granteeName?: boolean; createdAt?: boolean; updatedAt?: boolean; - granteeNameTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -4257,10 +3813,26 @@ export type DefaultPrivilegeSelect = { privilege?: boolean; granteeName?: boolean; isGrant?: boolean; - objectTypeTrgmSimilarity?: boolean; - privilegeTrgmSimilarity?: boolean; - granteeNameTrgmSimilarity?: boolean; - searchScore?: boolean; + database?: { + select: DatabaseSelect; + }; + schema?: { + select: SchemaSelect; + }; +}; +export type EnumSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + name?: boolean; + label?: boolean; + description?: boolean; + values?: boolean; + smartTags?: boolean; + category?: boolean; + module?: boolean; + scope?: boolean; + tags?: boolean; database?: { select: DatabaseSelect; }; @@ -4289,8 +3861,6 @@ export type ApiModuleSelect = { apiId?: boolean; name?: boolean; data?: boolean; - nameTrgmSimilarity?: boolean; - searchScore?: boolean; api?: { select: ApiSelect; }; @@ -4322,9 +3892,6 @@ export type SiteMetadatumSelect = { title?: boolean; description?: boolean; ogImage?: boolean; - titleTrgmSimilarity?: boolean; - descriptionTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -4338,8 +3905,6 @@ export type SiteModuleSelect = { siteId?: boolean; name?: boolean; data?: boolean; - nameTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -4366,9 +3931,25 @@ export type TriggerFunctionSelect = { code?: boolean; createdAt?: boolean; updatedAt?: boolean; - nameTrgmSimilarity?: boolean; - codeTrgmSimilarity?: boolean; - searchScore?: boolean; + database?: { + select: DatabaseSelect; + }; +}; +export type DatabaseTransferSelect = { + id?: boolean; + databaseId?: boolean; + targetOwnerId?: boolean; + sourceApproved?: boolean; + targetApproved?: boolean; + sourceApprovedAt?: boolean; + targetApprovedAt?: boolean; + status?: boolean; + initiatedBy?: boolean; + notes?: boolean; + expiresAt?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + completedAt?: boolean; database?: { select: DatabaseSelect; }; @@ -4381,11 +3962,6 @@ export type ApiSelect = { roleName?: boolean; anonRole?: boolean; isPublic?: boolean; - nameTrgmSimilarity?: boolean; - dbnameTrgmSimilarity?: boolean; - roleNameTrgmSimilarity?: boolean; - anonRoleTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -4418,10 +3994,6 @@ export type SiteSelect = { appleTouchIcon?: boolean; logo?: boolean; dbname?: boolean; - titleTrgmSimilarity?: boolean; - descriptionTrgmSimilarity?: boolean; - dbnameTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -4463,10 +4035,6 @@ export type AppSelect = { appStoreId?: boolean; appIdPrefix?: boolean; playStoreLink?: boolean; - nameTrgmSimilarity?: boolean; - appStoreIdTrgmSimilarity?: boolean; - appIdPrefixTrgmSimilarity?: boolean; - searchScore?: boolean; site?: { select: SiteSelect; }; @@ -4482,8 +4050,6 @@ export type ConnectedAccountsModuleSelect = { tableId?: boolean; ownerTableId?: boolean; tableName?: boolean; - tableNameTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -4509,9 +4075,6 @@ export type CryptoAddressesModuleSelect = { ownerTableId?: boolean; tableName?: boolean; cryptoNetwork?: boolean; - tableNameTrgmSimilarity?: boolean; - cryptoNetworkTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -4543,13 +4106,6 @@ export type CryptoAuthModuleSelect = { signInRecordFailure?: boolean; signUpWithKey?: boolean; signInWithChallenge?: boolean; - userFieldTrgmSimilarity?: boolean; - cryptoNetworkTrgmSimilarity?: boolean; - signInRequestChallengeTrgmSimilarity?: boolean; - signInRecordFailureTrgmSimilarity?: boolean; - signUpWithKeyTrgmSimilarity?: boolean; - signInWithChallengeTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -4589,8 +4145,6 @@ export type DenormalizedTableFieldSelect = { updateDefaults?: boolean; funcName?: boolean; funcOrder?: boolean; - funcNameTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -4615,8 +4169,6 @@ export type EmailsModuleSelect = { tableId?: boolean; ownerTableId?: boolean; tableName?: boolean; - tableNameTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -4639,8 +4191,6 @@ export type EncryptedSecretsModuleSelect = { schemaId?: boolean; tableId?: boolean; tableName?: boolean; - tableNameTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -4661,8 +4211,6 @@ export type FieldModuleSelect = { data?: boolean; triggers?: boolean; functions?: boolean; - nodeTypeTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -4691,11 +4239,6 @@ export type InvitesModuleSelect = { prefix?: boolean; membershipType?: boolean; entityTableId?: boolean; - invitesTableNameTrgmSimilarity?: boolean; - claimedInvitesTableNameTrgmSimilarity?: boolean; - submitInviteCodeFunctionTrgmSimilarity?: boolean; - prefixTrgmSimilarity?: boolean; - searchScore?: boolean; claimedInvitesTable?: { select: TableSelect; }; @@ -4748,22 +4291,6 @@ export type LevelsModuleSelect = { membershipType?: boolean; entityTableId?: boolean; actorTableId?: boolean; - stepsTableNameTrgmSimilarity?: boolean; - achievementsTableNameTrgmSimilarity?: boolean; - levelsTableNameTrgmSimilarity?: boolean; - levelRequirementsTableNameTrgmSimilarity?: boolean; - completedStepTrgmSimilarity?: boolean; - incompletedStepTrgmSimilarity?: boolean; - tgAchievementTrgmSimilarity?: boolean; - tgAchievementToggleTrgmSimilarity?: boolean; - tgAchievementToggleBooleanTrgmSimilarity?: boolean; - tgAchievementBooleanTrgmSimilarity?: boolean; - upsertAchievementTrgmSimilarity?: boolean; - tgUpdateAchievementsTrgmSimilarity?: boolean; - stepsRequiredTrgmSimilarity?: boolean; - levelAchievedTrgmSimilarity?: boolean; - prefixTrgmSimilarity?: boolean; - searchScore?: boolean; achievementsTable?: { select: TableSelect; }; @@ -4811,16 +4338,6 @@ export type LimitsModuleSelect = { membershipType?: boolean; entityTableId?: boolean; actorTableId?: boolean; - tableNameTrgmSimilarity?: boolean; - defaultTableNameTrgmSimilarity?: boolean; - limitIncrementFunctionTrgmSimilarity?: boolean; - limitDecrementFunctionTrgmSimilarity?: boolean; - limitIncrementTriggerTrgmSimilarity?: boolean; - limitDecrementTriggerTrgmSimilarity?: boolean; - limitUpdateTriggerTrgmSimilarity?: boolean; - limitCheckFunctionTrgmSimilarity?: boolean; - prefixTrgmSimilarity?: boolean; - searchScore?: boolean; actorTable?: { select: TableSelect; }; @@ -4849,8 +4366,6 @@ export type MembershipTypesModuleSelect = { schemaId?: boolean; tableId?: boolean; tableName?: boolean; - tableNameTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -4893,19 +4408,6 @@ export type MembershipsModuleSelect = { entityIdsByMask?: boolean; entityIdsByPerm?: boolean; entityIdsFunction?: boolean; - membershipsTableNameTrgmSimilarity?: boolean; - membersTableNameTrgmSimilarity?: boolean; - membershipDefaultsTableNameTrgmSimilarity?: boolean; - grantsTableNameTrgmSimilarity?: boolean; - adminGrantsTableNameTrgmSimilarity?: boolean; - ownerGrantsTableNameTrgmSimilarity?: boolean; - prefixTrgmSimilarity?: boolean; - actorMaskCheckTrgmSimilarity?: boolean; - actorPermCheckTrgmSimilarity?: boolean; - entityIdsByMaskTrgmSimilarity?: boolean; - entityIdsByPermTrgmSimilarity?: boolean; - entityIdsFunctionTrgmSimilarity?: boolean; - searchScore?: boolean; actorTable?: { select: TableSelect; }; @@ -4970,14 +4472,6 @@ export type PermissionsModuleSelect = { getMask?: boolean; getByMask?: boolean; getMaskByName?: boolean; - tableNameTrgmSimilarity?: boolean; - defaultTableNameTrgmSimilarity?: boolean; - prefixTrgmSimilarity?: boolean; - getPaddedMaskTrgmSimilarity?: boolean; - getMaskTrgmSimilarity?: boolean; - getByMaskTrgmSimilarity?: boolean; - getMaskByNameTrgmSimilarity?: boolean; - searchScore?: boolean; actorTable?: { select: TableSelect; }; @@ -5008,8 +4502,6 @@ export type PhoneNumbersModuleSelect = { tableId?: boolean; ownerTableId?: boolean; tableName?: boolean; - tableNameTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -5045,12 +4537,6 @@ export type ProfilesModuleSelect = { permissionsTableId?: boolean; membershipsTableId?: boolean; prefix?: boolean; - tableNameTrgmSimilarity?: boolean; - profilePermissionsTableNameTrgmSimilarity?: boolean; - profileGrantsTableNameTrgmSimilarity?: boolean; - profileDefinitionGrantsTableNameTrgmSimilarity?: boolean; - prefixTrgmSimilarity?: boolean; - searchScore?: boolean; actorTable?: { select: TableSelect; }; @@ -5091,8 +4577,6 @@ export type SecretsModuleSelect = { schemaId?: boolean; tableId?: boolean; tableName?: boolean; - tableNameTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -5115,10 +4599,6 @@ export type SessionsModuleSelect = { sessionsTable?: boolean; sessionCredentialsTable?: boolean; authSettingsTable?: boolean; - sessionsTableTrgmSimilarity?: boolean; - sessionCredentialsTableTrgmSimilarity?: boolean; - authSettingsTableTrgmSimilarity?: boolean; - searchScore?: boolean; authSettingsTableByAuthSettingsTableId?: { select: TableSelect; }; @@ -5165,23 +4645,6 @@ export type UserAuthModuleSelect = { signInOneTimeTokenFunction?: boolean; oneTimeTokenFunction?: boolean; extendTokenExpires?: boolean; - auditsTableNameTrgmSimilarity?: boolean; - signInFunctionTrgmSimilarity?: boolean; - signUpFunctionTrgmSimilarity?: boolean; - signOutFunctionTrgmSimilarity?: boolean; - setPasswordFunctionTrgmSimilarity?: boolean; - resetPasswordFunctionTrgmSimilarity?: boolean; - forgotPasswordFunctionTrgmSimilarity?: boolean; - sendVerificationEmailFunctionTrgmSimilarity?: boolean; - verifyEmailFunctionTrgmSimilarity?: boolean; - verifyPasswordFunctionTrgmSimilarity?: boolean; - checkPasswordFunctionTrgmSimilarity?: boolean; - sendAccountDeletionEmailFunctionTrgmSimilarity?: boolean; - deleteAccountFunctionTrgmSimilarity?: boolean; - signInOneTimeTokenFunctionTrgmSimilarity?: boolean; - oneTimeTokenFunctionTrgmSimilarity?: boolean; - extendTokenExpiresTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -5215,9 +4678,6 @@ export type UsersModuleSelect = { tableName?: boolean; typeTableId?: boolean; typeTableName?: boolean; - tableNameTrgmSimilarity?: boolean; - typeTableNameTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -5231,20 +4691,66 @@ export type UsersModuleSelect = { select: TableSelect; }; }; -export type UuidModuleSelect = { +export type BlueprintSelect = { id?: boolean; + ownerId?: boolean; databaseId?: boolean; - schemaId?: boolean; - uuidFunction?: boolean; - uuidSeed?: boolean; - uuidFunctionTrgmSimilarity?: boolean; - uuidSeedTrgmSimilarity?: boolean; - searchScore?: boolean; + name?: boolean; + displayName?: boolean; + description?: boolean; + definition?: boolean; + templateId?: boolean; + status?: boolean; + constructedAt?: boolean; + errorDetails?: boolean; + refMap?: boolean; + constructedDefinition?: boolean; + definitionHash?: boolean; + tableHashes?: boolean; + createdAt?: boolean; + updatedAt?: boolean; database?: { select: DatabaseSelect; }; - schema?: { - select: SchemaSelect; + template?: { + select: BlueprintTemplateSelect; + }; +}; +export type BlueprintTemplateSelect = { + id?: boolean; + name?: boolean; + version?: boolean; + displayName?: boolean; + description?: boolean; + ownerId?: boolean; + visibility?: boolean; + categories?: boolean; + tags?: boolean; + definition?: boolean; + definitionSchemaVersion?: boolean; + source?: boolean; + complexity?: boolean; + copyCount?: boolean; + forkCount?: boolean; + forkedFromId?: boolean; + definitionHash?: boolean; + tableHashes?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + forkedFrom?: { + select: BlueprintTemplateSelect; + }; + blueprintTemplatesByForkedFromId?: { + select: BlueprintTemplateSelect; + first?: number; + filter?: BlueprintTemplateFilter; + orderBy?: BlueprintTemplateOrderBy[]; + }; + blueprintsByTemplateId?: { + select: BlueprintSelect; + first?: number; + filter?: BlueprintFilter; + orderBy?: BlueprintOrderBy[]; }; }; export type DatabaseProvisionModuleSelect = { @@ -5262,12 +4768,6 @@ export type DatabaseProvisionModuleSelect = { createdAt?: boolean; updatedAt?: boolean; completedAt?: boolean; - databaseNameTrgmSimilarity?: boolean; - subdomainTrgmSimilarity?: boolean; - domainTrgmSimilarity?: boolean; - statusTrgmSimilarity?: boolean; - errorMessageTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -5415,8 +4915,6 @@ export type OrgChartEdgeSelect = { parentId?: boolean; positionTitle?: boolean; positionLevel?: boolean; - positionTitleTrgmSimilarity?: boolean; - searchScore?: boolean; child?: { select: UserSelect; }; @@ -5437,8 +4935,6 @@ export type OrgChartEdgeGrantSelect = { positionTitle?: boolean; positionLevel?: boolean; createdAt?: boolean; - positionTitleTrgmSimilarity?: boolean; - searchScore?: boolean; child?: { select: UserSelect; }; @@ -5452,6 +4948,14 @@ export type OrgChartEdgeGrantSelect = { select: UserSelect; }; }; +export type OrgPermissionDefaultSelect = { + id?: boolean; + permissions?: boolean; + entityId?: boolean; + entity?: { + select: UserSelect; + }; +}; export type AppLimitSelect = { id?: boolean; name?: boolean; @@ -5498,6 +5002,68 @@ export type AppAchievementSelect = { select: UserSelect; }; }; +export type AppLevelSelect = { + id?: boolean; + name?: boolean; + description?: boolean; + image?: boolean; + ownerId?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + owner?: { + select: UserSelect; + }; +}; +export type EmailSelect = { + id?: boolean; + ownerId?: boolean; + email?: boolean; + isVerified?: boolean; + isPrimary?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + owner?: { + select: UserSelect; + }; +}; +export type PhoneNumberSelect = { + id?: boolean; + ownerId?: boolean; + cc?: boolean; + number?: boolean; + isVerified?: boolean; + isPrimary?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + owner?: { + select: UserSelect; + }; +}; +export type CryptoAddressSelect = { + id?: boolean; + ownerId?: boolean; + address?: boolean; + isVerified?: boolean; + isPrimary?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + owner?: { + select: UserSelect; + }; +}; +export type ConnectedAccountSelect = { + id?: boolean; + ownerId?: boolean; + service?: boolean; + identifier?: boolean; + details?: boolean; + isVerified?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + owner?: { + select: UserSelect; + }; +}; export type InviteSelect = { id?: boolean; email?: boolean; @@ -5511,8 +5077,6 @@ export type InviteSelect = { expiresAt?: boolean; createdAt?: boolean; updatedAt?: boolean; - inviteTokenTrgmSimilarity?: boolean; - searchScore?: boolean; sender?: { select: UserSelect; }; @@ -5546,8 +5110,6 @@ export type OrgInviteSelect = { createdAt?: boolean; updatedAt?: boolean; entityId?: boolean; - inviteTokenTrgmSimilarity?: boolean; - searchScore?: boolean; entity?: { select: UserSelect; }; @@ -5576,14 +5138,25 @@ export type OrgClaimedInviteSelect = { select: UserSelect; }; }; +export type AuditLogSelect = { + id?: boolean; + event?: boolean; + actorId?: boolean; + origin?: boolean; + userAgent?: boolean; + ipAddress?: boolean; + success?: boolean; + createdAt?: boolean; + actor?: { + select: UserSelect; + }; +}; export type RefSelect = { id?: boolean; name?: boolean; databaseId?: boolean; storeId?: boolean; commitId?: boolean; - nameTrgmSimilarity?: boolean; - searchScore?: boolean; }; export type StoreSelect = { id?: boolean; @@ -5591,55 +5164,15 @@ export type StoreSelect = { databaseId?: boolean; hash?: boolean; createdAt?: boolean; - nameTrgmSimilarity?: boolean; - searchScore?: boolean; }; export type AppPermissionDefaultSelect = { id?: boolean; permissions?: boolean; }; -export type CryptoAddressSelect = { - id?: boolean; - ownerId?: boolean; - address?: boolean; - isVerified?: boolean; - isPrimary?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - addressTrgmSimilarity?: boolean; - searchScore?: boolean; - owner?: { - select: UserSelect; - }; -}; export type RoleTypeSelect = { id?: boolean; name?: boolean; }; -export type OrgPermissionDefaultSelect = { - id?: boolean; - permissions?: boolean; - entityId?: boolean; - entity?: { - select: UserSelect; - }; -}; -export type PhoneNumberSelect = { - id?: boolean; - ownerId?: boolean; - cc?: boolean; - number?: boolean; - isVerified?: boolean; - isPrimary?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - ccTrgmSimilarity?: boolean; - numberTrgmSimilarity?: boolean; - searchScore?: boolean; - owner?: { - select: UserSelect; - }; -}; export type AppLimitDefaultSelect = { id?: boolean; name?: boolean; @@ -5650,22 +5183,6 @@ export type OrgLimitDefaultSelect = { name?: boolean; max?: boolean; }; -export type ConnectedAccountSelect = { - id?: boolean; - ownerId?: boolean; - service?: boolean; - identifier?: boolean; - details?: boolean; - isVerified?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - serviceTrgmSimilarity?: boolean; - identifierTrgmSimilarity?: boolean; - searchScore?: boolean; - owner?: { - select: UserSelect; - }; -}; export type NodeTypeRegistrySelect = { name?: boolean; slug?: boolean; @@ -5676,21 +5193,12 @@ export type NodeTypeRegistrySelect = { tags?: boolean; createdAt?: boolean; updatedAt?: boolean; - nameTrgmSimilarity?: boolean; - slugTrgmSimilarity?: boolean; - categoryTrgmSimilarity?: boolean; - displayNameTrgmSimilarity?: boolean; - descriptionTrgmSimilarity?: boolean; - searchScore?: boolean; }; export type MembershipTypeSelect = { id?: boolean; name?: boolean; description?: boolean; prefix?: boolean; - descriptionTrgmSimilarity?: boolean; - prefixTrgmSimilarity?: boolean; - searchScore?: boolean; }; export type CommitSelect = { id?: boolean; @@ -5702,8 +5210,6 @@ export type CommitSelect = { committerId?: boolean; treeId?: boolean; date?: boolean; - messageTrgmSimilarity?: boolean; - searchScore?: boolean; }; export type AppMembershipDefaultSelect = { id?: boolean; @@ -5726,11 +5232,6 @@ export type RlsModuleSelect = { authenticateStrict?: boolean; currentRole?: boolean; currentRoleId?: boolean; - authenticateTrgmSimilarity?: boolean; - authenticateStrictTrgmSimilarity?: boolean; - currentRoleTrgmSimilarity?: boolean; - currentRoleIdTrgmSimilarity?: boolean; - searchScore?: boolean; database?: { select: DatabaseSelect; }; @@ -5764,35 +5265,6 @@ export type OrgMembershipDefaultSelect = { select: UserSelect; }; }; -export type AuditLogSelect = { - id?: boolean; - event?: boolean; - actorId?: boolean; - origin?: boolean; - userAgent?: boolean; - ipAddress?: boolean; - success?: boolean; - createdAt?: boolean; - userAgentTrgmSimilarity?: boolean; - searchScore?: boolean; - actor?: { - select: UserSelect; - }; -}; -export type AppLevelSelect = { - id?: boolean; - name?: boolean; - description?: boolean; - image?: boolean; - ownerId?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - descriptionTrgmSimilarity?: boolean; - searchScore?: boolean; - owner?: { - select: UserSelect; - }; -}; export type SqlMigrationSelect = { id?: boolean; name?: boolean; @@ -5807,25 +5279,6 @@ export type SqlMigrationSelect = { action?: boolean; actionId?: boolean; actorId?: boolean; - nameTrgmSimilarity?: boolean; - deployTrgmSimilarity?: boolean; - contentTrgmSimilarity?: boolean; - revertTrgmSimilarity?: boolean; - verifyTrgmSimilarity?: boolean; - actionTrgmSimilarity?: boolean; - searchScore?: boolean; -}; -export type EmailSelect = { - id?: boolean; - ownerId?: boolean; - email?: boolean; - isVerified?: boolean; - isPrimary?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - owner?: { - select: UserSelect; - }; }; export type UserSelect = { id?: boolean; @@ -5854,18 +5307,36 @@ export type UserSelect = { filter?: DatabaseFilter; orderBy?: DatabaseOrderBy[]; }; + appAdminGrantsByActorId?: { + select: AppAdminGrantSelect; + first?: number; + filter?: AppAdminGrantFilter; + orderBy?: AppAdminGrantOrderBy[]; + }; appAdminGrantsByGrantorId?: { select: AppAdminGrantSelect; first?: number; filter?: AppAdminGrantFilter; orderBy?: AppAdminGrantOrderBy[]; }; + appOwnerGrantsByActorId?: { + select: AppOwnerGrantSelect; + first?: number; + filter?: AppOwnerGrantFilter; + orderBy?: AppOwnerGrantOrderBy[]; + }; appOwnerGrantsByGrantorId?: { select: AppOwnerGrantSelect; first?: number; filter?: AppOwnerGrantFilter; orderBy?: AppOwnerGrantOrderBy[]; }; + appGrantsByActorId?: { + select: AppGrantSelect; + first?: number; + filter?: AppGrantFilter; + orderBy?: AppGrantOrderBy[]; + }; appGrantsByGrantorId?: { select: AppGrantSelect; first?: number; @@ -5896,6 +5367,12 @@ export type UserSelect = { filter?: OrgMemberFilter; orderBy?: OrgMemberOrderBy[]; }; + orgAdminGrantsByActorId?: { + select: OrgAdminGrantSelect; + first?: number; + filter?: OrgAdminGrantFilter; + orderBy?: OrgAdminGrantOrderBy[]; + }; orgAdminGrantsByEntityId?: { select: OrgAdminGrantSelect; first?: number; @@ -5908,6 +5385,12 @@ export type UserSelect = { filter?: OrgAdminGrantFilter; orderBy?: OrgAdminGrantOrderBy[]; }; + orgOwnerGrantsByActorId?: { + select: OrgOwnerGrantSelect; + first?: number; + filter?: OrgOwnerGrantFilter; + orderBy?: OrgOwnerGrantOrderBy[]; + }; orgOwnerGrantsByEntityId?: { select: OrgOwnerGrantSelect; first?: number; @@ -5920,6 +5403,12 @@ export type UserSelect = { filter?: OrgOwnerGrantFilter; orderBy?: OrgOwnerGrantOrderBy[]; }; + orgGrantsByActorId?: { + select: OrgGrantSelect; + first?: number; + filter?: OrgGrantFilter; + orderBy?: OrgGrantOrderBy[]; + }; orgGrantsByEntityId?: { select: OrgGrantSelect; first?: number; @@ -5974,6 +5463,12 @@ export type UserSelect = { filter?: OrgChartEdgeGrantFilter; orderBy?: OrgChartEdgeGrantOrderBy[]; }; + orgPermissionDefaultsByEntityId?: { + select: OrgPermissionDefaultSelect; + first?: number; + filter?: OrgPermissionDefaultFilter; + orderBy?: OrgPermissionDefaultOrderBy[]; + }; appLimitsByActorId?: { select: AppLimitSelect; first?: number; @@ -6004,6 +5499,36 @@ export type UserSelect = { filter?: AppAchievementFilter; orderBy?: AppAchievementOrderBy[]; }; + ownedAppLevels?: { + select: AppLevelSelect; + first?: number; + filter?: AppLevelFilter; + orderBy?: AppLevelOrderBy[]; + }; + ownedEmails?: { + select: EmailSelect; + first?: number; + filter?: EmailFilter; + orderBy?: EmailOrderBy[]; + }; + ownedPhoneNumbers?: { + select: PhoneNumberSelect; + first?: number; + filter?: PhoneNumberFilter; + orderBy?: PhoneNumberOrderBy[]; + }; + ownedCryptoAddresses?: { + select: CryptoAddressSelect; + first?: number; + filter?: CryptoAddressFilter; + orderBy?: CryptoAddressOrderBy[]; + }; + ownedConnectedAccounts?: { + select: ConnectedAccountSelect; + first?: number; + filter?: ConnectedAccountFilter; + orderBy?: ConnectedAccountOrderBy[]; + }; invitesBySenderId?: { select: InviteSelect; first?: number; @@ -6028,12 +5553,24 @@ export type UserSelect = { filter?: OrgInviteFilter; orderBy?: OrgInviteOrderBy[]; }; + orgInvitesByReceiverId?: { + select: OrgInviteSelect; + first?: number; + filter?: OrgInviteFilter; + orderBy?: OrgInviteOrderBy[]; + }; orgInvitesBySenderId?: { select: OrgInviteSelect; first?: number; filter?: OrgInviteFilter; orderBy?: OrgInviteOrderBy[]; }; + orgClaimedInvitesByEntityId?: { + select: OrgClaimedInviteSelect; + first?: number; + filter?: OrgClaimedInviteFilter; + orderBy?: OrgClaimedInviteOrderBy[]; + }; orgClaimedInvitesByReceiverId?: { select: OrgClaimedInviteSelect; first?: number; @@ -6046,6 +5583,12 @@ export type UserSelect = { filter?: OrgClaimedInviteFilter; orderBy?: OrgClaimedInviteOrderBy[]; }; + auditLogsByActorId?: { + select: AuditLogSelect; + first?: number; + filter?: AuditLogFilter; + orderBy?: AuditLogOrderBy[]; + }; }; export type AstMigrationSelect = { id?: boolean; @@ -6061,8 +5604,6 @@ export type AstMigrationSelect = { action?: boolean; actionId?: boolean; actorId?: boolean; - actionTrgmSimilarity?: boolean; - searchScore?: boolean; }; export type AppMembershipSelect = { id?: boolean; @@ -6106,17 +5647,6 @@ export type HierarchyModuleSelect = { getManagersFunction?: boolean; isManagerOfFunction?: boolean; createdAt?: boolean; - chartEdgesTableNameTrgmSimilarity?: boolean; - hierarchySprtTableNameTrgmSimilarity?: boolean; - chartEdgeGrantsTableNameTrgmSimilarity?: boolean; - prefixTrgmSimilarity?: boolean; - privateSchemaNameTrgmSimilarity?: boolean; - sprtTableNameTrgmSimilarity?: boolean; - rebuildHierarchyFunctionTrgmSimilarity?: boolean; - getSubordinatesFunctionTrgmSimilarity?: boolean; - getManagersFunctionTrgmSimilarity?: boolean; - isManagerOfFunctionTrgmSimilarity?: boolean; - searchScore?: boolean; chartEdgeGrantsTable?: { select: TableSelect; }; @@ -6143,6 +5673,13 @@ export type HierarchyModuleSelect = { }; }; // ============ Table Filter Types ============ +export interface GetAllRecordFilter { + path?: StringListFilter; + data?: JSONFilter; + and?: GetAllRecordFilter[]; + or?: GetAllRecordFilter[]; + not?: GetAllRecordFilter; +} export interface OrgGetManagersRecordFilter { userId?: UUIDFilter; depth?: IntFilter; @@ -6157,13 +5694,6 @@ export interface OrgGetSubordinatesRecordFilter { or?: OrgGetSubordinatesRecordFilter[]; not?: OrgGetSubordinatesRecordFilter; } -export interface GetAllRecordFilter { - path?: StringListFilter; - data?: JSONFilter; - and?: GetAllRecordFilter[]; - or?: GetAllRecordFilter[]; - not?: GetAllRecordFilter; -} export interface ObjectFilter { hashUuid?: UUIDFilter; id?: UUIDFilter; @@ -6183,8 +5713,6 @@ export interface AppPermissionFilter { bitnum?: IntFilter; bitstr?: BitStringFilter; description?: StringFilter; - descriptionTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: AppPermissionFilter[]; or?: AppPermissionFilter[]; not?: AppPermissionFilter; @@ -6195,8 +5723,6 @@ export interface OrgPermissionFilter { bitnum?: IntFilter; bitstr?: BitStringFilter; description?: StringFilter; - descriptionTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: OrgPermissionFilter[]; or?: OrgPermissionFilter[]; not?: OrgPermissionFilter; @@ -6210,8 +5736,6 @@ export interface AppLevelRequirementFilter { priority?: IntFilter; createdAt?: DatetimeFilter; updatedAt?: DatetimeFilter; - descriptionTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: AppLevelRequirementFilter[]; or?: AppLevelRequirementFilter[]; not?: AppLevelRequirementFilter; @@ -6225,10 +5749,6 @@ export interface DatabaseFilter { hash?: UUIDFilter; createdAt?: DatetimeFilter; updatedAt?: DatetimeFilter; - schemaHashTrgmSimilarity?: FloatFilter; - nameTrgmSimilarity?: FloatFilter; - labelTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: DatabaseFilter[]; or?: DatabaseFilter[]; not?: DatabaseFilter; @@ -6248,12 +5768,6 @@ export interface SchemaFilter { isPublic?: BooleanFilter; createdAt?: DatetimeFilter; updatedAt?: DatetimeFilter; - nameTrgmSimilarity?: FloatFilter; - schemaNameTrgmSimilarity?: FloatFilter; - labelTrgmSimilarity?: FloatFilter; - descriptionTrgmSimilarity?: FloatFilter; - moduleTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: SchemaFilter[]; or?: SchemaFilter[]; not?: SchemaFilter; @@ -6278,13 +5792,6 @@ export interface TableFilter { inheritsId?: UUIDFilter; createdAt?: DatetimeFilter; updatedAt?: DatetimeFilter; - nameTrgmSimilarity?: FloatFilter; - labelTrgmSimilarity?: FloatFilter; - descriptionTrgmSimilarity?: FloatFilter; - moduleTrgmSimilarity?: FloatFilter; - pluralNameTrgmSimilarity?: FloatFilter; - singularNameTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: TableFilter[]; or?: TableFilter[]; not?: TableFilter; @@ -6304,10 +5811,6 @@ export interface CheckConstraintFilter { tags?: StringListFilter; createdAt?: DatetimeFilter; updatedAt?: DatetimeFilter; - nameTrgmSimilarity?: FloatFilter; - typeTrgmSimilarity?: FloatFilter; - moduleTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: CheckConstraintFilter[]; or?: CheckConstraintFilter[]; not?: CheckConstraintFilter; @@ -6321,6 +5824,7 @@ export interface FieldFilter { description?: StringFilter; smartTags?: JSONFilter; isRequired?: BooleanFilter; + apiRequired?: BooleanFilter; defaultValue?: StringFilter; defaultValueAst?: JSONFilter; isHidden?: BooleanFilter; @@ -6337,13 +5841,6 @@ export interface FieldFilter { scope?: IntFilter; createdAt?: DatetimeFilter; updatedAt?: DatetimeFilter; - nameTrgmSimilarity?: FloatFilter; - labelTrgmSimilarity?: FloatFilter; - descriptionTrgmSimilarity?: FloatFilter; - defaultValueTrgmSimilarity?: FloatFilter; - regexpTrgmSimilarity?: FloatFilter; - moduleTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: FieldFilter[]; or?: FieldFilter[]; not?: FieldFilter; @@ -6367,13 +5864,6 @@ export interface ForeignKeyConstraintFilter { tags?: StringListFilter; createdAt?: DatetimeFilter; updatedAt?: DatetimeFilter; - nameTrgmSimilarity?: FloatFilter; - descriptionTrgmSimilarity?: FloatFilter; - typeTrgmSimilarity?: FloatFilter; - deleteActionTrgmSimilarity?: FloatFilter; - updateActionTrgmSimilarity?: FloatFilter; - moduleTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: ForeignKeyConstraintFilter[]; or?: ForeignKeyConstraintFilter[]; not?: ForeignKeyConstraintFilter; @@ -6412,10 +5902,6 @@ export interface IndexFilter { tags?: StringListFilter; createdAt?: DatetimeFilter; updatedAt?: DatetimeFilter; - nameTrgmSimilarity?: FloatFilter; - accessMethodTrgmSimilarity?: FloatFilter; - moduleTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: IndexFilter[]; or?: IndexFilter[]; not?: IndexFilter; @@ -6438,12 +5924,6 @@ export interface PolicyFilter { tags?: StringListFilter; createdAt?: DatetimeFilter; updatedAt?: DatetimeFilter; - nameTrgmSimilarity?: FloatFilter; - granteeNameTrgmSimilarity?: FloatFilter; - privilegeTrgmSimilarity?: FloatFilter; - policyTypeTrgmSimilarity?: FloatFilter; - moduleTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: PolicyFilter[]; or?: PolicyFilter[]; not?: PolicyFilter; @@ -6462,10 +5942,6 @@ export interface PrimaryKeyConstraintFilter { tags?: StringListFilter; createdAt?: DatetimeFilter; updatedAt?: DatetimeFilter; - nameTrgmSimilarity?: FloatFilter; - typeTrgmSimilarity?: FloatFilter; - moduleTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: PrimaryKeyConstraintFilter[]; or?: PrimaryKeyConstraintFilter[]; not?: PrimaryKeyConstraintFilter; @@ -6480,9 +5956,6 @@ export interface TableGrantFilter { isGrant?: BooleanFilter; createdAt?: DatetimeFilter; updatedAt?: DatetimeFilter; - privilegeTrgmSimilarity?: FloatFilter; - granteeNameTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: TableGrantFilter[]; or?: TableGrantFilter[]; not?: TableGrantFilter; @@ -6501,11 +5974,6 @@ export interface TriggerFilter { tags?: StringListFilter; createdAt?: DatetimeFilter; updatedAt?: DatetimeFilter; - nameTrgmSimilarity?: FloatFilter; - eventTrgmSimilarity?: FloatFilter; - functionNameTrgmSimilarity?: FloatFilter; - moduleTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: TriggerFilter[]; or?: TriggerFilter[]; not?: TriggerFilter; @@ -6525,11 +5993,6 @@ export interface UniqueConstraintFilter { tags?: StringListFilter; createdAt?: DatetimeFilter; updatedAt?: DatetimeFilter; - nameTrgmSimilarity?: FloatFilter; - descriptionTrgmSimilarity?: FloatFilter; - typeTrgmSimilarity?: FloatFilter; - moduleTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: UniqueConstraintFilter[]; or?: UniqueConstraintFilter[]; not?: UniqueConstraintFilter; @@ -6551,11 +6014,6 @@ export interface ViewFilter { module?: StringFilter; scope?: IntFilter; tags?: StringListFilter; - nameTrgmSimilarity?: FloatFilter; - viewTypeTrgmSimilarity?: FloatFilter; - filterTypeTrgmSimilarity?: FloatFilter; - moduleTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: ViewFilter[]; or?: ViewFilter[]; not?: ViewFilter; @@ -6577,9 +6035,6 @@ export interface ViewGrantFilter { privilege?: StringFilter; withGrantOption?: BooleanFilter; isGrant?: BooleanFilter; - granteeNameTrgmSimilarity?: FloatFilter; - privilegeTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: ViewGrantFilter[]; or?: ViewGrantFilter[]; not?: ViewGrantFilter; @@ -6591,14 +6046,33 @@ export interface ViewRuleFilter { name?: StringFilter; event?: StringFilter; action?: StringFilter; - nameTrgmSimilarity?: FloatFilter; - eventTrgmSimilarity?: FloatFilter; - actionTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: ViewRuleFilter[]; or?: ViewRuleFilter[]; not?: ViewRuleFilter; } +export interface EmbeddingChunkFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + tableId?: UUIDFilter; + embeddingFieldId?: UUIDFilter; + chunksTableId?: UUIDFilter; + chunksTableName?: StringFilter; + contentFieldName?: StringFilter; + dimensions?: IntFilter; + metric?: StringFilter; + chunkSize?: IntFilter; + chunkOverlap?: IntFilter; + chunkStrategy?: StringFilter; + metadataFields?: JSONFilter; + enqueueChunkingJob?: BooleanFilter; + chunkingTaskName?: StringFilter; + parentFkFieldId?: UUIDFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: EmbeddingChunkFilter[]; + or?: EmbeddingChunkFilter[]; + not?: EmbeddingChunkFilter; +} export interface TableTemplateModuleFilter { id?: UUIDFilter; databaseId?: UUIDFilter; @@ -6609,9 +6083,6 @@ export interface TableTemplateModuleFilter { tableName?: StringFilter; nodeType?: StringFilter; data?: JSONFilter; - tableNameTrgmSimilarity?: FloatFilter; - nodeTypeTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: TableTemplateModuleFilter[]; or?: TableTemplateModuleFilter[]; not?: TableTemplateModuleFilter; @@ -6625,9 +6096,9 @@ export interface SecureTableProvisionFilter { nodeType?: StringFilter; useRls?: BooleanFilter; nodeData?: JSONFilter; - fields?: JSONFilter; + fields?: StringFilter; grantRoles?: StringListFilter; - grantPrivileges?: JSONFilter; + grantPrivileges?: StringFilter; policyType?: StringFilter; policyPrivileges?: StringListFilter; policyRole?: StringFilter; @@ -6635,12 +6106,6 @@ export interface SecureTableProvisionFilter { policyName?: StringFilter; policyData?: JSONFilter; outFields?: UUIDListFilter; - tableNameTrgmSimilarity?: FloatFilter; - nodeTypeTrgmSimilarity?: FloatFilter; - policyTypeTrgmSimilarity?: FloatFilter; - policyRoleTrgmSimilarity?: FloatFilter; - policyNameTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: SecureTableProvisionFilter[]; or?: SecureTableProvisionFilter[]; not?: SecureTableProvisionFilter; @@ -6654,16 +6119,19 @@ export interface RelationProvisionFilter { fieldName?: StringFilter; deleteAction?: StringFilter; isRequired?: BooleanFilter; + apiRequired?: BooleanFilter; junctionTableId?: UUIDFilter; junctionTableName?: StringFilter; junctionSchemaId?: UUIDFilter; sourceFieldName?: StringFilter; targetFieldName?: StringFilter; useCompositeKey?: BooleanFilter; + createIndex?: BooleanFilter; + exposeInApi?: BooleanFilter; nodeType?: StringFilter; nodeData?: JSONFilter; grantRoles?: StringListFilter; - grantPrivileges?: JSONFilter; + grantPrivileges?: StringFilter; policyType?: StringFilter; policyPrivileges?: StringListFilter; policyRole?: StringFilter; @@ -6674,17 +6142,6 @@ export interface RelationProvisionFilter { outJunctionTableId?: UUIDFilter; outSourceFieldId?: UUIDFilter; outTargetFieldId?: UUIDFilter; - relationTypeTrgmSimilarity?: FloatFilter; - fieldNameTrgmSimilarity?: FloatFilter; - deleteActionTrgmSimilarity?: FloatFilter; - junctionTableNameTrgmSimilarity?: FloatFilter; - sourceFieldNameTrgmSimilarity?: FloatFilter; - targetFieldNameTrgmSimilarity?: FloatFilter; - nodeTypeTrgmSimilarity?: FloatFilter; - policyTypeTrgmSimilarity?: FloatFilter; - policyRoleTrgmSimilarity?: FloatFilter; - policyNameTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: RelationProvisionFilter[]; or?: RelationProvisionFilter[]; not?: RelationProvisionFilter; @@ -6696,8 +6153,6 @@ export interface SchemaGrantFilter { granteeName?: StringFilter; createdAt?: DatetimeFilter; updatedAt?: DatetimeFilter; - granteeNameTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: SchemaGrantFilter[]; or?: SchemaGrantFilter[]; not?: SchemaGrantFilter; @@ -6710,14 +6165,27 @@ export interface DefaultPrivilegeFilter { privilege?: StringFilter; granteeName?: StringFilter; isGrant?: BooleanFilter; - objectTypeTrgmSimilarity?: FloatFilter; - privilegeTrgmSimilarity?: FloatFilter; - granteeNameTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: DefaultPrivilegeFilter[]; or?: DefaultPrivilegeFilter[]; not?: DefaultPrivilegeFilter; } +export interface EnumFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + schemaId?: UUIDFilter; + name?: StringFilter; + label?: StringFilter; + description?: StringFilter; + values?: StringListFilter; + smartTags?: JSONFilter; + category?: StringFilter; + module?: StringFilter; + scope?: IntFilter; + tags?: StringListFilter; + and?: EnumFilter[]; + or?: EnumFilter[]; + not?: EnumFilter; +} export interface ApiSchemaFilter { id?: UUIDFilter; databaseId?: UUIDFilter; @@ -6733,8 +6201,6 @@ export interface ApiModuleFilter { apiId?: UUIDFilter; name?: StringFilter; data?: JSONFilter; - nameTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: ApiModuleFilter[]; or?: ApiModuleFilter[]; not?: ApiModuleFilter; @@ -6757,9 +6223,6 @@ export interface SiteMetadatumFilter { title?: StringFilter; description?: StringFilter; ogImage?: StringFilter; - titleTrgmSimilarity?: FloatFilter; - descriptionTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: SiteMetadatumFilter[]; or?: SiteMetadatumFilter[]; not?: SiteMetadatumFilter; @@ -6770,8 +6233,6 @@ export interface SiteModuleFilter { siteId?: UUIDFilter; name?: StringFilter; data?: JSONFilter; - nameTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: SiteModuleFilter[]; or?: SiteModuleFilter[]; not?: SiteModuleFilter; @@ -6792,13 +6253,29 @@ export interface TriggerFunctionFilter { code?: StringFilter; createdAt?: DatetimeFilter; updatedAt?: DatetimeFilter; - nameTrgmSimilarity?: FloatFilter; - codeTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: TriggerFunctionFilter[]; or?: TriggerFunctionFilter[]; not?: TriggerFunctionFilter; } +export interface DatabaseTransferFilter { + id?: UUIDFilter; + databaseId?: UUIDFilter; + targetOwnerId?: UUIDFilter; + sourceApproved?: BooleanFilter; + targetApproved?: BooleanFilter; + sourceApprovedAt?: DatetimeFilter; + targetApprovedAt?: DatetimeFilter; + status?: StringFilter; + initiatedBy?: UUIDFilter; + notes?: StringFilter; + expiresAt?: DatetimeFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + completedAt?: DatetimeFilter; + and?: DatabaseTransferFilter[]; + or?: DatabaseTransferFilter[]; + not?: DatabaseTransferFilter; +} export interface ApiFilter { id?: UUIDFilter; databaseId?: UUIDFilter; @@ -6807,11 +6284,6 @@ export interface ApiFilter { roleName?: StringFilter; anonRole?: StringFilter; isPublic?: BooleanFilter; - nameTrgmSimilarity?: FloatFilter; - dbnameTrgmSimilarity?: FloatFilter; - roleNameTrgmSimilarity?: FloatFilter; - anonRoleTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: ApiFilter[]; or?: ApiFilter[]; not?: ApiFilter; @@ -6826,10 +6298,6 @@ export interface SiteFilter { appleTouchIcon?: StringFilter; logo?: StringFilter; dbname?: StringFilter; - titleTrgmSimilarity?: FloatFilter; - descriptionTrgmSimilarity?: FloatFilter; - dbnameTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: SiteFilter[]; or?: SiteFilter[]; not?: SiteFilter; @@ -6844,10 +6312,6 @@ export interface AppFilter { appStoreId?: StringFilter; appIdPrefix?: StringFilter; playStoreLink?: StringFilter; - nameTrgmSimilarity?: FloatFilter; - appStoreIdTrgmSimilarity?: FloatFilter; - appIdPrefixTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: AppFilter[]; or?: AppFilter[]; not?: AppFilter; @@ -6860,8 +6324,6 @@ export interface ConnectedAccountsModuleFilter { tableId?: UUIDFilter; ownerTableId?: UUIDFilter; tableName?: StringFilter; - tableNameTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: ConnectedAccountsModuleFilter[]; or?: ConnectedAccountsModuleFilter[]; not?: ConnectedAccountsModuleFilter; @@ -6875,9 +6337,6 @@ export interface CryptoAddressesModuleFilter { ownerTableId?: UUIDFilter; tableName?: StringFilter; cryptoNetwork?: StringFilter; - tableNameTrgmSimilarity?: FloatFilter; - cryptoNetworkTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: CryptoAddressesModuleFilter[]; or?: CryptoAddressesModuleFilter[]; not?: CryptoAddressesModuleFilter; @@ -6897,13 +6356,6 @@ export interface CryptoAuthModuleFilter { signInRecordFailure?: StringFilter; signUpWithKey?: StringFilter; signInWithChallenge?: StringFilter; - userFieldTrgmSimilarity?: FloatFilter; - cryptoNetworkTrgmSimilarity?: FloatFilter; - signInRequestChallengeTrgmSimilarity?: FloatFilter; - signInRecordFailureTrgmSimilarity?: FloatFilter; - signUpWithKeyTrgmSimilarity?: FloatFilter; - signInWithChallengeTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: CryptoAuthModuleFilter[]; or?: CryptoAuthModuleFilter[]; not?: CryptoAuthModuleFilter; @@ -6928,8 +6380,6 @@ export interface DenormalizedTableFieldFilter { updateDefaults?: BooleanFilter; funcName?: StringFilter; funcOrder?: IntFilter; - funcNameTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: DenormalizedTableFieldFilter[]; or?: DenormalizedTableFieldFilter[]; not?: DenormalizedTableFieldFilter; @@ -6942,8 +6392,6 @@ export interface EmailsModuleFilter { tableId?: UUIDFilter; ownerTableId?: UUIDFilter; tableName?: StringFilter; - tableNameTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: EmailsModuleFilter[]; or?: EmailsModuleFilter[]; not?: EmailsModuleFilter; @@ -6954,8 +6402,6 @@ export interface EncryptedSecretsModuleFilter { schemaId?: UUIDFilter; tableId?: UUIDFilter; tableName?: StringFilter; - tableNameTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: EncryptedSecretsModuleFilter[]; or?: EncryptedSecretsModuleFilter[]; not?: EncryptedSecretsModuleFilter; @@ -6970,8 +6416,6 @@ export interface FieldModuleFilter { data?: JSONFilter; triggers?: StringListFilter; functions?: StringListFilter; - nodeTypeTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: FieldModuleFilter[]; or?: FieldModuleFilter[]; not?: FieldModuleFilter; @@ -6991,11 +6435,6 @@ export interface InvitesModuleFilter { prefix?: StringFilter; membershipType?: IntFilter; entityTableId?: UUIDFilter; - invitesTableNameTrgmSimilarity?: FloatFilter; - claimedInvitesTableNameTrgmSimilarity?: FloatFilter; - submitInviteCodeFunctionTrgmSimilarity?: FloatFilter; - prefixTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: InvitesModuleFilter[]; or?: InvitesModuleFilter[]; not?: InvitesModuleFilter; @@ -7027,22 +6466,6 @@ export interface LevelsModuleFilter { membershipType?: IntFilter; entityTableId?: UUIDFilter; actorTableId?: UUIDFilter; - stepsTableNameTrgmSimilarity?: FloatFilter; - achievementsTableNameTrgmSimilarity?: FloatFilter; - levelsTableNameTrgmSimilarity?: FloatFilter; - levelRequirementsTableNameTrgmSimilarity?: FloatFilter; - completedStepTrgmSimilarity?: FloatFilter; - incompletedStepTrgmSimilarity?: FloatFilter; - tgAchievementTrgmSimilarity?: FloatFilter; - tgAchievementToggleTrgmSimilarity?: FloatFilter; - tgAchievementToggleBooleanTrgmSimilarity?: FloatFilter; - tgAchievementBooleanTrgmSimilarity?: FloatFilter; - upsertAchievementTrgmSimilarity?: FloatFilter; - tgUpdateAchievementsTrgmSimilarity?: FloatFilter; - stepsRequiredTrgmSimilarity?: FloatFilter; - levelAchievedTrgmSimilarity?: FloatFilter; - prefixTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: LevelsModuleFilter[]; or?: LevelsModuleFilter[]; not?: LevelsModuleFilter; @@ -7066,16 +6489,6 @@ export interface LimitsModuleFilter { membershipType?: IntFilter; entityTableId?: UUIDFilter; actorTableId?: UUIDFilter; - tableNameTrgmSimilarity?: FloatFilter; - defaultTableNameTrgmSimilarity?: FloatFilter; - limitIncrementFunctionTrgmSimilarity?: FloatFilter; - limitDecrementFunctionTrgmSimilarity?: FloatFilter; - limitIncrementTriggerTrgmSimilarity?: FloatFilter; - limitDecrementTriggerTrgmSimilarity?: FloatFilter; - limitUpdateTriggerTrgmSimilarity?: FloatFilter; - limitCheckFunctionTrgmSimilarity?: FloatFilter; - prefixTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: LimitsModuleFilter[]; or?: LimitsModuleFilter[]; not?: LimitsModuleFilter; @@ -7086,8 +6499,6 @@ export interface MembershipTypesModuleFilter { schemaId?: UUIDFilter; tableId?: UUIDFilter; tableName?: StringFilter; - tableNameTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: MembershipTypesModuleFilter[]; or?: MembershipTypesModuleFilter[]; not?: MembershipTypesModuleFilter; @@ -7124,19 +6535,6 @@ export interface MembershipsModuleFilter { entityIdsByMask?: StringFilter; entityIdsByPerm?: StringFilter; entityIdsFunction?: StringFilter; - membershipsTableNameTrgmSimilarity?: FloatFilter; - membersTableNameTrgmSimilarity?: FloatFilter; - membershipDefaultsTableNameTrgmSimilarity?: FloatFilter; - grantsTableNameTrgmSimilarity?: FloatFilter; - adminGrantsTableNameTrgmSimilarity?: FloatFilter; - ownerGrantsTableNameTrgmSimilarity?: FloatFilter; - prefixTrgmSimilarity?: FloatFilter; - actorMaskCheckTrgmSimilarity?: FloatFilter; - actorPermCheckTrgmSimilarity?: FloatFilter; - entityIdsByMaskTrgmSimilarity?: FloatFilter; - entityIdsByPermTrgmSimilarity?: FloatFilter; - entityIdsFunctionTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: MembershipsModuleFilter[]; or?: MembershipsModuleFilter[]; not?: MembershipsModuleFilter; @@ -7159,14 +6557,6 @@ export interface PermissionsModuleFilter { getMask?: StringFilter; getByMask?: StringFilter; getMaskByName?: StringFilter; - tableNameTrgmSimilarity?: FloatFilter; - defaultTableNameTrgmSimilarity?: FloatFilter; - prefixTrgmSimilarity?: FloatFilter; - getPaddedMaskTrgmSimilarity?: FloatFilter; - getMaskTrgmSimilarity?: FloatFilter; - getByMaskTrgmSimilarity?: FloatFilter; - getMaskByNameTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: PermissionsModuleFilter[]; or?: PermissionsModuleFilter[]; not?: PermissionsModuleFilter; @@ -7179,8 +6569,6 @@ export interface PhoneNumbersModuleFilter { tableId?: UUIDFilter; ownerTableId?: UUIDFilter; tableName?: StringFilter; - tableNameTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: PhoneNumbersModuleFilter[]; or?: PhoneNumbersModuleFilter[]; not?: PhoneNumbersModuleFilter; @@ -7204,12 +6592,6 @@ export interface ProfilesModuleFilter { permissionsTableId?: UUIDFilter; membershipsTableId?: UUIDFilter; prefix?: StringFilter; - tableNameTrgmSimilarity?: FloatFilter; - profilePermissionsTableNameTrgmSimilarity?: FloatFilter; - profileGrantsTableNameTrgmSimilarity?: FloatFilter; - profileDefinitionGrantsTableNameTrgmSimilarity?: FloatFilter; - prefixTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: ProfilesModuleFilter[]; or?: ProfilesModuleFilter[]; not?: ProfilesModuleFilter; @@ -7220,8 +6602,6 @@ export interface SecretsModuleFilter { schemaId?: UUIDFilter; tableId?: UUIDFilter; tableName?: StringFilter; - tableNameTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: SecretsModuleFilter[]; or?: SecretsModuleFilter[]; not?: SecretsModuleFilter; @@ -7238,10 +6618,6 @@ export interface SessionsModuleFilter { sessionsTable?: StringFilter; sessionCredentialsTable?: StringFilter; authSettingsTable?: StringFilter; - sessionsTableTrgmSimilarity?: FloatFilter; - sessionCredentialsTableTrgmSimilarity?: FloatFilter; - authSettingsTableTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: SessionsModuleFilter[]; or?: SessionsModuleFilter[]; not?: SessionsModuleFilter; @@ -7273,23 +6649,6 @@ export interface UserAuthModuleFilter { signInOneTimeTokenFunction?: StringFilter; oneTimeTokenFunction?: StringFilter; extendTokenExpires?: StringFilter; - auditsTableNameTrgmSimilarity?: FloatFilter; - signInFunctionTrgmSimilarity?: FloatFilter; - signUpFunctionTrgmSimilarity?: FloatFilter; - signOutFunctionTrgmSimilarity?: FloatFilter; - setPasswordFunctionTrgmSimilarity?: FloatFilter; - resetPasswordFunctionTrgmSimilarity?: FloatFilter; - forgotPasswordFunctionTrgmSimilarity?: FloatFilter; - sendVerificationEmailFunctionTrgmSimilarity?: FloatFilter; - verifyEmailFunctionTrgmSimilarity?: FloatFilter; - verifyPasswordFunctionTrgmSimilarity?: FloatFilter; - checkPasswordFunctionTrgmSimilarity?: FloatFilter; - sendAccountDeletionEmailFunctionTrgmSimilarity?: FloatFilter; - deleteAccountFunctionTrgmSimilarity?: FloatFilter; - signInOneTimeTokenFunctionTrgmSimilarity?: FloatFilter; - oneTimeTokenFunctionTrgmSimilarity?: FloatFilter; - extendTokenExpiresTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: UserAuthModuleFilter[]; or?: UserAuthModuleFilter[]; not?: UserAuthModuleFilter; @@ -7302,25 +6661,56 @@ export interface UsersModuleFilter { tableName?: StringFilter; typeTableId?: UUIDFilter; typeTableName?: StringFilter; - tableNameTrgmSimilarity?: FloatFilter; - typeTableNameTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: UsersModuleFilter[]; or?: UsersModuleFilter[]; not?: UsersModuleFilter; } -export interface UuidModuleFilter { +export interface BlueprintFilter { id?: UUIDFilter; + ownerId?: UUIDFilter; databaseId?: UUIDFilter; - schemaId?: UUIDFilter; - uuidFunction?: StringFilter; - uuidSeed?: StringFilter; - uuidFunctionTrgmSimilarity?: FloatFilter; - uuidSeedTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; - and?: UuidModuleFilter[]; - or?: UuidModuleFilter[]; - not?: UuidModuleFilter; + name?: StringFilter; + displayName?: StringFilter; + description?: StringFilter; + definition?: JSONFilter; + templateId?: UUIDFilter; + status?: StringFilter; + constructedAt?: DatetimeFilter; + errorDetails?: StringFilter; + refMap?: JSONFilter; + constructedDefinition?: JSONFilter; + definitionHash?: UUIDFilter; + tableHashes?: JSONFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: BlueprintFilter[]; + or?: BlueprintFilter[]; + not?: BlueprintFilter; +} +export interface BlueprintTemplateFilter { + id?: UUIDFilter; + name?: StringFilter; + version?: StringFilter; + displayName?: StringFilter; + description?: StringFilter; + ownerId?: UUIDFilter; + visibility?: StringFilter; + categories?: StringListFilter; + tags?: StringListFilter; + definition?: JSONFilter; + definitionSchemaVersion?: StringFilter; + source?: StringFilter; + complexity?: StringFilter; + copyCount?: IntFilter; + forkCount?: IntFilter; + forkedFromId?: UUIDFilter; + definitionHash?: UUIDFilter; + tableHashes?: JSONFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: BlueprintTemplateFilter[]; + or?: BlueprintTemplateFilter[]; + not?: BlueprintTemplateFilter; } export interface DatabaseProvisionModuleFilter { id?: UUIDFilter; @@ -7337,12 +6727,6 @@ export interface DatabaseProvisionModuleFilter { createdAt?: DatetimeFilter; updatedAt?: DatetimeFilter; completedAt?: DatetimeFilter; - databaseNameTrgmSimilarity?: FloatFilter; - subdomainTrgmSimilarity?: FloatFilter; - domainTrgmSimilarity?: FloatFilter; - statusTrgmSimilarity?: FloatFilter; - errorMessageTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: DatabaseProvisionModuleFilter[]; or?: DatabaseProvisionModuleFilter[]; not?: DatabaseProvisionModuleFilter; @@ -7457,8 +6841,6 @@ export interface OrgChartEdgeFilter { parentId?: UUIDFilter; positionTitle?: StringFilter; positionLevel?: IntFilter; - positionTitleTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: OrgChartEdgeFilter[]; or?: OrgChartEdgeFilter[]; not?: OrgChartEdgeFilter; @@ -7473,12 +6855,18 @@ export interface OrgChartEdgeGrantFilter { positionTitle?: StringFilter; positionLevel?: IntFilter; createdAt?: DatetimeFilter; - positionTitleTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: OrgChartEdgeGrantFilter[]; or?: OrgChartEdgeGrantFilter[]; not?: OrgChartEdgeGrantFilter; } +export interface OrgPermissionDefaultFilter { + id?: UUIDFilter; + permissions?: BitStringFilter; + entityId?: UUIDFilter; + and?: OrgPermissionDefaultFilter[]; + or?: OrgPermissionDefaultFilter[]; + not?: OrgPermissionDefaultFilter; +} export interface AppLimitFilter { id?: UUIDFilter; name?: StringFilter; @@ -7522,6 +6910,68 @@ export interface AppAchievementFilter { or?: AppAchievementFilter[]; not?: AppAchievementFilter; } +export interface AppLevelFilter { + id?: UUIDFilter; + name?: StringFilter; + description?: StringFilter; + image?: StringFilter; + ownerId?: UUIDFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: AppLevelFilter[]; + or?: AppLevelFilter[]; + not?: AppLevelFilter; +} +export interface EmailFilter { + id?: UUIDFilter; + ownerId?: UUIDFilter; + email?: StringFilter; + isVerified?: BooleanFilter; + isPrimary?: BooleanFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: EmailFilter[]; + or?: EmailFilter[]; + not?: EmailFilter; +} +export interface PhoneNumberFilter { + id?: UUIDFilter; + ownerId?: UUIDFilter; + cc?: StringFilter; + number?: StringFilter; + isVerified?: BooleanFilter; + isPrimary?: BooleanFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: PhoneNumberFilter[]; + or?: PhoneNumberFilter[]; + not?: PhoneNumberFilter; +} +export interface CryptoAddressFilter { + id?: UUIDFilter; + ownerId?: UUIDFilter; + address?: StringFilter; + isVerified?: BooleanFilter; + isPrimary?: BooleanFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: CryptoAddressFilter[]; + or?: CryptoAddressFilter[]; + not?: CryptoAddressFilter; +} +export interface ConnectedAccountFilter { + id?: UUIDFilter; + ownerId?: UUIDFilter; + service?: StringFilter; + identifier?: StringFilter; + details?: JSONFilter; + isVerified?: BooleanFilter; + createdAt?: DatetimeFilter; + updatedAt?: DatetimeFilter; + and?: ConnectedAccountFilter[]; + or?: ConnectedAccountFilter[]; + not?: ConnectedAccountFilter; +} export interface InviteFilter { id?: UUIDFilter; email?: StringFilter; @@ -7535,8 +6985,6 @@ export interface InviteFilter { expiresAt?: DatetimeFilter; createdAt?: DatetimeFilter; updatedAt?: DatetimeFilter; - inviteTokenTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: InviteFilter[]; or?: InviteFilter[]; not?: InviteFilter; @@ -7567,8 +7015,6 @@ export interface OrgInviteFilter { createdAt?: DatetimeFilter; updatedAt?: DatetimeFilter; entityId?: UUIDFilter; - inviteTokenTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: OrgInviteFilter[]; or?: OrgInviteFilter[]; not?: OrgInviteFilter; @@ -7585,14 +7031,25 @@ export interface OrgClaimedInviteFilter { or?: OrgClaimedInviteFilter[]; not?: OrgClaimedInviteFilter; } +export interface AuditLogFilter { + id?: UUIDFilter; + event?: StringFilter; + actorId?: UUIDFilter; + origin?: StringFilter; + userAgent?: StringFilter; + ipAddress?: InternetAddressFilter; + success?: BooleanFilter; + createdAt?: DatetimeFilter; + and?: AuditLogFilter[]; + or?: AuditLogFilter[]; + not?: AuditLogFilter; +} export interface RefFilter { id?: UUIDFilter; name?: StringFilter; databaseId?: UUIDFilter; storeId?: UUIDFilter; commitId?: UUIDFilter; - nameTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: RefFilter[]; or?: RefFilter[]; not?: RefFilter; @@ -7603,8 +7060,6 @@ export interface StoreFilter { databaseId?: UUIDFilter; hash?: UUIDFilter; createdAt?: DatetimeFilter; - nameTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: StoreFilter[]; or?: StoreFilter[]; not?: StoreFilter; @@ -7616,20 +7071,6 @@ export interface AppPermissionDefaultFilter { or?: AppPermissionDefaultFilter[]; not?: AppPermissionDefaultFilter; } -export interface CryptoAddressFilter { - id?: UUIDFilter; - ownerId?: UUIDFilter; - address?: StringFilter; - isVerified?: BooleanFilter; - isPrimary?: BooleanFilter; - createdAt?: DatetimeFilter; - updatedAt?: DatetimeFilter; - addressTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; - and?: CryptoAddressFilter[]; - or?: CryptoAddressFilter[]; - not?: CryptoAddressFilter; -} export interface RoleTypeFilter { id?: IntFilter; name?: StringFilter; @@ -7637,30 +7078,6 @@ export interface RoleTypeFilter { or?: RoleTypeFilter[]; not?: RoleTypeFilter; } -export interface OrgPermissionDefaultFilter { - id?: UUIDFilter; - permissions?: BitStringFilter; - entityId?: UUIDFilter; - and?: OrgPermissionDefaultFilter[]; - or?: OrgPermissionDefaultFilter[]; - not?: OrgPermissionDefaultFilter; -} -export interface PhoneNumberFilter { - id?: UUIDFilter; - ownerId?: UUIDFilter; - cc?: StringFilter; - number?: StringFilter; - isVerified?: BooleanFilter; - isPrimary?: BooleanFilter; - createdAt?: DatetimeFilter; - updatedAt?: DatetimeFilter; - ccTrgmSimilarity?: FloatFilter; - numberTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; - and?: PhoneNumberFilter[]; - or?: PhoneNumberFilter[]; - not?: PhoneNumberFilter; -} export interface AppLimitDefaultFilter { id?: UUIDFilter; name?: StringFilter; @@ -7677,22 +7094,6 @@ export interface OrgLimitDefaultFilter { or?: OrgLimitDefaultFilter[]; not?: OrgLimitDefaultFilter; } -export interface ConnectedAccountFilter { - id?: UUIDFilter; - ownerId?: UUIDFilter; - service?: StringFilter; - identifier?: StringFilter; - details?: JSONFilter; - isVerified?: BooleanFilter; - createdAt?: DatetimeFilter; - updatedAt?: DatetimeFilter; - serviceTrgmSimilarity?: FloatFilter; - identifierTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; - and?: ConnectedAccountFilter[]; - or?: ConnectedAccountFilter[]; - not?: ConnectedAccountFilter; -} export interface NodeTypeRegistryFilter { name?: StringFilter; slug?: StringFilter; @@ -7703,12 +7104,6 @@ export interface NodeTypeRegistryFilter { tags?: StringListFilter; createdAt?: DatetimeFilter; updatedAt?: DatetimeFilter; - nameTrgmSimilarity?: FloatFilter; - slugTrgmSimilarity?: FloatFilter; - categoryTrgmSimilarity?: FloatFilter; - displayNameTrgmSimilarity?: FloatFilter; - descriptionTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: NodeTypeRegistryFilter[]; or?: NodeTypeRegistryFilter[]; not?: NodeTypeRegistryFilter; @@ -7718,9 +7113,6 @@ export interface MembershipTypeFilter { name?: StringFilter; description?: StringFilter; prefix?: StringFilter; - descriptionTrgmSimilarity?: FloatFilter; - prefixTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: MembershipTypeFilter[]; or?: MembershipTypeFilter[]; not?: MembershipTypeFilter; @@ -7735,8 +7127,6 @@ export interface CommitFilter { committerId?: UUIDFilter; treeId?: UUIDFilter; date?: DatetimeFilter; - messageTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: CommitFilter[]; or?: CommitFilter[]; not?: CommitFilter; @@ -7765,11 +7155,6 @@ export interface RlsModuleFilter { authenticateStrict?: StringFilter; currentRole?: StringFilter; currentRoleId?: StringFilter; - authenticateTrgmSimilarity?: FloatFilter; - authenticateStrictTrgmSimilarity?: FloatFilter; - currentRoleTrgmSimilarity?: FloatFilter; - currentRoleIdTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: RlsModuleFilter[]; or?: RlsModuleFilter[]; not?: RlsModuleFilter; @@ -7788,35 +7173,6 @@ export interface OrgMembershipDefaultFilter { or?: OrgMembershipDefaultFilter[]; not?: OrgMembershipDefaultFilter; } -export interface AuditLogFilter { - id?: UUIDFilter; - event?: StringFilter; - actorId?: UUIDFilter; - origin?: StringFilter; - userAgent?: StringFilter; - ipAddress?: InternetAddressFilter; - success?: BooleanFilter; - createdAt?: DatetimeFilter; - userAgentTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; - and?: AuditLogFilter[]; - or?: AuditLogFilter[]; - not?: AuditLogFilter; -} -export interface AppLevelFilter { - id?: UUIDFilter; - name?: StringFilter; - description?: StringFilter; - image?: StringFilter; - ownerId?: UUIDFilter; - createdAt?: DatetimeFilter; - updatedAt?: DatetimeFilter; - descriptionTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; - and?: AppLevelFilter[]; - or?: AppLevelFilter[]; - not?: AppLevelFilter; -} export interface SqlMigrationFilter { id?: IntFilter; name?: StringFilter; @@ -7831,29 +7187,10 @@ export interface SqlMigrationFilter { action?: StringFilter; actionId?: UUIDFilter; actorId?: UUIDFilter; - nameTrgmSimilarity?: FloatFilter; - deployTrgmSimilarity?: FloatFilter; - contentTrgmSimilarity?: FloatFilter; - revertTrgmSimilarity?: FloatFilter; - verifyTrgmSimilarity?: FloatFilter; - actionTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: SqlMigrationFilter[]; or?: SqlMigrationFilter[]; not?: SqlMigrationFilter; } -export interface EmailFilter { - id?: UUIDFilter; - ownerId?: UUIDFilter; - email?: StringFilter; - isVerified?: BooleanFilter; - isPrimary?: BooleanFilter; - createdAt?: DatetimeFilter; - updatedAt?: DatetimeFilter; - and?: EmailFilter[]; - or?: EmailFilter[]; - not?: EmailFilter; -} export interface UserFilter { id?: UUIDFilter; username?: StringFilter; @@ -7884,8 +7221,6 @@ export interface AstMigrationFilter { action?: StringFilter; actionId?: UUIDFilter; actorId?: UUIDFilter; - actionTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: AstMigrationFilter[]; or?: AstMigrationFilter[]; not?: AstMigrationFilter; @@ -7932,22 +7267,19 @@ export interface HierarchyModuleFilter { getManagersFunction?: StringFilter; isManagerOfFunction?: StringFilter; createdAt?: DatetimeFilter; - chartEdgesTableNameTrgmSimilarity?: FloatFilter; - hierarchySprtTableNameTrgmSimilarity?: FloatFilter; - chartEdgeGrantsTableNameTrgmSimilarity?: FloatFilter; - prefixTrgmSimilarity?: FloatFilter; - privateSchemaNameTrgmSimilarity?: FloatFilter; - sprtTableNameTrgmSimilarity?: FloatFilter; - rebuildHierarchyFunctionTrgmSimilarity?: FloatFilter; - getSubordinatesFunctionTrgmSimilarity?: FloatFilter; - getManagersFunctionTrgmSimilarity?: FloatFilter; - isManagerOfFunctionTrgmSimilarity?: FloatFilter; - searchScore?: FloatFilter; and?: HierarchyModuleFilter[]; or?: HierarchyModuleFilter[]; not?: HierarchyModuleFilter; } // ============ OrderBy Types ============ +export type GetAllRecordsOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'PATH_ASC' + | 'PATH_DESC' + | 'DATA_ASC' + | 'DATA_DESC'; export type OrgGetManagersRecordsOrderBy = | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -7964,14 +7296,6 @@ export type OrgGetSubordinatesRecordsOrderBy = | 'USER_ID_DESC' | 'DEPTH_ASC' | 'DEPTH_DESC'; -export type GetAllRecordsOrderBy = - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'NATURAL' - | 'PATH_ASC' - | 'PATH_DESC' - | 'DATA_ASC' - | 'DATA_DESC'; export type ObjectOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -7991,11 +7315,7 @@ export type AppPermissionOrderBy = | 'NAME_ASC' | 'NAME_DESC' | 'BITNUM_ASC' - | 'BITNUM_DESC' - | 'DESCRIPTION_TRGM_SIMILARITY_ASC' - | 'DESCRIPTION_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'BITNUM_DESC'; export type OrgPermissionOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -8005,11 +7325,7 @@ export type OrgPermissionOrderBy = | 'NAME_ASC' | 'NAME_DESC' | 'BITNUM_ASC' - | 'BITNUM_DESC' - | 'DESCRIPTION_TRGM_SIMILARITY_ASC' - | 'DESCRIPTION_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'BITNUM_DESC'; export type AppLevelRequirementOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -8025,11 +7341,7 @@ export type AppLevelRequirementOrderBy = | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'DESCRIPTION_TRGM_SIMILARITY_ASC' - | 'DESCRIPTION_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'UPDATED_AT_DESC'; export type DatabaseOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -8043,15 +7355,7 @@ export type DatabaseOrderBy = | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'SCHEMA_HASH_TRGM_SIMILARITY_ASC' - | 'SCHEMA_HASH_TRGM_SIMILARITY_DESC' - | 'NAME_TRGM_SIMILARITY_ASC' - | 'NAME_TRGM_SIMILARITY_DESC' - | 'LABEL_TRGM_SIMILARITY_ASC' - | 'LABEL_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'UPDATED_AT_DESC'; export type SchemaOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -8067,19 +7371,7 @@ export type SchemaOrderBy = | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'NAME_TRGM_SIMILARITY_ASC' - | 'NAME_TRGM_SIMILARITY_DESC' - | 'SCHEMA_NAME_TRGM_SIMILARITY_ASC' - | 'SCHEMA_NAME_TRGM_SIMILARITY_DESC' - | 'LABEL_TRGM_SIMILARITY_ASC' - | 'LABEL_TRGM_SIMILARITY_DESC' - | 'DESCRIPTION_TRGM_SIMILARITY_ASC' - | 'DESCRIPTION_TRGM_SIMILARITY_DESC' - | 'MODULE_TRGM_SIMILARITY_ASC' - | 'MODULE_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'UPDATED_AT_DESC'; export type TableOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -8095,21 +7387,7 @@ export type TableOrderBy = | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'NAME_TRGM_SIMILARITY_ASC' - | 'NAME_TRGM_SIMILARITY_DESC' - | 'LABEL_TRGM_SIMILARITY_ASC' - | 'LABEL_TRGM_SIMILARITY_DESC' - | 'DESCRIPTION_TRGM_SIMILARITY_ASC' - | 'DESCRIPTION_TRGM_SIMILARITY_DESC' - | 'MODULE_TRGM_SIMILARITY_ASC' - | 'MODULE_TRGM_SIMILARITY_DESC' - | 'PLURAL_NAME_TRGM_SIMILARITY_ASC' - | 'PLURAL_NAME_TRGM_SIMILARITY_DESC' - | 'SINGULAR_NAME_TRGM_SIMILARITY_ASC' - | 'SINGULAR_NAME_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'UPDATED_AT_DESC'; export type CheckConstraintOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -8125,15 +7403,7 @@ export type CheckConstraintOrderBy = | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'NAME_TRGM_SIMILARITY_ASC' - | 'NAME_TRGM_SIMILARITY_DESC' - | 'TYPE_TRGM_SIMILARITY_ASC' - | 'TYPE_TRGM_SIMILARITY_DESC' - | 'MODULE_TRGM_SIMILARITY_ASC' - | 'MODULE_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'UPDATED_AT_DESC'; export type FieldOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -8149,21 +7419,7 @@ export type FieldOrderBy = | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'NAME_TRGM_SIMILARITY_ASC' - | 'NAME_TRGM_SIMILARITY_DESC' - | 'LABEL_TRGM_SIMILARITY_ASC' - | 'LABEL_TRGM_SIMILARITY_DESC' - | 'DESCRIPTION_TRGM_SIMILARITY_ASC' - | 'DESCRIPTION_TRGM_SIMILARITY_DESC' - | 'DEFAULT_VALUE_TRGM_SIMILARITY_ASC' - | 'DEFAULT_VALUE_TRGM_SIMILARITY_DESC' - | 'REGEXP_TRGM_SIMILARITY_ASC' - | 'REGEXP_TRGM_SIMILARITY_DESC' - | 'MODULE_TRGM_SIMILARITY_ASC' - | 'MODULE_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'UPDATED_AT_DESC'; export type ForeignKeyConstraintOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -8179,21 +7435,7 @@ export type ForeignKeyConstraintOrderBy = | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'NAME_TRGM_SIMILARITY_ASC' - | 'NAME_TRGM_SIMILARITY_DESC' - | 'DESCRIPTION_TRGM_SIMILARITY_ASC' - | 'DESCRIPTION_TRGM_SIMILARITY_DESC' - | 'TYPE_TRGM_SIMILARITY_ASC' - | 'TYPE_TRGM_SIMILARITY_DESC' - | 'DELETE_ACTION_TRGM_SIMILARITY_ASC' - | 'DELETE_ACTION_TRGM_SIMILARITY_DESC' - | 'UPDATE_ACTION_TRGM_SIMILARITY_ASC' - | 'UPDATE_ACTION_TRGM_SIMILARITY_DESC' - | 'MODULE_TRGM_SIMILARITY_ASC' - | 'MODULE_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'UPDATED_AT_DESC'; export type FullTextSearchOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -8223,15 +7465,7 @@ export type IndexOrderBy = | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'NAME_TRGM_SIMILARITY_ASC' - | 'NAME_TRGM_SIMILARITY_DESC' - | 'ACCESS_METHOD_TRGM_SIMILARITY_ASC' - | 'ACCESS_METHOD_TRGM_SIMILARITY_DESC' - | 'MODULE_TRGM_SIMILARITY_ASC' - | 'MODULE_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'UPDATED_AT_DESC'; export type PolicyOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -8247,19 +7481,7 @@ export type PolicyOrderBy = | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'NAME_TRGM_SIMILARITY_ASC' - | 'NAME_TRGM_SIMILARITY_DESC' - | 'GRANTEE_NAME_TRGM_SIMILARITY_ASC' - | 'GRANTEE_NAME_TRGM_SIMILARITY_DESC' - | 'PRIVILEGE_TRGM_SIMILARITY_ASC' - | 'PRIVILEGE_TRGM_SIMILARITY_DESC' - | 'POLICY_TYPE_TRGM_SIMILARITY_ASC' - | 'POLICY_TYPE_TRGM_SIMILARITY_DESC' - | 'MODULE_TRGM_SIMILARITY_ASC' - | 'MODULE_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'UPDATED_AT_DESC'; export type PrimaryKeyConstraintOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -8275,15 +7497,7 @@ export type PrimaryKeyConstraintOrderBy = | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'NAME_TRGM_SIMILARITY_ASC' - | 'NAME_TRGM_SIMILARITY_DESC' - | 'TYPE_TRGM_SIMILARITY_ASC' - | 'TYPE_TRGM_SIMILARITY_DESC' - | 'MODULE_TRGM_SIMILARITY_ASC' - | 'MODULE_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'UPDATED_AT_DESC'; export type TableGrantOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -8297,13 +7511,7 @@ export type TableGrantOrderBy = | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'PRIVILEGE_TRGM_SIMILARITY_ASC' - | 'PRIVILEGE_TRGM_SIMILARITY_DESC' - | 'GRANTEE_NAME_TRGM_SIMILARITY_ASC' - | 'GRANTEE_NAME_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'UPDATED_AT_DESC'; export type TriggerOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -8319,17 +7527,7 @@ export type TriggerOrderBy = | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'NAME_TRGM_SIMILARITY_ASC' - | 'NAME_TRGM_SIMILARITY_DESC' - | 'EVENT_TRGM_SIMILARITY_ASC' - | 'EVENT_TRGM_SIMILARITY_DESC' - | 'FUNCTION_NAME_TRGM_SIMILARITY_ASC' - | 'FUNCTION_NAME_TRGM_SIMILARITY_DESC' - | 'MODULE_TRGM_SIMILARITY_ASC' - | 'MODULE_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'UPDATED_AT_DESC'; export type UniqueConstraintOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -8345,17 +7543,7 @@ export type UniqueConstraintOrderBy = | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'NAME_TRGM_SIMILARITY_ASC' - | 'NAME_TRGM_SIMILARITY_DESC' - | 'DESCRIPTION_TRGM_SIMILARITY_ASC' - | 'DESCRIPTION_TRGM_SIMILARITY_DESC' - | 'TYPE_TRGM_SIMILARITY_ASC' - | 'TYPE_TRGM_SIMILARITY_DESC' - | 'MODULE_TRGM_SIMILARITY_ASC' - | 'MODULE_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'UPDATED_AT_DESC'; export type ViewOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -8369,17 +7557,7 @@ export type ViewOrderBy = | 'NAME_ASC' | 'NAME_DESC' | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'NAME_TRGM_SIMILARITY_ASC' - | 'NAME_TRGM_SIMILARITY_DESC' - | 'VIEW_TYPE_TRGM_SIMILARITY_ASC' - | 'VIEW_TYPE_TRGM_SIMILARITY_DESC' - | 'FILTER_TYPE_TRGM_SIMILARITY_ASC' - | 'FILTER_TYPE_TRGM_SIMILARITY_DESC' - | 'MODULE_TRGM_SIMILARITY_ASC' - | 'MODULE_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'TABLE_ID_DESC'; export type ViewTableOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -8405,13 +7583,7 @@ export type ViewGrantOrderBy = | 'PRIVILEGE_ASC' | 'PRIVILEGE_DESC' | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' - | 'GRANTEE_NAME_TRGM_SIMILARITY_ASC' - | 'GRANTEE_NAME_TRGM_SIMILARITY_DESC' - | 'PRIVILEGE_TRGM_SIMILARITY_ASC' - | 'PRIVILEGE_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'IS_GRANT_DESC'; export type ViewRuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -8423,15 +7595,23 @@ export type ViewRuleOrderBy = | 'VIEW_ID_ASC' | 'VIEW_ID_DESC' | 'NAME_ASC' - | 'NAME_DESC' - | 'NAME_TRGM_SIMILARITY_ASC' - | 'NAME_TRGM_SIMILARITY_DESC' - | 'EVENT_TRGM_SIMILARITY_ASC' - | 'EVENT_TRGM_SIMILARITY_DESC' - | 'ACTION_TRGM_SIMILARITY_ASC' - | 'ACTION_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'NAME_DESC'; +export type EmbeddingChunkOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'CHUNKS_TABLE_ID_ASC' + | 'CHUNKS_TABLE_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; export type TableTemplateModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -8449,13 +7629,7 @@ export type TableTemplateModuleOrderBy = | 'OWNER_TABLE_ID_ASC' | 'OWNER_TABLE_ID_DESC' | 'NODE_TYPE_ASC' - | 'NODE_TYPE_DESC' - | 'TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'NODE_TYPE_TRGM_SIMILARITY_ASC' - | 'NODE_TYPE_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'NODE_TYPE_DESC'; export type SecureTableProvisionOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -8467,19 +7641,7 @@ export type SecureTableProvisionOrderBy = | 'TABLE_ID_ASC' | 'TABLE_ID_DESC' | 'NODE_TYPE_ASC' - | 'NODE_TYPE_DESC' - | 'TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'NODE_TYPE_TRGM_SIMILARITY_ASC' - | 'NODE_TYPE_TRGM_SIMILARITY_DESC' - | 'POLICY_TYPE_TRGM_SIMILARITY_ASC' - | 'POLICY_TYPE_TRGM_SIMILARITY_DESC' - | 'POLICY_ROLE_TRGM_SIMILARITY_ASC' - | 'POLICY_ROLE_TRGM_SIMILARITY_DESC' - | 'POLICY_NAME_TRGM_SIMILARITY_ASC' - | 'POLICY_NAME_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'NODE_TYPE_DESC'; export type RelationProvisionOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -8493,29 +7655,7 @@ export type RelationProvisionOrderBy = | 'SOURCE_TABLE_ID_ASC' | 'SOURCE_TABLE_ID_DESC' | 'TARGET_TABLE_ID_ASC' - | 'TARGET_TABLE_ID_DESC' - | 'RELATION_TYPE_TRGM_SIMILARITY_ASC' - | 'RELATION_TYPE_TRGM_SIMILARITY_DESC' - | 'FIELD_NAME_TRGM_SIMILARITY_ASC' - | 'FIELD_NAME_TRGM_SIMILARITY_DESC' - | 'DELETE_ACTION_TRGM_SIMILARITY_ASC' - | 'DELETE_ACTION_TRGM_SIMILARITY_DESC' - | 'JUNCTION_TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'JUNCTION_TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'SOURCE_FIELD_NAME_TRGM_SIMILARITY_ASC' - | 'SOURCE_FIELD_NAME_TRGM_SIMILARITY_DESC' - | 'TARGET_FIELD_NAME_TRGM_SIMILARITY_ASC' - | 'TARGET_FIELD_NAME_TRGM_SIMILARITY_DESC' - | 'NODE_TYPE_TRGM_SIMILARITY_ASC' - | 'NODE_TYPE_TRGM_SIMILARITY_DESC' - | 'POLICY_TYPE_TRGM_SIMILARITY_ASC' - | 'POLICY_TYPE_TRGM_SIMILARITY_DESC' - | 'POLICY_ROLE_TRGM_SIMILARITY_ASC' - | 'POLICY_ROLE_TRGM_SIMILARITY_DESC' - | 'POLICY_NAME_TRGM_SIMILARITY_ASC' - | 'POLICY_NAME_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'TARGET_TABLE_ID_DESC'; export type SchemaGrantOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -8529,11 +7669,7 @@ export type SchemaGrantOrderBy = | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'GRANTEE_NAME_TRGM_SIMILARITY_ASC' - | 'GRANTEE_NAME_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'UPDATED_AT_DESC'; export type DefaultPrivilegeOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -8551,15 +7687,19 @@ export type DefaultPrivilegeOrderBy = | 'GRANTEE_NAME_ASC' | 'GRANTEE_NAME_DESC' | 'IS_GRANT_ASC' - | 'IS_GRANT_DESC' - | 'OBJECT_TYPE_TRGM_SIMILARITY_ASC' - | 'OBJECT_TYPE_TRGM_SIMILARITY_DESC' - | 'PRIVILEGE_TRGM_SIMILARITY_ASC' - | 'PRIVILEGE_TRGM_SIMILARITY_DESC' - | 'GRANTEE_NAME_TRGM_SIMILARITY_ASC' - | 'GRANTEE_NAME_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'IS_GRANT_DESC'; +export type EnumOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC'; export type ApiSchemaOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -8583,11 +7723,7 @@ export type ApiModuleOrderBy = | 'API_ID_ASC' | 'API_ID_DESC' | 'NAME_ASC' - | 'NAME_DESC' - | 'NAME_TRGM_SIMILARITY_ASC' - | 'NAME_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'NAME_DESC'; export type DomainOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -8613,13 +7749,7 @@ export type SiteMetadatumOrderBy = | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'SITE_ID_ASC' - | 'SITE_ID_DESC' - | 'TITLE_TRGM_SIMILARITY_ASC' - | 'TITLE_TRGM_SIMILARITY_DESC' - | 'DESCRIPTION_TRGM_SIMILARITY_ASC' - | 'DESCRIPTION_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'SITE_ID_DESC'; export type SiteModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -8629,11 +7759,7 @@ export type SiteModuleOrderBy = | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'SITE_ID_ASC' - | 'SITE_ID_DESC' - | 'NAME_TRGM_SIMILARITY_ASC' - | 'NAME_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'SITE_ID_DESC'; export type SiteThemeOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -8657,13 +7783,19 @@ export type TriggerFunctionOrderBy = | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'NAME_TRGM_SIMILARITY_ASC' - | 'NAME_TRGM_SIMILARITY_DESC' - | 'CODE_TRGM_SIMILARITY_ASC' - | 'CODE_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'UPDATED_AT_DESC'; +export type DatabaseTransferOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'TARGET_OWNER_ID_ASC' + | 'TARGET_OWNER_ID_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC'; export type ApiOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -8673,17 +7805,7 @@ export type ApiOrderBy = | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'NAME_ASC' - | 'NAME_DESC' - | 'NAME_TRGM_SIMILARITY_ASC' - | 'NAME_TRGM_SIMILARITY_DESC' - | 'DBNAME_TRGM_SIMILARITY_ASC' - | 'DBNAME_TRGM_SIMILARITY_DESC' - | 'ROLE_NAME_TRGM_SIMILARITY_ASC' - | 'ROLE_NAME_TRGM_SIMILARITY_DESC' - | 'ANON_ROLE_TRGM_SIMILARITY_ASC' - | 'ANON_ROLE_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'NAME_DESC'; export type SiteOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -8691,15 +7813,7 @@ export type SiteOrderBy = | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'TITLE_TRGM_SIMILARITY_ASC' - | 'TITLE_TRGM_SIMILARITY_DESC' - | 'DESCRIPTION_TRGM_SIMILARITY_ASC' - | 'DESCRIPTION_TRGM_SIMILARITY_DESC' - | 'DBNAME_TRGM_SIMILARITY_ASC' - | 'DBNAME_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'DATABASE_ID_DESC'; export type AppOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -8709,15 +7823,7 @@ export type AppOrderBy = | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'SITE_ID_ASC' - | 'SITE_ID_DESC' - | 'NAME_TRGM_SIMILARITY_ASC' - | 'NAME_TRGM_SIMILARITY_DESC' - | 'APP_STORE_ID_TRGM_SIMILARITY_ASC' - | 'APP_STORE_ID_TRGM_SIMILARITY_DESC' - | 'APP_ID_PREFIX_TRGM_SIMILARITY_ASC' - | 'APP_ID_PREFIX_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'SITE_ID_DESC'; export type ConnectedAccountsModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -8725,11 +7831,7 @@ export type ConnectedAccountsModuleOrderBy = | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'DATABASE_ID_DESC'; export type CryptoAddressesModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -8737,13 +7839,7 @@ export type CryptoAddressesModuleOrderBy = | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'CRYPTO_NETWORK_TRGM_SIMILARITY_ASC' - | 'CRYPTO_NETWORK_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'DATABASE_ID_DESC'; export type CryptoAuthModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -8751,21 +7847,7 @@ export type CryptoAuthModuleOrderBy = | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'USER_FIELD_TRGM_SIMILARITY_ASC' - | 'USER_FIELD_TRGM_SIMILARITY_DESC' - | 'CRYPTO_NETWORK_TRGM_SIMILARITY_ASC' - | 'CRYPTO_NETWORK_TRGM_SIMILARITY_DESC' - | 'SIGN_IN_REQUEST_CHALLENGE_TRGM_SIMILARITY_ASC' - | 'SIGN_IN_REQUEST_CHALLENGE_TRGM_SIMILARITY_DESC' - | 'SIGN_IN_RECORD_FAILURE_TRGM_SIMILARITY_ASC' - | 'SIGN_IN_RECORD_FAILURE_TRGM_SIMILARITY_DESC' - | 'SIGN_UP_WITH_KEY_TRGM_SIMILARITY_ASC' - | 'SIGN_UP_WITH_KEY_TRGM_SIMILARITY_DESC' - | 'SIGN_IN_WITH_CHALLENGE_TRGM_SIMILARITY_ASC' - | 'SIGN_IN_WITH_CHALLENGE_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'DATABASE_ID_DESC'; export type DefaultIdsModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -8781,11 +7863,7 @@ export type DenormalizedTableFieldOrderBy = | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'FUNC_NAME_TRGM_SIMILARITY_ASC' - | 'FUNC_NAME_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'DATABASE_ID_DESC'; export type EmailsModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -8793,11 +7871,7 @@ export type EmailsModuleOrderBy = | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'DATABASE_ID_DESC'; export type EncryptedSecretsModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -8805,11 +7879,7 @@ export type EncryptedSecretsModuleOrderBy = | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'DATABASE_ID_DESC'; export type FieldModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -8819,11 +7889,7 @@ export type FieldModuleOrderBy = | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'NODE_TYPE_ASC' - | 'NODE_TYPE_DESC' - | 'NODE_TYPE_TRGM_SIMILARITY_ASC' - | 'NODE_TYPE_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'NODE_TYPE_DESC'; export type InvitesModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -8831,17 +7897,7 @@ export type InvitesModuleOrderBy = | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'INVITES_TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'INVITES_TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'CLAIMED_INVITES_TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'CLAIMED_INVITES_TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'SUBMIT_INVITE_CODE_FUNCTION_TRGM_SIMILARITY_ASC' - | 'SUBMIT_INVITE_CODE_FUNCTION_TRGM_SIMILARITY_DESC' - | 'PREFIX_TRGM_SIMILARITY_ASC' - | 'PREFIX_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'DATABASE_ID_DESC'; export type LevelsModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -8849,39 +7905,7 @@ export type LevelsModuleOrderBy = | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'STEPS_TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'STEPS_TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'ACHIEVEMENTS_TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'ACHIEVEMENTS_TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'LEVELS_TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'LEVELS_TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'LEVEL_REQUIREMENTS_TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'LEVEL_REQUIREMENTS_TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'COMPLETED_STEP_TRGM_SIMILARITY_ASC' - | 'COMPLETED_STEP_TRGM_SIMILARITY_DESC' - | 'INCOMPLETED_STEP_TRGM_SIMILARITY_ASC' - | 'INCOMPLETED_STEP_TRGM_SIMILARITY_DESC' - | 'TG_ACHIEVEMENT_TRGM_SIMILARITY_ASC' - | 'TG_ACHIEVEMENT_TRGM_SIMILARITY_DESC' - | 'TG_ACHIEVEMENT_TOGGLE_TRGM_SIMILARITY_ASC' - | 'TG_ACHIEVEMENT_TOGGLE_TRGM_SIMILARITY_DESC' - | 'TG_ACHIEVEMENT_TOGGLE_BOOLEAN_TRGM_SIMILARITY_ASC' - | 'TG_ACHIEVEMENT_TOGGLE_BOOLEAN_TRGM_SIMILARITY_DESC' - | 'TG_ACHIEVEMENT_BOOLEAN_TRGM_SIMILARITY_ASC' - | 'TG_ACHIEVEMENT_BOOLEAN_TRGM_SIMILARITY_DESC' - | 'UPSERT_ACHIEVEMENT_TRGM_SIMILARITY_ASC' - | 'UPSERT_ACHIEVEMENT_TRGM_SIMILARITY_DESC' - | 'TG_UPDATE_ACHIEVEMENTS_TRGM_SIMILARITY_ASC' - | 'TG_UPDATE_ACHIEVEMENTS_TRGM_SIMILARITY_DESC' - | 'STEPS_REQUIRED_TRGM_SIMILARITY_ASC' - | 'STEPS_REQUIRED_TRGM_SIMILARITY_DESC' - | 'LEVEL_ACHIEVED_TRGM_SIMILARITY_ASC' - | 'LEVEL_ACHIEVED_TRGM_SIMILARITY_DESC' - | 'PREFIX_TRGM_SIMILARITY_ASC' - | 'PREFIX_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'DATABASE_ID_DESC'; export type LimitsModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -8889,27 +7913,7 @@ export type LimitsModuleOrderBy = | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'DEFAULT_TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'DEFAULT_TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'LIMIT_INCREMENT_FUNCTION_TRGM_SIMILARITY_ASC' - | 'LIMIT_INCREMENT_FUNCTION_TRGM_SIMILARITY_DESC' - | 'LIMIT_DECREMENT_FUNCTION_TRGM_SIMILARITY_ASC' - | 'LIMIT_DECREMENT_FUNCTION_TRGM_SIMILARITY_DESC' - | 'LIMIT_INCREMENT_TRIGGER_TRGM_SIMILARITY_ASC' - | 'LIMIT_INCREMENT_TRIGGER_TRGM_SIMILARITY_DESC' - | 'LIMIT_DECREMENT_TRIGGER_TRGM_SIMILARITY_ASC' - | 'LIMIT_DECREMENT_TRIGGER_TRGM_SIMILARITY_DESC' - | 'LIMIT_UPDATE_TRIGGER_TRGM_SIMILARITY_ASC' - | 'LIMIT_UPDATE_TRIGGER_TRGM_SIMILARITY_DESC' - | 'LIMIT_CHECK_FUNCTION_TRGM_SIMILARITY_ASC' - | 'LIMIT_CHECK_FUNCTION_TRGM_SIMILARITY_DESC' - | 'PREFIX_TRGM_SIMILARITY_ASC' - | 'PREFIX_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'DATABASE_ID_DESC'; export type MembershipTypesModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -8917,11 +7921,7 @@ export type MembershipTypesModuleOrderBy = | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'DATABASE_ID_DESC'; export type MembershipsModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -8929,33 +7929,7 @@ export type MembershipsModuleOrderBy = | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'MEMBERSHIPS_TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'MEMBERSHIPS_TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'MEMBERS_TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'MEMBERS_TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'MEMBERSHIP_DEFAULTS_TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'MEMBERSHIP_DEFAULTS_TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'GRANTS_TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'GRANTS_TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'ADMIN_GRANTS_TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'ADMIN_GRANTS_TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'OWNER_GRANTS_TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'OWNER_GRANTS_TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'PREFIX_TRGM_SIMILARITY_ASC' - | 'PREFIX_TRGM_SIMILARITY_DESC' - | 'ACTOR_MASK_CHECK_TRGM_SIMILARITY_ASC' - | 'ACTOR_MASK_CHECK_TRGM_SIMILARITY_DESC' - | 'ACTOR_PERM_CHECK_TRGM_SIMILARITY_ASC' - | 'ACTOR_PERM_CHECK_TRGM_SIMILARITY_DESC' - | 'ENTITY_IDS_BY_MASK_TRGM_SIMILARITY_ASC' - | 'ENTITY_IDS_BY_MASK_TRGM_SIMILARITY_DESC' - | 'ENTITY_IDS_BY_PERM_TRGM_SIMILARITY_ASC' - | 'ENTITY_IDS_BY_PERM_TRGM_SIMILARITY_DESC' - | 'ENTITY_IDS_FUNCTION_TRGM_SIMILARITY_ASC' - | 'ENTITY_IDS_FUNCTION_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'DATABASE_ID_DESC'; export type PermissionsModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -8963,23 +7937,7 @@ export type PermissionsModuleOrderBy = | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'DEFAULT_TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'DEFAULT_TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'PREFIX_TRGM_SIMILARITY_ASC' - | 'PREFIX_TRGM_SIMILARITY_DESC' - | 'GET_PADDED_MASK_TRGM_SIMILARITY_ASC' - | 'GET_PADDED_MASK_TRGM_SIMILARITY_DESC' - | 'GET_MASK_TRGM_SIMILARITY_ASC' - | 'GET_MASK_TRGM_SIMILARITY_DESC' - | 'GET_BY_MASK_TRGM_SIMILARITY_ASC' - | 'GET_BY_MASK_TRGM_SIMILARITY_DESC' - | 'GET_MASK_BY_NAME_TRGM_SIMILARITY_ASC' - | 'GET_MASK_BY_NAME_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'DATABASE_ID_DESC'; export type PhoneNumbersModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -8987,11 +7945,7 @@ export type PhoneNumbersModuleOrderBy = | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'DATABASE_ID_DESC'; export type ProfilesModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -9001,19 +7955,7 @@ export type ProfilesModuleOrderBy = | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'MEMBERSHIP_TYPE_ASC' - | 'MEMBERSHIP_TYPE_DESC' - | 'TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'PROFILE_PERMISSIONS_TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'PROFILE_PERMISSIONS_TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'PROFILE_GRANTS_TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'PROFILE_GRANTS_TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'PROFILE_DEFINITION_GRANTS_TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'PROFILE_DEFINITION_GRANTS_TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'PREFIX_TRGM_SIMILARITY_ASC' - | 'PREFIX_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'MEMBERSHIP_TYPE_DESC'; export type SecretsModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -9021,11 +7963,7 @@ export type SecretsModuleOrderBy = | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'DATABASE_ID_DESC'; export type SessionsModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -9033,15 +7971,7 @@ export type SessionsModuleOrderBy = | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SESSIONS_TABLE_TRGM_SIMILARITY_ASC' - | 'SESSIONS_TABLE_TRGM_SIMILARITY_DESC' - | 'SESSION_CREDENTIALS_TABLE_TRGM_SIMILARITY_ASC' - | 'SESSION_CREDENTIALS_TABLE_TRGM_SIMILARITY_DESC' - | 'AUTH_SETTINGS_TABLE_TRGM_SIMILARITY_ASC' - | 'AUTH_SETTINGS_TABLE_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'DATABASE_ID_DESC'; export type UserAuthModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -9049,41 +7979,7 @@ export type UserAuthModuleOrderBy = | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'AUDITS_TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'AUDITS_TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'SIGN_IN_FUNCTION_TRGM_SIMILARITY_ASC' - | 'SIGN_IN_FUNCTION_TRGM_SIMILARITY_DESC' - | 'SIGN_UP_FUNCTION_TRGM_SIMILARITY_ASC' - | 'SIGN_UP_FUNCTION_TRGM_SIMILARITY_DESC' - | 'SIGN_OUT_FUNCTION_TRGM_SIMILARITY_ASC' - | 'SIGN_OUT_FUNCTION_TRGM_SIMILARITY_DESC' - | 'SET_PASSWORD_FUNCTION_TRGM_SIMILARITY_ASC' - | 'SET_PASSWORD_FUNCTION_TRGM_SIMILARITY_DESC' - | 'RESET_PASSWORD_FUNCTION_TRGM_SIMILARITY_ASC' - | 'RESET_PASSWORD_FUNCTION_TRGM_SIMILARITY_DESC' - | 'FORGOT_PASSWORD_FUNCTION_TRGM_SIMILARITY_ASC' - | 'FORGOT_PASSWORD_FUNCTION_TRGM_SIMILARITY_DESC' - | 'SEND_VERIFICATION_EMAIL_FUNCTION_TRGM_SIMILARITY_ASC' - | 'SEND_VERIFICATION_EMAIL_FUNCTION_TRGM_SIMILARITY_DESC' - | 'VERIFY_EMAIL_FUNCTION_TRGM_SIMILARITY_ASC' - | 'VERIFY_EMAIL_FUNCTION_TRGM_SIMILARITY_DESC' - | 'VERIFY_PASSWORD_FUNCTION_TRGM_SIMILARITY_ASC' - | 'VERIFY_PASSWORD_FUNCTION_TRGM_SIMILARITY_DESC' - | 'CHECK_PASSWORD_FUNCTION_TRGM_SIMILARITY_ASC' - | 'CHECK_PASSWORD_FUNCTION_TRGM_SIMILARITY_DESC' - | 'SEND_ACCOUNT_DELETION_EMAIL_FUNCTION_TRGM_SIMILARITY_ASC' - | 'SEND_ACCOUNT_DELETION_EMAIL_FUNCTION_TRGM_SIMILARITY_DESC' - | 'DELETE_ACCOUNT_FUNCTION_TRGM_SIMILARITY_ASC' - | 'DELETE_ACCOUNT_FUNCTION_TRGM_SIMILARITY_DESC' - | 'SIGN_IN_ONE_TIME_TOKEN_FUNCTION_TRGM_SIMILARITY_ASC' - | 'SIGN_IN_ONE_TIME_TOKEN_FUNCTION_TRGM_SIMILARITY_DESC' - | 'ONE_TIME_TOKEN_FUNCTION_TRGM_SIMILARITY_ASC' - | 'ONE_TIME_TOKEN_FUNCTION_TRGM_SIMILARITY_DESC' - | 'EXTEND_TOKEN_EXPIRES_TRGM_SIMILARITY_ASC' - | 'EXTEND_TOKEN_EXPIRES_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'DATABASE_ID_DESC'; export type UsersModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -9091,27 +7987,43 @@ export type UsersModuleOrderBy = | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'TYPE_TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'TYPE_TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; -export type UuidModuleOrderBy = + | 'DATABASE_ID_DESC'; +export type BlueprintOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'UUID_FUNCTION_TRGM_SIMILARITY_ASC' - | 'UUID_FUNCTION_TRGM_SIMILARITY_DESC' - | 'UUID_SEED_TRGM_SIMILARITY_ASC' - | 'UUID_SEED_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'NAME_ASC' + | 'NAME_DESC' + | 'TEMPLATE_ID_ASC' + | 'TEMPLATE_ID_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC' + | 'DEFINITION_HASH_ASC' + | 'DEFINITION_HASH_DESC'; +export type BlueprintTemplateOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'VERSION_ASC' + | 'VERSION_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'VISIBILITY_ASC' + | 'VISIBILITY_DESC' + | 'FORKED_FROM_ID_ASC' + | 'FORKED_FROM_ID_DESC' + | 'DEFINITION_HASH_ASC' + | 'DEFINITION_HASH_DESC'; export type DatabaseProvisionModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -9123,25 +8035,15 @@ export type DatabaseProvisionModuleOrderBy = | 'STATUS_ASC' | 'STATUS_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'DATABASE_NAME_TRGM_SIMILARITY_ASC' - | 'DATABASE_NAME_TRGM_SIMILARITY_DESC' - | 'SUBDOMAIN_TRGM_SIMILARITY_ASC' - | 'SUBDOMAIN_TRGM_SIMILARITY_DESC' - | 'DOMAIN_TRGM_SIMILARITY_ASC' - | 'DOMAIN_TRGM_SIMILARITY_DESC' - | 'STATUS_TRGM_SIMILARITY_ASC' - | 'STATUS_TRGM_SIMILARITY_DESC' - | 'ERROR_MESSAGE_TRGM_SIMILARITY_ASC' - | 'ERROR_MESSAGE_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'DATABASE_ID_DESC'; export type AppAdminGrantOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' | 'GRANTOR_ID_ASC' | 'GRANTOR_ID_DESC' | 'CREATED_AT_ASC' @@ -9154,6 +8056,8 @@ export type AppOwnerGrantOrderBy = | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' | 'GRANTOR_ID_ASC' | 'GRANTOR_ID_DESC' | 'CREATED_AT_ASC' @@ -9166,6 +8070,8 @@ export type AppGrantOrderBy = | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' | 'GRANTOR_ID_ASC' | 'GRANTOR_ID_DESC' | 'CREATED_AT_ASC' @@ -9214,6 +8120,8 @@ export type OrgAdminGrantOrderBy = | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' | 'GRANTOR_ID_ASC' @@ -9228,6 +8136,8 @@ export type OrgOwnerGrantOrderBy = | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' | 'GRANTOR_ID_ASC' @@ -9242,6 +8152,8 @@ export type OrgGrantOrderBy = | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' | 'GRANTOR_ID_ASC' @@ -9265,11 +8177,7 @@ export type OrgChartEdgeOrderBy = | 'CHILD_ID_ASC' | 'CHILD_ID_DESC' | 'PARENT_ID_ASC' - | 'PARENT_ID_DESC' - | 'POSITION_TITLE_TRGM_SIMILARITY_ASC' - | 'POSITION_TITLE_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'PARENT_ID_DESC'; export type OrgChartEdgeGrantOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -9283,11 +8191,15 @@ export type OrgChartEdgeGrantOrderBy = | 'PARENT_ID_ASC' | 'PARENT_ID_DESC' | 'GRANTOR_ID_ASC' - | 'GRANTOR_ID_DESC' - | 'POSITION_TITLE_TRGM_SIMILARITY_ASC' - | 'POSITION_TITLE_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'GRANTOR_ID_DESC'; +export type OrgPermissionDefaultOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC'; export type AppLimitOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -9338,6 +8250,78 @@ export type AppAchievementOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; +export type AppLevelOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type EmailOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'EMAIL_ASC' + | 'EMAIL_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type PhoneNumberOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'NUMBER_ASC' + | 'NUMBER_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type CryptoAddressOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'ADDRESS_ASC' + | 'ADDRESS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type ConnectedAccountOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'SERVICE_ASC' + | 'SERVICE_DESC' + | 'IDENTIFIER_ASC' + | 'IDENTIFIER_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; export type InviteOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -9357,11 +8341,7 @@ export type InviteOrderBy = | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'INVITE_TOKEN_TRGM_SIMILARITY_ASC' - | 'INVITE_TOKEN_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'UPDATED_AT_DESC'; export type ClaimedInviteOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -9386,6 +8366,8 @@ export type OrgInviteOrderBy = | 'EMAIL_DESC' | 'SENDER_ID_ASC' | 'SENDER_ID_DESC' + | 'RECEIVER_ID_ASC' + | 'RECEIVER_ID_DESC' | 'INVITE_TOKEN_ASC' | 'INVITE_TOKEN_DESC' | 'INVITE_VALID_ASC' @@ -9397,11 +8379,7 @@ export type OrgInviteOrderBy = | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'INVITE_TOKEN_TRGM_SIMILARITY_ASC' - | 'INVITE_TOKEN_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'ENTITY_ID_DESC'; export type OrgClaimedInviteOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -9415,7 +8393,19 @@ export type OrgClaimedInviteOrderBy = | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; + | 'UPDATED_AT_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC'; +export type AuditLogOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'EVENT_ASC' + | 'EVENT_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC'; export type RefOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -9425,11 +8415,7 @@ export type RefOrderBy = | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'STORE_ID_ASC' - | 'STORE_ID_DESC' - | 'NAME_TRGM_SIMILARITY_ASC' - | 'NAME_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'STORE_ID_DESC'; export type StoreOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -9437,33 +8423,13 @@ export type StoreOrderBy = | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'NAME_TRGM_SIMILARITY_ASC' - | 'NAME_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'DATABASE_ID_DESC'; export type AppPermissionDefaultOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC'; -export type CryptoAddressOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'ADDRESS_ASC' - | 'ADDRESS_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'ADDRESS_TRGM_SIMILARITY_ASC' - | 'ADDRESS_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; export type RoleTypeOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -9472,30 +8438,6 @@ export type RoleTypeOrderBy = | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC'; -export type OrgPermissionDefaultOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC'; -export type PhoneNumberOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NUMBER_ASC' - | 'NUMBER_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CC_TRGM_SIMILARITY_ASC' - | 'CC_TRGM_SIMILARITY_DESC' - | 'NUMBER_TRGM_SIMILARITY_ASC' - | 'NUMBER_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; export type AppLimitDefaultOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -9512,26 +8454,6 @@ export type OrgLimitDefaultOrderBy = | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC'; -export type ConnectedAccountOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'SERVICE_ASC' - | 'SERVICE_DESC' - | 'IDENTIFIER_ASC' - | 'IDENTIFIER_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'SERVICE_TRGM_SIMILARITY_ASC' - | 'SERVICE_TRGM_SIMILARITY_DESC' - | 'IDENTIFIER_TRGM_SIMILARITY_ASC' - | 'IDENTIFIER_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; export type NodeTypeRegistryOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -9541,19 +8463,7 @@ export type NodeTypeRegistryOrderBy = | 'SLUG_ASC' | 'SLUG_DESC' | 'CATEGORY_ASC' - | 'CATEGORY_DESC' - | 'NAME_TRGM_SIMILARITY_ASC' - | 'NAME_TRGM_SIMILARITY_DESC' - | 'SLUG_TRGM_SIMILARITY_ASC' - | 'SLUG_TRGM_SIMILARITY_DESC' - | 'CATEGORY_TRGM_SIMILARITY_ASC' - | 'CATEGORY_TRGM_SIMILARITY_DESC' - | 'DISPLAY_NAME_TRGM_SIMILARITY_ASC' - | 'DISPLAY_NAME_TRGM_SIMILARITY_DESC' - | 'DESCRIPTION_TRGM_SIMILARITY_ASC' - | 'DESCRIPTION_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'CATEGORY_DESC'; export type MembershipTypeOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -9561,13 +8471,7 @@ export type MembershipTypeOrderBy = | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' - | 'NAME_DESC' - | 'DESCRIPTION_TRGM_SIMILARITY_ASC' - | 'DESCRIPTION_TRGM_SIMILARITY_DESC' - | 'PREFIX_TRGM_SIMILARITY_ASC' - | 'PREFIX_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'NAME_DESC'; export type CommitOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -9575,11 +8479,7 @@ export type CommitOrderBy = | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'MESSAGE_TRGM_SIMILARITY_ASC' - | 'MESSAGE_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'DATABASE_ID_DESC'; export type AppMembershipDefaultOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -9601,17 +8501,7 @@ export type RlsModuleOrderBy = | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'AUTHENTICATE_TRGM_SIMILARITY_ASC' - | 'AUTHENTICATE_TRGM_SIMILARITY_DESC' - | 'AUTHENTICATE_STRICT_TRGM_SIMILARITY_ASC' - | 'AUTHENTICATE_STRICT_TRGM_SIMILARITY_DESC' - | 'CURRENT_ROLE_TRGM_SIMILARITY_ASC' - | 'CURRENT_ROLE_TRGM_SIMILARITY_DESC' - | 'CURRENT_ROLE_ID_TRGM_SIMILARITY_ASC' - | 'CURRENT_ROLE_ID_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'DATABASE_ID_DESC'; export type OrgMembershipDefaultOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -9628,35 +8518,7 @@ export type OrgMembershipDefaultOrderBy = | 'UPDATED_BY_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC'; -export type AuditLogOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'EVENT_ASC' - | 'EVENT_DESC' - | 'USER_AGENT_TRGM_SIMILARITY_ASC' - | 'USER_AGENT_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; -export type AppLevelOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'DESCRIPTION_TRGM_SIMILARITY_ASC' - | 'DESCRIPTION_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; -export type SqlMigrationOrderBy = +export type SqlMigrationOrderBy = | 'NATURAL' | 'ID_ASC' | 'ID_DESC' @@ -9679,33 +8541,7 @@ export type SqlMigrationOrderBy = | 'ACTION_ID_ASC' | 'ACTION_ID_DESC' | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'NAME_TRGM_SIMILARITY_ASC' - | 'NAME_TRGM_SIMILARITY_DESC' - | 'DEPLOY_TRGM_SIMILARITY_ASC' - | 'DEPLOY_TRGM_SIMILARITY_DESC' - | 'CONTENT_TRGM_SIMILARITY_ASC' - | 'CONTENT_TRGM_SIMILARITY_DESC' - | 'REVERT_TRGM_SIMILARITY_ASC' - | 'REVERT_TRGM_SIMILARITY_DESC' - | 'VERIFY_TRGM_SIMILARITY_ASC' - | 'VERIFY_TRGM_SIMILARITY_DESC' - | 'ACTION_TRGM_SIMILARITY_ASC' - | 'ACTION_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; -export type EmailOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'EMAIL_ASC' - | 'EMAIL_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; + | 'ACTOR_ID_DESC'; export type UserOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -9741,11 +8577,7 @@ export type AstMigrationOrderBy = | 'ACTION_ID_ASC' | 'ACTION_ID_DESC' | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'ACTION_TRGM_SIMILARITY_ASC' - | 'ACTION_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'ACTOR_ID_DESC'; export type AppMembershipOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -9775,30 +8607,28 @@ export type HierarchyModuleOrderBy = | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'CHART_EDGES_TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'CHART_EDGES_TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'HIERARCHY_SPRT_TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'HIERARCHY_SPRT_TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'CHART_EDGE_GRANTS_TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'CHART_EDGE_GRANTS_TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'PREFIX_TRGM_SIMILARITY_ASC' - | 'PREFIX_TRGM_SIMILARITY_DESC' - | 'PRIVATE_SCHEMA_NAME_TRGM_SIMILARITY_ASC' - | 'PRIVATE_SCHEMA_NAME_TRGM_SIMILARITY_DESC' - | 'SPRT_TABLE_NAME_TRGM_SIMILARITY_ASC' - | 'SPRT_TABLE_NAME_TRGM_SIMILARITY_DESC' - | 'REBUILD_HIERARCHY_FUNCTION_TRGM_SIMILARITY_ASC' - | 'REBUILD_HIERARCHY_FUNCTION_TRGM_SIMILARITY_DESC' - | 'GET_SUBORDINATES_FUNCTION_TRGM_SIMILARITY_ASC' - | 'GET_SUBORDINATES_FUNCTION_TRGM_SIMILARITY_DESC' - | 'GET_MANAGERS_FUNCTION_TRGM_SIMILARITY_ASC' - | 'GET_MANAGERS_FUNCTION_TRGM_SIMILARITY_DESC' - | 'IS_MANAGER_OF_FUNCTION_TRGM_SIMILARITY_ASC' - | 'IS_MANAGER_OF_FUNCTION_TRGM_SIMILARITY_DESC' - | 'SEARCH_SCORE_ASC' - | 'SEARCH_SCORE_DESC'; + | 'DATABASE_ID_DESC'; // ============ CRUD Input Types ============ +export interface CreateGetAllRecordInput { + clientMutationId?: string; + getAllRecord: { + path?: string[]; + data?: Record; + }; +} +export interface GetAllRecordPatch { + path?: string[] | null; + data?: Record | null; +} +export interface UpdateGetAllRecordInput { + clientMutationId?: string; + id: string; + getAllRecordPatch: GetAllRecordPatch; +} +export interface DeleteGetAllRecordInput { + clientMutationId?: string; + id: string; +} export interface CreateOrgGetManagersRecordInput { clientMutationId?: string; orgGetManagersRecord: { @@ -9839,26 +8669,6 @@ export interface DeleteOrgGetSubordinatesRecordInput { clientMutationId?: string; id: string; } -export interface CreateGetAllRecordInput { - clientMutationId?: string; - getAllRecord: { - path?: string[]; - data?: Record; - }; -} -export interface GetAllRecordPatch { - path?: string[] | null; - data?: Record | null; -} -export interface UpdateGetAllRecordInput { - clientMutationId?: string; - id: string; - getAllRecordPatch: GetAllRecordPatch; -} -export interface DeleteGetAllRecordInput { - clientMutationId?: string; - id: string; -} export interface CreateObjectInput { clientMutationId?: string; object: { @@ -10119,6 +8929,7 @@ export interface CreateFieldInput { description?: string; smartTags?: Record; isRequired?: boolean; + apiRequired?: boolean; defaultValue?: string; defaultValueAst?: Record; isHidden?: boolean; @@ -10143,6 +8954,7 @@ export interface FieldPatch { description?: string | null; smartTags?: Record | null; isRequired?: boolean | null; + apiRequired?: boolean | null; defaultValue?: string | null; defaultValueAst?: Record | null; isHidden?: boolean | null; @@ -10593,6 +9405,52 @@ export interface DeleteViewRuleInput { clientMutationId?: string; id: string; } +export interface CreateEmbeddingChunkInput { + clientMutationId?: string; + embeddingChunk: { + databaseId?: string; + tableId: string; + embeddingFieldId?: string; + chunksTableId?: string; + chunksTableName?: string; + contentFieldName?: string; + dimensions?: number; + metric?: string; + chunkSize?: number; + chunkOverlap?: number; + chunkStrategy?: string; + metadataFields?: Record; + enqueueChunkingJob?: boolean; + chunkingTaskName?: string; + parentFkFieldId?: string; + }; +} +export interface EmbeddingChunkPatch { + databaseId?: string | null; + tableId?: string | null; + embeddingFieldId?: string | null; + chunksTableId?: string | null; + chunksTableName?: string | null; + contentFieldName?: string | null; + dimensions?: number | null; + metric?: string | null; + chunkSize?: number | null; + chunkOverlap?: number | null; + chunkStrategy?: string | null; + metadataFields?: Record | null; + enqueueChunkingJob?: boolean | null; + chunkingTaskName?: string | null; + parentFkFieldId?: string | null; +} +export interface UpdateEmbeddingChunkInput { + clientMutationId?: string; + id: string; + embeddingChunkPatch: EmbeddingChunkPatch; +} +export interface DeleteEmbeddingChunkInput { + clientMutationId?: string; + id: string; +} export interface CreateTableTemplateModuleInput { clientMutationId?: string; tableTemplateModule: { @@ -10635,9 +9493,9 @@ export interface CreateSecureTableProvisionInput { nodeType?: string; useRls?: boolean; nodeData?: Record; - fields?: Record; + fields?: Record[]; grantRoles?: string[]; - grantPrivileges?: Record; + grantPrivileges?: Record[]; policyType?: string; policyPrivileges?: string[]; policyRole?: string; @@ -10655,9 +9513,9 @@ export interface SecureTableProvisionPatch { nodeType?: string | null; useRls?: boolean | null; nodeData?: Record | null; - fields?: Record | null; + fields?: Record[] | null; grantRoles?: string[] | null; - grantPrivileges?: Record | null; + grantPrivileges?: Record[] | null; policyType?: string | null; policyPrivileges?: string[] | null; policyRole?: string | null; @@ -10685,16 +9543,19 @@ export interface CreateRelationProvisionInput { fieldName?: string; deleteAction?: string; isRequired?: boolean; + apiRequired?: boolean; junctionTableId?: string; junctionTableName?: string; junctionSchemaId?: string; sourceFieldName?: string; targetFieldName?: string; useCompositeKey?: boolean; + createIndex?: boolean; + exposeInApi?: boolean; nodeType?: string; nodeData?: Record; grantRoles?: string[]; - grantPrivileges?: Record; + grantPrivileges?: Record[]; policyType?: string; policyPrivileges?: string[]; policyRole?: string; @@ -10715,16 +9576,19 @@ export interface RelationProvisionPatch { fieldName?: string | null; deleteAction?: string | null; isRequired?: boolean | null; + apiRequired?: boolean | null; junctionTableId?: string | null; junctionTableName?: string | null; junctionSchemaId?: string | null; sourceFieldName?: string | null; targetFieldName?: string | null; useCompositeKey?: boolean | null; + createIndex?: boolean | null; + exposeInApi?: boolean | null; nodeType?: string | null; nodeData?: Record | null; grantRoles?: string[] | null; - grantPrivileges?: Record | null; + grantPrivileges?: Record[] | null; policyType?: string | null; policyPrivileges?: string[] | null; policyRole?: string | null; @@ -10795,6 +9659,44 @@ export interface DeleteDefaultPrivilegeInput { clientMutationId?: string; id: string; } +export interface CreateEnumInput { + clientMutationId?: string; + enum: { + databaseId: string; + schemaId: string; + name: string; + label?: string; + description?: string; + values?: string[]; + smartTags?: Record; + category?: ObjectCategory; + module?: string; + scope?: number; + tags?: string[]; + }; +} +export interface EnumPatch { + databaseId?: string | null; + schemaId?: string | null; + name?: string | null; + label?: string | null; + description?: string | null; + values?: string[] | null; + smartTags?: Record | null; + category?: ObjectCategory | null; + module?: string | null; + scope?: number | null; + tags?: string[] | null; +} +export interface UpdateEnumInput { + clientMutationId?: string; + id: string; + enumPatch: EnumPatch; +} +export interface DeleteEnumInput { + clientMutationId?: string; + id: string; +} export interface CreateApiSchemaInput { clientMutationId?: string; apiSchema: { @@ -10962,6 +9864,44 @@ export interface DeleteTriggerFunctionInput { clientMutationId?: string; id: string; } +export interface CreateDatabaseTransferInput { + clientMutationId?: string; + databaseTransfer: { + databaseId: string; + targetOwnerId: string; + sourceApproved?: boolean; + targetApproved?: boolean; + sourceApprovedAt?: string; + targetApprovedAt?: string; + status?: string; + initiatedBy: string; + notes?: string; + expiresAt?: string; + completedAt?: string; + }; +} +export interface DatabaseTransferPatch { + databaseId?: string | null; + targetOwnerId?: string | null; + sourceApproved?: boolean | null; + targetApproved?: boolean | null; + sourceApprovedAt?: string | null; + targetApprovedAt?: string | null; + status?: string | null; + initiatedBy?: string | null; + notes?: string | null; + expiresAt?: string | null; + completedAt?: string | null; +} +export interface UpdateDatabaseTransferInput { + clientMutationId?: string; + id: string; + databaseTransferPatch: DatabaseTransferPatch; +} +export interface DeleteDatabaseTransferInput { + clientMutationId?: string; + id: string; +} export interface CreateApiInput { clientMutationId?: string; api: { @@ -11837,27 +10777,97 @@ export interface DeleteUsersModuleInput { clientMutationId?: string; id: string; } -export interface CreateUuidModuleInput { +export interface CreateBlueprintInput { clientMutationId?: string; - uuidModule: { + blueprint: { + ownerId: string; databaseId: string; - schemaId?: string; - uuidFunction?: string; - uuidSeed: string; + name: string; + displayName: string; + description?: string; + definition: Record; + templateId?: string; + status?: string; + constructedAt?: string; + errorDetails?: string; + refMap?: Record; + constructedDefinition?: Record; + definitionHash?: string; + tableHashes?: Record; }; } -export interface UuidModulePatch { +export interface BlueprintPatch { + ownerId?: string | null; databaseId?: string | null; - schemaId?: string | null; - uuidFunction?: string | null; - uuidSeed?: string | null; + name?: string | null; + displayName?: string | null; + description?: string | null; + definition?: Record | null; + templateId?: string | null; + status?: string | null; + constructedAt?: string | null; + errorDetails?: string | null; + refMap?: Record | null; + constructedDefinition?: Record | null; + definitionHash?: string | null; + tableHashes?: Record | null; +} +export interface UpdateBlueprintInput { + clientMutationId?: string; + id: string; + blueprintPatch: BlueprintPatch; +} +export interface DeleteBlueprintInput { + clientMutationId?: string; + id: string; +} +export interface CreateBlueprintTemplateInput { + clientMutationId?: string; + blueprintTemplate: { + name: string; + version?: string; + displayName: string; + description?: string; + ownerId: string; + visibility?: string; + categories?: string[]; + tags?: string[]; + definition: Record; + definitionSchemaVersion?: string; + source?: string; + complexity?: string; + copyCount?: number; + forkCount?: number; + forkedFromId?: string; + definitionHash?: string; + tableHashes?: Record; + }; +} +export interface BlueprintTemplatePatch { + name?: string | null; + version?: string | null; + displayName?: string | null; + description?: string | null; + ownerId?: string | null; + visibility?: string | null; + categories?: string[] | null; + tags?: string[] | null; + definition?: Record | null; + definitionSchemaVersion?: string | null; + source?: string | null; + complexity?: string | null; + copyCount?: number | null; + forkCount?: number | null; + forkedFromId?: string | null; + definitionHash?: string | null; + tableHashes?: Record | null; } -export interface UpdateUuidModuleInput { +export interface UpdateBlueprintTemplateInput { clientMutationId?: string; id: string; - uuidModulePatch: UuidModulePatch; + blueprintTemplatePatch: BlueprintTemplatePatch; } -export interface DeleteUuidModuleInput { +export interface DeleteBlueprintTemplateInput { clientMutationId?: string; id: string; } @@ -12137,7 +11147,7 @@ export interface CreateOrgChartEdgeGrantInput { entityId: string; childId: string; parentId?: string; - grantorId: string; + grantorId?: string; isGrant?: boolean; positionTitle?: string; positionLevel?: number; @@ -12161,6 +11171,26 @@ export interface DeleteOrgChartEdgeGrantInput { clientMutationId?: string; id: string; } +export interface CreateOrgPermissionDefaultInput { + clientMutationId?: string; + orgPermissionDefault: { + permissions?: string; + entityId: string; + }; +} +export interface OrgPermissionDefaultPatch { + permissions?: string | null; + entityId?: string | null; +} +export interface UpdateOrgPermissionDefaultInput { + clientMutationId?: string; + id: string; + orgPermissionDefaultPatch: OrgPermissionDefaultPatch; +} +export interface DeleteOrgPermissionDefaultInput { + clientMutationId?: string; + id: string; +} export interface CreateAppLimitInput { clientMutationId?: string; appLimit: { @@ -12255,73 +11285,198 @@ export interface DeleteAppAchievementInput { clientMutationId?: string; id: string; } -export interface CreateInviteInput { +export interface CreateAppLevelInput { clientMutationId?: string; - invite: { - email?: ConstructiveInternalTypeEmail; - senderId?: string; - inviteToken?: string; - inviteValid?: boolean; - inviteLimit?: number; - inviteCount?: number; - multiple?: boolean; - data?: Record; - expiresAt?: string; + appLevel: { + name: string; + description?: string; + image?: ConstructiveInternalTypeImage; + ownerId?: string; }; } -export interface InvitePatch { - email?: ConstructiveInternalTypeEmail | null; - senderId?: string | null; - inviteToken?: string | null; - inviteValid?: boolean | null; - inviteLimit?: number | null; - inviteCount?: number | null; - multiple?: boolean | null; - data?: Record | null; - expiresAt?: string | null; +export interface AppLevelPatch { + name?: string | null; + description?: string | null; + image?: ConstructiveInternalTypeImage | null; + ownerId?: string | null; + imageUpload?: File | null; } -export interface UpdateInviteInput { +export interface UpdateAppLevelInput { clientMutationId?: string; id: string; - invitePatch: InvitePatch; + appLevelPatch: AppLevelPatch; } -export interface DeleteInviteInput { +export interface DeleteAppLevelInput { clientMutationId?: string; id: string; } -export interface CreateClaimedInviteInput { +export interface CreateEmailInput { clientMutationId?: string; - claimedInvite: { - data?: Record; - senderId?: string; - receiverId?: string; + email: { + ownerId?: string; + email: ConstructiveInternalTypeEmail; + isVerified?: boolean; + isPrimary?: boolean; }; } -export interface ClaimedInvitePatch { - data?: Record | null; - senderId?: string | null; - receiverId?: string | null; +export interface EmailPatch { + ownerId?: string | null; + email?: ConstructiveInternalTypeEmail | null; + isVerified?: boolean | null; + isPrimary?: boolean | null; } -export interface UpdateClaimedInviteInput { +export interface UpdateEmailInput { clientMutationId?: string; id: string; - claimedInvitePatch: ClaimedInvitePatch; + emailPatch: EmailPatch; } -export interface DeleteClaimedInviteInput { +export interface DeleteEmailInput { clientMutationId?: string; id: string; } -export interface CreateOrgInviteInput { +export interface CreatePhoneNumberInput { clientMutationId?: string; - orgInvite: { - email?: ConstructiveInternalTypeEmail; - senderId?: string; - receiverId?: string; - inviteToken?: string; - inviteValid?: boolean; - inviteLimit?: number; - inviteCount?: number; - multiple?: boolean; + phoneNumber: { + ownerId?: string; + cc: string; + number: string; + isVerified?: boolean; + isPrimary?: boolean; + }; +} +export interface PhoneNumberPatch { + ownerId?: string | null; + cc?: string | null; + number?: string | null; + isVerified?: boolean | null; + isPrimary?: boolean | null; +} +export interface UpdatePhoneNumberInput { + clientMutationId?: string; + id: string; + phoneNumberPatch: PhoneNumberPatch; +} +export interface DeletePhoneNumberInput { + clientMutationId?: string; + id: string; +} +export interface CreateCryptoAddressInput { + clientMutationId?: string; + cryptoAddress: { + ownerId?: string; + address: string; + isVerified?: boolean; + isPrimary?: boolean; + }; +} +export interface CryptoAddressPatch { + ownerId?: string | null; + address?: string | null; + isVerified?: boolean | null; + isPrimary?: boolean | null; +} +export interface UpdateCryptoAddressInput { + clientMutationId?: string; + id: string; + cryptoAddressPatch: CryptoAddressPatch; +} +export interface DeleteCryptoAddressInput { + clientMutationId?: string; + id: string; +} +export interface CreateConnectedAccountInput { + clientMutationId?: string; + connectedAccount: { + ownerId?: string; + service: string; + identifier: string; + details: Record; + isVerified?: boolean; + }; +} +export interface ConnectedAccountPatch { + ownerId?: string | null; + service?: string | null; + identifier?: string | null; + details?: Record | null; + isVerified?: boolean | null; +} +export interface UpdateConnectedAccountInput { + clientMutationId?: string; + id: string; + connectedAccountPatch: ConnectedAccountPatch; +} +export interface DeleteConnectedAccountInput { + clientMutationId?: string; + id: string; +} +export interface CreateInviteInput { + clientMutationId?: string; + invite: { + email?: ConstructiveInternalTypeEmail; + senderId?: string; + inviteToken?: string; + inviteValid?: boolean; + inviteLimit?: number; + inviteCount?: number; + multiple?: boolean; + data?: Record; + expiresAt?: string; + }; +} +export interface InvitePatch { + email?: ConstructiveInternalTypeEmail | null; + senderId?: string | null; + inviteToken?: string | null; + inviteValid?: boolean | null; + inviteLimit?: number | null; + inviteCount?: number | null; + multiple?: boolean | null; + data?: Record | null; + expiresAt?: string | null; +} +export interface UpdateInviteInput { + clientMutationId?: string; + id: string; + invitePatch: InvitePatch; +} +export interface DeleteInviteInput { + clientMutationId?: string; + id: string; +} +export interface CreateClaimedInviteInput { + clientMutationId?: string; + claimedInvite: { + data?: Record; + senderId?: string; + receiverId?: string; + }; +} +export interface ClaimedInvitePatch { + data?: Record | null; + senderId?: string | null; + receiverId?: string | null; +} +export interface UpdateClaimedInviteInput { + clientMutationId?: string; + id: string; + claimedInvitePatch: ClaimedInvitePatch; +} +export interface DeleteClaimedInviteInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgInviteInput { + clientMutationId?: string; + orgInvite: { + email?: ConstructiveInternalTypeEmail; + senderId?: string; + receiverId?: string; + inviteToken?: string; + inviteValid?: boolean; + inviteLimit?: number; + inviteCount?: number; + multiple?: boolean; data?: Record; expiresAt?: string; entityId: string; @@ -12373,6 +11528,34 @@ export interface DeleteOrgClaimedInviteInput { clientMutationId?: string; id: string; } +export interface CreateAuditLogInput { + clientMutationId?: string; + auditLog: { + event: string; + actorId?: string; + origin?: ConstructiveInternalTypeOrigin; + userAgent?: string; + ipAddress?: string; + success: boolean; + }; +} +export interface AuditLogPatch { + event?: string | null; + actorId?: string | null; + origin?: ConstructiveInternalTypeOrigin | null; + userAgent?: string | null; + ipAddress?: string | null; + success?: boolean | null; +} +export interface UpdateAuditLogInput { + clientMutationId?: string; + id: string; + auditLogPatch: AuditLogPatch; +} +export interface DeleteAuditLogInput { + clientMutationId?: string; + id: string; +} export interface CreateRefInput { clientMutationId?: string; ref: { @@ -12437,30 +11620,6 @@ export interface DeleteAppPermissionDefaultInput { clientMutationId?: string; id: string; } -export interface CreateCryptoAddressInput { - clientMutationId?: string; - cryptoAddress: { - ownerId?: string; - address: string; - isVerified?: boolean; - isPrimary?: boolean; - }; -} -export interface CryptoAddressPatch { - ownerId?: string | null; - address?: string | null; - isVerified?: boolean | null; - isPrimary?: boolean | null; -} -export interface UpdateCryptoAddressInput { - clientMutationId?: string; - id: string; - cryptoAddressPatch: CryptoAddressPatch; -} -export interface DeleteCryptoAddressInput { - clientMutationId?: string; - id: string; -} export interface CreateRoleTypeInput { clientMutationId?: string; roleType: { @@ -12479,52 +11638,6 @@ export interface DeleteRoleTypeInput { clientMutationId?: string; id: number; } -export interface CreateOrgPermissionDefaultInput { - clientMutationId?: string; - orgPermissionDefault: { - permissions?: string; - entityId: string; - }; -} -export interface OrgPermissionDefaultPatch { - permissions?: string | null; - entityId?: string | null; -} -export interface UpdateOrgPermissionDefaultInput { - clientMutationId?: string; - id: string; - orgPermissionDefaultPatch: OrgPermissionDefaultPatch; -} -export interface DeleteOrgPermissionDefaultInput { - clientMutationId?: string; - id: string; -} -export interface CreatePhoneNumberInput { - clientMutationId?: string; - phoneNumber: { - ownerId?: string; - cc: string; - number: string; - isVerified?: boolean; - isPrimary?: boolean; - }; -} -export interface PhoneNumberPatch { - ownerId?: string | null; - cc?: string | null; - number?: string | null; - isVerified?: boolean | null; - isPrimary?: boolean | null; -} -export interface UpdatePhoneNumberInput { - clientMutationId?: string; - id: string; - phoneNumberPatch: PhoneNumberPatch; -} -export interface DeletePhoneNumberInput { - clientMutationId?: string; - id: string; -} export interface CreateAppLimitDefaultInput { clientMutationId?: string; appLimitDefault: { @@ -12565,42 +11678,16 @@ export interface DeleteOrgLimitDefaultInput { clientMutationId?: string; id: string; } -export interface CreateConnectedAccountInput { +export interface CreateNodeTypeRegistryInput { clientMutationId?: string; - connectedAccount: { - ownerId?: string; - service: string; - identifier: string; - details: Record; - isVerified?: boolean; - }; -} -export interface ConnectedAccountPatch { - ownerId?: string | null; - service?: string | null; - identifier?: string | null; - details?: Record | null; - isVerified?: boolean | null; -} -export interface UpdateConnectedAccountInput { - clientMutationId?: string; - id: string; - connectedAccountPatch: ConnectedAccountPatch; -} -export interface DeleteConnectedAccountInput { - clientMutationId?: string; - id: string; -} -export interface CreateNodeTypeRegistryInput { - clientMutationId?: string; - nodeTypeRegistry: { - name: string; - slug: string; - category: string; - displayName?: string; - description?: string; - parameterSchema?: Record; - tags?: string[]; + nodeTypeRegistry: { + name: string; + slug: string; + category: string; + displayName?: string; + description?: string; + parameterSchema?: Record; + tags?: string[]; }; } export interface NodeTypeRegistryPatch { @@ -12763,59 +11850,6 @@ export interface DeleteOrgMembershipDefaultInput { clientMutationId?: string; id: string; } -export interface CreateAuditLogInput { - clientMutationId?: string; - auditLog: { - event: string; - actorId?: string; - origin?: ConstructiveInternalTypeOrigin; - userAgent?: string; - ipAddress?: string; - success: boolean; - }; -} -export interface AuditLogPatch { - event?: string | null; - actorId?: string | null; - origin?: ConstructiveInternalTypeOrigin | null; - userAgent?: string | null; - ipAddress?: string | null; - success?: boolean | null; -} -export interface UpdateAuditLogInput { - clientMutationId?: string; - id: string; - auditLogPatch: AuditLogPatch; -} -export interface DeleteAuditLogInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppLevelInput { - clientMutationId?: string; - appLevel: { - name: string; - description?: string; - image?: ConstructiveInternalTypeImage; - ownerId?: string; - }; -} -export interface AppLevelPatch { - name?: string | null; - description?: string | null; - image?: ConstructiveInternalTypeImage | null; - ownerId?: string | null; - imageUpload?: File | null; -} -export interface UpdateAppLevelInput { - clientMutationId?: string; - id: string; - appLevelPatch: AppLevelPatch; -} -export interface DeleteAppLevelInput { - clientMutationId?: string; - id: string; -} export interface CreateSqlMigrationInput { clientMutationId?: string; sqlMigration: { @@ -12844,13 +11878,6 @@ export interface SqlMigrationPatch { action?: string | null; actionId?: string | null; actorId?: string | null; - nameTrgmSimilarity?: number | null; - deployTrgmSimilarity?: number | null; - contentTrgmSimilarity?: number | null; - revertTrgmSimilarity?: number | null; - verifyTrgmSimilarity?: number | null; - actionTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateSqlMigrationInput { clientMutationId?: string; @@ -12861,30 +11888,6 @@ export interface DeleteSqlMigrationInput { clientMutationId?: string; id: number; } -export interface CreateEmailInput { - clientMutationId?: string; - email: { - ownerId?: string; - email: ConstructiveInternalTypeEmail; - isVerified?: boolean; - isPrimary?: boolean; - }; -} -export interface EmailPatch { - ownerId?: string | null; - email?: ConstructiveInternalTypeEmail | null; - isVerified?: boolean | null; - isPrimary?: boolean | null; -} -export interface UpdateEmailInput { - clientMutationId?: string; - id: string; - emailPatch: EmailPatch; -} -export interface DeleteEmailInput { - clientMutationId?: string; - id: string; -} export interface CreateUserInput { clientMutationId?: string; user: { @@ -12938,8 +11941,6 @@ export interface AstMigrationPatch { action?: string | null; actionId?: string | null; actorId?: string | null; - actionTrgmSimilarity?: number | null; - searchScore?: number | null; } export interface UpdateAstMigrationInput { clientMutationId?: string; @@ -13065,6 +12066,9 @@ export const connectionFieldsMap = { viewGrants: 'ViewGrant', viewRules: 'ViewRule', defaultPrivileges: 'DefaultPrivilege', + enums: 'Enum', + embeddingChunks: 'EmbeddingChunk', + databaseTransfers: 'DatabaseTransfer', apis: 'Api', apiModules: 'ApiModule', apiSchemas: 'ApiSchema', @@ -13094,10 +12098,10 @@ export const connectionFieldsMap = { sessionsModules: 'SessionsModule', userAuthModules: 'UserAuthModule', usersModules: 'UsersModule', - uuidModules: 'UuidModule', tableTemplateModules: 'TableTemplateModule', secureTableProvisions: 'SecureTableProvision', relationProvisions: 'RelationProvision', + blueprints: 'Blueprint', databaseProvisionModules: 'DatabaseProvisionModule', }, Schema: { @@ -13105,6 +12109,7 @@ export const connectionFieldsMap = { schemaGrants: 'SchemaGrant', views: 'View', defaultPrivileges: 'DefaultPrivilege', + enums: 'Enum', apiSchemas: 'ApiSchema', tableTemplateModulesByPrivateSchemaId: 'TableTemplateModule', tableTemplateModules: 'TableTemplateModule', @@ -13122,6 +12127,8 @@ export const connectionFieldsMap = { uniqueConstraints: 'UniqueConstraint', views: 'View', viewTables: 'ViewTable', + embeddingChunksByChunksTableId: 'EmbeddingChunk', + embeddingChunks: 'EmbeddingChunk', tableTemplateModulesByOwnerTableId: 'TableTemplateModule', tableTemplateModules: 'TableTemplateModule', secureTableProvisions: 'SecureTableProvision', @@ -13144,19 +12151,29 @@ export const connectionFieldsMap = { siteModules: 'SiteModule', siteThemes: 'SiteTheme', }, + BlueprintTemplate: { + blueprintTemplatesByForkedFromId: 'BlueprintTemplate', + blueprintsByTemplateId: 'Blueprint', + }, User: { ownedDatabases: 'Database', + appAdminGrantsByActorId: 'AppAdminGrant', appAdminGrantsByGrantorId: 'AppAdminGrant', + appOwnerGrantsByActorId: 'AppOwnerGrant', appOwnerGrantsByGrantorId: 'AppOwnerGrant', + appGrantsByActorId: 'AppGrant', appGrantsByGrantorId: 'AppGrant', orgMembershipsByActorId: 'OrgMembership', orgMembershipsByEntityId: 'OrgMembership', orgMembersByActorId: 'OrgMember', orgMembersByEntityId: 'OrgMember', + orgAdminGrantsByActorId: 'OrgAdminGrant', orgAdminGrantsByEntityId: 'OrgAdminGrant', orgAdminGrantsByGrantorId: 'OrgAdminGrant', + orgOwnerGrantsByActorId: 'OrgOwnerGrant', orgOwnerGrantsByEntityId: 'OrgOwnerGrant', orgOwnerGrantsByGrantorId: 'OrgOwnerGrant', + orgGrantsByActorId: 'OrgGrant', orgGrantsByEntityId: 'OrgGrant', orgGrantsByGrantorId: 'OrgGrant', parentOrgChartEdges: 'OrgChartEdge', @@ -13166,30 +12183,47 @@ export const connectionFieldsMap = { orgChartEdgeGrantsByEntityId: 'OrgChartEdgeGrant', orgChartEdgeGrantsByGrantorId: 'OrgChartEdgeGrant', childOrgChartEdgeGrants: 'OrgChartEdgeGrant', + orgPermissionDefaultsByEntityId: 'OrgPermissionDefault', appLimitsByActorId: 'AppLimit', orgLimitsByActorId: 'OrgLimit', orgLimitsByEntityId: 'OrgLimit', appStepsByActorId: 'AppStep', appAchievementsByActorId: 'AppAchievement', + ownedAppLevels: 'AppLevel', + ownedEmails: 'Email', + ownedPhoneNumbers: 'PhoneNumber', + ownedCryptoAddresses: 'CryptoAddress', + ownedConnectedAccounts: 'ConnectedAccount', invitesBySenderId: 'Invite', claimedInvitesByReceiverId: 'ClaimedInvite', claimedInvitesBySenderId: 'ClaimedInvite', orgInvitesByEntityId: 'OrgInvite', + orgInvitesByReceiverId: 'OrgInvite', orgInvitesBySenderId: 'OrgInvite', + orgClaimedInvitesByEntityId: 'OrgClaimedInvite', orgClaimedInvitesByReceiverId: 'OrgClaimedInvite', orgClaimedInvitesBySenderId: 'OrgClaimedInvite', + auditLogsByActorId: 'AuditLog', }, } as Record>; // ============ Custom Input Types (from schema) ============ +export interface SendAccountDeletionEmailInput { + clientMutationId?: string; +} export interface SignOutInput { clientMutationId?: string; } -export interface SendAccountDeletionEmailInput { +export interface AcceptDatabaseTransferInput { clientMutationId?: string; + transferId?: string; } -export interface CheckPasswordInput { +export interface CancelDatabaseTransferInput { clientMutationId?: string; - password?: string; + transferId?: string; +} +export interface RejectDatabaseTransferInput { + clientMutationId?: string; + transferId?: string; } export interface SubmitInviteCodeInput { clientMutationId?: string; @@ -13199,15 +12233,9 @@ export interface SubmitOrgInviteCodeInput { clientMutationId?: string; token?: string; } -export interface FreezeObjectsInput { - clientMutationId?: string; - databaseId?: string; - id?: string; -} -export interface InitEmptyRepoInput { +export interface CheckPasswordInput { clientMutationId?: string; - dbId?: string; - storeId?: string; + password?: string; } export interface ConfirmDeleteAccountInput { clientMutationId?: string; @@ -13224,11 +12252,20 @@ export interface VerifyEmailInput { emailId?: string; token?: string; } -export interface RemoveNodeAtPathInput { +export interface FreezeObjectsInput { + clientMutationId?: string; + databaseId?: string; + id?: string; +} +export interface InitEmptyRepoInput { clientMutationId?: string; dbId?: string; - root?: string; - path?: string[]; + storeId?: string; +} +export interface ConstructBlueprintInput { + clientMutationId?: string; + blueprintId?: string; + schemaId?: string; } export interface ResetPasswordInput { clientMutationId?: string; @@ -13236,19 +12273,11 @@ export interface ResetPasswordInput { resetToken?: string; newPassword?: string; } -export interface BootstrapUserInput { - clientMutationId?: string; - targetDatabaseId?: string; - password?: string; - isAdmin?: boolean; - isOwner?: boolean; - username?: string; - displayName?: string; - returnApiKey?: boolean; -} -export interface SetFieldOrderInput { +export interface RemoveNodeAtPathInput { clientMutationId?: string; - fieldIds?: string[]; + dbId?: string; + root?: string; + path?: string[]; } export interface SetDataAtPathInput { clientMutationId?: string; @@ -13265,6 +12294,14 @@ export interface SetPropsAndCommitInput { path?: string[]; data?: Record; } +export interface CopyTemplateToBlueprintInput { + clientMutationId?: string; + templateId?: string; + databaseId?: string; + ownerId?: string; + nameOverride?: string; + displayNameOverride?: string; +} export interface ProvisionDatabaseWithUserInput { clientMutationId?: string; pDatabaseName?: string; @@ -13273,6 +12310,20 @@ export interface ProvisionDatabaseWithUserInput { pModules?: string[]; pOptions?: Record; } +export interface BootstrapUserInput { + clientMutationId?: string; + targetDatabaseId?: string; + password?: string; + isAdmin?: boolean; + isOwner?: boolean; + username?: string; + displayName?: string; + returnApiKey?: boolean; +} +export interface SetFieldOrderInput { + clientMutationId?: string; + fieldIds?: string[]; +} export interface InsertNodeAtPathInput { clientMutationId?: string; dbId?: string; @@ -13353,11 +12404,11 @@ export interface OneTimeTokenInput { origin?: ConstructiveInternalTypeOrigin; rememberMe?: boolean; } -export interface ForgotPasswordInput { +export interface SendVerificationEmailInput { clientMutationId?: string; email?: ConstructiveInternalTypeEmail; } -export interface SendVerificationEmailInput { +export interface ForgotPasswordInput { clientMutationId?: string; email?: ConstructiveInternalTypeEmail; } @@ -13465,52 +12516,64 @@ export type AppLevelRequirementConnectionSelect = { }; totalCount?: boolean; }; +export interface SendAccountDeletionEmailPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type SendAccountDeletionEmailPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; export interface SignOutPayload { clientMutationId?: string | null; } export type SignOutPayloadSelect = { clientMutationId?: boolean; }; -export interface SendAccountDeletionEmailPayload { +export interface AcceptDatabaseTransferPayload { clientMutationId?: string | null; result?: boolean | null; } -export type SendAccountDeletionEmailPayloadSelect = { +export type AcceptDatabaseTransferPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; -export interface CheckPasswordPayload { +export interface CancelDatabaseTransferPayload { clientMutationId?: string | null; + result?: boolean | null; } -export type CheckPasswordPayloadSelect = { +export type CancelDatabaseTransferPayloadSelect = { clientMutationId?: boolean; + result?: boolean; }; -export interface SubmitInviteCodePayload { +export interface RejectDatabaseTransferPayload { clientMutationId?: string | null; result?: boolean | null; } -export type SubmitInviteCodePayloadSelect = { +export type RejectDatabaseTransferPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; -export interface SubmitOrgInviteCodePayload { +export interface SubmitInviteCodePayload { clientMutationId?: string | null; result?: boolean | null; } -export type SubmitOrgInviteCodePayloadSelect = { +export type SubmitInviteCodePayloadSelect = { clientMutationId?: boolean; result?: boolean; }; -export interface FreezeObjectsPayload { +export interface SubmitOrgInviteCodePayload { clientMutationId?: string | null; + result?: boolean | null; } -export type FreezeObjectsPayloadSelect = { +export type SubmitOrgInviteCodePayloadSelect = { clientMutationId?: boolean; + result?: boolean; }; -export interface InitEmptyRepoPayload { +export interface CheckPasswordPayload { clientMutationId?: string | null; } -export type InitEmptyRepoPayloadSelect = { +export type CheckPasswordPayloadSelect = { clientMutationId?: boolean; }; export interface ConfirmDeleteAccountPayload { @@ -13537,37 +12600,41 @@ export type VerifyEmailPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; -export interface RemoveNodeAtPathPayload { +export interface FreezeObjectsPayload { clientMutationId?: string | null; - result?: string | null; } -export type RemoveNodeAtPathPayloadSelect = { +export type FreezeObjectsPayloadSelect = { clientMutationId?: boolean; - result?: boolean; }; -export interface ResetPasswordPayload { +export interface InitEmptyRepoPayload { clientMutationId?: string | null; - result?: boolean | null; } -export type ResetPasswordPayloadSelect = { +export type InitEmptyRepoPayloadSelect = { + clientMutationId?: boolean; +}; +export interface ConstructBlueprintPayload { + clientMutationId?: string | null; + result?: Record | null; +} +export type ConstructBlueprintPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; -export interface BootstrapUserPayload { +export interface ResetPasswordPayload { clientMutationId?: string | null; - result?: BootstrapUserRecord[] | null; + result?: boolean | null; } -export type BootstrapUserPayloadSelect = { +export type ResetPasswordPayloadSelect = { clientMutationId?: boolean; - result?: { - select: BootstrapUserRecordSelect; - }; + result?: boolean; }; -export interface SetFieldOrderPayload { +export interface RemoveNodeAtPathPayload { clientMutationId?: string | null; + result?: string | null; } -export type SetFieldOrderPayloadSelect = { +export type RemoveNodeAtPathPayloadSelect = { clientMutationId?: boolean; + result?: boolean; }; export interface SetDataAtPathPayload { clientMutationId?: string | null; @@ -13585,6 +12652,14 @@ export type SetPropsAndCommitPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface CopyTemplateToBlueprintPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type CopyTemplateToBlueprintPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; export interface ProvisionDatabaseWithUserPayload { clientMutationId?: string | null; result?: ProvisionDatabaseWithUserRecord[] | null; @@ -13595,19 +12670,35 @@ export type ProvisionDatabaseWithUserPayloadSelect = { select: ProvisionDatabaseWithUserRecordSelect; }; }; -export interface InsertNodeAtPathPayload { +export interface BootstrapUserPayload { clientMutationId?: string | null; - result?: string | null; + result?: BootstrapUserRecord[] | null; } -export type InsertNodeAtPathPayloadSelect = { +export type BootstrapUserPayloadSelect = { clientMutationId?: boolean; - result?: boolean; + result?: { + select: BootstrapUserRecordSelect; + }; }; -export interface UpdateNodeAtPathPayload { +export interface SetFieldOrderPayload { clientMutationId?: string | null; - result?: string | null; } -export type UpdateNodeAtPathPayloadSelect = { +export type SetFieldOrderPayloadSelect = { + clientMutationId?: boolean; +}; +export interface InsertNodeAtPathPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type InsertNodeAtPathPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface UpdateNodeAtPathPayload { + clientMutationId?: string | null; + result?: string | null; +} +export type UpdateNodeAtPathPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; @@ -13681,12 +12772,6 @@ export type OneTimeTokenPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; -export interface ForgotPasswordPayload { - clientMutationId?: string | null; -} -export type ForgotPasswordPayloadSelect = { - clientMutationId?: boolean; -}; export interface SendVerificationEmailPayload { clientMutationId?: string | null; result?: boolean | null; @@ -13695,6 +12780,12 @@ export type SendVerificationEmailPayloadSelect = { clientMutationId?: boolean; result?: boolean; }; +export interface ForgotPasswordPayload { + clientMutationId?: string | null; +} +export type ForgotPasswordPayloadSelect = { + clientMutationId?: boolean; +}; export interface VerifyPasswordPayload { clientMutationId?: string | null; result?: Session | null; @@ -14660,6 +13751,51 @@ export type DeleteViewRulePayloadSelect = { select: ViewRuleEdgeSelect; }; }; +export interface CreateEmbeddingChunkPayload { + clientMutationId?: string | null; + /** The `EmbeddingChunk` that was created by this mutation. */ + embeddingChunk?: EmbeddingChunk | null; + embeddingChunkEdge?: EmbeddingChunkEdge | null; +} +export type CreateEmbeddingChunkPayloadSelect = { + clientMutationId?: boolean; + embeddingChunk?: { + select: EmbeddingChunkSelect; + }; + embeddingChunkEdge?: { + select: EmbeddingChunkEdgeSelect; + }; +}; +export interface UpdateEmbeddingChunkPayload { + clientMutationId?: string | null; + /** The `EmbeddingChunk` that was updated by this mutation. */ + embeddingChunk?: EmbeddingChunk | null; + embeddingChunkEdge?: EmbeddingChunkEdge | null; +} +export type UpdateEmbeddingChunkPayloadSelect = { + clientMutationId?: boolean; + embeddingChunk?: { + select: EmbeddingChunkSelect; + }; + embeddingChunkEdge?: { + select: EmbeddingChunkEdgeSelect; + }; +}; +export interface DeleteEmbeddingChunkPayload { + clientMutationId?: string | null; + /** The `EmbeddingChunk` that was deleted by this mutation. */ + embeddingChunk?: EmbeddingChunk | null; + embeddingChunkEdge?: EmbeddingChunkEdge | null; +} +export type DeleteEmbeddingChunkPayloadSelect = { + clientMutationId?: boolean; + embeddingChunk?: { + select: EmbeddingChunkSelect; + }; + embeddingChunkEdge?: { + select: EmbeddingChunkEdgeSelect; + }; +}; export interface CreateTableTemplateModulePayload { clientMutationId?: string | null; /** The `TableTemplateModule` that was created by this mutation. */ @@ -14885,6 +14021,51 @@ export type DeleteDefaultPrivilegePayloadSelect = { select: DefaultPrivilegeEdgeSelect; }; }; +export interface CreateEnumPayload { + clientMutationId?: string | null; + /** The `Enum` that was created by this mutation. */ + enum?: Enum | null; + enumEdge?: EnumEdge | null; +} +export type CreateEnumPayloadSelect = { + clientMutationId?: boolean; + enum?: { + select: EnumSelect; + }; + enumEdge?: { + select: EnumEdgeSelect; + }; +}; +export interface UpdateEnumPayload { + clientMutationId?: string | null; + /** The `Enum` that was updated by this mutation. */ + enum?: Enum | null; + enumEdge?: EnumEdge | null; +} +export type UpdateEnumPayloadSelect = { + clientMutationId?: boolean; + enum?: { + select: EnumSelect; + }; + enumEdge?: { + select: EnumEdgeSelect; + }; +}; +export interface DeleteEnumPayload { + clientMutationId?: string | null; + /** The `Enum` that was deleted by this mutation. */ + enum?: Enum | null; + enumEdge?: EnumEdge | null; +} +export type DeleteEnumPayloadSelect = { + clientMutationId?: boolean; + enum?: { + select: EnumSelect; + }; + enumEdge?: { + select: EnumEdgeSelect; + }; +}; export interface CreateApiSchemaPayload { clientMutationId?: string | null; /** The `ApiSchema` that was created by this mutation. */ @@ -15200,6 +14381,51 @@ export type DeleteTriggerFunctionPayloadSelect = { select: TriggerFunctionEdgeSelect; }; }; +export interface CreateDatabaseTransferPayload { + clientMutationId?: string | null; + /** The `DatabaseTransfer` that was created by this mutation. */ + databaseTransfer?: DatabaseTransfer | null; + databaseTransferEdge?: DatabaseTransferEdge | null; +} +export type CreateDatabaseTransferPayloadSelect = { + clientMutationId?: boolean; + databaseTransfer?: { + select: DatabaseTransferSelect; + }; + databaseTransferEdge?: { + select: DatabaseTransferEdgeSelect; + }; +}; +export interface UpdateDatabaseTransferPayload { + clientMutationId?: string | null; + /** The `DatabaseTransfer` that was updated by this mutation. */ + databaseTransfer?: DatabaseTransfer | null; + databaseTransferEdge?: DatabaseTransferEdge | null; +} +export type UpdateDatabaseTransferPayloadSelect = { + clientMutationId?: boolean; + databaseTransfer?: { + select: DatabaseTransferSelect; + }; + databaseTransferEdge?: { + select: DatabaseTransferEdgeSelect; + }; +}; +export interface DeleteDatabaseTransferPayload { + clientMutationId?: string | null; + /** The `DatabaseTransfer` that was deleted by this mutation. */ + databaseTransfer?: DatabaseTransfer | null; + databaseTransferEdge?: DatabaseTransferEdge | null; +} +export type DeleteDatabaseTransferPayloadSelect = { + clientMutationId?: boolean; + databaseTransfer?: { + select: DatabaseTransferSelect; + }; + databaseTransferEdge?: { + select: DatabaseTransferEdgeSelect; + }; +}; export interface CreateApiPayload { clientMutationId?: string | null; /** The `Api` that was created by this mutation. */ @@ -16235,49 +15461,94 @@ export type DeleteUsersModulePayloadSelect = { select: UsersModuleEdgeSelect; }; }; -export interface CreateUuidModulePayload { +export interface CreateBlueprintPayload { + clientMutationId?: string | null; + /** The `Blueprint` that was created by this mutation. */ + blueprint?: Blueprint | null; + blueprintEdge?: BlueprintEdge | null; +} +export type CreateBlueprintPayloadSelect = { + clientMutationId?: boolean; + blueprint?: { + select: BlueprintSelect; + }; + blueprintEdge?: { + select: BlueprintEdgeSelect; + }; +}; +export interface UpdateBlueprintPayload { + clientMutationId?: string | null; + /** The `Blueprint` that was updated by this mutation. */ + blueprint?: Blueprint | null; + blueprintEdge?: BlueprintEdge | null; +} +export type UpdateBlueprintPayloadSelect = { + clientMutationId?: boolean; + blueprint?: { + select: BlueprintSelect; + }; + blueprintEdge?: { + select: BlueprintEdgeSelect; + }; +}; +export interface DeleteBlueprintPayload { + clientMutationId?: string | null; + /** The `Blueprint` that was deleted by this mutation. */ + blueprint?: Blueprint | null; + blueprintEdge?: BlueprintEdge | null; +} +export type DeleteBlueprintPayloadSelect = { + clientMutationId?: boolean; + blueprint?: { + select: BlueprintSelect; + }; + blueprintEdge?: { + select: BlueprintEdgeSelect; + }; +}; +export interface CreateBlueprintTemplatePayload { clientMutationId?: string | null; - /** The `UuidModule` that was created by this mutation. */ - uuidModule?: UuidModule | null; - uuidModuleEdge?: UuidModuleEdge | null; + /** The `BlueprintTemplate` that was created by this mutation. */ + blueprintTemplate?: BlueprintTemplate | null; + blueprintTemplateEdge?: BlueprintTemplateEdge | null; } -export type CreateUuidModulePayloadSelect = { +export type CreateBlueprintTemplatePayloadSelect = { clientMutationId?: boolean; - uuidModule?: { - select: UuidModuleSelect; + blueprintTemplate?: { + select: BlueprintTemplateSelect; }; - uuidModuleEdge?: { - select: UuidModuleEdgeSelect; + blueprintTemplateEdge?: { + select: BlueprintTemplateEdgeSelect; }; }; -export interface UpdateUuidModulePayload { +export interface UpdateBlueprintTemplatePayload { clientMutationId?: string | null; - /** The `UuidModule` that was updated by this mutation. */ - uuidModule?: UuidModule | null; - uuidModuleEdge?: UuidModuleEdge | null; + /** The `BlueprintTemplate` that was updated by this mutation. */ + blueprintTemplate?: BlueprintTemplate | null; + blueprintTemplateEdge?: BlueprintTemplateEdge | null; } -export type UpdateUuidModulePayloadSelect = { +export type UpdateBlueprintTemplatePayloadSelect = { clientMutationId?: boolean; - uuidModule?: { - select: UuidModuleSelect; + blueprintTemplate?: { + select: BlueprintTemplateSelect; }; - uuidModuleEdge?: { - select: UuidModuleEdgeSelect; + blueprintTemplateEdge?: { + select: BlueprintTemplateEdgeSelect; }; }; -export interface DeleteUuidModulePayload { +export interface DeleteBlueprintTemplatePayload { clientMutationId?: string | null; - /** The `UuidModule` that was deleted by this mutation. */ - uuidModule?: UuidModule | null; - uuidModuleEdge?: UuidModuleEdge | null; + /** The `BlueprintTemplate` that was deleted by this mutation. */ + blueprintTemplate?: BlueprintTemplate | null; + blueprintTemplateEdge?: BlueprintTemplateEdge | null; } -export type DeleteUuidModulePayloadSelect = { +export type DeleteBlueprintTemplatePayloadSelect = { clientMutationId?: boolean; - uuidModule?: { - select: UuidModuleSelect; + blueprintTemplate?: { + select: BlueprintTemplateSelect; }; - uuidModuleEdge?: { - select: UuidModuleEdgeSelect; + blueprintTemplateEdge?: { + select: BlueprintTemplateEdgeSelect; }; }; export interface CreateDatabaseProvisionModulePayload { @@ -16775,6 +16046,51 @@ export type DeleteOrgChartEdgeGrantPayloadSelect = { select: OrgChartEdgeGrantEdgeSelect; }; }; +export interface CreateOrgPermissionDefaultPayload { + clientMutationId?: string | null; + /** The `OrgPermissionDefault` that was created by this mutation. */ + orgPermissionDefault?: OrgPermissionDefault | null; + orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; +} +export type CreateOrgPermissionDefaultPayloadSelect = { + clientMutationId?: boolean; + orgPermissionDefault?: { + select: OrgPermissionDefaultSelect; + }; + orgPermissionDefaultEdge?: { + select: OrgPermissionDefaultEdgeSelect; + }; +}; +export interface UpdateOrgPermissionDefaultPayload { + clientMutationId?: string | null; + /** The `OrgPermissionDefault` that was updated by this mutation. */ + orgPermissionDefault?: OrgPermissionDefault | null; + orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; +} +export type UpdateOrgPermissionDefaultPayloadSelect = { + clientMutationId?: boolean; + orgPermissionDefault?: { + select: OrgPermissionDefaultSelect; + }; + orgPermissionDefaultEdge?: { + select: OrgPermissionDefaultEdgeSelect; + }; +}; +export interface DeleteOrgPermissionDefaultPayload { + clientMutationId?: string | null; + /** The `OrgPermissionDefault` that was deleted by this mutation. */ + orgPermissionDefault?: OrgPermissionDefault | null; + orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; +} +export type DeleteOrgPermissionDefaultPayloadSelect = { + clientMutationId?: boolean; + orgPermissionDefault?: { + select: OrgPermissionDefaultSelect; + }; + orgPermissionDefaultEdge?: { + select: OrgPermissionDefaultEdgeSelect; + }; +}; export interface CreateAppLimitPayload { clientMutationId?: string | null; /** The `AppLimit` that was created by this mutation. */ @@ -16895,64 +16211,289 @@ export type UpdateAppStepPayloadSelect = { select: AppStepEdgeSelect; }; }; -export interface DeleteAppStepPayload { +export interface DeleteAppStepPayload { + clientMutationId?: string | null; + /** The `AppStep` that was deleted by this mutation. */ + appStep?: AppStep | null; + appStepEdge?: AppStepEdge | null; +} +export type DeleteAppStepPayloadSelect = { + clientMutationId?: boolean; + appStep?: { + select: AppStepSelect; + }; + appStepEdge?: { + select: AppStepEdgeSelect; + }; +}; +export interface CreateAppAchievementPayload { + clientMutationId?: string | null; + /** The `AppAchievement` that was created by this mutation. */ + appAchievement?: AppAchievement | null; + appAchievementEdge?: AppAchievementEdge | null; +} +export type CreateAppAchievementPayloadSelect = { + clientMutationId?: boolean; + appAchievement?: { + select: AppAchievementSelect; + }; + appAchievementEdge?: { + select: AppAchievementEdgeSelect; + }; +}; +export interface UpdateAppAchievementPayload { + clientMutationId?: string | null; + /** The `AppAchievement` that was updated by this mutation. */ + appAchievement?: AppAchievement | null; + appAchievementEdge?: AppAchievementEdge | null; +} +export type UpdateAppAchievementPayloadSelect = { + clientMutationId?: boolean; + appAchievement?: { + select: AppAchievementSelect; + }; + appAchievementEdge?: { + select: AppAchievementEdgeSelect; + }; +}; +export interface DeleteAppAchievementPayload { + clientMutationId?: string | null; + /** The `AppAchievement` that was deleted by this mutation. */ + appAchievement?: AppAchievement | null; + appAchievementEdge?: AppAchievementEdge | null; +} +export type DeleteAppAchievementPayloadSelect = { + clientMutationId?: boolean; + appAchievement?: { + select: AppAchievementSelect; + }; + appAchievementEdge?: { + select: AppAchievementEdgeSelect; + }; +}; +export interface CreateAppLevelPayload { + clientMutationId?: string | null; + /** The `AppLevel` that was created by this mutation. */ + appLevel?: AppLevel | null; + appLevelEdge?: AppLevelEdge | null; +} +export type CreateAppLevelPayloadSelect = { + clientMutationId?: boolean; + appLevel?: { + select: AppLevelSelect; + }; + appLevelEdge?: { + select: AppLevelEdgeSelect; + }; +}; +export interface UpdateAppLevelPayload { + clientMutationId?: string | null; + /** The `AppLevel` that was updated by this mutation. */ + appLevel?: AppLevel | null; + appLevelEdge?: AppLevelEdge | null; +} +export type UpdateAppLevelPayloadSelect = { + clientMutationId?: boolean; + appLevel?: { + select: AppLevelSelect; + }; + appLevelEdge?: { + select: AppLevelEdgeSelect; + }; +}; +export interface DeleteAppLevelPayload { + clientMutationId?: string | null; + /** The `AppLevel` that was deleted by this mutation. */ + appLevel?: AppLevel | null; + appLevelEdge?: AppLevelEdge | null; +} +export type DeleteAppLevelPayloadSelect = { + clientMutationId?: boolean; + appLevel?: { + select: AppLevelSelect; + }; + appLevelEdge?: { + select: AppLevelEdgeSelect; + }; +}; +export interface CreateEmailPayload { + clientMutationId?: string | null; + /** The `Email` that was created by this mutation. */ + email?: Email | null; + emailEdge?: EmailEdge | null; +} +export type CreateEmailPayloadSelect = { + clientMutationId?: boolean; + email?: { + select: EmailSelect; + }; + emailEdge?: { + select: EmailEdgeSelect; + }; +}; +export interface UpdateEmailPayload { + clientMutationId?: string | null; + /** The `Email` that was updated by this mutation. */ + email?: Email | null; + emailEdge?: EmailEdge | null; +} +export type UpdateEmailPayloadSelect = { + clientMutationId?: boolean; + email?: { + select: EmailSelect; + }; + emailEdge?: { + select: EmailEdgeSelect; + }; +}; +export interface DeleteEmailPayload { + clientMutationId?: string | null; + /** The `Email` that was deleted by this mutation. */ + email?: Email | null; + emailEdge?: EmailEdge | null; +} +export type DeleteEmailPayloadSelect = { + clientMutationId?: boolean; + email?: { + select: EmailSelect; + }; + emailEdge?: { + select: EmailEdgeSelect; + }; +}; +export interface CreatePhoneNumberPayload { + clientMutationId?: string | null; + /** The `PhoneNumber` that was created by this mutation. */ + phoneNumber?: PhoneNumber | null; + phoneNumberEdge?: PhoneNumberEdge | null; +} +export type CreatePhoneNumberPayloadSelect = { + clientMutationId?: boolean; + phoneNumber?: { + select: PhoneNumberSelect; + }; + phoneNumberEdge?: { + select: PhoneNumberEdgeSelect; + }; +}; +export interface UpdatePhoneNumberPayload { + clientMutationId?: string | null; + /** The `PhoneNumber` that was updated by this mutation. */ + phoneNumber?: PhoneNumber | null; + phoneNumberEdge?: PhoneNumberEdge | null; +} +export type UpdatePhoneNumberPayloadSelect = { + clientMutationId?: boolean; + phoneNumber?: { + select: PhoneNumberSelect; + }; + phoneNumberEdge?: { + select: PhoneNumberEdgeSelect; + }; +}; +export interface DeletePhoneNumberPayload { + clientMutationId?: string | null; + /** The `PhoneNumber` that was deleted by this mutation. */ + phoneNumber?: PhoneNumber | null; + phoneNumberEdge?: PhoneNumberEdge | null; +} +export type DeletePhoneNumberPayloadSelect = { + clientMutationId?: boolean; + phoneNumber?: { + select: PhoneNumberSelect; + }; + phoneNumberEdge?: { + select: PhoneNumberEdgeSelect; + }; +}; +export interface CreateCryptoAddressPayload { + clientMutationId?: string | null; + /** The `CryptoAddress` that was created by this mutation. */ + cryptoAddress?: CryptoAddress | null; + cryptoAddressEdge?: CryptoAddressEdge | null; +} +export type CreateCryptoAddressPayloadSelect = { + clientMutationId?: boolean; + cryptoAddress?: { + select: CryptoAddressSelect; + }; + cryptoAddressEdge?: { + select: CryptoAddressEdgeSelect; + }; +}; +export interface UpdateCryptoAddressPayload { + clientMutationId?: string | null; + /** The `CryptoAddress` that was updated by this mutation. */ + cryptoAddress?: CryptoAddress | null; + cryptoAddressEdge?: CryptoAddressEdge | null; +} +export type UpdateCryptoAddressPayloadSelect = { + clientMutationId?: boolean; + cryptoAddress?: { + select: CryptoAddressSelect; + }; + cryptoAddressEdge?: { + select: CryptoAddressEdgeSelect; + }; +}; +export interface DeleteCryptoAddressPayload { clientMutationId?: string | null; - /** The `AppStep` that was deleted by this mutation. */ - appStep?: AppStep | null; - appStepEdge?: AppStepEdge | null; + /** The `CryptoAddress` that was deleted by this mutation. */ + cryptoAddress?: CryptoAddress | null; + cryptoAddressEdge?: CryptoAddressEdge | null; } -export type DeleteAppStepPayloadSelect = { +export type DeleteCryptoAddressPayloadSelect = { clientMutationId?: boolean; - appStep?: { - select: AppStepSelect; + cryptoAddress?: { + select: CryptoAddressSelect; }; - appStepEdge?: { - select: AppStepEdgeSelect; + cryptoAddressEdge?: { + select: CryptoAddressEdgeSelect; }; }; -export interface CreateAppAchievementPayload { +export interface CreateConnectedAccountPayload { clientMutationId?: string | null; - /** The `AppAchievement` that was created by this mutation. */ - appAchievement?: AppAchievement | null; - appAchievementEdge?: AppAchievementEdge | null; + /** The `ConnectedAccount` that was created by this mutation. */ + connectedAccount?: ConnectedAccount | null; + connectedAccountEdge?: ConnectedAccountEdge | null; } -export type CreateAppAchievementPayloadSelect = { +export type CreateConnectedAccountPayloadSelect = { clientMutationId?: boolean; - appAchievement?: { - select: AppAchievementSelect; + connectedAccount?: { + select: ConnectedAccountSelect; }; - appAchievementEdge?: { - select: AppAchievementEdgeSelect; + connectedAccountEdge?: { + select: ConnectedAccountEdgeSelect; }; }; -export interface UpdateAppAchievementPayload { +export interface UpdateConnectedAccountPayload { clientMutationId?: string | null; - /** The `AppAchievement` that was updated by this mutation. */ - appAchievement?: AppAchievement | null; - appAchievementEdge?: AppAchievementEdge | null; + /** The `ConnectedAccount` that was updated by this mutation. */ + connectedAccount?: ConnectedAccount | null; + connectedAccountEdge?: ConnectedAccountEdge | null; } -export type UpdateAppAchievementPayloadSelect = { +export type UpdateConnectedAccountPayloadSelect = { clientMutationId?: boolean; - appAchievement?: { - select: AppAchievementSelect; + connectedAccount?: { + select: ConnectedAccountSelect; }; - appAchievementEdge?: { - select: AppAchievementEdgeSelect; + connectedAccountEdge?: { + select: ConnectedAccountEdgeSelect; }; }; -export interface DeleteAppAchievementPayload { +export interface DeleteConnectedAccountPayload { clientMutationId?: string | null; - /** The `AppAchievement` that was deleted by this mutation. */ - appAchievement?: AppAchievement | null; - appAchievementEdge?: AppAchievementEdge | null; + /** The `ConnectedAccount` that was deleted by this mutation. */ + connectedAccount?: ConnectedAccount | null; + connectedAccountEdge?: ConnectedAccountEdge | null; } -export type DeleteAppAchievementPayloadSelect = { +export type DeleteConnectedAccountPayloadSelect = { clientMutationId?: boolean; - appAchievement?: { - select: AppAchievementSelect; + connectedAccount?: { + select: ConnectedAccountSelect; }; - appAchievementEdge?: { - select: AppAchievementEdgeSelect; + connectedAccountEdge?: { + select: ConnectedAccountEdgeSelect; }; }; export interface CreateInvitePayload { @@ -17135,6 +16676,51 @@ export type DeleteOrgClaimedInvitePayloadSelect = { select: OrgClaimedInviteEdgeSelect; }; }; +export interface CreateAuditLogPayload { + clientMutationId?: string | null; + /** The `AuditLog` that was created by this mutation. */ + auditLog?: AuditLog | null; + auditLogEdge?: AuditLogEdge | null; +} +export type CreateAuditLogPayloadSelect = { + clientMutationId?: boolean; + auditLog?: { + select: AuditLogSelect; + }; + auditLogEdge?: { + select: AuditLogEdgeSelect; + }; +}; +export interface UpdateAuditLogPayload { + clientMutationId?: string | null; + /** The `AuditLog` that was updated by this mutation. */ + auditLog?: AuditLog | null; + auditLogEdge?: AuditLogEdge | null; +} +export type UpdateAuditLogPayloadSelect = { + clientMutationId?: boolean; + auditLog?: { + select: AuditLogSelect; + }; + auditLogEdge?: { + select: AuditLogEdgeSelect; + }; +}; +export interface DeleteAuditLogPayload { + clientMutationId?: string | null; + /** The `AuditLog` that was deleted by this mutation. */ + auditLog?: AuditLog | null; + auditLogEdge?: AuditLogEdge | null; +} +export type DeleteAuditLogPayloadSelect = { + clientMutationId?: boolean; + auditLog?: { + select: AuditLogSelect; + }; + auditLogEdge?: { + select: AuditLogEdgeSelect; + }; +}; export interface CreateRefPayload { clientMutationId?: string | null; /** The `Ref` that was created by this mutation. */ @@ -17248,206 +16834,71 @@ export interface UpdateAppPermissionDefaultPayload { } export type UpdateAppPermissionDefaultPayloadSelect = { clientMutationId?: boolean; - appPermissionDefault?: { - select: AppPermissionDefaultSelect; - }; - appPermissionDefaultEdge?: { - select: AppPermissionDefaultEdgeSelect; - }; -}; -export interface DeleteAppPermissionDefaultPayload { - clientMutationId?: string | null; - /** The `AppPermissionDefault` that was deleted by this mutation. */ - appPermissionDefault?: AppPermissionDefault | null; - appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; -} -export type DeleteAppPermissionDefaultPayloadSelect = { - clientMutationId?: boolean; - appPermissionDefault?: { - select: AppPermissionDefaultSelect; - }; - appPermissionDefaultEdge?: { - select: AppPermissionDefaultEdgeSelect; - }; -}; -export interface CreateCryptoAddressPayload { - clientMutationId?: string | null; - /** The `CryptoAddress` that was created by this mutation. */ - cryptoAddress?: CryptoAddress | null; - cryptoAddressEdge?: CryptoAddressEdge | null; -} -export type CreateCryptoAddressPayloadSelect = { - clientMutationId?: boolean; - cryptoAddress?: { - select: CryptoAddressSelect; - }; - cryptoAddressEdge?: { - select: CryptoAddressEdgeSelect; - }; -}; -export interface UpdateCryptoAddressPayload { - clientMutationId?: string | null; - /** The `CryptoAddress` that was updated by this mutation. */ - cryptoAddress?: CryptoAddress | null; - cryptoAddressEdge?: CryptoAddressEdge | null; -} -export type UpdateCryptoAddressPayloadSelect = { - clientMutationId?: boolean; - cryptoAddress?: { - select: CryptoAddressSelect; - }; - cryptoAddressEdge?: { - select: CryptoAddressEdgeSelect; - }; -}; -export interface DeleteCryptoAddressPayload { - clientMutationId?: string | null; - /** The `CryptoAddress` that was deleted by this mutation. */ - cryptoAddress?: CryptoAddress | null; - cryptoAddressEdge?: CryptoAddressEdge | null; -} -export type DeleteCryptoAddressPayloadSelect = { - clientMutationId?: boolean; - cryptoAddress?: { - select: CryptoAddressSelect; - }; - cryptoAddressEdge?: { - select: CryptoAddressEdgeSelect; - }; -}; -export interface CreateRoleTypePayload { - clientMutationId?: string | null; - /** The `RoleType` that was created by this mutation. */ - roleType?: RoleType | null; - roleTypeEdge?: RoleTypeEdge | null; -} -export type CreateRoleTypePayloadSelect = { - clientMutationId?: boolean; - roleType?: { - select: RoleTypeSelect; - }; - roleTypeEdge?: { - select: RoleTypeEdgeSelect; - }; -}; -export interface UpdateRoleTypePayload { - clientMutationId?: string | null; - /** The `RoleType` that was updated by this mutation. */ - roleType?: RoleType | null; - roleTypeEdge?: RoleTypeEdge | null; -} -export type UpdateRoleTypePayloadSelect = { - clientMutationId?: boolean; - roleType?: { - select: RoleTypeSelect; - }; - roleTypeEdge?: { - select: RoleTypeEdgeSelect; - }; -}; -export interface DeleteRoleTypePayload { - clientMutationId?: string | null; - /** The `RoleType` that was deleted by this mutation. */ - roleType?: RoleType | null; - roleTypeEdge?: RoleTypeEdge | null; -} -export type DeleteRoleTypePayloadSelect = { - clientMutationId?: boolean; - roleType?: { - select: RoleTypeSelect; - }; - roleTypeEdge?: { - select: RoleTypeEdgeSelect; - }; -}; -export interface CreateOrgPermissionDefaultPayload { - clientMutationId?: string | null; - /** The `OrgPermissionDefault` that was created by this mutation. */ - orgPermissionDefault?: OrgPermissionDefault | null; - orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; -} -export type CreateOrgPermissionDefaultPayloadSelect = { - clientMutationId?: boolean; - orgPermissionDefault?: { - select: OrgPermissionDefaultSelect; - }; - orgPermissionDefaultEdge?: { - select: OrgPermissionDefaultEdgeSelect; - }; -}; -export interface UpdateOrgPermissionDefaultPayload { - clientMutationId?: string | null; - /** The `OrgPermissionDefault` that was updated by this mutation. */ - orgPermissionDefault?: OrgPermissionDefault | null; - orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; -} -export type UpdateOrgPermissionDefaultPayloadSelect = { - clientMutationId?: boolean; - orgPermissionDefault?: { - select: OrgPermissionDefaultSelect; + appPermissionDefault?: { + select: AppPermissionDefaultSelect; }; - orgPermissionDefaultEdge?: { - select: OrgPermissionDefaultEdgeSelect; + appPermissionDefaultEdge?: { + select: AppPermissionDefaultEdgeSelect; }; }; -export interface DeleteOrgPermissionDefaultPayload { +export interface DeleteAppPermissionDefaultPayload { clientMutationId?: string | null; - /** The `OrgPermissionDefault` that was deleted by this mutation. */ - orgPermissionDefault?: OrgPermissionDefault | null; - orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; + /** The `AppPermissionDefault` that was deleted by this mutation. */ + appPermissionDefault?: AppPermissionDefault | null; + appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; } -export type DeleteOrgPermissionDefaultPayloadSelect = { +export type DeleteAppPermissionDefaultPayloadSelect = { clientMutationId?: boolean; - orgPermissionDefault?: { - select: OrgPermissionDefaultSelect; + appPermissionDefault?: { + select: AppPermissionDefaultSelect; }; - orgPermissionDefaultEdge?: { - select: OrgPermissionDefaultEdgeSelect; + appPermissionDefaultEdge?: { + select: AppPermissionDefaultEdgeSelect; }; }; -export interface CreatePhoneNumberPayload { +export interface CreateRoleTypePayload { clientMutationId?: string | null; - /** The `PhoneNumber` that was created by this mutation. */ - phoneNumber?: PhoneNumber | null; - phoneNumberEdge?: PhoneNumberEdge | null; + /** The `RoleType` that was created by this mutation. */ + roleType?: RoleType | null; + roleTypeEdge?: RoleTypeEdge | null; } -export type CreatePhoneNumberPayloadSelect = { +export type CreateRoleTypePayloadSelect = { clientMutationId?: boolean; - phoneNumber?: { - select: PhoneNumberSelect; + roleType?: { + select: RoleTypeSelect; }; - phoneNumberEdge?: { - select: PhoneNumberEdgeSelect; + roleTypeEdge?: { + select: RoleTypeEdgeSelect; }; }; -export interface UpdatePhoneNumberPayload { +export interface UpdateRoleTypePayload { clientMutationId?: string | null; - /** The `PhoneNumber` that was updated by this mutation. */ - phoneNumber?: PhoneNumber | null; - phoneNumberEdge?: PhoneNumberEdge | null; + /** The `RoleType` that was updated by this mutation. */ + roleType?: RoleType | null; + roleTypeEdge?: RoleTypeEdge | null; } -export type UpdatePhoneNumberPayloadSelect = { +export type UpdateRoleTypePayloadSelect = { clientMutationId?: boolean; - phoneNumber?: { - select: PhoneNumberSelect; + roleType?: { + select: RoleTypeSelect; }; - phoneNumberEdge?: { - select: PhoneNumberEdgeSelect; + roleTypeEdge?: { + select: RoleTypeEdgeSelect; }; }; -export interface DeletePhoneNumberPayload { +export interface DeleteRoleTypePayload { clientMutationId?: string | null; - /** The `PhoneNumber` that was deleted by this mutation. */ - phoneNumber?: PhoneNumber | null; - phoneNumberEdge?: PhoneNumberEdge | null; + /** The `RoleType` that was deleted by this mutation. */ + roleType?: RoleType | null; + roleTypeEdge?: RoleTypeEdge | null; } -export type DeletePhoneNumberPayloadSelect = { +export type DeleteRoleTypePayloadSelect = { clientMutationId?: boolean; - phoneNumber?: { - select: PhoneNumberSelect; + roleType?: { + select: RoleTypeSelect; }; - phoneNumberEdge?: { - select: PhoneNumberEdgeSelect; + roleTypeEdge?: { + select: RoleTypeEdgeSelect; }; }; export interface CreateAppLimitDefaultPayload { @@ -17540,51 +16991,6 @@ export type DeleteOrgLimitDefaultPayloadSelect = { select: OrgLimitDefaultEdgeSelect; }; }; -export interface CreateConnectedAccountPayload { - clientMutationId?: string | null; - /** The `ConnectedAccount` that was created by this mutation. */ - connectedAccount?: ConnectedAccount | null; - connectedAccountEdge?: ConnectedAccountEdge | null; -} -export type CreateConnectedAccountPayloadSelect = { - clientMutationId?: boolean; - connectedAccount?: { - select: ConnectedAccountSelect; - }; - connectedAccountEdge?: { - select: ConnectedAccountEdgeSelect; - }; -}; -export interface UpdateConnectedAccountPayload { - clientMutationId?: string | null; - /** The `ConnectedAccount` that was updated by this mutation. */ - connectedAccount?: ConnectedAccount | null; - connectedAccountEdge?: ConnectedAccountEdge | null; -} -export type UpdateConnectedAccountPayloadSelect = { - clientMutationId?: boolean; - connectedAccount?: { - select: ConnectedAccountSelect; - }; - connectedAccountEdge?: { - select: ConnectedAccountEdgeSelect; - }; -}; -export interface DeleteConnectedAccountPayload { - clientMutationId?: string | null; - /** The `ConnectedAccount` that was deleted by this mutation. */ - connectedAccount?: ConnectedAccount | null; - connectedAccountEdge?: ConnectedAccountEdge | null; -} -export type DeleteConnectedAccountPayloadSelect = { - clientMutationId?: boolean; - connectedAccount?: { - select: ConnectedAccountSelect; - }; - connectedAccountEdge?: { - select: ConnectedAccountEdgeSelect; - }; -}; export interface CreateNodeTypeRegistryPayload { clientMutationId?: string | null; /** The `NodeTypeRegistry` that was created by this mutation. */ @@ -17836,169 +17242,34 @@ export type UpdateOrgMembershipDefaultPayloadSelect = { orgMembershipDefault?: { select: OrgMembershipDefaultSelect; }; - orgMembershipDefaultEdge?: { - select: OrgMembershipDefaultEdgeSelect; - }; -}; -export interface DeleteOrgMembershipDefaultPayload { - clientMutationId?: string | null; - /** The `OrgMembershipDefault` that was deleted by this mutation. */ - orgMembershipDefault?: OrgMembershipDefault | null; - orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; -} -export type DeleteOrgMembershipDefaultPayloadSelect = { - clientMutationId?: boolean; - orgMembershipDefault?: { - select: OrgMembershipDefaultSelect; - }; - orgMembershipDefaultEdge?: { - select: OrgMembershipDefaultEdgeSelect; - }; -}; -export interface CreateAuditLogPayload { - clientMutationId?: string | null; - /** The `AuditLog` that was created by this mutation. */ - auditLog?: AuditLog | null; - auditLogEdge?: AuditLogEdge | null; -} -export type CreateAuditLogPayloadSelect = { - clientMutationId?: boolean; - auditLog?: { - select: AuditLogSelect; - }; - auditLogEdge?: { - select: AuditLogEdgeSelect; - }; -}; -export interface UpdateAuditLogPayload { - clientMutationId?: string | null; - /** The `AuditLog` that was updated by this mutation. */ - auditLog?: AuditLog | null; - auditLogEdge?: AuditLogEdge | null; -} -export type UpdateAuditLogPayloadSelect = { - clientMutationId?: boolean; - auditLog?: { - select: AuditLogSelect; - }; - auditLogEdge?: { - select: AuditLogEdgeSelect; - }; -}; -export interface DeleteAuditLogPayload { - clientMutationId?: string | null; - /** The `AuditLog` that was deleted by this mutation. */ - auditLog?: AuditLog | null; - auditLogEdge?: AuditLogEdge | null; -} -export type DeleteAuditLogPayloadSelect = { - clientMutationId?: boolean; - auditLog?: { - select: AuditLogSelect; - }; - auditLogEdge?: { - select: AuditLogEdgeSelect; - }; -}; -export interface CreateAppLevelPayload { - clientMutationId?: string | null; - /** The `AppLevel` that was created by this mutation. */ - appLevel?: AppLevel | null; - appLevelEdge?: AppLevelEdge | null; -} -export type CreateAppLevelPayloadSelect = { - clientMutationId?: boolean; - appLevel?: { - select: AppLevelSelect; - }; - appLevelEdge?: { - select: AppLevelEdgeSelect; - }; -}; -export interface UpdateAppLevelPayload { - clientMutationId?: string | null; - /** The `AppLevel` that was updated by this mutation. */ - appLevel?: AppLevel | null; - appLevelEdge?: AppLevelEdge | null; -} -export type UpdateAppLevelPayloadSelect = { - clientMutationId?: boolean; - appLevel?: { - select: AppLevelSelect; - }; - appLevelEdge?: { - select: AppLevelEdgeSelect; - }; -}; -export interface DeleteAppLevelPayload { - clientMutationId?: string | null; - /** The `AppLevel` that was deleted by this mutation. */ - appLevel?: AppLevel | null; - appLevelEdge?: AppLevelEdge | null; -} -export type DeleteAppLevelPayloadSelect = { - clientMutationId?: boolean; - appLevel?: { - select: AppLevelSelect; - }; - appLevelEdge?: { - select: AppLevelEdgeSelect; - }; -}; -export interface CreateSqlMigrationPayload { - clientMutationId?: string | null; - /** The `SqlMigration` that was created by this mutation. */ - sqlMigration?: SqlMigration | null; -} -export type CreateSqlMigrationPayloadSelect = { - clientMutationId?: boolean; - sqlMigration?: { - select: SqlMigrationSelect; - }; -}; -export interface CreateEmailPayload { - clientMutationId?: string | null; - /** The `Email` that was created by this mutation. */ - email?: Email | null; - emailEdge?: EmailEdge | null; -} -export type CreateEmailPayloadSelect = { - clientMutationId?: boolean; - email?: { - select: EmailSelect; - }; - emailEdge?: { - select: EmailEdgeSelect; + orgMembershipDefaultEdge?: { + select: OrgMembershipDefaultEdgeSelect; }; }; -export interface UpdateEmailPayload { +export interface DeleteOrgMembershipDefaultPayload { clientMutationId?: string | null; - /** The `Email` that was updated by this mutation. */ - email?: Email | null; - emailEdge?: EmailEdge | null; + /** The `OrgMembershipDefault` that was deleted by this mutation. */ + orgMembershipDefault?: OrgMembershipDefault | null; + orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; } -export type UpdateEmailPayloadSelect = { +export type DeleteOrgMembershipDefaultPayloadSelect = { clientMutationId?: boolean; - email?: { - select: EmailSelect; + orgMembershipDefault?: { + select: OrgMembershipDefaultSelect; }; - emailEdge?: { - select: EmailEdgeSelect; + orgMembershipDefaultEdge?: { + select: OrgMembershipDefaultEdgeSelect; }; }; -export interface DeleteEmailPayload { +export interface CreateSqlMigrationPayload { clientMutationId?: string | null; - /** The `Email` that was deleted by this mutation. */ - email?: Email | null; - emailEdge?: EmailEdge | null; + /** The `SqlMigration` that was created by this mutation. */ + sqlMigration?: SqlMigration | null; } -export type DeleteEmailPayloadSelect = { +export type CreateSqlMigrationPayloadSelect = { clientMutationId?: boolean; - email?: { - select: EmailSelect; - }; - emailEdge?: { - select: EmailEdgeSelect; + sqlMigration?: { + select: SqlMigrationSelect; }; }; export interface CreateUserPayload { @@ -18212,6 +17483,14 @@ export type AppLevelRequirementEdgeSelect = { select: AppLevelRequirementSelect; }; }; +export interface ProvisionDatabaseWithUserRecord { + outDatabaseId?: string | null; + outApiKey?: string | null; +} +export type ProvisionDatabaseWithUserRecordSelect = { + outDatabaseId?: boolean; + outApiKey?: boolean; +}; export interface BootstrapUserRecord { outUserId?: string | null; outEmail?: string | null; @@ -18221,16 +17500,6 @@ export interface BootstrapUserRecord { outIsOwner?: boolean | null; outIsSudo?: boolean | null; outApiKey?: string | null; - /** TRGM similarity when searching `outEmail`. Returns null when no trgm search filter is active. */ - outEmailTrgmSimilarity?: number | null; - /** TRGM similarity when searching `outUsername`. Returns null when no trgm search filter is active. */ - outUsernameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `outDisplayName`. Returns null when no trgm search filter is active. */ - outDisplayNameTrgmSimilarity?: number | null; - /** TRGM similarity when searching `outApiKey`. Returns null when no trgm search filter is active. */ - outApiKeyTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export type BootstrapUserRecordSelect = { outUserId?: boolean; @@ -18241,25 +17510,6 @@ export type BootstrapUserRecordSelect = { outIsOwner?: boolean; outIsSudo?: boolean; outApiKey?: boolean; - outEmailTrgmSimilarity?: boolean; - outUsernameTrgmSimilarity?: boolean; - outDisplayNameTrgmSimilarity?: boolean; - outApiKeyTrgmSimilarity?: boolean; - searchScore?: boolean; -}; -export interface ProvisionDatabaseWithUserRecord { - outDatabaseId?: string | null; - outApiKey?: string | null; - /** TRGM similarity when searching `outApiKey`. Returns null when no trgm search filter is active. */ - outApiKeyTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; -} -export type ProvisionDatabaseWithUserRecordSelect = { - outDatabaseId?: boolean; - outApiKey?: boolean; - outApiKeyTrgmSimilarity?: boolean; - searchScore?: boolean; }; export interface SignInOneTimeTokenRecord { id?: string | null; @@ -18268,10 +17518,6 @@ export interface SignInOneTimeTokenRecord { accessTokenExpiresAt?: string | null; isVerified?: boolean | null; totpEnabled?: boolean | null; - /** TRGM similarity when searching `accessToken`. Returns null when no trgm search filter is active. */ - accessTokenTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export type SignInOneTimeTokenRecordSelect = { id?: boolean; @@ -18280,8 +17526,6 @@ export type SignInOneTimeTokenRecordSelect = { accessTokenExpiresAt?: boolean; isVerified?: boolean; totpEnabled?: boolean; - accessTokenTrgmSimilarity?: boolean; - searchScore?: boolean; }; export interface ExtendTokenExpiresRecord { id?: string | null; @@ -18300,10 +17544,6 @@ export interface SignInRecord { accessTokenExpiresAt?: string | null; isVerified?: boolean | null; totpEnabled?: boolean | null; - /** TRGM similarity when searching `accessToken`. Returns null when no trgm search filter is active. */ - accessTokenTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export type SignInRecordSelect = { id?: boolean; @@ -18312,8 +17552,6 @@ export type SignInRecordSelect = { accessTokenExpiresAt?: boolean; isVerified?: boolean; totpEnabled?: boolean; - accessTokenTrgmSimilarity?: boolean; - searchScore?: boolean; }; export interface SignUpRecord { id?: string | null; @@ -18322,10 +17560,6 @@ export interface SignUpRecord { accessTokenExpiresAt?: string | null; isVerified?: boolean | null; totpEnabled?: boolean | null; - /** TRGM similarity when searching `accessToken`. Returns null when no trgm search filter is active. */ - accessTokenTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export type SignUpRecordSelect = { id?: boolean; @@ -18334,8 +17568,6 @@ export type SignUpRecordSelect = { accessTokenExpiresAt?: boolean; isVerified?: boolean; totpEnabled?: boolean; - accessTokenTrgmSimilarity?: boolean; - searchScore?: boolean; }; /** Tracks user authentication sessions with expiration, fingerprinting, and step-up verification state */ export interface Session { @@ -18364,14 +17596,6 @@ export interface Session { csrfSecret?: string | null; createdAt?: string | null; updatedAt?: string | null; - /** TRGM similarity when searching `uagent`. Returns null when no trgm search filter is active. */ - uagentTrgmSimilarity?: number | null; - /** TRGM similarity when searching `fingerprintMode`. Returns null when no trgm search filter is active. */ - fingerprintModeTrgmSimilarity?: number | null; - /** TRGM similarity when searching `csrfSecret`. Returns null when no trgm search filter is active. */ - csrfSecretTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Returns null when no search filters are active. */ - searchScore?: number | null; } export type SessionSelect = { id?: boolean; @@ -18388,10 +17612,6 @@ export type SessionSelect = { csrfSecret?: boolean; createdAt?: boolean; updatedAt?: boolean; - uagentTrgmSimilarity?: boolean; - fingerprintModeTrgmSimilarity?: boolean; - csrfSecretTrgmSimilarity?: boolean; - searchScore?: boolean; }; /** A `Database` edge in the connection. */ export interface DatabaseEdge { @@ -18597,6 +17817,18 @@ export type ViewRuleEdgeSelect = { select: ViewRuleSelect; }; }; +/** A `EmbeddingChunk` edge in the connection. */ +export interface EmbeddingChunkEdge { + cursor?: string | null; + /** The `EmbeddingChunk` at the end of the edge. */ + node?: EmbeddingChunk | null; +} +export type EmbeddingChunkEdgeSelect = { + cursor?: boolean; + node?: { + select: EmbeddingChunkSelect; + }; +}; /** A `TableTemplateModule` edge in the connection. */ export interface TableTemplateModuleEdge { cursor?: string | null; @@ -18657,6 +17889,18 @@ export type DefaultPrivilegeEdgeSelect = { select: DefaultPrivilegeSelect; }; }; +/** A `Enum` edge in the connection. */ +export interface EnumEdge { + cursor?: string | null; + /** The `Enum` at the end of the edge. */ + node?: Enum | null; +} +export type EnumEdgeSelect = { + cursor?: boolean; + node?: { + select: EnumSelect; + }; +}; /** A `ApiSchema` edge in the connection. */ export interface ApiSchemaEdge { cursor?: string | null; @@ -18741,6 +17985,18 @@ export type TriggerFunctionEdgeSelect = { select: TriggerFunctionSelect; }; }; +/** A `DatabaseTransfer` edge in the connection. */ +export interface DatabaseTransferEdge { + cursor?: string | null; + /** The `DatabaseTransfer` at the end of the edge. */ + node?: DatabaseTransfer | null; +} +export type DatabaseTransferEdgeSelect = { + cursor?: boolean; + node?: { + select: DatabaseTransferSelect; + }; +}; /** A `Api` edge in the connection. */ export interface ApiEdge { cursor?: string | null; @@ -19017,16 +18273,28 @@ export type UsersModuleEdgeSelect = { select: UsersModuleSelect; }; }; -/** A `UuidModule` edge in the connection. */ -export interface UuidModuleEdge { +/** A `Blueprint` edge in the connection. */ +export interface BlueprintEdge { + cursor?: string | null; + /** The `Blueprint` at the end of the edge. */ + node?: Blueprint | null; +} +export type BlueprintEdgeSelect = { + cursor?: boolean; + node?: { + select: BlueprintSelect; + }; +}; +/** A `BlueprintTemplate` edge in the connection. */ +export interface BlueprintTemplateEdge { cursor?: string | null; - /** The `UuidModule` at the end of the edge. */ - node?: UuidModule | null; + /** The `BlueprintTemplate` at the end of the edge. */ + node?: BlueprintTemplate | null; } -export type UuidModuleEdgeSelect = { +export type BlueprintTemplateEdgeSelect = { cursor?: boolean; node?: { - select: UuidModuleSelect; + select: BlueprintTemplateSelect; }; }; /** A `DatabaseProvisionModule` edge in the connection. */ @@ -19161,6 +18429,18 @@ export type OrgChartEdgeGrantEdgeSelect = { select: OrgChartEdgeGrantSelect; }; }; +/** A `OrgPermissionDefault` edge in the connection. */ +export interface OrgPermissionDefaultEdge { + cursor?: string | null; + /** The `OrgPermissionDefault` at the end of the edge. */ + node?: OrgPermissionDefault | null; +} +export type OrgPermissionDefaultEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgPermissionDefaultSelect; + }; +}; /** A `AppLimit` edge in the connection. */ export interface AppLimitEdge { cursor?: string | null; @@ -19209,6 +18489,66 @@ export type AppAchievementEdgeSelect = { select: AppAchievementSelect; }; }; +/** A `AppLevel` edge in the connection. */ +export interface AppLevelEdge { + cursor?: string | null; + /** The `AppLevel` at the end of the edge. */ + node?: AppLevel | null; +} +export type AppLevelEdgeSelect = { + cursor?: boolean; + node?: { + select: AppLevelSelect; + }; +}; +/** A `Email` edge in the connection. */ +export interface EmailEdge { + cursor?: string | null; + /** The `Email` at the end of the edge. */ + node?: Email | null; +} +export type EmailEdgeSelect = { + cursor?: boolean; + node?: { + select: EmailSelect; + }; +}; +/** A `PhoneNumber` edge in the connection. */ +export interface PhoneNumberEdge { + cursor?: string | null; + /** The `PhoneNumber` at the end of the edge. */ + node?: PhoneNumber | null; +} +export type PhoneNumberEdgeSelect = { + cursor?: boolean; + node?: { + select: PhoneNumberSelect; + }; +}; +/** A `CryptoAddress` edge in the connection. */ +export interface CryptoAddressEdge { + cursor?: string | null; + /** The `CryptoAddress` at the end of the edge. */ + node?: CryptoAddress | null; +} +export type CryptoAddressEdgeSelect = { + cursor?: boolean; + node?: { + select: CryptoAddressSelect; + }; +}; +/** A `ConnectedAccount` edge in the connection. */ +export interface ConnectedAccountEdge { + cursor?: string | null; + /** The `ConnectedAccount` at the end of the edge. */ + node?: ConnectedAccount | null; +} +export type ConnectedAccountEdgeSelect = { + cursor?: boolean; + node?: { + select: ConnectedAccountSelect; + }; +}; /** A `Invite` edge in the connection. */ export interface InviteEdge { cursor?: string | null; @@ -19257,6 +18597,18 @@ export type OrgClaimedInviteEdgeSelect = { select: OrgClaimedInviteSelect; }; }; +/** A `AuditLog` edge in the connection. */ +export interface AuditLogEdge { + cursor?: string | null; + /** The `AuditLog` at the end of the edge. */ + node?: AuditLog | null; +} +export type AuditLogEdgeSelect = { + cursor?: boolean; + node?: { + select: AuditLogSelect; + }; +}; /** A `Ref` edge in the connection. */ export interface RefEdge { cursor?: string | null; @@ -19293,18 +18645,6 @@ export type AppPermissionDefaultEdgeSelect = { select: AppPermissionDefaultSelect; }; }; -/** A `CryptoAddress` edge in the connection. */ -export interface CryptoAddressEdge { - cursor?: string | null; - /** The `CryptoAddress` at the end of the edge. */ - node?: CryptoAddress | null; -} -export type CryptoAddressEdgeSelect = { - cursor?: boolean; - node?: { - select: CryptoAddressSelect; - }; -}; /** A `RoleType` edge in the connection. */ export interface RoleTypeEdge { cursor?: string | null; @@ -19317,30 +18657,6 @@ export type RoleTypeEdgeSelect = { select: RoleTypeSelect; }; }; -/** A `OrgPermissionDefault` edge in the connection. */ -export interface OrgPermissionDefaultEdge { - cursor?: string | null; - /** The `OrgPermissionDefault` at the end of the edge. */ - node?: OrgPermissionDefault | null; -} -export type OrgPermissionDefaultEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgPermissionDefaultSelect; - }; -}; -/** A `PhoneNumber` edge in the connection. */ -export interface PhoneNumberEdge { - cursor?: string | null; - /** The `PhoneNumber` at the end of the edge. */ - node?: PhoneNumber | null; -} -export type PhoneNumberEdgeSelect = { - cursor?: boolean; - node?: { - select: PhoneNumberSelect; - }; -}; /** A `AppLimitDefault` edge in the connection. */ export interface AppLimitDefaultEdge { cursor?: string | null; @@ -19365,18 +18681,6 @@ export type OrgLimitDefaultEdgeSelect = { select: OrgLimitDefaultSelect; }; }; -/** A `ConnectedAccount` edge in the connection. */ -export interface ConnectedAccountEdge { - cursor?: string | null; - /** The `ConnectedAccount` at the end of the edge. */ - node?: ConnectedAccount | null; -} -export type ConnectedAccountEdgeSelect = { - cursor?: boolean; - node?: { - select: ConnectedAccountSelect; - }; -}; /** A `NodeTypeRegistry` edge in the connection. */ export interface NodeTypeRegistryEdge { cursor?: string | null; @@ -19449,42 +18753,6 @@ export type OrgMembershipDefaultEdgeSelect = { select: OrgMembershipDefaultSelect; }; }; -/** A `AuditLog` edge in the connection. */ -export interface AuditLogEdge { - cursor?: string | null; - /** The `AuditLog` at the end of the edge. */ - node?: AuditLog | null; -} -export type AuditLogEdgeSelect = { - cursor?: boolean; - node?: { - select: AuditLogSelect; - }; -}; -/** A `AppLevel` edge in the connection. */ -export interface AppLevelEdge { - cursor?: string | null; - /** The `AppLevel` at the end of the edge. */ - node?: AppLevel | null; -} -export type AppLevelEdgeSelect = { - cursor?: boolean; - node?: { - select: AppLevelSelect; - }; -}; -/** A `Email` edge in the connection. */ -export interface EmailEdge { - cursor?: string | null; - /** The `Email` at the end of the edge. */ - node?: Email | null; -} -export type EmailEdgeSelect = { - cursor?: boolean; - node?: { - select: EmailSelect; - }; -}; /** A `User` edge in the connection. */ export interface UserEdge { cursor?: string | null; diff --git a/sdk/constructive-sdk/src/public/orm/models/blueprint.ts b/sdk/constructive-sdk/src/public/orm/models/blueprint.ts new file mode 100644 index 000000000..f7dd60157 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/models/blueprint.ts @@ -0,0 +1,236 @@ +/** + * Blueprint model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + Blueprint, + BlueprintWithRelations, + BlueprintSelect, + BlueprintFilter, + BlueprintOrderBy, + CreateBlueprintInput, + UpdateBlueprintInput, + BlueprintPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class BlueprintModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + blueprints: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'Blueprint', + 'blueprints', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'BlueprintFilter', + 'BlueprintOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Blueprint', + fieldName: 'blueprints', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + blueprints: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'Blueprint', + 'blueprints', + args.select, + { + where: args?.where, + }, + 'BlueprintFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Blueprint', + fieldName: 'blueprints', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + blueprint: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'Blueprint', + 'blueprints', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'BlueprintFilter', + 'BlueprintOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Blueprint', + fieldName: 'blueprint', + document, + variables, + transform: (data: { + blueprints?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + blueprint: data.blueprints?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createBlueprint: { + blueprint: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'Blueprint', + 'createBlueprint', + 'blueprint', + args.select, + args.data, + 'CreateBlueprintInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Blueprint', + fieldName: 'createBlueprint', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + BlueprintPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateBlueprint: { + blueprint: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'Blueprint', + 'updateBlueprint', + 'blueprint', + args.select, + args.where.id, + args.data, + 'UpdateBlueprintInput', + 'id', + 'blueprintPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Blueprint', + fieldName: 'updateBlueprint', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteBlueprint: { + blueprint: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'Blueprint', + 'deleteBlueprint', + 'blueprint', + args.where.id, + 'DeleteBlueprintInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Blueprint', + fieldName: 'deleteBlueprint', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/public/orm/models/blueprintTemplate.ts b/sdk/constructive-sdk/src/public/orm/models/blueprintTemplate.ts new file mode 100644 index 000000000..b5bc3dbef --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/models/blueprintTemplate.ts @@ -0,0 +1,236 @@ +/** + * BlueprintTemplate model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + BlueprintTemplate, + BlueprintTemplateWithRelations, + BlueprintTemplateSelect, + BlueprintTemplateFilter, + BlueprintTemplateOrderBy, + CreateBlueprintTemplateInput, + UpdateBlueprintTemplateInput, + BlueprintTemplatePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class BlueprintTemplateModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + blueprintTemplates: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'BlueprintTemplate', + 'blueprintTemplates', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'BlueprintTemplateFilter', + 'BlueprintTemplateOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'BlueprintTemplate', + fieldName: 'blueprintTemplates', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + blueprintTemplates: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'BlueprintTemplate', + 'blueprintTemplates', + args.select, + { + where: args?.where, + }, + 'BlueprintTemplateFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'BlueprintTemplate', + fieldName: 'blueprintTemplates', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + blueprintTemplate: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'BlueprintTemplate', + 'blueprintTemplates', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'BlueprintTemplateFilter', + 'BlueprintTemplateOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'BlueprintTemplate', + fieldName: 'blueprintTemplate', + document, + variables, + transform: (data: { + blueprintTemplates?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + blueprintTemplate: data.blueprintTemplates?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createBlueprintTemplate: { + blueprintTemplate: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'BlueprintTemplate', + 'createBlueprintTemplate', + 'blueprintTemplate', + args.select, + args.data, + 'CreateBlueprintTemplateInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'BlueprintTemplate', + fieldName: 'createBlueprintTemplate', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + BlueprintTemplatePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateBlueprintTemplate: { + blueprintTemplate: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'BlueprintTemplate', + 'updateBlueprintTemplate', + 'blueprintTemplate', + args.select, + args.where.id, + args.data, + 'UpdateBlueprintTemplateInput', + 'id', + 'blueprintTemplatePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'BlueprintTemplate', + fieldName: 'updateBlueprintTemplate', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteBlueprintTemplate: { + blueprintTemplate: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'BlueprintTemplate', + 'deleteBlueprintTemplate', + 'blueprintTemplate', + args.where.id, + 'DeleteBlueprintTemplateInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'BlueprintTemplate', + fieldName: 'deleteBlueprintTemplate', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/public/orm/models/databaseTransfer.ts b/sdk/constructive-sdk/src/public/orm/models/databaseTransfer.ts new file mode 100644 index 000000000..c90f3963f --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/models/databaseTransfer.ts @@ -0,0 +1,236 @@ +/** + * DatabaseTransfer model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + DatabaseTransfer, + DatabaseTransferWithRelations, + DatabaseTransferSelect, + DatabaseTransferFilter, + DatabaseTransferOrderBy, + CreateDatabaseTransferInput, + UpdateDatabaseTransferInput, + DatabaseTransferPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class DatabaseTransferModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + databaseTransfers: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'DatabaseTransfer', + 'databaseTransfers', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'DatabaseTransferFilter', + 'DatabaseTransferOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DatabaseTransfer', + fieldName: 'databaseTransfers', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + databaseTransfers: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'DatabaseTransfer', + 'databaseTransfers', + args.select, + { + where: args?.where, + }, + 'DatabaseTransferFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DatabaseTransfer', + fieldName: 'databaseTransfers', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + databaseTransfer: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'DatabaseTransfer', + 'databaseTransfers', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'DatabaseTransferFilter', + 'DatabaseTransferOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'DatabaseTransfer', + fieldName: 'databaseTransfer', + document, + variables, + transform: (data: { + databaseTransfers?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + databaseTransfer: data.databaseTransfers?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createDatabaseTransfer: { + databaseTransfer: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'DatabaseTransfer', + 'createDatabaseTransfer', + 'databaseTransfer', + args.select, + args.data, + 'CreateDatabaseTransferInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DatabaseTransfer', + fieldName: 'createDatabaseTransfer', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + DatabaseTransferPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateDatabaseTransfer: { + databaseTransfer: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'DatabaseTransfer', + 'updateDatabaseTransfer', + 'databaseTransfer', + args.select, + args.where.id, + args.data, + 'UpdateDatabaseTransferInput', + 'id', + 'databaseTransferPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DatabaseTransfer', + fieldName: 'updateDatabaseTransfer', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteDatabaseTransfer: { + databaseTransfer: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'DatabaseTransfer', + 'deleteDatabaseTransfer', + 'databaseTransfer', + args.where.id, + 'DeleteDatabaseTransferInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'DatabaseTransfer', + fieldName: 'deleteDatabaseTransfer', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/public/orm/models/embeddingChunk.ts b/sdk/constructive-sdk/src/public/orm/models/embeddingChunk.ts new file mode 100644 index 000000000..6f0be845c --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/models/embeddingChunk.ts @@ -0,0 +1,236 @@ +/** + * EmbeddingChunk model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + EmbeddingChunk, + EmbeddingChunkWithRelations, + EmbeddingChunkSelect, + EmbeddingChunkFilter, + EmbeddingChunkOrderBy, + CreateEmbeddingChunkInput, + UpdateEmbeddingChunkInput, + EmbeddingChunkPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class EmbeddingChunkModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + embeddingChunks: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'EmbeddingChunk', + 'embeddingChunks', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'EmbeddingChunkFilter', + 'EmbeddingChunkOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'EmbeddingChunk', + fieldName: 'embeddingChunks', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + embeddingChunks: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'EmbeddingChunk', + 'embeddingChunks', + args.select, + { + where: args?.where, + }, + 'EmbeddingChunkFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'EmbeddingChunk', + fieldName: 'embeddingChunks', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + embeddingChunk: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'EmbeddingChunk', + 'embeddingChunks', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'EmbeddingChunkFilter', + 'EmbeddingChunkOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'EmbeddingChunk', + fieldName: 'embeddingChunk', + document, + variables, + transform: (data: { + embeddingChunks?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + embeddingChunk: data.embeddingChunks?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createEmbeddingChunk: { + embeddingChunk: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'EmbeddingChunk', + 'createEmbeddingChunk', + 'embeddingChunk', + args.select, + args.data, + 'CreateEmbeddingChunkInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'EmbeddingChunk', + fieldName: 'createEmbeddingChunk', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + EmbeddingChunkPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateEmbeddingChunk: { + embeddingChunk: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'EmbeddingChunk', + 'updateEmbeddingChunk', + 'embeddingChunk', + args.select, + args.where.id, + args.data, + 'UpdateEmbeddingChunkInput', + 'id', + 'embeddingChunkPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'EmbeddingChunk', + fieldName: 'updateEmbeddingChunk', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteEmbeddingChunk: { + embeddingChunk: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'EmbeddingChunk', + 'deleteEmbeddingChunk', + 'embeddingChunk', + args.where.id, + 'DeleteEmbeddingChunkInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'EmbeddingChunk', + fieldName: 'deleteEmbeddingChunk', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/public/orm/models/enum.ts b/sdk/constructive-sdk/src/public/orm/models/enum.ts new file mode 100644 index 000000000..2efea885e --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/models/enum.ts @@ -0,0 +1,236 @@ +/** + * Enum model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + Enum, + EnumWithRelations, + EnumSelect, + EnumFilter, + EnumOrderBy, + CreateEnumInput, + UpdateEnumInput, + EnumPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class EnumModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + enums: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'Enum', + 'enums', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'EnumFilter', + 'EnumOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Enum', + fieldName: 'enums', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + enums: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'Enum', + 'enums', + args.select, + { + where: args?.where, + }, + 'EnumFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Enum', + fieldName: 'enums', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + enum: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'Enum', + 'enums', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'EnumFilter', + 'EnumOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'Enum', + fieldName: 'enum', + document, + variables, + transform: (data: { + enums?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + enum: data.enums?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createEnum: { + enum: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'Enum', + 'createEnum', + 'enum', + args.select, + args.data, + 'CreateEnumInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Enum', + fieldName: 'createEnum', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + EnumPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateEnum: { + enum: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'Enum', + 'updateEnum', + 'enum', + args.select, + args.where.id, + args.data, + 'UpdateEnumInput', + 'id', + 'enumPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Enum', + fieldName: 'updateEnum', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteEnum: { + enum: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'Enum', + 'deleteEnum', + 'enum', + args.where.id, + 'DeleteEnumInput', + 'id', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'Enum', + fieldName: 'deleteEnum', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/public/orm/models/index.ts b/sdk/constructive-sdk/src/public/orm/models/index.ts index 292be6a26..d10e88acb 100644 --- a/sdk/constructive-sdk/src/public/orm/models/index.ts +++ b/sdk/constructive-sdk/src/public/orm/models/index.ts @@ -3,9 +3,9 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ +export { GetAllRecordModel } from './getAllRecord'; export { OrgGetManagersRecordModel } from './orgGetManagersRecord'; export { OrgGetSubordinatesRecordModel } from './orgGetSubordinatesRecord'; -export { GetAllRecordModel } from './getAllRecord'; export { ObjectModel } from './object'; export { AppPermissionModel } from './appPermission'; export { OrgPermissionModel } from './orgPermission'; @@ -27,11 +27,13 @@ export { ViewModel } from './view'; export { ViewTableModel } from './viewTable'; export { ViewGrantModel } from './viewGrant'; export { ViewRuleModel } from './viewRule'; +export { EmbeddingChunkModel } from './embeddingChunk'; export { TableTemplateModuleModel } from './tableTemplateModule'; export { SecureTableProvisionModel } from './secureTableProvision'; export { RelationProvisionModel } from './relationProvision'; export { SchemaGrantModel } from './schemaGrant'; export { DefaultPrivilegeModel } from './defaultPrivilege'; +export { EnumModel } from './enum'; export { ApiSchemaModel } from './apiSchema'; export { ApiModuleModel } from './apiModule'; export { DomainModel } from './domain'; @@ -39,6 +41,7 @@ export { SiteMetadatumModel } from './siteMetadatum'; export { SiteModuleModel } from './siteModule'; export { SiteThemeModel } from './siteTheme'; export { TriggerFunctionModel } from './triggerFunction'; +export { DatabaseTransferModel } from './databaseTransfer'; export { ApiModel } from './api'; export { SiteModel } from './site'; export { AppModel } from './app'; @@ -62,7 +65,8 @@ export { SecretsModuleModel } from './secretsModule'; export { SessionsModuleModel } from './sessionsModule'; export { UserAuthModuleModel } from './userAuthModule'; export { UsersModuleModel } from './usersModule'; -export { UuidModuleModel } from './uuidModule'; +export { BlueprintModel } from './blueprint'; +export { BlueprintTemplateModel } from './blueprintTemplate'; export { DatabaseProvisionModuleModel } from './databaseProvisionModule'; export { AppAdminGrantModel } from './appAdminGrant'; export { AppOwnerGrantModel } from './appOwnerGrant'; @@ -74,34 +78,34 @@ export { OrgOwnerGrantModel } from './orgOwnerGrant'; export { OrgGrantModel } from './orgGrant'; export { OrgChartEdgeModel } from './orgChartEdge'; export { OrgChartEdgeGrantModel } from './orgChartEdgeGrant'; +export { OrgPermissionDefaultModel } from './orgPermissionDefault'; export { AppLimitModel } from './appLimit'; export { OrgLimitModel } from './orgLimit'; export { AppStepModel } from './appStep'; export { AppAchievementModel } from './appAchievement'; +export { AppLevelModel } from './appLevel'; +export { EmailModel } from './email'; +export { PhoneNumberModel } from './phoneNumber'; +export { CryptoAddressModel } from './cryptoAddress'; +export { ConnectedAccountModel } from './connectedAccount'; export { InviteModel } from './invite'; export { ClaimedInviteModel } from './claimedInvite'; export { OrgInviteModel } from './orgInvite'; export { OrgClaimedInviteModel } from './orgClaimedInvite'; +export { AuditLogModel } from './auditLog'; export { RefModel } from './ref'; export { StoreModel } from './store'; export { AppPermissionDefaultModel } from './appPermissionDefault'; -export { CryptoAddressModel } from './cryptoAddress'; export { RoleTypeModel } from './roleType'; -export { OrgPermissionDefaultModel } from './orgPermissionDefault'; -export { PhoneNumberModel } from './phoneNumber'; export { AppLimitDefaultModel } from './appLimitDefault'; export { OrgLimitDefaultModel } from './orgLimitDefault'; -export { ConnectedAccountModel } from './connectedAccount'; export { NodeTypeRegistryModel } from './nodeTypeRegistry'; export { MembershipTypeModel } from './membershipType'; export { CommitModel } from './commit'; export { AppMembershipDefaultModel } from './appMembershipDefault'; export { RlsModuleModel } from './rlsModule'; export { OrgMembershipDefaultModel } from './orgMembershipDefault'; -export { AuditLogModel } from './auditLog'; -export { AppLevelModel } from './appLevel'; export { SqlMigrationModel } from './sqlMigration'; -export { EmailModel } from './email'; export { UserModel } from './user'; export { AstMigrationModel } from './astMigration'; export { AppMembershipModel } from './appMembership'; diff --git a/sdk/constructive-sdk/src/public/orm/mutation/index.ts b/sdk/constructive-sdk/src/public/orm/mutation/index.ts index e16b7ce43..12c82abdb 100644 --- a/sdk/constructive-sdk/src/public/orm/mutation/index.ts +++ b/sdk/constructive-sdk/src/public/orm/mutation/index.ts @@ -7,23 +7,28 @@ import { OrmClient } from '../client'; import { QueryBuilder, buildCustomDocument } from '../query-builder'; import type { InferSelectResult, StrictSelect } from '../select-types'; import type { - SignOutInput, SendAccountDeletionEmailInput, - CheckPasswordInput, + SignOutInput, + AcceptDatabaseTransferInput, + CancelDatabaseTransferInput, + RejectDatabaseTransferInput, SubmitInviteCodeInput, SubmitOrgInviteCodeInput, - FreezeObjectsInput, - InitEmptyRepoInput, + CheckPasswordInput, ConfirmDeleteAccountInput, SetPasswordInput, VerifyEmailInput, - RemoveNodeAtPathInput, + FreezeObjectsInput, + InitEmptyRepoInput, + ConstructBlueprintInput, ResetPasswordInput, - BootstrapUserInput, - SetFieldOrderInput, + RemoveNodeAtPathInput, SetDataAtPathInput, SetPropsAndCommitInput, + CopyTemplateToBlueprintInput, ProvisionDatabaseWithUserInput, + BootstrapUserInput, + SetFieldOrderInput, InsertNodeAtPathInput, UpdateNodeAtPathInput, SetAndCommitInput, @@ -34,27 +39,32 @@ import type { SignInInput, SignUpInput, OneTimeTokenInput, - ForgotPasswordInput, SendVerificationEmailInput, + ForgotPasswordInput, VerifyPasswordInput, VerifyTotpInput, - SignOutPayload, SendAccountDeletionEmailPayload, - CheckPasswordPayload, + SignOutPayload, + AcceptDatabaseTransferPayload, + CancelDatabaseTransferPayload, + RejectDatabaseTransferPayload, SubmitInviteCodePayload, SubmitOrgInviteCodePayload, - FreezeObjectsPayload, - InitEmptyRepoPayload, + CheckPasswordPayload, ConfirmDeleteAccountPayload, SetPasswordPayload, VerifyEmailPayload, - RemoveNodeAtPathPayload, + FreezeObjectsPayload, + InitEmptyRepoPayload, + ConstructBlueprintPayload, ResetPasswordPayload, - BootstrapUserPayload, - SetFieldOrderPayload, + RemoveNodeAtPathPayload, SetDataAtPathPayload, SetPropsAndCommitPayload, + CopyTemplateToBlueprintPayload, ProvisionDatabaseWithUserPayload, + BootstrapUserPayload, + SetFieldOrderPayload, InsertNodeAtPathPayload, UpdateNodeAtPathPayload, SetAndCommitPayload, @@ -65,27 +75,32 @@ import type { SignInPayload, SignUpPayload, OneTimeTokenPayload, - ForgotPasswordPayload, SendVerificationEmailPayload, + ForgotPasswordPayload, VerifyPasswordPayload, VerifyTotpPayload, - SignOutPayloadSelect, SendAccountDeletionEmailPayloadSelect, - CheckPasswordPayloadSelect, + SignOutPayloadSelect, + AcceptDatabaseTransferPayloadSelect, + CancelDatabaseTransferPayloadSelect, + RejectDatabaseTransferPayloadSelect, SubmitInviteCodePayloadSelect, SubmitOrgInviteCodePayloadSelect, - FreezeObjectsPayloadSelect, - InitEmptyRepoPayloadSelect, + CheckPasswordPayloadSelect, ConfirmDeleteAccountPayloadSelect, SetPasswordPayloadSelect, VerifyEmailPayloadSelect, - RemoveNodeAtPathPayloadSelect, + FreezeObjectsPayloadSelect, + InitEmptyRepoPayloadSelect, + ConstructBlueprintPayloadSelect, ResetPasswordPayloadSelect, - BootstrapUserPayloadSelect, - SetFieldOrderPayloadSelect, + RemoveNodeAtPathPayloadSelect, SetDataAtPathPayloadSelect, SetPropsAndCommitPayloadSelect, + CopyTemplateToBlueprintPayloadSelect, ProvisionDatabaseWithUserPayloadSelect, + BootstrapUserPayloadSelect, + SetFieldOrderPayloadSelect, InsertNodeAtPathPayloadSelect, UpdateNodeAtPathPayloadSelect, SetAndCommitPayloadSelect, @@ -96,20 +111,26 @@ import type { SignInPayloadSelect, SignUpPayloadSelect, OneTimeTokenPayloadSelect, - ForgotPasswordPayloadSelect, SendVerificationEmailPayloadSelect, + ForgotPasswordPayloadSelect, VerifyPasswordPayloadSelect, VerifyTotpPayloadSelect, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; +export interface SendAccountDeletionEmailVariables { + input: SendAccountDeletionEmailInput; +} export interface SignOutVariables { input: SignOutInput; } -export interface SendAccountDeletionEmailVariables { - input: SendAccountDeletionEmailInput; +export interface AcceptDatabaseTransferVariables { + input: AcceptDatabaseTransferInput; } -export interface CheckPasswordVariables { - input: CheckPasswordInput; +export interface CancelDatabaseTransferVariables { + input: CancelDatabaseTransferInput; +} +export interface RejectDatabaseTransferVariables { + input: RejectDatabaseTransferInput; } export interface SubmitInviteCodeVariables { input: SubmitInviteCodeInput; @@ -117,11 +138,8 @@ export interface SubmitInviteCodeVariables { export interface SubmitOrgInviteCodeVariables { input: SubmitOrgInviteCodeInput; } -export interface FreezeObjectsVariables { - input: FreezeObjectsInput; -} -export interface InitEmptyRepoVariables { - input: InitEmptyRepoInput; +export interface CheckPasswordVariables { + input: CheckPasswordInput; } export interface ConfirmDeleteAccountVariables { input: ConfirmDeleteAccountInput; @@ -132,17 +150,24 @@ export interface SetPasswordVariables { export interface VerifyEmailVariables { input: VerifyEmailInput; } -export interface RemoveNodeAtPathVariables { - input: RemoveNodeAtPathInput; +export interface FreezeObjectsVariables { + input: FreezeObjectsInput; +} +export interface InitEmptyRepoVariables { + input: InitEmptyRepoInput; +} +/** + * Variables for constructBlueprint + * Executes a draft blueprint definition. Four phases: (1) create tables with nodes[], fields, and policies[], (2) create relations between tables, (3) create indexes on table fields (supports BTREE, HNSW, GIN, GIST, BM25, etc.), (4) create full-text search configurations with weighted multi-field TSVector support. nodes[] entries can be strings or {$type, data} objects. Relations use $type for relation_type with junction config in data. Indexes reference table_ref + column name(s) and are resolved to field_ids. Full-text searches reference table_ref + tsvector field + source fields with weights/langs. Builds a ref_map of local ref names to created table UUIDs. Updates blueprint status to constructed (or failed with error_details). Returns the ref_map. + */ +export interface ConstructBlueprintVariables { + input: ConstructBlueprintInput; } export interface ResetPasswordVariables { input: ResetPasswordInput; } -export interface BootstrapUserVariables { - input: BootstrapUserInput; -} -export interface SetFieldOrderVariables { - input: SetFieldOrderInput; +export interface RemoveNodeAtPathVariables { + input: RemoveNodeAtPathInput; } export interface SetDataAtPathVariables { input: SetDataAtPathInput; @@ -150,9 +175,22 @@ export interface SetDataAtPathVariables { export interface SetPropsAndCommitVariables { input: SetPropsAndCommitInput; } +/** + * Variables for copyTemplateToBlueprint + * 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. + */ +export interface CopyTemplateToBlueprintVariables { + input: CopyTemplateToBlueprintInput; +} export interface ProvisionDatabaseWithUserVariables { input: ProvisionDatabaseWithUserInput; } +export interface BootstrapUserVariables { + input: BootstrapUserInput; +} +export interface SetFieldOrderVariables { + input: SetFieldOrderInput; +} export interface InsertNodeAtPathVariables { input: InsertNodeAtPathInput; } @@ -202,12 +240,12 @@ export interface SignUpVariables { export interface OneTimeTokenVariables { input: OneTimeTokenInput; } -export interface ForgotPasswordVariables { - input: ForgotPasswordInput; -} export interface SendVerificationEmailVariables { input: SendVerificationEmailInput; } +export interface ForgotPasswordVariables { + input: ForgotPasswordInput; +} export interface VerifyPasswordVariables { input: VerifyPasswordInput; } @@ -216,6 +254,35 @@ export interface VerifyTotpVariables { } export function createMutationOperations(client: OrmClient) { return { + sendAccountDeletionEmail: ( + args: SendAccountDeletionEmailVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + sendAccountDeletionEmail: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SendAccountDeletionEmail', + fieldName: 'sendAccountDeletionEmail', + ...buildCustomDocument( + 'mutation', + 'SendAccountDeletionEmail', + 'sendAccountDeletionEmail', + options.select, + args, + [ + { + name: 'input', + type: 'SendAccountDeletionEmailInput!', + }, + ], + connectionFieldsMap, + 'SendAccountDeletionEmailPayload' + ), + }), signOut: ( args: SignOutVariables, options: { @@ -245,62 +312,91 @@ export function createMutationOperations(client: OrmClient) { 'SignOutPayload' ), }), - sendAccountDeletionEmail: ( - args: SendAccountDeletionEmailVariables, + acceptDatabaseTransfer: ( + args: AcceptDatabaseTransferVariables, options: { select: S; - } & StrictSelect + } & StrictSelect ) => new QueryBuilder<{ - sendAccountDeletionEmail: InferSelectResult | null; + acceptDatabaseTransfer: InferSelectResult | null; }>({ client, operation: 'mutation', - operationName: 'SendAccountDeletionEmail', - fieldName: 'sendAccountDeletionEmail', + operationName: 'AcceptDatabaseTransfer', + fieldName: 'acceptDatabaseTransfer', ...buildCustomDocument( 'mutation', - 'SendAccountDeletionEmail', - 'sendAccountDeletionEmail', + 'AcceptDatabaseTransfer', + 'acceptDatabaseTransfer', options.select, args, [ { name: 'input', - type: 'SendAccountDeletionEmailInput!', + type: 'AcceptDatabaseTransferInput!', }, ], connectionFieldsMap, - 'SendAccountDeletionEmailPayload' + 'AcceptDatabaseTransferPayload' ), }), - checkPassword: ( - args: CheckPasswordVariables, + cancelDatabaseTransfer: ( + args: CancelDatabaseTransferVariables, options: { select: S; - } & StrictSelect + } & StrictSelect ) => new QueryBuilder<{ - checkPassword: InferSelectResult | null; + cancelDatabaseTransfer: InferSelectResult | null; }>({ client, operation: 'mutation', - operationName: 'CheckPassword', - fieldName: 'checkPassword', + operationName: 'CancelDatabaseTransfer', + fieldName: 'cancelDatabaseTransfer', ...buildCustomDocument( 'mutation', - 'CheckPassword', - 'checkPassword', + 'CancelDatabaseTransfer', + 'cancelDatabaseTransfer', options.select, args, [ { name: 'input', - type: 'CheckPasswordInput!', + type: 'CancelDatabaseTransferInput!', }, ], connectionFieldsMap, - 'CheckPasswordPayload' + 'CancelDatabaseTransferPayload' + ), + }), + rejectDatabaseTransfer: ( + args: RejectDatabaseTransferVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + rejectDatabaseTransfer: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'RejectDatabaseTransfer', + fieldName: 'rejectDatabaseTransfer', + ...buildCustomDocument( + 'mutation', + 'RejectDatabaseTransfer', + 'rejectDatabaseTransfer', + options.select, + args, + [ + { + name: 'input', + type: 'RejectDatabaseTransferInput!', + }, + ], + connectionFieldsMap, + 'RejectDatabaseTransferPayload' ), }), submitInviteCode: ( @@ -361,62 +457,33 @@ export function createMutationOperations(client: OrmClient) { 'SubmitOrgInviteCodePayload' ), }), - freezeObjects: ( - args: FreezeObjectsVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - freezeObjects: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'FreezeObjects', - fieldName: 'freezeObjects', - ...buildCustomDocument( - 'mutation', - 'FreezeObjects', - 'freezeObjects', - options.select, - args, - [ - { - name: 'input', - type: 'FreezeObjectsInput!', - }, - ], - connectionFieldsMap, - 'FreezeObjectsPayload' - ), - }), - initEmptyRepo: ( - args: InitEmptyRepoVariables, + checkPassword: ( + args: CheckPasswordVariables, options: { select: S; - } & StrictSelect + } & StrictSelect ) => new QueryBuilder<{ - initEmptyRepo: InferSelectResult | null; + checkPassword: InferSelectResult | null; }>({ client, operation: 'mutation', - operationName: 'InitEmptyRepo', - fieldName: 'initEmptyRepo', + operationName: 'CheckPassword', + fieldName: 'checkPassword', ...buildCustomDocument( 'mutation', - 'InitEmptyRepo', - 'initEmptyRepo', + 'CheckPassword', + 'checkPassword', options.select, args, [ { name: 'input', - type: 'InitEmptyRepoInput!', + type: 'CheckPasswordInput!', }, ], connectionFieldsMap, - 'InitEmptyRepoPayload' + 'CheckPasswordPayload' ), }), confirmDeleteAccount: ( @@ -506,120 +573,149 @@ export function createMutationOperations(client: OrmClient) { 'VerifyEmailPayload' ), }), - removeNodeAtPath: ( - args: RemoveNodeAtPathVariables, + freezeObjects: ( + args: FreezeObjectsVariables, options: { select: S; - } & StrictSelect + } & StrictSelect ) => new QueryBuilder<{ - removeNodeAtPath: InferSelectResult | null; + freezeObjects: InferSelectResult | null; }>({ client, operation: 'mutation', - operationName: 'RemoveNodeAtPath', - fieldName: 'removeNodeAtPath', + operationName: 'FreezeObjects', + fieldName: 'freezeObjects', ...buildCustomDocument( 'mutation', - 'RemoveNodeAtPath', - 'removeNodeAtPath', + 'FreezeObjects', + 'freezeObjects', options.select, args, [ { name: 'input', - type: 'RemoveNodeAtPathInput!', + type: 'FreezeObjectsInput!', }, ], connectionFieldsMap, - 'RemoveNodeAtPathPayload' + 'FreezeObjectsPayload' ), }), - resetPassword: ( - args: ResetPasswordVariables, + initEmptyRepo: ( + args: InitEmptyRepoVariables, options: { select: S; - } & StrictSelect + } & StrictSelect ) => new QueryBuilder<{ - resetPassword: InferSelectResult | null; + initEmptyRepo: InferSelectResult | null; }>({ client, operation: 'mutation', - operationName: 'ResetPassword', - fieldName: 'resetPassword', + operationName: 'InitEmptyRepo', + fieldName: 'initEmptyRepo', ...buildCustomDocument( 'mutation', - 'ResetPassword', - 'resetPassword', + 'InitEmptyRepo', + 'initEmptyRepo', options.select, args, [ { name: 'input', - type: 'ResetPasswordInput!', + type: 'InitEmptyRepoInput!', }, ], connectionFieldsMap, - 'ResetPasswordPayload' + 'InitEmptyRepoPayload' ), }), - bootstrapUser: ( - args: BootstrapUserVariables, + constructBlueprint: ( + args: ConstructBlueprintVariables, options: { select: S; - } & StrictSelect + } & StrictSelect ) => new QueryBuilder<{ - bootstrapUser: InferSelectResult | null; + constructBlueprint: InferSelectResult | null; }>({ client, operation: 'mutation', - operationName: 'BootstrapUser', - fieldName: 'bootstrapUser', + operationName: 'ConstructBlueprint', + fieldName: 'constructBlueprint', ...buildCustomDocument( 'mutation', - 'BootstrapUser', - 'bootstrapUser', + 'ConstructBlueprint', + 'constructBlueprint', options.select, args, [ { name: 'input', - type: 'BootstrapUserInput!', + type: 'ConstructBlueprintInput!', }, ], connectionFieldsMap, - 'BootstrapUserPayload' + 'ConstructBlueprintPayload' ), }), - setFieldOrder: ( - args: SetFieldOrderVariables, + resetPassword: ( + args: ResetPasswordVariables, options: { select: S; - } & StrictSelect + } & StrictSelect ) => new QueryBuilder<{ - setFieldOrder: InferSelectResult | null; + resetPassword: InferSelectResult | null; }>({ client, operation: 'mutation', - operationName: 'SetFieldOrder', - fieldName: 'setFieldOrder', + operationName: 'ResetPassword', + fieldName: 'resetPassword', ...buildCustomDocument( 'mutation', - 'SetFieldOrder', - 'setFieldOrder', + 'ResetPassword', + 'resetPassword', options.select, args, [ { name: 'input', - type: 'SetFieldOrderInput!', + type: 'ResetPasswordInput!', }, ], connectionFieldsMap, - 'SetFieldOrderPayload' + 'ResetPasswordPayload' + ), + }), + removeNodeAtPath: ( + args: RemoveNodeAtPathVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + removeNodeAtPath: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'RemoveNodeAtPath', + fieldName: 'removeNodeAtPath', + ...buildCustomDocument( + 'mutation', + 'RemoveNodeAtPath', + 'removeNodeAtPath', + options.select, + args, + [ + { + name: 'input', + type: 'RemoveNodeAtPathInput!', + }, + ], + connectionFieldsMap, + 'RemoveNodeAtPathPayload' ), }), setDataAtPath: ( @@ -680,6 +776,35 @@ export function createMutationOperations(client: OrmClient) { 'SetPropsAndCommitPayload' ), }), + copyTemplateToBlueprint: ( + args: CopyTemplateToBlueprintVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + copyTemplateToBlueprint: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'CopyTemplateToBlueprint', + fieldName: 'copyTemplateToBlueprint', + ...buildCustomDocument( + 'mutation', + 'CopyTemplateToBlueprint', + 'copyTemplateToBlueprint', + options.select, + args, + [ + { + name: 'input', + type: 'CopyTemplateToBlueprintInput!', + }, + ], + connectionFieldsMap, + 'CopyTemplateToBlueprintPayload' + ), + }), provisionDatabaseWithUser: ( args: ProvisionDatabaseWithUserVariables, options: { @@ -709,6 +834,64 @@ export function createMutationOperations(client: OrmClient) { 'ProvisionDatabaseWithUserPayload' ), }), + bootstrapUser: ( + args: BootstrapUserVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + bootstrapUser: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'BootstrapUser', + fieldName: 'bootstrapUser', + ...buildCustomDocument( + 'mutation', + 'BootstrapUser', + 'bootstrapUser', + options.select, + args, + [ + { + name: 'input', + type: 'BootstrapUserInput!', + }, + ], + connectionFieldsMap, + 'BootstrapUserPayload' + ), + }), + setFieldOrder: ( + args: SetFieldOrderVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + setFieldOrder: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SetFieldOrder', + fieldName: 'setFieldOrder', + ...buildCustomDocument( + 'mutation', + 'SetFieldOrder', + 'setFieldOrder', + options.select, + args, + [ + { + name: 'input', + type: 'SetFieldOrderInput!', + }, + ], + connectionFieldsMap, + 'SetFieldOrderPayload' + ), + }), insertNodeAtPath: ( args: InsertNodeAtPathVariables, options: { @@ -999,62 +1182,62 @@ export function createMutationOperations(client: OrmClient) { 'OneTimeTokenPayload' ), }), - forgotPassword: ( - args: ForgotPasswordVariables, + sendVerificationEmail: ( + args: SendVerificationEmailVariables, options: { select: S; - } & StrictSelect + } & StrictSelect ) => new QueryBuilder<{ - forgotPassword: InferSelectResult | null; + sendVerificationEmail: InferSelectResult | null; }>({ client, operation: 'mutation', - operationName: 'ForgotPassword', - fieldName: 'forgotPassword', + operationName: 'SendVerificationEmail', + fieldName: 'sendVerificationEmail', ...buildCustomDocument( 'mutation', - 'ForgotPassword', - 'forgotPassword', + 'SendVerificationEmail', + 'sendVerificationEmail', options.select, args, [ { name: 'input', - type: 'ForgotPasswordInput!', + type: 'SendVerificationEmailInput!', }, ], connectionFieldsMap, - 'ForgotPasswordPayload' + 'SendVerificationEmailPayload' ), }), - sendVerificationEmail: ( - args: SendVerificationEmailVariables, + forgotPassword: ( + args: ForgotPasswordVariables, options: { select: S; - } & StrictSelect + } & StrictSelect ) => new QueryBuilder<{ - sendVerificationEmail: InferSelectResult | null; + forgotPassword: InferSelectResult | null; }>({ client, operation: 'mutation', - operationName: 'SendVerificationEmail', - fieldName: 'sendVerificationEmail', + operationName: 'ForgotPassword', + fieldName: 'forgotPassword', ...buildCustomDocument( 'mutation', - 'SendVerificationEmail', - 'sendVerificationEmail', + 'ForgotPassword', + 'forgotPassword', options.select, args, [ { name: 'input', - type: 'SendVerificationEmailInput!', + type: 'ForgotPasswordInput!', }, ], connectionFieldsMap, - 'SendVerificationEmailPayload' + 'ForgotPasswordPayload' ), }), verifyPassword: (